Meshtastic xx serial to arduino decode portobuf

 meshtastic has a arduino lib for decoding it's protobuf protocol.

https://github.com/meshtastic/Meshtastic-arduino

I tried 3.3V pro min 328, complier says no enough memory for variable

Sketch uses 25106 bytes (81%) of program storage space. Maximum is 30720 bytes.

Global variables use 13368 bytes (652%) of dynamic memory, leaving -11320 bytes for local variables. Maximum is 2048 bytes.


need another 3.3V board, I still have some esp8266 as D1Mini, it has enough memory bu tthe pin define took me some time. I noted the pins of D1 mini here.

I set as below with GND to GND

GPIO5=RX=D1 marking on D1 mini<--- D6 marking on Xiao=GPIO43= TX

GPIO4=TX=D2 marking on D1 mini---> D7 marking on Xiao=GPIO44=RX


the lib comes with 2 examples, one to get node info, and the other one to receive message and send message. in both case, you have to set the serial in protobuf in your meshtastic node serial setting.

I found that when you use serial, on mestastic device (in my case Xiao, a esp32S3), the BLE connection seems to stop. or act in an bizzar manner. 

Need to look deeper in the lib, since protobuf has more than this.

留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

AIS0. understanding AIS NMEA 0183: How it's coded