HID packet problems over BLE #7932
Replies: 1 comment
|
As I understand it, if you try and send a packet when there are enough queued up already you'll get an exception and it won't send it - you could then just wait a bit and try again. The problem is, if it auto-retries, what's to stop you trying to send updates faster than they can be sent over Bluetooth, and then they'll all queue up, updates will get more and more delayed, and what's supposed to happen when there's no more RAM to store them? Best if you just handle the exception in code and re-send (or in the case where you're sending mouse movements you can merge two events together). You can also use |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I occassionally have problems with the newmain-fixederrors-Deinhofer.js code regarding reliable HID packet transmission.
It should send mouse movement packets when tilting the puck and otherwise send clicks or key presses depending on the button press pattern.
Sometimes the mouse clicks or key presses are not detected on the computer (Win10). Other times when I press one of 4=SL, 5=LS, 6=SSS, 7=LL it should send a single key press respectively, but sometimes it happens that
aeno(or similar) is sent repeatadly. Maybe in such a case a key release was lost?I could add some retries if I get an exception while sending, but maybe it would also make sense to add some logic to the puck firmware to more reliably send the packets.
All reactions