antirez / freakwan

A floor-routing WAN implementing a chat over bare-LoRa (no LoRaWAN).
BSD 2-Clause "Simplified" License
382 stars 18 forks source link

WiFi auth issues and core panic sending on BLE serial #14

Closed al-heisner closed 9 months ago

al-heisner commented 9 months ago

I'll start by saying this is my first LoRa microcontroller and my first experience with micropython. And, thank you for sharing this project and your work.

After struggling with this for a full day, I realize I may need some help getting it going. I spent most of the day troubleshooting why it wouldn't connect to my WiFi. I could boot up mpy with no main.py and join wifi from REPL, but when booted to freakwan the WLAN interface would repeatedly bounce from "connecting" to "bad auth" state. I eventually discovered that mpy version v1.21.0 and v1.22.0-preview.254 are unable to join WiFi from freakwan but v1.20.0 was. Unfortunately mpy v1.20.0 seems to have it's own issues, like core panic when attempting to send over BLE serial.

All that struggle with WiFi and BLE serial brings me to the question - What version of mpy can be used to minimize these issues, or what mpy version was freakwan developed / tested on?

antirez commented 9 months ago

Hi, not sure about the WiFi but the BLE thing is a matter of downgrading MicroPython to older versions.

antirez commented 9 months ago

Should be v1.19.1 if I recall correctly.

al-heisner commented 9 months ago

will test with 1.19.1 and report back then ;-)

al-heisner commented 9 months ago

BLE send and WiFi are both working in mpy v1.19.1, ty!

antirez commented 9 months ago

Great!