cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.73k stars 405 forks source link

heltec boot looping #656

Closed ZL1LAC closed 4 years ago

ZL1LAC commented 4 years ago

Following this guide and programming with the Heltec V1.

I get a screen showing the pax counter but then the screen disappears and goes blank then shows again boot looping?

After monitoring in serial I get this error.

10:00:47.357 > [I][lorawan.cpp:203] get_hard_deveui(): Could not read DEVEUI from serial EEPROM

cyberman54 commented 4 years ago

This looks like you compiled the software for board "generic.h", instead for "heltec.h". Check your settings in platformio.ini. If you're new to this project, follow installation steps in readme.md carefully. You MUST edit some files before compiling the software.

ZL1LAC commented 4 years ago

Ok, thanks I'll try that.

ZL1LAC commented 4 years ago

Ok, I have followed the guide again and made sure I had the board selected in that ini file. I get further this time with the main screen and then what looks to be a QR code, but then nothing after that.

cyberman54 commented 4 years ago

Enable debug mode an log on serial console. Did you use the code of master or development branch?

ZL1LAC commented 4 years ago

Master.

ZL1LAC commented 4 years ago

Hangs on. 10:18:25.506 > [I][lorawan.cpp:305] lora_stack_init(): Starting LMIC...

cyberman54 commented 4 years ago

looks like a wrong pin mapping. Please specify exact version of heltec board you are using and post a high res picture of the board here.

ZL1LAC commented 4 years ago

WiFi LoRa 32

20201007_193702 20201007_193654

cyberman54 commented 4 years ago

I tested current code in master with a Heltec v1 board which has same shape as the board shown here. No issues, software starts and joins.

Check your board version and matching settings in heltec.h carefully, e.g. radio chip type. Try CFG_SX1272_radio (instead of 1276) in heltec.h

cyberman54 commented 4 years ago

PS: your board has not the printing "868-915Mhz" on the backside. So it probably will have radio chip SX1272. You need to adjust heltec.h as explained above. Software should work then, but you won't be able to use 868 MHz LORAWAN networks with this version. Depends on your country and LORAWAN provider.

ZL1LAC commented 4 years ago

Hi, it was sent to me from a friend who says its the 433MHz model, but he's not sure. I will try and compile with the SX1272.