public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] RFCOMM communication gets stalled
@ 2004-07-15 14:21 Carlos AM
  2004-07-15 17:48 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Carlos AM @ 2004-07-15 14:21 UTC (permalink / raw)
  To: lista bluez

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2027 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: [Bluez-devel] RFCOMM communication gets stalled
@ 2004-07-15 18:11 Williams, Richard
  2004-07-15 18:23 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Williams, Richard @ 2004-07-15 18:11 UTC (permalink / raw)
  To: Bluez-Devel (E-mail)


Marcel,

I use the rfcomm tty interface quite successfully for sending GPS data
strings from a GPS receiver to an Ipaq and then to another small wrist =
display.
Why use the rfcomm socket interface instead of the TTY ?=20

Should I consider changing my code from TTY to socket ? Its not so =
difficult, I just
wonder why you recommend one vs the other.

thanks and Best regards,

Rich

-----Original Message-----
From: Marcel Holtmann [mailto:marcel@holtmann.org]
Sent: Thursday, July 15, 2004 1:49 PM
To: Carlos AM
Cc: lista bluez
Subject: Re: [Bluez-devel] RFCOMM communication gets stalled


Hi Carlos,

> 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:
> =20
>     write(fdbluetooth,s,strlen(s));
> =20
> I open the rfcomm device this way:
> =20
>     fdbluetooth=3D open("/dev/bluetooth/rfcomm/0",O_RDWR | O_NOCTTY);
> =20
> =20
> 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=3D4721&alloc_id=3D10040&op=3Dclick
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-15 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-15 14:21 [Bluez-devel] RFCOMM communication gets stalled Carlos AM
2004-07-15 17:48 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2004-07-15 18:11 Williams, Richard
2004-07-15 18:23 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox