* [Bluez-users] Receiving multiple (>2) incoming rfcomm connections?
@ 2005-01-17 9:58 Heikki Vuolteenaho
2005-01-17 11:23 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Heikki Vuolteenaho @ 2005-01-17 9:58 UTC (permalink / raw)
To: bluez-users
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Bluez-users] Receiving multiple (>2) incoming rfcomm connections?
2005-01-17 9:58 [Bluez-users] Receiving multiple (>2) incoming rfcomm connections? Heikki Vuolteenaho
@ 2005-01-17 11:23 ` Marcel Holtmann
2005-01-18 9:26 ` Heikki Vuolteenaho
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-01-17 11:23 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Hege,
> 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.
your device must become master of the piconet and the phones should
support the role switch.
> -Conceptronic USB BT (CSR)
What does "hciconfig -a" say?
> -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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Bluez-users] Receiving multiple (>2) incoming rfcomm connections?
2005-01-17 11:23 ` Marcel Holtmann
@ 2005-01-18 9:26 ` Heikki Vuolteenaho
2005-01-19 9:06 ` Heikki Vuolteenaho
0 siblings, 1 reply; 4+ messages in thread
From: Heikki Vuolteenaho @ 2005-01-18 9:26 UTC (permalink / raw)
To: bluez-users
Marcel Holtmann wrote:
>
> 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...
>
>>-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)
>
>>-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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-19 9:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 9:58 [Bluez-users] Receiving multiple (>2) incoming rfcomm connections? Heikki Vuolteenaho
2005-01-17 11:23 ` Marcel Holtmann
2005-01-18 9:26 ` Heikki Vuolteenaho
2005-01-19 9:06 ` Heikki Vuolteenaho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox