8000 pulses_get() locks at low frequencies · Issue #103 · pycom/pycom-micropython-sigfox · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

pulses_get() locks at low frequencies #103

Closed
robert-hh opened this issue Nov 25, 2017 · 1 comment
Closed

pulses_get() locks at low frequencies #103

robert-hh opened this issue Nov 25, 2017 · 1 comment

Comments

@robert-hh
Copy link
Contributor

pulses_get() gets into a kind of lock state, if pulses with a period of > 20000us are applied and the time out was set to an appropriate large value, like 30000. It does not simply return wrong values, but from one "overflow" event on it returns the value pair 19879, 0 irrespective of the signal applied to the input. Only hard reset fixes that. Possible fix:
In line 107 of modpycom.c set:
rmt_rx.rx_config.idle_threshold = 0xffff;
That results in a more robust behavior. For pulses of > 32768 us a wrong value will be reported, but after returning to shorter pulses, they will be reported correctly.

@robert-hh
Copy link
Contributor Author

I raised a PR for that.

peter-pycom pushed a commit that referenced this issue Feb 28, 2020
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this issue May 12, 2023
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

1 participant
0