8000 Wrong temperature and seconds_since_boot when parsing TLM packet · Issue #66 · citruz/beacontools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Wrong temperature and seconds_since_boot when parsing TLM packet #66

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

Open
ziXet opened this issue Mar 30, 2021 · 0 comments
Open

Wrong temperature and seconds_since_boot when parsing TLM packet #66

ziXet opened this issue Mar 30, 2021 · 0 comments

Comments

@ziXet
Copy link
ziXet commented Mar 30, 2021

I got wrong temperature when the temperature is negative and also seconds_since_boot also has an extra 0 (multiplied by 10)

from beacontools import parse_packet
import codecs

data = '0201060303aafe1116aafe20000c8df000001755d10885a5b8'
tlm_frame = parse_packet(codecs.decode(data, 'hex'))
print(tlm_frame.temperature) # gives 240 for -15C
print(tlm_frame.seconds_since_boot) # gives 142976440(1650 days) instead of 14297644 (165 days)

voltage is correct!

nrfConnect can correctly read these values. https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=en_CA&gl=US

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

1 participant
0