Skip to contentSkip to conversation

Multiple RFCOMM connections with 2.4.x kernel

Bluez-users venkat akella 2 participants 2 messages Aug 11, 2005 – Aug 16, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi

I am trying to establish two rfcomm connections between two linux
machines running 2.4.21 kernel. I am using different channel numbers for both connections. First connection getting established normally. Second connection fails in the connect() with EBUSY OR EAGAIN. I have putdown the steps I am doing exactly below. My question is "Can I establish more than one RFCOMM connection between two machines running 2.4.x kernels"? It would be very helpful if somecan reply to this.

Here is what I am doing:
1. Start RFCOMM serversocket on Machine1. Its waiting on accept()
2. Connect from Machine2 to Machine1 using connect(). I am able to connect to server here.
3.Start another serversocket on Machine2 on different channelID. Its waiting on accept()
4. Try to connect from Machine1 to Machine2 using connect(). This fails with EAGAIN or EBUSY as long as the connection established in step 2 remains.

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Venkat,

Quoted 7 lines

I am trying to establish two rfcomm connections between two linux
machines running 2.4.21 kernel. I am using different channel numbers for both connections. First connection getting established normally. Second connection fails in the connect() with EBUSY OR EAGAIN. I have putdown the steps I am doing exactly below. My question is "Can I establish more than one RFCOMM connection between two machines running 2.4.x kernels"? It would be very helpful if somecan reply to this.

yes, you can. I don't know of a bug in 2.4.21, but you should try the latest 2.6 kernel.

Quoted 9 lines

Here is what I am doing:
1. Start RFCOMM serversocket on Machine1. Its waiting on accept()
2. Connect from Machine2 to Machine1 using connect(). I am able to connect to server here.
3.Start another serversocket on Machine2 on different channelID. Its waiting on accept()
4. Try to connect from Machine1 to Machine2 using connect(). This fails with EAGAIN or EBUSY as long as the connection established in step 2 remains.

Provide some example code and the output of "hcidump -X -V" on the server machines.

Regards

Marcel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users