-
Notifications
You must be signed in to change notification settings - Fork 106
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
Bad usbrelay ID string! #39
Comments
Are you sure your USB relay is using the same microcontroller? |
Ahh, my 4 channel relay has an Atmel ATMEGA8. |
My 8 channel relay board just developed the essencially same issue, the only difference being that some other character of the ID string changed its value to 0x01. The board continues to work after relaxing the ID string syntax check to accept characters outside the printable ASCII range. |
My PC failed to detect the USB relay. After some debugging I traced the issue to the checks on the buffer returned by usb_relay_lib.c->rel_read_status_raw
the loop(s) that checks all of the char in the array are failing on the first element (buffer[1]) as it has the value 0xFF. The buffer conntents are: 0x00, 0xFF, 0x57, 0x33, 0x34 0x31, 0x00....
Anybody knwo why this ID is now reported differently by the OS?
I've temporarilly modified all of the for loops to start at element 2
The text was updated successfully, but these errors were encountered: