Re: Problems with too many connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Markus,

> I want to write an application which repeats the following procedure
> for several (100+) bluetooth (low energy) devices:
> 
> 1. connect
> 2. read register values
> 3. disconnect
> 
> Therefore I modified the source code from /attrib/interactive.c.  For
> testing purposes I am only looping  over one device. See attached
> source code.
> 
> The code works fine. It connects, reads the values and disconnects.
> However, after 1020 repetitions, the following error occurs:
> (process:10205): GLib-WARNING **: poll(2) failed due to: Invalid argument.
> 
> I think the problem has to do with some sockets / file descriptors not
> being closed properly.
> 
> Can someone help me to get this fixed?

have you considered trying to write this from scratch and not basing this off existing code.

And yes, this will be most likely an issues with GSource handling of the attribute IO channel, but since you hacked the code is extremely hard to debug. It was never designed for what you are doing.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux