>> very good piece of code!!!
Thank you !!!
>> I'm using bthmsdevemul with wm6 device emulator in order to comunicate
with a bluetooth device via SPP profile.
In my software I use winsock interface for bluetooth and I noticed
that there are many socket disconnection between the emulator and the
device I'm comunicating to.
Have you noticed this behaviour?
I use the project to connect the emulator either to bluetooth gps
receivers or to my desktop
that provides gps data. This way I also use SPP profile. My wm
application also uses
winsock interface. But the connection is stable. You can try to
disable all logging (uncheck Device Logging, Desktop Logging and
Communication Logging checkboxes). There are a lot of data transfering
levels to deliver hci/alc requests from the emulator to the usb driver
and back. It's quite possible these delays cause disconnections.
Anyway I suggest you to find out the root of your problem, who is
responsible for disconnections and fix or workaround it. This will
significantly improve the stability of connection.
--
Best regards,
Dmitry Klionsky