WemosTTGO
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 :
- en direct
- via le board manager de l'IDE Arduino
On choisit le type de carte : "TTGO-LoRa32-OLED V1"
Moniteur série à 115200 bauds
et avec ce code on voit des paquets arriver
- dans Data
- via mqtt
$ 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, aller dans la partie device et remplir la partie Downlink->PayLoad
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://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