Skip to contentSkip to conversation

problems with connect()

Bluez-devel Christian Hennrich 2 participants 4 messages Jan 8, 2004 – Jan 9, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I'm working on a programm which uses sdp to connect only to PANU, creating l2cap and bnep connections. First i start the master, that inquires and then connects to the discovered devices (using sdp), that are started as slaves. 2 slaves are connected(with one L2cap and one Bnep for each slave). this works very fine. then i want to connect the third and so on... but there is the problem: the third one can't connect
with sdp on or off. the connect(socket) command fails with the error:

Connect failed. Function not implemented(38).

on the slave machine is only one program started. i tried around with different dongles, but they are not the problem. what is wrong? has anybody some idea? i don't use fork. the sockets that are created(have all different numbers(increasing)). is there any limitation of creating sockets or something like this.

i think the problem is the master, because on the clients there are only 2 sockets created. i only have one dongle per pc.

regards Christian

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Christian,

Quoted 10 lines

I'm working on a programm which uses sdp to connect only to PANU, creating l2cap and bnep connections. First i start the master, that inquires and then connects to the discovered devices (using sdp), that are started as slaves. 2 slaves are connected(with one L2cap and one Bnep for each slave). this works very fine. then i want to connect the third and so on... but there is the problem: the third one can't connect
with sdp on or off. the connect(socket) command fails with the error:

Connect failed. Function not implemented(38).

Quoted 8 lines

on the slave machine is only one program started. i tried around with different dongles, but they are not the problem. what is wrong? has anybody some idea? i don't use fork. the sockets that are created(have all different numbers(increasing)). is there any limitation of creating sockets or something like this.

i think the problem is the master, because on the clients there are only 2 sockets created. i only have one dongle per pc.

I don't even understand what your setup is, but have you checked that role switch is allowed? Check the connection establishment with hcidump.

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Hi,

today i tried to connect more than 2 slaves with pand -c "Addresse of master" to one master that is started with pand -s -r GN. the same problem occurs, i can't connect more than 2 slaves to one master, the third one makes no connection.

is the configuration of pand wrong?

regards christian

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Christian,

Quoted 4 lines

today i tried to connect more than 2 slaves with pand -c "Addresse of master" to one master that is started with pand -s -r GN. the same problem occurs, i can't connect more than 2 slaves to one master, the third one makes no connection.

you are connecting two master ;) Think again about the master/slave roles of a Bluetooth device. You must use the role switch. What do "hciconfig -a" say?

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel