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

Pure MicroPython Things Network implementation #1309

Open
goatchurchprime opened this issue Nov 8, 2019 · 0 comments
Assignees

Comments

@goatchurchprime
Copy link
Contributor

@goatchurchprime goatchurchprime commented Nov 8, 2019

We've got one of these monstrosities, which I have loaded micropython onto and can stream the GPS data out to MQTT
https://www.hackster.io/news/the-ttgo-t-beam-an-esp32-lora-board-d44b08f18628

To turn this into a tracker we need to get a pure MicroPython version of the LoRa/ThingsNetwork protocol to work.

This only existed in the LoPy libraries or the arduino C++.

It looks like a pure MicroPython version exists.
https://github.com/adafruit/Adafruit_CircuitPython_TinyLoRa/blob/master/adafruit_tinylora/adafruit_tinylora_encryption.py

I'll need help from @ajlennon to get the whole encrypto-chain through to the TTN interface working.

The circuit-python thing seems to be using HopeRFM69W
(code) while the LoPy and the TTGO are based on Semtech SX1276 (reference)

If we get this working, then:

(a) Will can have his automatic GPS -> googlespreadsheet updates every 15 minutes, and he has promised to write the docs/javascript code to remove the duplicates and turn the GPS positions into site positions and automatically generate his traveling salesman visit sheet of site visits.

(b) I can revamp the mitems hardware to use the bare ESP32s with the true low-power operation from a battery without the breakout board circuitry, using an adequate LoRa chip, and try deploying it in use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.