Can't do a WiFi scan, RuntimeError: Wifi Unknown Error 0x0102

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
giraffesinspace
Posts: 1
Joined: Sun Sep 27, 2020 8:24 pm

Can't do a WiFi scan, RuntimeError: Wifi Unknown Error 0x0102

Post by giraffesinspace » Sun Sep 27, 2020 8:32 pm

I've got an ESP32 devkitc board here and I'm unable to connect it to wifi or even do a wifi scan. The micropython bin I'm using is

esp32-idf3-20200902-v1.13.bin

Here is the code that's generating the runtime error and the output. I've searched far and wide for this error message and can't find any information. My board is being powered by USB and I'm connecting to the serial output on mac using command
'sudo cu -s 115200 --parity=none -l /dev/cu.SLAB_USBtoUART'

MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32
Type "help()" for more information.
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
I (12370) wifi:wifi driver task: 3ffd10c8, prio:23, stack:3584, core=0
I (25045) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (25045) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (25085) wifi:wifi firmware version: 44aa95c
I (25085) wifi:config NVS flash: enabled
I (25085) wifi:config nano formating: disabled
I (25085) wifi:Init dynamic tx buffer num: 32
I (25085) wifi:Init data frame dynamic rx buffer num: 32
I (25095) wifi:Init management frame dynamic rx buffer num: 32
I (25095) wifi:Init management short buffer num: 32
I (25105) wifi:Init static rx buffer size: 1600
I (25105) wifi:Init static rx buffer num: 10
I (25115) wifi:Init dynamic rx buffer num: 32
>>> sta_if.active(True)
I (30545) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0
I (30545) wifi:mode : sta (30:ae:a4:9d:45:84)
True
I (30545) wifi: STA_START
>>> sta_if.scan()
I (65335) network: event 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Wifi Unknown Error 0x0102

Does anyone have any idea what could be causing this? I know the micropython code is open source, but I'm not familiar with the project and I don't know where to find the network module to search for the scan function and see what's going on. I'm not even positive that would be helpful, but that's about all I can think of at this point, I'm really at a loss here.

Post Reply