m5stack / M5-ProductExampleCodes

All example codes of products supplied by M5Stack have been collected in this reposity.
MIT License
339 stars 485 forks source link

LoRaWAN example unsupported commands #45

Open TDuxis opened 2 years ago

TDuxis commented 2 years ago

Hi

I tried out the LoRaWAN examples with the M5 COM.X LoRaWAN module. It doesn't work and after some troubleshooting it turns out that for most of the commands sent to the LoRA module, the response is +ERROR: Command does not exist

Also really important to notice is that if you run it with a Core2 you need to replace the M5Stack.h include with M5Core2.h and comment out lora.init(); and replace it with Serial2.begin(115200, SERIAL_8N1, 13, 14); because the M-bus pinout is different. And finally replace M5.begin(); with M5.begin(true, true, true, false, kMBusModeInput);

It could be a good idea to have this info in the beginning of the .ino

But none of the above changes will make it work, as long as the commands in the lib are non-existent.

Matt-BW commented 2 years ago

I cant even get it to load at all, which is rather odd.