linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unreliable communication with multiple bluetooth devices and some delay
@ 2012-10-02 13:37 Sietse Achterop
  2012-10-08  9:11 ` Sietse Achterop
  0 siblings, 1 reply; 4+ messages in thread
From: Sietse Achterop @ 2012-10-02 13:37 UTC (permalink / raw)
  To: linux-bluetooth


     Dear list,

not sure wheather this for this list, but if so please tell me.
I have problems with unreliable bluetooth communication.

I have 7 bluetooth devices (epucks, educational robots:  http://www.e-puck.org/).
They use the lmx9838 device for bluetooth and are seen as rfcomm-devices on linux.
The lmx-device is used in transparent mode.
This is on various linuxes, with kernels 2.6.32, 3.0.0 and 3.2, e.g. as in the latest ubuntu 12.04.1.

The test program is a simple loop that continuously sends each epuck a small message,
a string of say 6 characters.
I use stdio's fprintf to send chars to the /dev/rfcomm devices.
In pseudo code:
  open_devices();
  while true do
    for i = 1 to 7 do
       fprintf(fp[i], "l,1,2\n");
    od
    delay( 0.5 seconds);
  od

This works perfectly if the delay statement is REMOVED.
Then each 2 milliseconds a message is send to the next epuck.
But if the delay is ADDED again it gets very UNRELIABLE.
After 1 to 30 seconds a communication is failing and after a
20 second delay the connection of a epuck is dropped.
After a longer time all connections are dropped.

I tried a lot, but am at a loss at the moment.
The question is, where the problem. Why is the delay the problem?
Are the short messages the problem?
Is it a bug in the linux driver?

Hopefully someone on the list can help me a step in the right direction.

   Thanks in advance.
      Sietse Achterop
      University of Groningen
      The Netherlands

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

end of thread, other threads:[~2012-10-08 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 13:37 Unreliable communication with multiple bluetooth devices and some delay Sietse Achterop
2012-10-08  9:11 ` Sietse Achterop
2012-10-08  9:15   ` Andrei Emeltchenko
2012-10-08 14:23     ` Sietse Achterop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).