-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected error #5
Comments
Hi xingchuanzhen, ctypes.create_string_buffer that call fails on your setup du to DLL missing or something similar. I've updated the docs that Windows is not tested. If you find a solution how to setup the HID library on Windows please let me know. Sorry |
ok, although it didn't solve the problem successfully, but still thanks for the answer |
After getting through the setup, installing everything needed and changing the ctypes import, I get the same error: The received bytes dont match what we would expect, since it is not AB CD ..). Here is my work in progress:
I dont know what to expect from "getName", so the "name", but here is what I get like this (only the first byte array displayed: and then print via:
Note the 0xAB at position 1 as well as the presumed length of 1 from HID at position 0. Here, the 7 bytes "20 20 20 4F 2E 4C 20" from hex to ACSII are " O.L ", which is exactly what is on the display. |
|
How to use your library? |
|
Okay, got it working. As said before, it always reads 1 Byte of payload (1. Byte from HID was always 0x01, 2. Byte payload).
|
hello ljakob i might need some help from you
I don't know what's going on, but it doesn't work correctly on my device, the error is as follows
The text was updated successfully, but these errors were encountered: