Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Add some debugging to hunt down the infamous E.86 #264

Open
steve8x8 opened this issue Jan 7, 2020 · 3 comments
Open

Add some debugging to hunt down the infamous E.86 #264

steve8x8 opened this issue Jan 7, 2020 · 3 comments

Comments

@steve8x8
Copy link

steve8x8 commented Jan 7, 2020

@ondrej1024 seems to have found, a couple of weeks ago, that (sometimes) there's an extra message from the CNL2.4 while a query is in flight - and apparently this one (which hasn't been decoded yet) makes the whole retrieval process get out of sync.
IMHO there's a chance that this extra message can be interpreted or ignored in ContourNextLinkMessage.java, and the code could continue receiving the actual answer for the current query.
The report is somewhat hidden here: #261 (comment) .
Adding some debugging code to the Python incarnation would certainly be easier, but any approach to get hold of what's being sent by the stick (not matching the expectations) might get us half a step further.
I'm convinced that the CNL stick has some tolerance built-in to handle timing issues, and that error 86 should not show up as often as I've seen it with a 1-GHz Android 4.4.4 tablet - the device has been around for long enough to "play" nicely with older Android devices.

@steve8x8 steve8x8 changed the title Add some debugging to hunt down the infamous E.86 bug Add some debugging to hunt down the infamous E.86 Jan 7, 2020
@Pogman
Copy link
Collaborator

Pogman commented Jan 7, 2020

These are issues in the Python driver. It does not handle CNL comms precisely the same as the Android uploader.

@ondrej1024
Copy link

I'm in the process of documenting the CNL python driver to better understand how it's working. From what I've understood so far, I think it's important to add at least the clearMessage function from the Android code to the python driver in order to make it work more reliable and deal with unexpected messages from the CNL stick. I've made some progress but lack of time is my main problem.

@steve8x8
Copy link
Author

steve8x8 commented Jan 9, 2020

Thanks @ondrej1024 for chiming in - my main problem is the same as yours, plus lack of CNL... I hope there's something to be learned from that code change, about which messages the CNL sends in which rare cases.

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

No branches or pull requests

3 participants