Skip to contentSkip to conversation

RFCOMM communication gets stalled

Bluez-devel Carlos AM 2 participants 2 messages Jul 15, 2004 Bluetooth drivers

lore
Share & tools
lore

Carlos AM

author
#0 lore raw

Hi

I'm using bluez-libs-2.7 and bluez-utils-2.7 to develop a GPS system that communicates via bluetooth. I use the RFCOMM and the connection and disconnection works fine but the transmission gets stalled in about ten minutes. Both sides indicate that they are still connected, but in the GPS side, the process that writes in the rfcomm device (/dev/bluetooth/rfcomm/0) stops on a blocking write call:

    write(fdbluetooth,s,strlen(s));

I open the rfcomm device this way:

    fdbluetooth= open("/dev/bluetooth/rfcomm/0",O_RDWR | O_NOCTTY);

That write call works fine for a while until the communication gets stalled.

Is a bad implementation of the process that writes in the rfcomm device? Is that issue solved in the 2.8 version of bluez?

Carlos AM
Naxus Conectividad Móvil

maintainer
#1 lore raw

Hi Carlos,

Quoted 9 lines

I'm using bluez-libs-2.7 and bluez-utils-2.7 to develop a GPS system that communicates via bluetooth. I use the RFCOMM and the connection and disconnection works fine but the transmission gets stalled in about ten minutes. Both sides indicate that they are still connected, but in the GPS side, the process that writes in the rfcomm device (/dev/bluetooth/rfcomm/0) stops on a blocking write call:

    write(fdbluetooth,s,strlen(s));
Quoted 7 lines

I open the rfcomm device this way:

    fdbluetooth= open("/dev/bluetooth/rfcomm/0",O_RDWR | O_NOCTTY);

That write call works fine for a while until the communication gets stalled.

don't use the RFCOMM TTY terminal emulation. Go directly throught the RFCOMM socket interface. If you still got problems check with hcidump what is going on.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel