Skip to content
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

Open
syspart opened this issue Jun 26, 2019 · 5 comments
Open

Text length/image size #12

syspart opened this issue Jun 26, 2019 · 5 comments

Comments

@syspart
Copy link
Contributor

syspart commented Jun 26, 2019

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

@jnweiger
Copy link
Owner

jnweiger commented Jul 18, 2019

That needs experimentation. :-)
I see there is also #15 from you.
This should enable larger images or longer messages indeed.

Did you have the crashes, that motivated #14
before or after applying #15 ?

@syspart
Copy link
Contributor Author

syspart commented Jul 19, 2019

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.

@jnweiger
Copy link
Owner

jnweiger commented Jul 19, 2019

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 520 characters (maybe more), but everything after character 507 is binary garbage.
So we are overwriting something... \('!')/

@jnweiger
Copy link
Owner

20190719_100311(0)

Now we can start decoding the firmware :-)

@syspart
Copy link
Contributor Author

syspart commented Jul 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants