Receiving multiple (>2) incoming rfcomm connections?
Hi all,
I'm trying to create a simple application that receives incoming rfcomm connections from Nokia Series60 phones and listens for incoming data.
This is how I'm doing it currently:
for (i = 1...n) {
Listen on channel 1, rfcomm port i (rfcomm listen i) Wait until incoming connection received
Start a new thread that handles incoming data on /dev/rfcomm<i>
}
For one or two connections, it works ok. However, when I try to connect a third device, nothing happens. Nothing shows up even on hcidump when I try to connect the third phone. On the phone I receive error EPageTimedOut(-6004), which according to my friend means that the phone could not get any kind of connection.
Any ideas why it's not working? Thanks in advance,
-Hege-
Setup details:
-Compaq Evo laptop with Debian -Conceptronic USB BT (CSR)
-Various Nokia phones (6630, 6600, Ngage, 3650) -Python pyserial module for reading the serial port
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Hege,
Quoted 12 lines
I'm trying to create a simple application that receives incoming rfcomm connections from Nokia Series60 phones and listens for incoming data.
This is how I'm doing it currently:
for (i = 1...n) {
Listen on channel 1, rfcomm port i (rfcomm listen i) Wait until incoming connection received
Start a new thread that handles incoming data on /dev/rfcomm<i>
}
Quoted 5 lines
For one or two connections, it works ok. However, when I try to connect a third device, nothing happens. Nothing shows up even on hcidump when I try to connect the third phone. On the phone I receive error EPageTimedOut(-6004), which according to my friend means that the phone could not get any kind of connection.
your device must become master of the piconet and the phones should support the role switch.
Quoted 1 line
-Conceptronic USB BT (CSR)
What does "hciconfig -a" say?
Quoted 1 line
-Various Nokia phones (6630, 6600, Ngage, 3650)
Check "hcitool info ..." for these phones.
Regards
Marcel
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 4 lines · Marcel Holtmann
your device must become master of the piconet and the phones should support the role switch.
You mean the USB BT device should take master role? Any pointers on how this is done? Or some good documents, I guess I'll have to study a bit more on this...
Quoted 6 lines
Quoted 2 lines
-Conceptronic USB BT (CSR)
What does "hciconfig -a" say?
hci0:
Type: USB
BD Address: 00:80:5A:30:0C:C6 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:59492 acl:1641 sco:0 events:2235 errors:0
TX bytes:21545 acl:1193 sco:0 commands:432 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'lp007-0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x460 LMP Ver: 1.1 (0x1) LMP Subver: 0x460
Manufacturer: Cambridge Silicon Radio (10)
Quoted 6 lines
Quoted 2 lines
-Various Nokia phones (6630, 6600, Ngage, 3650)
Check "hcitool info ..." for these phones.
BD Address: 00:60:57:3B:E0:52
Device Name: Nokia 3650
LMP Version: 1.1 (0x1) LMP Subversion: 0x23c
Manufacturer: Nokia Mobile Phones (1)
Features: 0xbf 0x28 0x21 0x00 0x00 0x00 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <sniff mode> <SCO link> <HV3 packets> <CVSD>
BD Address: 00:11:9F:BD:9B:2E
Device Name: Nokia 6630
LMP Version: 1.2 (0x2) LMP Subversion: 0x4db
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xbf 0xfe 0x0f 0x00 0x18 0x18 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <sniff mode> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> <power control> <transparent SCO> <AFH cap. slave> <AFH class. slave> <AFH cap. master> <AFH class. master>
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 9 lines · Heikki Vuolteenaho
Quoted 4 lines · Marcel Holtmann
your device must become master of the piconet and the phones should support the role switch.
You mean the USB BT device should take master role? Any pointers on how this is done? Or some good documents, I guess I'll have to study a bit more on this...
Searching the web (http://www.phptr.com/articles/article.asp?p=21324) and mailing list archive helped, I just changed the link mode to master,accept and now it's working. Thanks!
-Hege-
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users