-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Text length/image size #12
Comments
With your code I got the overflow error, so I put my message into 5 parts whith 200 chars. But now I got the device error. |
Merged #15 -- before the message limit was 255 characters, now it is 336 characters wehen using hidapi:
Using usb.core, it happily uploads 520 characters (maybe more), but everything after character 507 is binary garbage. |
Be carefull. My device stopped responding with 4 x 255 chars. You should test it with the sertronic badges.
Maybe you got a newer firmware. My one is from 13.11.2018.
Am 19. Juli 2019 09:50:22 MESZ schrieb "Jürgen Weigert" <[email protected]>:
…Merged #15 -- before the message limit was 255 characters, now it is
336 characters wehen using hidapi:
```
File "/usr/local/lib/python3.6/dist-packages/pyhidapi/pyhidapi.py",
line 641, in hid_write
raise RuntimeError('hid_write() failed.')
RuntimeError: hid_write() failed.
```
using usb.core, it happily uploads 1300 chars (maybe more).
Maybe with hidapi we should also use a loop?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#12 (comment)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
if i create a picture and send it as animation, what is the maximum size?
If I look on your code, the image width could be 255*8 (width of a char). But there is a second byte, and it looks like the high byte of an integer.
Or am I wrong?
greetings
syspart
The text was updated successfully, but these errors were encountered: