WemosTTGO

De Kernel Fablab Lannion

Terminal Lora

C'est un terminal basé sur une puce SX1276

Utilisation

Connexion au terminal via USB via un câble court

Installation des cartes ESP32, au choix :

On choisit le type de carte : "TTGO-LoRa32-OLED V1"

Moniteur série à 115200 bauds

et avec ce code on voit des paquets arriver

$ APP_ACCESS_KEY=ttn-account-v2.XXXXXX # récupérée dans l'interface TTN/Applications/wemostangi
$ mosquitto_sub -h eu.thethings.network -t '+/devices/+/up' -u 'wemostangi' -P "$APP_ACCESS_KEY" -v --cafile ~/sources/LoRa/mqtt-ca.pem -p 8883

wemostangi/devices/wemos1/up {"app_id":"wemostangi","dev_id":"wemos1","hardware_serial":"003FF0004014FF87","port":1,"counter":26,"payload_raw":"SGVsbG8sIHdvcmxkIQ==","payload_fields":{"message":"Hello, world!"},"metadata":{"time":"2018-11-19T17:41:34.533665527Z","frequency":867.7,"modulation":"LORA","data_rate":"SF7BW125","airtime":61696000,"coding_rate":"4/5","gateways":[{"gtw_id":"eui-fcc23dfffe106153","timestamp":2881267900,"time":"2018-11-19T17:41:34.521945Z","channel":6,"rssi":-103,"snr":7.5,"rf_chain":0,"latitude":48.XXX,"longitude":-3.XXX,"altitude":43}]}}

Émission

On peut également descendre des données vers le terminal.

Pour cela, soit :!

  • aller dans la partie device et remplir la partie Downlink->PayLoad
  • via mqtt :
$ APP_ACCESS_KEY=ttn-account-v2.XXXXX
$ mosquitto_pub -h eu.thethings.network -t 'wemostangi/devices/wemos1/down' -u 'wemostangi' -P "$APP_ACCESS_KEY" --cafile ~/sources/LoRa/mqtt-ca.pem -p 8883 -m '{"payload_raw": "AQ=="}'

Ajout GPS

http://www.lucadentella.it/en/2017/11/13/esp32-27-gps/

doc

pinout [1]

Bibliographie

https://www.ebay.fr/itm/273133909852?ViewItem=&item=273133909852

https://ictoblog.nl/2018/01/13/my-chinese-esp32-sx1276-board-dht11-connected-to-the-things-network-1

https://github.com/osresearch/esp32-ttgo

https://www.youtube.com/watch?v=2Q4O88hmjzE

https://primalcortex.wordpress.com/2017/11/24/the-esp32-oled-lora-ttgo-lora32-board-and-connecting-it-to-ttn/

https://hackaday.io/project/27791-esp32-lora-oled-module

https://github.com/CaptIgmu/Arduino/tree/master/esp32/TTGO_LoRa32_OLED

https://github.com/matthijskooijman/arduino-lmic

https://www.hackster.io/Amedee/the-things-network-node-for-ttnmapper-org-a8bcd4

https://robotzero.one/heltec-wifi-lora-32/