Thank you for your assistance.
Not really. I made a separate attempt to pair the device beforehand, but other than that I always erased the flash and forgot the device on the phone to prevent any lingering connection.
Here I tried to provision the device with the application (first while connected to a separate WiFi, then to the softAP).
Code: Select all
Python requirements from /home/maldus/Source/esp-idf-v4.0/requirements.txt are satisfied.
[1/4] cd /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch/build/esp-idf/partition_table && /usr/bin/cmake -E echo "Partition table binary generated. Contents:" && /usr/bin/cmake -E echo "*******************************************************************************" && /home/maldus/.espressif/python_env/idf4.0_py3.8_env/bin/python /home/maldus/Source/esp-idf-v4.0/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 4MB /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch/build/partition_table/partition-table.bin && /usr/bin/cmake -E echo "*******************************************************************************"
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
sec_cert,63,0,0xd000,12K,
nvs,data,nvs,0x10000,24K,
otadata,data,ota,0x16000,8K,
phy_init,data,phy,0x18000,4K,
ota_0,app,ota_0,0x20000,1600K,
ota_1,app,ota_1,0x1b0000,1600K,
fctry,data,nvs,0x340000,24K,
*******************************************************************************
[2/4] Performing build step for 'bootloader'
ninja: no work to do.
esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition_table/partition-table.bin 0x16000 ota_data_initial.bin 0x1000 bootloader/bootloader.bin 0x20000 switch.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:0d:8e:e6:ac:14
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 3072 bytes to 159...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (159 compressed) at 0x00008000 in 0.0 seconds (effective 4585.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 31...
Writing at 0x00016000... (100 %)
Wrote 8192 bytes (31 compressed) at 0x00016000 in 0.0 seconds (effective 25475.2 kbit/s)...
Hash of data verified.
Compressed 25392 bytes to 14980...
Writing at 0x00001000... (100 %)
Wrote 25392 bytes (14980 compressed) at 0x00001000 in 0.4 seconds (effective 574.9 kbit/s)...
Hash of data verified.
Compressed 1061728 bytes to 650236...
Writing at 0x00020000... (2 %)
Writing at 0x00024000... (5 %)
Writing at 0x00028000... (7 %)
Writing at 0x0002c000... (10 %)
Writing at 0x00030000... (12 %)
Writing at 0x00034000... (15 %)
Writing at 0x00038000... (17 %)
Writing at 0x0003c000... (20 %)
Writing at 0x00040000... (22 %)
Writing at 0x00044000... (25 %)
Writing at 0x00048000... (27 %)
Writing at 0x0004c000... (30 %)
Writing at 0x00050000... (32 %)
Writing at 0x00054000... (35 %)
Writing at 0x00058000... (37 %)
Writing at 0x0005c000... (40 %)
Writing at 0x00060000... (42 %)
Writing at 0x00064000... (45 %)
Writing at 0x00068000... (47 %)
Writing at 0x0006c000... (50 %)
Writing at 0x00070000... (52 %)
Writing at 0x00074000... (55 %)
Writing at 0x00078000... (57 %)
Writing at 0x0007c000... (60 %)
Writing at 0x00080000... (62 %)
Writing at 0x00084000... (65 %)
Writing at 0x00088000... (67 %)
Writing at 0x0008c000... (70 %)
Writing at 0x00090000... (72 %)
Writing at 0x00094000... (75 %)
Writing at 0x00098000... (77 %)
Writing at 0x0009c000... (80 %)
Writing at 0x000a0000... (82 %)
Writing at 0x000a4000... (85 %)
Writing at 0x000a8000... (87 %)
Writing at 0x000ac000... (90 %)
Writing at 0x000b0000... (92 %)
Writing at 0x000b4000... (95 %)
Writing at 0x000b8000... (97 %)
Writing at 0x000bc000... (100 %)
Wrote 1061728 bytes (650236 compressed) at 0x00020000 in 15.4 seconds (effective 550.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
+±¥¹ÿets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6940
load:0x40078000,len:14052
load:0x40080400,len:4304
entry 0x400806e8
[0;32mI (71) boot: Chip Revision: 1[0m
[0;32mI (71) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (39) boot: ESP-IDF v4.0-beta2-1218-g6093407d7-dirt 2nd stage bootloader[0m
[0;32mI (40) boot: compile time 11:10:46[0m
[0;32mI (41) boot: Enabling RNG early entropy source...[0m
[0;32mI (46) boot: SPI Speed : 40MHz[0m
[0;32mI (50) boot: SPI Mode : DIO[0m
[0;32mI (54) boot: SPI Flash Size : 4MB[0m
[0;32mI (58) boot: Partition Table:[0m
[0;32mI (62) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (69) boot: 0 sec_cert unknown 3f 00 0000d000 00003000[0m
[0;32mI (77) boot: 1 nvs WiFi data 01 02 00010000 00006000[0m
[0;32mI (84) boot: 2 otadata OTA data 01 00 00016000 00002000[0m
[0;32mI (92) boot: 3 phy_init RF data 01 01 00018000 00001000[0m
[0;32mI (99) boot: 4 ota_0 OTA app 00 10 00020000 00190000[0m
[0;32mI (107) boot: 5 ota_1 OTA app 00 11 001b0000 00190000[0m
[0;32mI (114) boot: 6 fctry WiFi data 01 02 00340000 00006000[0m
[0;32mI (122) boot: End of partition table[0m
[0;32mI (126) boot: No factory image, trying OTA 0[0m
[0;32mI (131) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (138) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x337ac (210860) map[0m
[0;32mI (223) esp_image: segment 1: paddr=0x000537d4 vaddr=0x3ffbdb60 size=0x03ae8 ( 15080) load[0m
[0;32mI (229) esp_image: segment 2: paddr=0x000572c4 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (230) esp_image: segment 3: paddr=0x000576cc vaddr=0x40080400 size=0x08944 ( 35140) load[0m
[0;32mI (253) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0xb4448 (738376) map[0m
[0;32mI (517) esp_image: segment 5: paddr=0x00114468 vaddr=0x40088d44 size=0x0eec8 ( 61128) load[0m
[0;32mI (558) boot: Loaded app from partition at offset 0x20000[0m
[0;32mI (588) boot: Set actual ota_seq=1 in otadata[0][0m
[0;32mI (588) boot: Disabling RNG early entropy source...[0m
[0;32mI (589) cpu_start: Pro cpu up.[0m
[0;32mI (591) cpu_start: Application information:[0m
[0;32mI (596) cpu_start: Project name: switch[0m
[0;32mI (601) cpu_start: App version: 1.0[0m
[0;32mI (606) cpu_start: Compile time: Nov 3 2020 11:10:44[0m
[0;32mI (612) cpu_start: ELF file SHA256: 2de6cec47adc7862...[0m
[0;32mI (618) cpu_start: ESP-IDF: v4.0-beta2-1218-g6093407d7-dirt[0m
[0;32mI (625) cpu_start: Starting app cpu, entry point is 0x40081374[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (635) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (642) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM[0m
[0;32mI (648) heap_init: At 3FFC7D20 len 000182E0 (96 KiB): DRAM[0m
[0;32mI (654) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (661) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (667) heap_init: At 40097C0C len 000083F4 (32 KiB): IRAM[0m
[0;32mI (673) cpu_start: Pro cpu start user code[0m
[0;32mI (692) spi_flash: detected chip: generic[0m
[0;32mI (692) spi_flash: flash io: dio[0m
[0;32mI (693) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (701) esp_rmaker_commands: Registering command: up-time[0m
[0;32mI (0) esp_rmaker_console: Initialising UART on port 0[0m
[0;32mI (711) uart: queue free spaces: 8[0m
[0;32mI (721) esp_rmaker_commands: Registering command: mem-dump[0m
[0;32mI (721) esp_rmaker_commands: Registering command: task-dump[0m
[0;32mI (731) esp_rmaker_commands: Registering command: cpu-dump[0m
[0;32mI (731) esp_rmaker_commands: Registering command: sock-dump[0m
[0;32mI (741) esp_rmaker_commands: Registering command: heap-trace[0m
[0;32mI (751) esp_rmaker_commands: Registering command: reset-to-factory[0m
[0;32mI (751) esp_rmaker_commands: Registering command: add-user[0m
[0;32mI (761) esp_rmaker_commands: Registering command: get-node-id[0m
[0;32mI (771) esp_rmaker_commands: Registering command: wifi-prov[0m
[0;32mI (771) esp_rmaker_commands: Registering command: local-time[0m
[0;32mI (781) esp_rmaker_commands: Registering command: tz-set[0m
[0;32mI (791) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [0m
[0;32mI (791) gpio: GPIO[19]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
[0;33mW (801) ws2812_led: WS2812 LED is disabled[0m
I (831) wifi:wifi driver task: 3ffba340, prio:23, stack:6656, core=0
[0;32mI (831) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;32mI (831) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
I (881) wifi:wifi firmware version: 19abcd9
I (881) wifi:config NVS flash: enabled
I (881) wifi:config nano formating: disabled
I (881) wifi:Init data frame dynamic rx buffer num: 32
I (891) wifi:Init management frame dynamic rx buffer num: 32
I (891) wifi:Init management short buffer num: 32
I (901) wifi:Init dynamic tx buffer num: 32
I (901) wifi:Init static rx buffer size: 1600
I (911) wifi:Init static rx buffer num: 10
I (911) wifi:Init dynamic rx buffer num: 32
[0;32mI (931) esp_claim: Initialising Assisted Claiming. This may take time.[0m
[0;33mW (931) esp_claim: Generating the private key. This may take time.[0m
[0;32mI (12541) app_main: RainMaker Initialised.[0m
[0;32mI (12541) esp_rmaker_node: Node ID ----- 840D8EE6AC14[0m
[0;32mI (12541) esp_rmaker_ota: OTA state = 2[0m
[0;32mI (12541) esp_rmaker_ota_using_params: OTA enabled with Params[0m
[0;32mI (12551) esp_rmaker_time_sync: Initializing SNTP. Using the SNTP server: pool.ntp.org[0m
[0;32mI (12561) esp_rmaker_core: Starting RainMaker Core Task[0m
[0;32mI (12561) app_main: RainMaker Claim Started.[0m
[0;32mI (12561) esp_claim: Waiting for assisted claim to finish.[0m
[0;32mI (12571) app_wifi: Starting provisioning[0m
[0;33mW (12581) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration[0m
[0;32mI (12721) phy: phy_version: 4370, 4e803b3, Aug 11 2020, 14:18:07, 0, 2[0m
I (12731) wifi:mode : sta (84:0d:8e:e6:ac:14)
I (12741) wifi:mode : sta (84:0d:8e:e6:ac:14) + softAP (84:0d:8e:e6:ac:15)
I (12741) wifi:Total power save buffer number: 16
I (12741) wifi:Init max length of beacon: 752/752
I (12741) wifi:Init max length of beacon: 752/752
I (12751) wifi:Total power save buffer number: 16
[0;33mW (12751) wifi_prov_scheme_softap: Error adding mDNS service! Check if mDNS is running[0m
[0;32mI (12761) wifi_prov_mgr: Provisioning started with service name : PROV_f369c6 [0m
[0;32mI (12771) app_wifi: Provisioning started[0m
[0;32mI (12771) app_wifi: Scan this QR code from the phone app for Provisioning.[0m
âââââââ ââ ââ ââââââ ââ âââââââ
â âââ â âââââ âââ â âââ â âââ â
â âââ â ââ â âââââ ââââââ â âââ â
âââââââ âââ â â âââââââ â âââââââ
ââââ âââ ââ ââââ â ââ ââââââââââ
ââââ ââ âââ âââ âââââââ ââ â
â ââ âââ ââââââ ââââââââââ ââ ââ
â â ââââ â ââ â â âââ ââ ââ
ââ ââ â ââ âââ ââââââ âââ âââ â
ââââ ââ ââââââ âââââââ â ââââ ââ
ââââââ ââ âââââââââââââ ââ â ââ
âââ ââââââââââ âââââââââââ ââ ââ
â âââ âââââ ââ âââââââ ââââââ ââ
âââââââ âââââââ ââ â ââââ â ââ ââ
â âââ â ââââââ ââââ ââ ââââââ ââ
â âââ â ââ â ââââââââ â ââââââ
âââââââ â ââââ â â â â ââ â
[0;32mI (12981) app_wifi: If QR code is not visible, copy paste the below URL in a browser.
https://rainmaker.espressif.com/qrcode.html?data={"ver":"v1","name":"PROV_f369c6","pop":"db8a8869","transport":"softap"}[0m
[0;32mI (13001) app_wifi: Provisioning Started. Name : PROV_f369c6, POP : db8a8869[0m
I (76841) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1
I (76841) wifi:station: d0:13:fd:26:6b:31 join, AID=1, bgn, 20
[0;32mI (77151) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2[0m
[0;33mW (100631) httpd_uri: httpd_uri: URI '/' not found[0m
[0;33mW (100631) httpd_txrx: httpd_resp_send_err: 404 Not Found - This URI does not exist[0m
[0;33m--- idf_monitor on /dev/ttyUSB0 115200 ---[0m
[0;33m--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---[0m
[0;33m0x40080000: _WindowOverflow4 at /home/maldus/Source/esp-idf-v4.0/components/freertos/xtensa_vectors.S:1778
[0m
[0;33m0x400d0018: _stext at ??:?
[0m
[0;33m0x40088d44: prvAcquireItemNoSplit at /home/maldus/Source/esp-idf-v4.0/components/esp_ringbuf/ringbuf.c:324 (discriminator 3)
[0m
[0;33m0x40081374: call_start_cpu1 at /home/maldus/Source/esp-idf-v4.0/components/esp32/cpu_start.c:267
[0m
[0m
Checking Python dependencies...
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running ninja in directory /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch/build
Executing "ninja all"...
Executing action: flash
Choosing default port b'/dev/ttyUSB0' (use '-p PORT' option to set a specific serial port)
Running esptool.py in directory /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch/build
Executing "/home/maldus/.espressif/python_env/idf4.0_py3.8_env/bin/python /home/maldus/Source/esp-idf-v4.0/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash @flash_project_args"...
Executing action: monitor
Running idf_monitor in directory /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch
Executing "/home/maldus/.espressif/python_env/idf4.0_py3.8_env/bin/python /home/maldus/Source/esp-idf-v4.0/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 /home/maldus/Projects/pasticci/esp-rainmaker/examples/switch/build/switch.elf -m '/home/maldus/.espressif/python_env/idf4.0_py3.8_env/bin/python' '/home/maldus/Source/esp-idf-v4.0/tools/idf.py'"...
Done