-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to read voltage and temperature from Chroma29 #27
Comments
Also after an image is send the temp and battery is send back just as info. The garbage answer you got back at 02 is an error, it should return something like you got int the 0219 cmd. 82:02:F5:00 The 0219 cmd can be parsed the following: so 0x00f5 = 24.5 degrees Celsius 99 = cmd 10 with incoming data 0x0b7a = 2.938 Volts 00 = the length of replying data is always is a pack of 5bytes so this 00 is not used as you can see multible cmds can be send at once, when sending an image update 3 cmds are send at once, header of img, actual img and the refresh cmd itself. the refresh cmd always return the temp and battery data in return |
Maybe we should parse that data and output it in clear text whenever we receive it? |
Yes. So that is needed to be parsed correctly, also the incoming ack needs to be looked at, as if a msg is send again it will currently be added to the answer buffer even if its the same as already received. I did not do anything with the answer buffer for now as i concentrated on the system itself |
According to
E-Paper_Pricetags/Custom_PriceTag_AccesPoint/CMDs explanation.txt
Lines 129 to 132 in caaacc2
the answer to command
85
contains the voltage and temperature.Sending command
05
or85
(=05
+80
) makes the whole display black. And we see something like this:How to interpret the answer?
85:
The command that this is the answer to (=05
+80
, 80 is added when the command results in data being sent back)05:
Length of this answer is 5 bytes71:0B:
Hex 0x0B71 = Decimal 2929 = 2.929 VoltsEC:00:
Hex 0x00EC = Decimal 236 = 23.6 degrees Celsius01:
Unknown?So, how can we get the values without making the display black?
According to the same page, command
02
should give us the voltage and command19
should give us the temperature.Just sending the command
02
results inWhy is there garbled output instead of the hex answer?
Can we/do we need to combine multiple commands, like sending command
0219
for getting both the voltage and the temperature? This givesHow to interpret the answer?
The text was updated successfully, but these errors were encountered: