Open r-bt opened 1 year ago
I had Wireshark opened at the same time and it looks like some packets are being dropped. Attached is a file with the faulty packets for Sphero 1. What's wrong is that it's a mash of two different Sphero commands with some bluetooth packets just being dropped.
appreciate the investigation. i'll look into it as well once i came back from vacation.
Just to link things together, I found that the BlueZ dbus API is not sending the packets to Bleak – here's the issue on the Bleak repo: https://github.com/hbldh/bleak/issues/1343
Ok it looks like it's a BlueZ issue, I tried using AcquireNotify
instead of StartNotify
and it also gives the error (with even less ~5 instead of ~12) simultaneous connections. Issue at: https://github.com/bluez/bluez/issues/539
I'm trying to connect to multiple Sphero Bolts at once but when I get to around 3 connections sometimes I'll get the following error
I modified
v2.py
to log the unescaped packet that didn't have the correct checksumSphero 1:
Sphero 2:
Sphero 3:
Looking through the packets each has a SOP byte after the initial SOP byte which is why I assume the checksum is failing