Skip to contentSkip to conversation

rfcomm disconnects + hcid dying

Bluez-devel Lasse Kärkkäinen 2 participants 2 messages May 28, 2006 – May 29, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Who is responsible for these parts? Why am I getting no replies to this mail? Are any developers reading this list? Where should I send this, to developers' private addresses or something?

Reposting, third time:

PROBLEM 1:

Whenever /dev/rfcomm0 (or rfcomm1) is closed, the corresponding Bluetooth device gets disconnected and I have to run hcitool cc xx:xx:xx:xx:xx:xx to get it working again. How can I have the devices automatically connected at all times whenever they are within reach and the USB BT dongle is plugged in?

My current workaround is an endless while loop that runs hcitool cc all the time, but this is obviously quite ugly. It works, but I'd really want to have something more elegant.

PROBLEM 2:

My hcid keeps dying occassionally. I don't know why, but it just does that. My current workaround is to have the init system restart it whenever it dies, but this, too, is somewhat ugly. Haven't found any messages about that in the logs yet, but that is partly because my log was flooded with other stuff.

- Tronic -

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Lasse,

Quoted 3 lines

Who is responsible for these parts? Why am I getting no replies to this mail? Are any developers reading this list? Where should I send this, to developers' private addresses or something?

don't try the developers private addresses. They might ignore you or if you send it to me, I am going to tell you to send it to the mailing list. You need to have patience, because some of us might be busy with other stuff that has higher priority.

Quoted 11 lines

PROBLEM 1:

Whenever /dev/rfcomm0 (or rfcomm1) is closed, the corresponding Bluetooth device gets disconnected and I have to run hcitool cc xx:xx:xx:xx:xx:xx to get it working again. How can I have the devices automatically connected at all times whenever they are within reach and the USB BT dongle is plugged in?

My current workaround is an endless while loop that runs hcitool cc all the time, but this is obviously quite ugly. It works, but I'd really want to have something more elegant.

You can of course keep /dev/rfcommX open with cat for example, but it won't reconnect if the device get out of range.

There is nothing elegant for device that come out of range and then come back and they should automatically reconnect. The device most initiate this at the moment, because the host behaves passiv and if nobody tells it to connect, it simply doesn't.

Quoted 7 lines

PROBLEM 2:

My hcid keeps dying occassionally. I don't know why, but it just does that. My current workaround is to have the init system restart it whenever it dies, but this, too, is somewhat ugly. Haven't found any messages about that in the logs yet, but that is partly because my log was flooded with other stuff.

We fixed a lot of stuff in the upcoming bluez-utils-2.26 version, but without any log messages or reports I can't tell you anything. However you can run "hcid -n" and it will log everything in the terminal instead of the log files.

Regards

Marcel

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel