pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

[lopy4] no WiFi on startup #384

Open nilay994 opened 4 years ago

nilay994 commented 4 years ago

Version via REPL: (sysname='LoPy4', nodename='LoPy4', release='1.20.1.r2', version='v1.11-06dfad0 on 2019-11-30', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.3.0')

Inspite of the blue heartbeat, there is no WiFi AP after starting the lopy4 device.

Below is the print I see on bootup

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2136
load:0x4009fa00,len:19880
entry 0x400a05d0
Smart Provisioning started in the background
See https://docs.pycom.io/smart for details
Pycom MicroPython 1.20.1.r2 [v1.11-06dfad0] on 2019-11-30; LoPy4 with ESP32
Pybytes Version: 1.3.0
Type "help()" for more information.

This leaves no option but to type out each python command on the terminal, rather than using easier ways of ftp https://docs.pycom.io/gettingstarted/programming/ftp/ for uploading code to the lopy4. Also, to be clear: I do not posses any expansion board/Pytrack/Pysense/Pyscan device and have been using a usb-serial-uart module for formatting, upgrading firmware or uploading code.

I read on https://forum.pycom.io/topic/5338/no-lopy-4-wifi-after-updating-the-firmware about similar problems of not having WiFi AP on update, but wanted to verify if it was solved. My final objective would be to try out the pymesh LoRa on two/three modules of lopy4.

nilay994 commented 4 years ago

Still no WiFi AP on startup. This time I tried to activate with a pybytes activation code and reflashed the firmware. I also tried sending this command over the serial port via pymakr.

pybytes.activate("activationkey...")
Disconnecting current connection!
Watchdog timeout has been increased to 2147483647 ms
Please wait while we try to connect to ssidname
Please review Wifi SSID and password!
Activation failed!
>>> Connecting to /dev/ttyUSB0...

Any hints?