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

Garbled responses for some commands #33

Open
probonopd opened this issue Apr 18, 2021 · 5 comments
Open

Garbled responses for some commands #33

probonopd opened this issue Apr 18, 2021 · 5 comments

Comments

@probonopd
Copy link
Contributor

Responses for some commands are garbled, for example:

OK cmd to display 243 0000 Len: 2
Send: successful , waiting: 0
Activation: not started
NetID 1 freq 0 slot 2 bytes left: 0 Open: 0
last answer: Msg from display NetID: 1 freq: 0 display: 243 139954 = �������?���??
mode Idle
@atc1441
Copy link
Owner

atc1441 commented Apr 18, 2021

In this one you send

00 00 as cmd right?

That is no valid cmd. So the answer from the display is nothing. When nothing is replied the uninitialized answer buffer will be used. By adding a filter for 0 len answers it should be fixed

@atc1441
Copy link
Owner

atc1441 commented Apr 18, 2021

Something like this
https://github.com/atc1441/E-Paper_Pricetags/blob/main/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/RFV3/trans_assist.cpp#L122

data_received += length_to_receive?str:"No answer";

Not tested

@probonopd
Copy link
Contributor Author

When I do this, then it looks like it somehow breaks things, commands don't get properly sent and responses get timeouts.

PacketCounter: 8 rx: 0Len 16 Data: 0x01 0x00 0x2d 0x07 0x00 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
68269 : RX_TIMEOUT!!!
68269 : TIME LEFT: 102
68269 : Mode changed to Idle
68269 : Idle

@atc1441
Copy link
Owner

atc1441 commented Apr 18, 2021

That looks more like a real timeout? The change is not called before a full received msg. But just guessing here

@probonopd
Copy link
Contributor Author

probonopd commented Apr 18, 2021

Maybe I am running into intermittent errors due to low-ish batteries, could it be?
My theory is that after changing the display content, the batteries may need some minutes to "recover"? (Do we know how incoming voltage is regulated internally in the Chromas? Is it safe to use 5V to power them?)

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