2006-04-13 21:02:42

by deva seetharam

[permalink] [raw]
Subject: [Bluez-users] connecting multiple rfcomm clients to a single rfcomm socket server

hello,
i am trying to connect multiple bluetooth rfcomm clients to a single rfcomm server. only the first client is able to connect, the subsequent ones just fail.

here is my setup:
server
====
kernel: debian 2.6.12-1-686
bluez version 2.25
hardware: D-Link DBT-120 bluetooth dongle

client
====
National lmx9820 bluetooth module

on the server, i edited hcid.conf to change link mode to
lm accept,master;

despite that the linkmode always comes up as "slave, accept" when i do hciconfig -a.

i have included more info below. pls. see if you could give me some debugging tips.

thanks in advance,
deva


when i do a hciconfig -a, i get the following:

hci0: Type: USB
BD Address: 00:0D:88:C0:61:55 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:2304 acl:23 sco:0 events:65 errors:0
TX bytes:1429 acl:23 sco:0 commands:29 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x1bb LMP Ver: 1.1 (0x1) LMP Subver: 0x1bb
Manufacturer: Cambridge Silicon Radio (10)

from a different linux box (with another d-link dbt-120 bluetooth dongle), when i run hctiool info:

Requesting information ...
BD Address: 00:0D:88:C0:61:55
Device Name: BlueZ (0)
LMP Version: 1.1 (0x1) LMP Subversion: 0x1bb
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO>



---------------------------------
Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.


2006-04-14 20:01:22

by deva seetharam

[permalink] [raw]
Subject: Re: [Bluez-users] connecting multiple rfcomm clients to a single rfcomm socket server

hello,
i noticed something interesting:

it seems like the setting the options in config file doesn't seem to be working.
if the options are set on command line (for e.g., hciconfig hci0 lm accept,master), it seems to work.

am i missing something?

deva

deva seetharam <[email protected]> wrote: hello,
i am trying to connect multiple bluetooth rfcomm clients to a single rfcomm server. only the first client is able to connect, the subsequent ones just fail.

here is my setup:
server
====
kernel: debian 2.6.12-1-686
bluez version 2.25
hardware: D-Link DBT-120 bluetooth dongle

client
====
National lmx9820 bluetooth module

on the server, i edited hcid.conf to change link mode to
lm accept,master;

despite that the linkmode always comes up as "slave, accept" when i do hciconfig -a.

i have included more info below. pls. see if you could give me some debugging tips.

thanks in advance,
deva


when i do a hciconfig -a, i get the following:

hci0: Type: USB
BD Address: 00:0D:88:C0:61:55 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:2304 acl:23 sco:0 events:65 errors:0
TX bytes:1429 acl:23 sco:0 commands:29 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x1bb LMP Ver: 1.1 (0x1) LMP Subver: 0x1bb
Manufacturer: Cambridge Silicon Radio (10)

from a different linux box (with another d-link dbt-120 bluetooth dongle), when i run hctiool info:

Requesting information ...
BD Address: 00:0D:88:C0:61:55
Device Name: BlueZ (0)
LMP Version: 1.1 (0x1) LMP Subversion: 0x1bb
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO>



---------------------------------
Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less.