PS E:\esptest\modem_console> $env:IDF_PATH = 'e:\esp\esp\v5.3.1\esp-idf'; PS E:\esptest\modem_console> & 'E:\esp\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe' 'e:\esp\esp\v5.3.1\esp-idf\tools\idf_monitor.py' -p COM11 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 'e:\esptest\modem_console\build\modem-console.elf' cmodem_console\x5cbuild\x5cmodem-console.elf';07a77e24-c3f5-4d8e-bcd3-6e6ef163351c--- Warning: GDB cannot open serial ports accessed as COMx --- Using \\.\COM11 instead... --- esp-idf-monitor 1.5.0 on \\.\COM11 115200 --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fce2810,len:0x178c load:0x403c8700,len:0x4 load:0x403c8704,len:0xcb8 load:0x403cb700,len:0x2db0 entry 0x403c8914 I (27) boot: ESP-IDF v5.3.1 2nd stage bootloader I (27) boot: compile time Feb 18 2025 17:37:28 I (27) boot: Multicore bootloader I (30) boot: chip revision: v0.2 I (34) boot.esp32s3: Boot SPI Speed : 80MHz I (38) boot.esp32s3: SPI Mode : DIO I (43) boot.esp32s3: SPI Flash Size : 16MB I (48) boot: Enabling RNG early entropy source... I (53) boot: Partition Table: I (57) boot: ## Label Usage Type ST Offset Length I (64) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (72) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (79) boot: 2 factory factory app 00 00 00010000 00100000 I (87) boot: End of partition table I (91) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=24a98h (150168) map I (126) esp_image: segment 1: paddr=00034ac0 vaddr=3fc95c00 size=02cbch ( 11452) load I (129) esp_image: segment 2: paddr=00037784 vaddr=40374000 size=08894h ( 34964) load I (140) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7e358h (516952) map I (233) esp_image: segment 4: paddr=000be380 vaddr=4037c894 size=092c8h ( 37576) load I (242) esp_image: segment 5: paddr=000c7650 vaddr=50000000 size=00018h ( 24) load I (242) esp_image: segment 6: paddr=000c7670 vaddr=600fe000 size=00100h ( 256) load I (248) esp_image: segment 7: paddr=000c7778 vaddr=600fe100 size=00008h ( 8) load I (263) boot: Loaded app from partition at offset 0x10000 I (263) boot: Disabling RNG early entropy source... I (279) cpu_start: Multicore app I (289) cpu_start: Pro cpu start user code I (289) cpu_start: cpu freq: 160000000 Hz I (289) app_init: Application information: I (292) app_init: Project name: modem-console I (297) app_init: App version: 1 I (301) app_init: Compile time: Feb 18 2025 18:22:58 I (307) app_init: ELF file SHA256: 6448cb19c... I (313) app_init: ESP-IDF: v5.3.1 I (317) efuse_init: Min chip rev: v0.0 I (322) efuse_init: Max chip rev: v0.99 I (327) efuse_init: Chip rev: v0.2 I (332) heap_init: Initializing. RAM available for dynamic allocation: I (339) heap_init: At 3FC9A378 len 0004F398 (316 KiB): RAM I (345) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM I (351) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (358) heap_init: At 600FE108 len 00001EE0 (7 KiB): RTCRAM I (365) spi_flash: detected chip: boya I (368) spi_flash: flash io: dio I (372) sleep: Configure to isolate all GPIO pins in sleep state I (379) sleep: Enable automatic switching of GPIO sleep configuration I (386) main_task: Started on CPU0 I (416) main_task: Calling app_main() I (416) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (436) uart: queue free spaces: 30 I (436) modem_console: Initializing esp_modem for the BG96 module... n Type 'help' to get the list of commands. Use UP/DOWN arrows to navigate through command history. Press TAB when typing command name to auto-complete. Your terminal application does not support escape sequences. Line editing and history features are disabled. On Windows, try using Putty instead. esp> get_signal_quality E (23906) modem_console: Failed with TIMEOUT Command returned non-zero error code: 0x1 (ERROR) esp> set_mode AUTO I (49946) modem_console: Switching to AUTO name... I (50746) esp-netif_lwip-ppp: Connected I (50886) modem_console: OK esp> get_signal_quality I (62286) modem_console: OK. rssi=17, ber=99 esp> urc I (68146) modem_console: Adding URC handler esp> ping 8.8.8.8 esp> I (74306) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=1 ttl=114 time=293 ms I (75106) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=2 ttl=114 time=90 ms I (76386) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=3 ttl=114 time=371 ms I (77106) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=4 ttl=114 time=91 ms I (78136) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=5 ttl=114 time=123 ms I (79016) modem_console_ping: --- 8.8.8.8 ping statistics --- I (79016) modem_console_ping: 5 packets transmitted, 5 received, 0 packet loss, time 968ms esp> set_mode CMD I (346676) modem_console: Switching to CMD name... E (346676) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode AUTO I (363036) modem_console: Switching to AUTO name... I (363246) modem_console: OK esp> ping 8.8.8.8 esp> I (369756) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=1 ttl=114 time=246 ms I (370876) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=2 ttl=114 time=363 ms I (371596) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=3 ttl=114 time=83 ms I (372626) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=4 ttl=114 time=110 ms I (373836) modem_console_ping: 64 bytes from 8.8.8.8 icmp_seq=5 ttl=114 time=322 ms I (374516) modem_console_ping: --- 8.8.8.8 ping statistics --- I (374516) modem_console_ping: 5 packets transmitted, 5 received, 0 packet loss, time 1124ms esp> set_mode CMUX I (379716) modem_console: Switching to CMUX name... I (379726) on_read: 0x3fca4dd8 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d |..+CME ERROR: 3.| I (379726) on_read: 0x3fca4de8 0a |.| E (379836) esp_modem_dte: Cannot setup_cmux(), cmux_term already exists E (379836) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode AUTO I (395576) modem_console: Switching to AUTO name... I (395786) modem_console: OK esp> set_mode CMD I (424176) modem_console: Switching to CMD name... E (424176) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode AUTO I (431766) modem_console: Switching to AUTO name... I (431966) modem_console: OK esp> set_mode CMUX I (452586) modem_console: Switching to CMUX name... I (452586) on_read: 0x3fca4dd8 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d |..+CME ERROR: 3.| I (452596) on_read: 0x3fca4de8 0a |.| E (452706) esp_modem_dte: Cannot setup_cmux(), cmux_term already exists E (452706) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX1 I (475576) modem_console: Switching to CMUX1 name... I (475576) on_read: 0x3fca4dd8 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d |..+CME ERROR: 3.| I (475576) on_read: 0x3fca4de8 0a |.| E (475696) esp_modem_dte: Cannot setup_cmux(), cmux_term already exists E (475696) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX2 I (487896) modem_console: Switching to CMUX2 name... E (487896) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX3 I (503566) modem_console: Switching to CMUX3 name... E (503566) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX4 I (511656) modem_console: Switching to CMUX4 name... E (511656) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX5 I (516816) modem_console: Switching to CMUX5 name... E (516816) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMD I (524816) modem_console: Switching to CMD name... E (524816) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode PPP I (530576) modem_console: Switching to PPP name... I (530586) on_read: 0x3fca4dd8 0d 0a 4f 4b 0d 0a |..OK..| I (530616) on_read: 0x3fca4dd8 0d 0a 4f 4b 0d 0a |..OK..| I (530626) on_read: 0x3fca4dd8 0d 0a 4e 4f 20 43 41 52 52 49 45 52 0d 0a |..NO CARRIER..| I (535616) on_read: 0x3fca4dd8 0d 0a 4e 4f 20 43 41 52 52 49 45 52 0d 0a |..NO CARRIER..| E (540616) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMD I (549676) modem_console: Switching to CMD name... E (549676) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode PPP I (553316) modem_console: Switching to PPP name... I (553316) on_read: 0x3fca4dd8 0d 0a 4f 4b 0d 0a |..OK..| I (553346) on_read: 0x3fca4dd8 0d 0a 4f 4b 0d 0a |..OK..| I (553356) on_read: 0x3fca4dd8 0d 0a 4e 4f 20 43 41 52 52 49 45 52 0d 0a |..NO CARRIER..| I (558346) on_read: 0x3fca4dd8 0d 0a 4e 4f 20 43 41 52 52 49 45 52 0d 0a |..NO CARRIER..| E (563346) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode CMUX I (571236) modem_console: Switching to CMUX name... I (571246) on_read: 0x3fca4dd8 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d |..+CME ERROR: 3.| I (571246) on_read: 0x3fca4de8 0a |.| E (571356) esp_modem_dte: Cannot setup_cmux(), cmux_term already exists E (571356) modem_console: Failed to set the desired mode Command returned non-zero error code: 0x1 (ERROR) esp> set_mode AUTO I (579116) modem_console: Switching to AUTO name... I (579326) modem_console: OK esp>