Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB CDC 4G Example getting stuck (AEGHB-681) #368

Open
3 tasks done
narangmayank opened this issue Jun 8, 2024 · 3 comments
Open
3 tasks done

USB CDC 4G Example getting stuck (AEGHB-681) #368

narangmayank opened this issue Jun 8, 2024 · 3 comments

Comments

@narangmayank
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.0

Espressif SoC revision.

ESP32S3

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Custom Board

Power Supply used.

USB

What is the expected behavior?

Execution shouldn't stop

What is the actual behavior?

Execution is stopping. It's getting stuck somewhere

Steps to reproduce.

sdkconfig and app_main is provided in the attahcment. I just added a counter in main while(1) and you can see in the logs it is getting stuck at some point.

[sdkconfig.txt](https://github.com/user-attachments/files/15748257/sdkconfig.txt)

[app_main.txt](https://github.com/user-attachments/files/15748256/app_main.txt)


### Debug Logs.

```plain
I (27) boot: ESP-IDF v5.1-dirty 2nd stage bootloader
I (27) boot: compile time Jun  8 2024 19:02:29
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v0.1
I (34) qio_mode: Enabling default flash chip QIO
I (40) boot.esp32s3: Boot SPI Speed : 80MHz
I (44) boot.esp32s3: SPI Mode       : QIO
I (49) boot.esp32s3: SPI Flash Size : 4MB
I (54) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (63) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  2 factory          factory app      00 00 00010000 00100000
I (92) boot:  3 storage          Unknown data     01 82 00110000 00100000
I (100) boot: End of partition table
I (104) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=2c258h (180824) map
I (140) esp_image: segment 1: paddr=0003c280 vaddr=3fc9a400 size=03d98h ( 15768) load
I (143) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=a00ech (655596) map
I (245) esp_image: segment 3: paddr=000e0114 vaddr=3fc9e198 size=006ach (  1708) load
I (246) esp_image: segment 4: paddr=000e07c8 vaddr=40374000 size=163b0h ( 91056) load
I (278) boot: Loaded app from partition at offset 0x10000
I (278) boot: Disabling RNG early entropy source...
I (289) cpu_start: Multicore app
I (290) cpu_start: Pro cpu up.
I (290) cpu_start: Starting app cpu, entry point is 0x40375858
0x40375858: call_start_cpu1 at C:/ESP_IDE/Espressif/frameworks/esp-idf-v5.1/components/esp_system/port/cpu_start.c:154

I (0) cpu_start: App cpu up.
I (308) cpu_start: Pro cpu start user code
I (308) cpu_start: cpu freq: 240000000 Hz
I (308) cpu_start: Application information:
I (311) cpu_start: Project name:     usb_cdc_4g_module
I (317) cpu_start: App version:      3651de5f-dirty
I (322) cpu_start: Compile time:     Jun  8 2024 19:15:19
I (328) cpu_start: ELF file SHA256:  6d63984331434480...
I (334) cpu_start: ESP-IDF:          v5.1-dirty
I (339) cpu_start: Min chip rev:     v0.0
I (344) cpu_start: Max chip rev:     v0.99
I (349) cpu_start: Chip rev:         v0.1
I (354) heap_init: Initializing. RAM available for dynamic allocation:
I (361) heap_init: At 3FCA1F00 len 00047810 (286 KiB): DRAM
I (367) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (374) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (380) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
I (387) spi_flash: detected chip: generic
I (391) spi_flash: flash io: qio
I (395) sleep: Configure to isolate all GPIO pins in sleep state
I (402) sleep: Enable automatic switching of GPIO sleep configuration
I (409) app_start: Starting scheduler on CPU0
I (414) app_start: Starting scheduler on CPU1
I (414) main_task: Started on CPU0
I (424) main_task: Calling app_main()
I (428) led_indicator: LED Indicator Version: 0.3.0
I (433) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (442) led_indicator: blink_lists is null, use default blink list
W (449) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (467) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default
I (479) led_indicator: LED Indicator Version: 0.3.0
I (485) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (494) led_indicator: blink_lists is null, use default blink list
W (501) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (519) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default
I (531) led_indicator: LED Indicator Version: 0.3.0
I (537) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (546) led_indicator: blink_lists is null, use default blink list
W (553) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (571) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x10, is_active_level_high:1, blink_lists:default
I (598) 4g_main: ====================================
I (598) 4g_main:      ESP 4G Cat.1 Wi-Fi Router
I (598) 4g_main: ====================================
I (604) modem_board: iot_usbh_modem, version: 0.2.1
I (609) modem_board: Force reset modem board....
I (615) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (624) modem_board: Resetting modem using io=13, level=0
I (830) modem_board: Waiting for modem initialize ready
I (5830) USB_HCDC: iot_usbh_cdc, version: 0.2.2
I (5830) IOT_USBH: iot_usbh, version: 0.2.1
I (5860) IOT_USBH: USB Port=1 init succeed, fifo strategy=0
I (5860) IOT_USBH: usb port start succeed
I (5860) IOT_USBH: USB Processing Start
I (5860) USB_HCDC: usbh cdc driver install succeed
I (5864) IOT_USBH: Waiting USB Connection
I (5870) USB_HCDC: Waiting CDC Device Connection
I (5874) IOT_USBH: Port power: ON Succeed
I (5860) USB_HCDC: CDC task start
I (12228) IOT_USBH: line 131 PORT_EVENT_CONNECTION
I (12328) IOT_USBH: Resetting Port
I (12388) IOT_USBH: Port reset succeed
I (12388) IOT_USBH: Getting Port Speed
I (12388) IOT_USBH: USB Speed: full-speed
I (12391) IOT_USBH: Pipe init succeed, addr: 00
I (12396) IOT_USBH: Set Device Addr = 1
I (12400) IOT_USBH: Set Device Addr Done
I (12405) IOT_USBH: get device desc
I (12410) IOT_USBH: get device desc, actual_num_bytes:26
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x2
bDeviceSubClass 0x2
bDeviceProtocol 0x0
bMaxPacketSize0 64
idVendor 0x2ecc
idProduct 0x3004
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
I (12438) IOT_USBH: get short config desc
I (12444) IOT_USBH: get config desc, actual_num_bytes:16
I (12449) IOT_USBH: get full config desc
I (12455) IOT_USBH: get full config desc, actual_num_bytes:75
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 4
bmAttributes 0xc0
bMaxPower 0mA
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 0
        bAlternateSetting 0
        bNumEndpoints 1
        bInterfaceClass 0x2
        bInterfaceSubClass 0x2
        bInterfaceProtocol 0x0
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x83   EP 3 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 10
                bInterval 1
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 1
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xa
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 6
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x2    EP 2 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x81   EP 1 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
I (12553) IOT_USBH: Set Device Configuration = 1
I (12559) IOT_USBH: Set Device Configuration Done
I (12564) IOT_USBH: Pipe init succeed, addr: 81
I (12569) IOT_USBH: Pipe init succeed, addr: 0A
I (12574) USB_HCDC: CDC Device Connected
I (12579) esp-modem: --------- Modem PreDefined Info ------------------
I (12586) esp-modem: Model: User Defined
I (12591) esp-modem: Modem itf: IN Addr:0x81, OUT Addr:0x0A
I (12597) esp-modem: ----------------------------------------------------
I (12605) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (12614) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (12624) USB_HCDC: rx0 flush -0 = 0
I (12624) modem_board: DTE reconnect, reconnecting ...

W (12624) USB_HCDC: Itf:0 ep: 0x0A PIPE_EVENT_ERROR_XFER
W (12774) IOT_USBH: line 135 PORT_EVENT_DISCONNECTION
I (12774) IOT_USBH: hcd port state = 7
I (12775) USB_HCDC: CDC task Reset
W (12778) IOT_USBH: pipe=0x3fcbb590 clear failed
W (12783) USB_HCDC: in pipe flush failed
I (12787) IOT_USBH: iot_usbh_pipe_deinit: pipe state = 1
I (12793) IOT_USBH: Pipe deinit succeed, addr: 81
W (12799) IOT_USBH: pipe=0x3fcbb5e4 clear failed
W (12804) USB_HCDC: out pipe flush failed
I (12809) IOT_USBH: iot_usbh_pipe_deinit: pipe state = 1
I (12815) IOT_USBH: Pipe deinit succeed, addr: 0A
I (12820) USB_HCDC: rx0 flush -0 = 0
I (12824) USB_HCDC: tx0 flush -0 = 0
W (12835) IOT_USBH: Resetting USB Driver
W (12835) 4g_main: Modem Board Event: USB disconnected
W (12835) IOT_USBH: Resetting default pipe
W (12944) IOT_USBH: pipe=0x3fcbb4dc clear failed
I (12944) IOT_USBH: iot_usbh_pipe_deinit: pipe state = 1
I (12944) IOT_USBH: Pipe deinit succeed, addr: 00
I (12950) IOT_USBH: hcd recovering
I (12954) IOT_USBH: Port power: ON Succeed
I (13059) IOT_USBH: Waiting USB Connection
I (13634) modem_board: reconnect after 5s...
I (13871) IOT_USBH: line 131 PORT_EVENT_CONNECTION
I (13971) IOT_USBH: Resetting Port
I (14031) IOT_USBH: Port reset succeed
I (14031) IOT_USBH: Getting Port Speed
I (14031) IOT_USBH: USB Speed: full-speed
I (14034) IOT_USBH: Pipe init succeed, addr: 00
I (14039) IOT_USBH: Set Device Addr = 1
I (14043) IOT_USBH: Set Device Addr Done
I (14048) IOT_USBH: get device desc
I (14052) IOT_USBH: get device desc, actual_num_bytes:26
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0xef
bDeviceSubClass 0x2
bDeviceProtocol 0x1
bMaxPacketSize0 64
idVendor 0x2c7c
idProduct 0x6026
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
I (14082) IOT_USBH: get short config desc
I (14086) IOT_USBH: get config desc, actual_num_bytes:16
I (14092) IOT_USBH: get full config desc
I (14097) IOT_USBH: get full config desc, actual_num_bytes:204
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 196
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
bMaxPower 500mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0xe0
bFunctionSubClass 0x1
bFunctionProtocol 0x3
iFunction 5
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 0
        bAlternateSetting 0
        bNumEndpoints 1
        bInterfaceClass 0xe0
        bInterfaceSubClass 0x1
        bInterfaceProtocol 0x3
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x87   EP 7 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 1
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xa
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x83   EP 3 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xc    EP 12 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 2
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x82   EP 2 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xb    EP 11 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 3
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 11
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x89   EP 9 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x86   EP 6 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xf    EP 15 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 4
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 11
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x88   EP 8 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x81   EP 1 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xa    EP 10 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
I (14379) IOT_USBH: Set Device Configuration = 1
I (14385) IOT_USBH: Set Device Configuration Done
I (14390) modem_board: DTE reconnect, reconnecting ...

I (14390) 4g_main: Modem Board Event: USB connected
I (14396) IOT_USBH: Pipe init succeed, addr: 81
I (14407) IOT_USBH: Pipe init succeed, addr: 0A
I (15396) modem_board: reconnect after 5s...
I (16396) modem_board: reconnect after 4s...
I (17396) modem_board: reconnect after 3s...
I (18396) modem_board: reconnect after 2s...
I (19396) modem_board: reconnect after 1s...
I (19396) modem_board: Modem state STAGE_SYNC, Start
E (19412) esp-modem-dte: esp_dte_handle_line(79): handle line failed
E (19419) esp-modem-dte: esp_dte_handle_line(79): handle line failed
I (19419) modem_board: Network Auto reconnecting ...
W (19421) 4g_main: Modem Board Event: Network disconnected
I (19421) modem_board: Modem state STAGE_SYNC, Success!
I (19533) modem_board: Modem state STAGE_CHECK_SIM, Start
I (19540) modem_board: SIM Card Ready
I (19540) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (19540) 4g_main: Modem Board Event: SIM Card Connected
I (19640) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (19647) modem_board: Signal quality: rssi=21, ber=99
I (19647) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (19748) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (19754) modem_board: Network registered, Operator: "40445"
I (19754) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (19856) modem_board: Modem state STAGE_START_PPP, Start
I (19923) modem_board: Modem state STAGE_START_PPP, Success!
W (19924) modem_board: Modem event! 0
I (20023) modem_board: Modem state STAGE_WAIT_IP, Start
I (20191) esp-netif_lwip-ppp: Connected
I (20191) modem_board: IP event! 6
I (20191) modem_board: Modem Connected to PPP Server
I (20194) modem_board: ppp ip: 10.223.65.37, mask: 255.255.255.255, gw: 10.64.64.64
I (20203) modem_board: Main DNS: 59.144.144.106
I (20208) modem_board: Backup DNS: 203.145.160.5
I (20213) esp-modem-netif: PPP state changed event 0: (NETIF_PPP_ERRORNONE)
I (20213) modem_board: Modem state STAGE_WAIT_IP, Success!
I (20221) 4g_main: Modem Board Event: Network connected
I (20221) 4g_router_server: ssid : Can't find in NVS!
I (20238) 4g_router_server: password : Can't find in NVS!
I (20245) 4g_router_server: auth_mode : Can't find in NVS!
I (20251) 4g_router_server: channel : Can't find in NVS!
I (20257) 4g_router_server: hide_ssid : Can't find in NVS!
I (20263) 4g_router_server: bandwidth : Can't find in NVS!
I (20269) 4g_router_server: max_connection : Can't find in NVS!
I (20336) 4g_router_server: Partition size: total: 956561, used: 184736
I (20336) 4g_router_server: Starting server on port: '80'
I (20340) 4g_router_server: Registering URI handlers
I (20344) 4g_router_server: Starting webserver
I (20350) pp: pp rom version: e7ae62f
I (20354) net80211: net80211 rom version: e7ae62f
I (20360) wifi:wifi driver task: 3fcc5c94, prio:23, stack:6656, core=0
I (20370) wifi:wifi firmware version: b2f1f86
I (20371) wifi:wifi certification version: v7.0
I (20373) wifi:config NVS flash: enabled
I (20377) wifi:config nano formating: disabled
I (20381) wifi:Init data frame dynamic rx buffer num: 32
I (20386) wifi:Init management frame dynamic rx buffer num: 32
I (20392) wifi:Init management short buffer num: 32
I (20396) wifi:Init dynamic tx buffer num: 32
I (20400) wifi:Init static tx FG buffer num: 2
I (20405) wifi:Init static rx buffer size: 1600
I (20409) wifi:Init static rx buffer num: 10
I (20413) wifi:Init dynamic rx buffer num: 32
I (20417) wifi_init: tcpip mbox: 32
I (20421) wifi_init: udp mbox: 6
I (20425) wifi_init: tcp mbox: 6
I (20429) wifi_init: tcp tx win: 5744
I (20433) wifi_init: tcp rx win: 5744
I (20438) wifi_init: tcp mss: 1440
I (20442) wifi_init: WiFi IRAM OP enabled
I (20446) wifi_init: WiFi RX IRAM OP enabled
I (20451) wifi_init: LWIP IRAM OP enabled
I (20456) phy_init: phy_version 601,fe52df4,May 10 2023,17:26:54
I (20499) wifi:mode : softAP (dc:54:75:d6:48:ed)
I (20502) wifi:Total power save buffer number: 16
I (20502) wifi:Init max length of beacon: 752/752
I (20502) wifi:Init max length of beacon: 752/752
I (20506) modem_wifi: Wi-Fi AP started
I (20507) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (20525) wifi:Total power save buffer number: 16
I (20526) modem_wifi: softap ssid: Bytebeam password: StayConnected
I (20526) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (20540) modem_wifi: ap dns addr(default): 8.8.8.8
I (20546) 4g_main: changed: ap dns addr (auto): 59.144.144.106
I (20552) 4g_main: Ping addr 8.8.8.8 Restart..
I (20557) 4g_main: Counter : 1

I (21561) 4g_main: Ping addr 8.8.8.8 Restart..
I (21561) 4g_main: Counter : 2

W (22557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (22561) 4g_main: Ping addr 8.8.8.8 Restart..
I (22561) 4g_main: Counter : 3

I (23561) 4g_main: Ping addr 8.8.8.8 Restart..
I (23561) 4g_main: Counter : 4

W (24557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (24561) 4g_main: Ping addr 8.8.8.8 Restart..
I (24561) 4g_main: Counter : 5

I (25561) 4g_main: Ping addr 8.8.8.8 Restart..
I (25561) 4g_main: Counter : 6

W (26557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (26561) 4g_main: Ping addr 8.8.8.8 Restart..
I (26561) 4g_main: Counter : 7

I (27561) 4g_main: Ping addr 8.8.8.8 Restart..
I (27561) 4g_main: Counter : 8

W (28557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (28561) 4g_main: Ping addr 8.8.8.8 Restart..
I (28561) 4g_main: Counter : 9

I (29561) 4g_main: Ping addr 8.8.8.8 Restart..
I (29561) 4g_main: Counter : 10

W (30557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (30561) 4g_main: Ping addr 8.8.8.8 Restart..
I (30561) 4g_main: Counter : 11

I (31561) 4g_main: Ping addr 8.8.8.8 Restart..
I (31561) 4g_main: Counter : 12

W (32557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (32561) 4g_main: Ping addr 8.8.8.8 Restart..
I (32561) 4g_main: Counter : 13

I (33561) 4g_main: Ping addr 8.8.8.8 Restart..
I (33561) 4g_main: Counter : 14

W (34557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (34561) 4g_main: Ping addr 8.8.8.8 Restart..
I (34561) 4g_main: Counter : 15

I (35561) 4g_main: Ping addr 8.8.8.8 Restart..
I (35561) 4g_main: Counter : 16

W (36557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (36561) 4g_main: Ping addr 8.8.8.8 Restart..
I (36561) 4g_main: Counter : 17

I (37561) 4g_main: Ping addr 8.8.8.8 Restart..
I (37561) 4g_main: Counter : 18

W (38557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (38561) 4g_main: Ping addr 8.8.8.8 Restart..
I (38561) 4g_main: Counter : 19

I (39561) 4g_main: Ping addr 8.8.8.8 Restart..
I (39561) 4g_main: Counter : 20

W (40557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (40561) 4g_main: Ping addr 8.8.8.8 Restart..
I (40561) 4g_main: Counter : 21

I (41561) 4g_main: Ping addr 8.8.8.8 Restart..
I (41561) 4g_main: Counter : 22

W (42557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (42561) 4g_main: Ping addr 8.8.8.8 Restart..
I (42561) 4g_main: Counter : 23

I (43561) 4g_main: Ping addr 8.8.8.8 Restart..
I (43561) 4g_main: Counter : 24

W (44557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (44561) 4g_main: Ping addr 8.8.8.8 Restart..
I (44561) 4g_main: Counter : 25

I (45561) 4g_main: Ping addr 8.8.8.8 Restart..
I (45561) 4g_main: Counter : 26

W (46557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (46561) 4g_main: Ping addr 8.8.8.8 Restart..
I (46561) 4g_main: Counter : 27

I (47561) 4g_main: Ping addr 8.8.8.8 Restart..
I (47561) 4g_main: Counter : 28

W (48557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (48561) 4g_main: Ping addr 8.8.8.8 Restart..
I (48561) 4g_main: Counter : 29

I (49561) 4g_main: Ping addr 8.8.8.8 Restart..
I (49561) 4g_main: Counter : 30

W (50557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (50561) 4g_main: Ping addr 8.8.8.8 Restart..
I (50561) 4g_main: Counter : 31

I (51561) 4g_main: Ping addr 8.8.8.8 Restart..
I (51561) 4g_main: Counter : 32

W (52557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (52561) 4g_main: Ping addr 8.8.8.8 Restart..
I (52561) 4g_main: Counter : 33

I (53561) 4g_main: Ping addr 8.8.8.8 Restart..
I (53561) 4g_main: Counter : 34

W (54557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (54561) 4g_main: Ping addr 8.8.8.8 Restart..
I (54561) 4g_main: Counter : 35

I (55561) 4g_main: Ping addr 8.8.8.8 Restart..
I (55561) 4g_main: Counter : 36

W (56557) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (56561) 4g_main: Ping addr 8.8.8.8 Restart..
I (56561) 4g_main: Counter : 37

I (57561) 4g_main: Ping addr 8.8.8.8 Restart..
I (57561) 4g_main: Counter : 38

More Information.

No response

@github-actions github-actions bot changed the title USB CDC 4G Example getting stuck USB CDC 4G Example getting stuck (AEGHB-681) Jun 8, 2024
@leeebo
Copy link
Collaborator

leeebo commented Jun 13, 2024

Hi @narangmayank , please contact the SIM card supplier for the APN, then config it to https://github.com/espressif/esp-iot-solution/blob/master/components/usb/iot_usbh_modem/Kconfig#L106 to have a try

@narangmayank
Copy link
Author

Hi @leeebo, I tried using airtelgprs.com but that didn't worked out.

I (27) boot: ESP-IDF v5.1-dirty 2nd stage bootloader
I (27) boot: compile time Jun 15 2024 17:03:48
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v0.1
I (34) qio_mode: Enabling default flash chip QIO
I (40) boot.esp32s3: Boot SPI Speed : 80MHz
I (44) boot.esp32s3: SPI Mode       : QIO
I (49) boot.esp32s3: SPI Flash Size : 4MB
I (54) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (63) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  2 factory          factory app      00 00 00010000 00100000
I (92) boot:  3 storage          Unknown data     01 82 00110000 00100000
I (100) boot: End of partition table
I (104) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31090h (200848) map
I (143) esp_image: segment 1: paddr=000410b8 vaddr=3fc9a500 size=04484h ( 17540) load
I (147) esp_image: segment 2: paddr=00045544 vaddr=40374000 size=0aad4h ( 43732) load
I (157) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=af92ch (719148) map
I (267) esp_image: segment 4: paddr=000ff954 vaddr=4037ead4 size=0b99ch ( 47516) load
I (285) boot: Loaded app from partition at offset 0x10000
I (286) boot: Disabling RNG early entropy source...
I (297) cpu_start: Multicore app
I (297) cpu_start: Pro cpu up.
I (297) cpu_start: Starting app cpu, entry point is 0x40375870
0x40375870: call_start_cpu1 at C:/ESP_IDE/Espressif/frameworks/esp-idf-v5.1/components/esp_system/port/cpu_start.c:154

I (0) cpu_start: App cpu up.
I (315) cpu_start: Pro cpu start user code
I (315) cpu_start: cpu freq: 240000000 Hz
I (315) cpu_start: Application information:
I (318) cpu_start: Project name:     Byte0_FW
I (323) cpu_start: App version:      0710062-dirty
I (329) cpu_start: Compile time:     Jun 15 2024 17:03:09
I (335) cpu_start: ELF file SHA256:  98afcaace0f484bb...
I (341) cpu_start: ESP-IDF:          v5.1-dirty
I (346) cpu_start: Min chip rev:     v0.0
I (351) cpu_start: Max chip rev:     v0.99
I (356) cpu_start: Chip rev:         v0.1
I (360) heap_init: Initializing. RAM available for dynamic allocation:
I (368) heap_init: At 3FCA2868 len 00046EA8 (283 KiB): DRAM
I (374) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (381) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (387) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
I (394) spi_flash: detected chip: generic
I (398) spi_flash: flash io: qio
I (402) sleep: Configure to isolate all GPIO pins in sleep state
I (408) sleep: Enable automatic switching of GPIO sleep configuration
I (416) app_start: Starting scheduler on CPU0
I (421) app_start: Starting scheduler on CPU1
I (421) main_task: Started on CPU0
I (431) main_task: Calling app_main()
I (435) led_indicator: LED Indicator Version: 0.3.0
I (440) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (449) led_indicator: blink_lists is null, use default blink list
W (456) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (472) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default
I (485) led_indicator: LED Indicator Version: 0.3.0
I (490) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (500) led_indicator: blink_lists is null, use default blink list
W (507) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (522) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default
I (535) led_indicator: LED Indicator Version: 0.3.0
I (541) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (550) led_indicator: blink_lists is null, use default blink list
W (557) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (573) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x3, is_active_level_high:1, blink_lists:default
I (3598) 4g_main: ====================================
I (3598) 4g_main:      ESP 4G Cat.1 Wi-Fi Router
I (3598) 4g_main:           Byte0 Hardware
I (3603) 4g_main: ====================================
I (3609) modem_board: iot_usbh_modem, version: 0.1.6
I (3615) modem_board: Force reset modem board....
I (3620) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3629) modem_board: Resetting modem using io=13, level=0
I (3835) modem_board: Waiting for modem initialize ready
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x1a (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1870
load:0x403c9700,len:0x4
load:0x403c9704,len:0xda4
load:0x403cc700,len:0x3130
entry 0x403c9934
I (27) boot: ESP-IDF v5.1-dirty 2nd stage bootloader
I (27) boot: compile time Jun 15 2024 17:03:48
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v0.1
I (34) qio_mode: Enabling default flash chip QIO
I (40) boot.esp32s3: Boot SPI Speed : 80MHz
I (44) boot.esp32s3: SPI Mode       : QIO
I (49) boot.esp32s3: SPI Flash Size : 4MB
I (54) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (63) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  2 factory          factory app      00 00 00010000 00100000
I (92) boot:  3 storage          Unknown data     01 82 00110000 00100000
I (100) boot: End of partition table
I (104) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=31090h (200848) map
I (143) esp_image: segment 1: paddr=000410b8 vaddr=3fc9a500 size=04484h ( 17540) load
I (147) esp_image: segment 2: paddr=00045544 vaddr=40374000 size=0aad4h ( 43732) load
I (157) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=af92ch (719148) map
I (267) esp_image: segment 4: paddr=000ff954 vaddr=4037ead4 size=0b99ch ( 47516) load
I (285) boot: Loaded app from partition at offset 0x10000
I (286) boot: Disabling RNG early entropy source...
I (297) cpu_start: Multicore app
I (297) cpu_start: Pro cpu up.
I (297) cpu_start: Starting app cpu, entry point is 0x40375870
0x40375870: call_start_cpu1 at C:/ESP_IDE/Espressif/frameworks/esp-idf-v5.1/components/esp_system/port/cpu_start.c:154

I (0) cpu_start: App cpu up.
I (315) cpu_start: Pro cpu start user code
I (315) cpu_start: cpu freq: 240000000 Hz
I (315) cpu_start: Application information:
I (318) cpu_start: Project name:     Byte0_FW
I (323) cpu_start: App version:      0710062-dirty
I (329) cpu_start: Compile time:     Jun 15 2024 17:03:09
I (335) cpu_start: ELF file SHA256:  98afcaace0f484bb...
I (341) cpu_start: ESP-IDF:          v5.1-dirty
I (346) cpu_start: Min chip rev:     v0.0
I (351) cpu_start: Max chip rev:     v0.99
I (356) cpu_start: Chip rev:         v0.1
I (360) heap_init: Initializing. RAM available for dynamic allocation:
I (368) heap_init: At 3FCA2868 len 00046EA8 (283 KiB): DRAM
I (374) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (381) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (387) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
I (394) spi_flash: detected chip: generic
I (398) spi_flash: flash io: qio
I (402) sleep: Configure to isolate all GPIO pins in sleep state
I (408) sleep: Enable automatic switching of GPIO sleep configuration
I (416) app_start: Starting scheduler on CPU0
I (421) app_start: Starting scheduler on CPU1
I (421) main_task: Started on CPU0
I (431) main_task: Calling app_main()
I (435) led_indicator: LED Indicator Version: 0.3.0
I (440) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (449) led_indicator: blink_lists is null, use default blink list
W (456) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (472) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default
I (485) led_indicator: LED Indicator Version: 0.3.0
I (490) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (500) led_indicator: blink_lists is null, use default blink list
W (507) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (522) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default
I (535) led_indicator: LED Indicator Version: 0.3.0
I (541) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (550) led_indicator: blink_lists is null, use default blink list
W (557) led_indicator: ./components/led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (573) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x3, is_active_level_high:1, blink_lists:default
I (3598) 4g_main: ====================================
I (3598) 4g_main:      ESP 4G Cat.1 Wi-Fi Router
I (3598) 4g_main:           Byte0 Hardware
I (3603) 4g_main: ====================================
I (3609) modem_board: iot_usbh_modem, version: 0.1.6
I (3615) modem_board: Force reset modem board....
I (3620) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3629) modem_board: Resetting modem using io=13, level=0
I (3835) modem_board: Waiting for modem initialize ready
I (8835) USB_HCDC: iot_usbh_cdc, version: 0.1.3
I (8835) IOT_USBH: iot_usbh, version: 0.1.2
I (8865) IOT_USBH: USB Port=1 init succeed, fifo strategy=0
I (8865) USB_HCDC: CDC task start
I (8865) IOT_USBH: usb port start succeed
I (8868) USB_HCDC: usbh cdc driver install succeed
I (8874) USB_HCDC: Waiting CDC Device Connection
I (8879) IOT_USBH: USB Processing Start
I (8884) IOT_USBH: Waiting USB Connection
I (8888) IOT_USBH: Port power: ON Succeed
I (9143) IOT_USBH: line 131 PORT_EVENT_CONNECTION
I (9243) IOT_USBH: Resetting Port
I (9303) IOT_USBH: Port reset succeed
I (9303) IOT_USBH: Getting Port Speed
I (9303) IOT_USBH: USB Speed: full-speed
I (9305) IOT_USBH: Pipe init succeed, addr: 00
I (9310) IOT_USBH: Set Device Addr = 1
I (9315) IOT_USBH: Set Device Addr Done
I (9319) IOT_USBH: get device desc
I (9324) IOT_USBH: get device desc, actual_num_bytes:26
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0xef
bDeviceSubClass 0x2
bDeviceProtocol 0x1
bMaxPacketSize0 64
idVendor 0x2c7c
idProduct 0x6026
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
I (9353) IOT_USBH: get short config desc
I (9358) IOT_USBH: get config desc, actual_num_bytes:16
I (9363) IOT_USBH: get full config desc
I (9368) IOT_USBH: get full config desc, actual_num_bytes:204
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 196
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
bMaxPower 500mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0xe0
bFunctionSubClass 0x1
bFunctionProtocol 0x3
iFunction 5
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 0
        bAlternateSetting 0
        bNumEndpoints 1
        bInterfaceClass 0xe0
        bInterfaceSubClass 0x1
        bInterfaceProtocol 0x3
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x87   EP 7 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 1
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xa
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x83   EP 3 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xc    EP 12 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 2
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x82   EP 2 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xb    EP 11 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 3
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 11
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x89   EP 9 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x86   EP 6 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xf    EP 15 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 4
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 11
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x88   EP 8 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 16
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x81   EP 1 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0xa    EP 10 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
I (9650) IOT_USBH: Set Device Configuration = 1
I (9656) IOT_USBH: Set Device Configuration Done
I (9661) IOT_USBH: Pipe init succeed, addr: 81
I (9666) IOT_USBH: Pipe init succeed, addr: 0A
I (9671) USB_HCDC: CDC Device Connected
I (9676) esp-modem: --------- Modem PreDefined Info ------------------
I (9683) esp-modem: Model: User Defined
I (9687) esp-modem: Modem itf: IN Addr:0x81, OUT Addr:0x0A
I (9694) esp-modem: ----------------------------------------------------
I (9701) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (9710) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (9720) USB_HCDC: rx0 flush -0 = 0
I (9721) 4g_main: Modem Board Event: USB connected
I (9721) modem_board: DTE reconnect, reconnecting ...

I (10735) modem_board: reconnect after 5s...
I (11735) modem_board: reconnect after 4s...
I (12735) modem_board: reconnect after 3s...
I (13735) modem_board: reconnect after 2s...
I (14735) modem_board: reconnect after 1s...
I (14735) modem_board: Modem state STAGE_SYNC, Start
I (14748) USB DTE: data : AT


E (14748) esp-modem-dte: esp_dte_handle_line(82): handle line failed
I (14748) USB DTE: data : OK


I (14759) USB DTE: data : ATE1


E (14759) esp-modem-dte: esp_dte_handle_line(82): handle line failed
I (14763) USB DTE: data : OK


I (14783) USB DTE: data : AT&W


E (14783) esp-modem-dte: esp_dte_handle_line(82): handle line failed
I (14783) USB DTE: data : OK


I (14787) modem_board: Network Auto reconnecting ...
W (14793) 4g_main: Modem Board Event: Network disconnected
I (14793) modem_board: Modem state STAGE_SYNC, Success!
I (14905) modem_board: Modem state STAGE_CHECK_SIM, Start
I (14911) USB DTE: data : AT+CPIN?


I (14911) USB DTE: data : +CPIN: READY


I (14913) USB DTE: data :
OK


I (14914) modem_board: SIM Card Ready
I (14918) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (14918) 4g_main: Modem Board Event: SIM Card Connected
I (15025) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (15031) USB DTE: data : AT+CSQ


I (15031) USB DTE: data : +CSQ: 17,99


I (15033) USB DTE: data :
OK


I (15034) modem_board: Signal quality: rssi=17, ber=99
I (15039) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (15146) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (15152) USB DTE: data : AT+COPS?


E (15153) esp-modem-dte: esp_dte_handle_line(82): handle line failed
I (15153) USB DTE: data : +COPS: 0,2,"40445",7


I (15159) DCE_COMMANDS: Trace : 7::"40445"
I (15164) USB DTE: data :
OK


I (15168) modem_board: Network registed, Operator: "40445"
I (15174) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (15280) modem_board: Modem state STAGE_START_PPP, Start
I (15287) USB DTE: data : AT+CGDCONT=1,"IP","airtelgprs.com"


E (15287) esp-modem-dte: esp_dte_handle_line(82): handle line failed
I (15290) USB DTE: data : OK


I (15342) USB DTE: data : ATD*99***1#
CONNECT


I (15342) modem_board: Modem state STAGE_START_PPP, Success!
W (15343) modem_board: Modem event! 0
I (15443) modem_board: Modem state STAGE_WAIT_IP, Start
I (15609) esp-netif_lwip-ppp: Connected
I (15609) modem_board: IP event! 6
I (15609) modem_board: Modem Connected to PPP Server
I (15612) modem_board: ppp ip: 10.38.64.186, mask: 255.255.255.255, gw: 10.64.64.64
I (15621) modem_board: Main DNS: 59.144.144.106
I (15626) modem_board: Backup DNS: 203.145.160.5
I (15631) esp-modem-netif: PPP state changed event 0: (NETIF_PPP_ERRORNONE)
I (15631) modem_board: Modem state STAGE_WAIT_IP, Success!
I (15639) 4g_main: Modem Board Event: Network connected
I (15651) pp: pp rom version: e7ae62f
I (15655) net80211: net80211 rom version: e7ae62f
I (15662) wifi:wifi driver task: 3fcbf14c, prio:23, stack:6656, core=0
I (15672) wifi:wifi firmware version: b2f1f86
I (15673) wifi:wifi certification version: v7.0
I (15675) wifi:config NVS flash: enabled
I (15679) wifi:config nano formating: disabled
I (15683) wifi:Init data frame dynamic rx buffer num: 32
I (15688) wifi:Init management frame dynamic rx buffer num: 32
I (15693) wifi:Init management short buffer num: 32
I (15698) wifi:Init dynamic tx buffer num: 32
I (15702) wifi:Init static tx FG buffer num: 2
I (15706) wifi:Init static rx buffer size: 1600
I (15711) wifi:Init static rx buffer num: 10
I (15714) wifi:Init dynamic rx buffer num: 32
I (15719) wifi_init: tcpip mbox: 32
I (15723) wifi_init: udp mbox: 6
I (15727) wifi_init: tcp mbox: 6
I (15731) wifi_init: tcp tx win: 5744
I (15735) wifi_init: tcp rx win: 5744
I (15739) wifi_init: tcp mss: 1440
I (15743) wifi_init: WiFi IRAM OP enabled
I (15748) wifi_init: WiFi RX IRAM OP enabled
I (15753) wifi_init: LWIP IRAM OP enabled
I (15758) phy_init: phy_version 601,fe52df4,May 10 2023,17:26:54
I (15794) wifi:mode : softAP (dc:54:75:d6:48:ed)
I (15796) wifi:Total power save buffer number: 16
I (15797) wifi:Init max length of beacon: 752/752
I (15797) wifi:Init max length of beacon: 752/752
I (15801) modem_wifi: Wi-Fi AP started
I (15802) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (15820) wifi:Total power save buffer number: 16
I (15821) modem_wifi: softap ssid: esp_4g_router password: 12345678
I (15822) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (15835) modem_wifi: ap dns addr(default): 8.8.8.8
I (15841) 4g_main: Initializing SNTP
I (15845) 4g_main: Waiting for system time to be set... (1/10)
I (17217) 4g_main: Notification of a time synchronization event
I (17851) gpio: GPIO[21]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (17851) BYTEBEAM_SDK: Using provided device config data !
I (17856) BYTEBEAM_SDK: The uri  is: mqtts://cloud.bytebeam.io:8883

I (17863) BYTEBEAM_SDK: [APP] Free memory: 200860 bytes
I (17869) BYTEBEAM_SDK: Device contains factory Firmware

I (17875) BYTEBEAM_SDK: Bytebeam Client Initialized !!
I (17881) BYTEBEAM_SDK: Other event id:7
I (17887) BYTEBEAM_SDK:
Status to send:
[{
                "timestamp":    1718454173552,
                "sequence":     1,
                "Reset_Reason": "Power On Reset",
                "Uptime":       17885,
                "Status":       "Device is Up!",
                "Software_Type":        "toggle-led-app",
                "Software_Version":     "1.0.0",
                "Hardware_Type":        "Byte0",
                "Hardware_Version":     "rev1"
        }]

I (17914) BYTEBEAM_SDK: Topic is /tenants/pradeeptest/devices/3/events/device_shadow/jsonarray
I (19046) BYTEBEAM_SDK: MQTT_EVENT_CONNECTED
I (19047) BYTEBEAM_SDK: MQTT SUBSCRIBED!! Msg ID:18349
I (19049) BYTEBEAM_SDK: sent publish successful, msg_id=28214, message:[{
                "timestamp":    1718454173552,
                "sequence":     1,
                "Reset_Reason": "Power On Reset",
                "Uptime":       17885,
                "Status":       "Device is Up!",
                "Software_Type":        "toggle-led-app",
                "Software_Version":     "1.0.0",
                "Hardware_Type":        "Byte0",
                "Hardware_Version":     "rev1"
        }]
I (19076) BYTEBEAM_SDK: Bytebeam Client started !!
I (19082) 4g_main: changed: ap dns addr (auto): 59.144.144.106
I (19088) 4g_main: Ping addr 8.8.8.8 Restart..
I (19094) 4g_main: Counter : 1

I (19124) BYTEBEAM_SDK: MQTT_EVENT_SUBSCRIBED, msg_id=18349
I (19203) BYTEBEAM_SDK: MQTT_EVENT_PUBLISHED, msg_id=28214
I (20097) 4g_main: Ping addr 8.8.8.8 Restart..
I (20097) 4g_main: Counter : 2

W (21094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (21097) 4g_main: Ping addr 8.8.8.8 Restart..
I (21097) 4g_main: Counter : 3

I (22097) 4g_main: Ping addr 8.8.8.8 Restart..
I (22097) 4g_main: Counter : 4

W (23094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (23097) 4g_main: Ping addr 8.8.8.8 Restart..
I (23097) 4g_main: Counter : 5

I (24097) 4g_main: Ping addr 8.8.8.8 Restart..
I (24097) 4g_main: Counter : 6

W (25094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (25097) 4g_main: Ping addr 8.8.8.8 Restart..
I (25097) 4g_main: Counter : 7

I (26097) 4g_main: Ping addr 8.8.8.8 Restart..
I (26097) 4g_main: Counter : 8

W (27094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (27097) 4g_main: Ping addr 8.8.8.8 Restart..
I (27097) 4g_main: Counter : 9

I (28097) 4g_main: Ping addr 8.8.8.8 Restart..
I (28097) 4g_main: Counter : 10

W (29094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (29097) 4g_main: Ping addr 8.8.8.8 Restart..
I (29097) 4g_main: Counter : 11

I (30097) 4g_main: Ping addr 8.8.8.8 Restart..
I (30097) 4g_main: Counter : 12

W (31094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (31097) 4g_main: Ping addr 8.8.8.8 Restart..
I (31097) 4g_main: Counter : 13

I (32097) 4g_main: Ping addr 8.8.8.8 Restart..
I (32097) 4g_main: Counter : 14

W (33094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (33097) 4g_main: Ping addr 8.8.8.8 Restart..
I (33097) 4g_main: Counter : 15

I (34097) 4g_main: Ping addr 8.8.8.8 Restart..
I (34097) 4g_main: Counter : 16

W (35094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (35097) 4g_main: Ping addr 8.8.8.8 Restart..
I (35097) 4g_main: Counter : 17

I (36097) 4g_main: Ping addr 8.8.8.8 Restart..
I (36097) 4g_main: Counter : 18

W (37094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (37097) 4g_main: Ping addr 8.8.8.8 Restart..
I (37097) 4g_main: Counter : 19

I (38097) 4g_main: Ping addr 8.8.8.8 Restart..
I (38097) 4g_main: Counter : 20

W (39094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (39097) 4g_main: Ping addr 8.8.8.8 Restart..
I (39097) 4g_main: Counter : 21

I (40097) 4g_main: Ping addr 8.8.8.8 Restart..
I (40097) 4g_main: Counter : 22

W (41094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (41097) 4g_main: Ping addr 8.8.8.8 Restart..
I (41097) 4g_main: Counter : 23

I (42097) 4g_main: Ping addr 8.8.8.8 Restart..
I (42097) 4g_main: Counter : 24

W (43094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (43097) 4g_main: Ping addr 8.8.8.8 Restart..
I (43097) 4g_main: Counter : 25

I (44097) 4g_main: Ping addr 8.8.8.8 Restart..
I (44097) 4g_main: Counter : 26

W (45094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (45097) 4g_main: Ping addr 8.8.8.8 Restart..
I (45097) 4g_main: Counter : 27

I (46097) 4g_main: Ping addr 8.8.8.8 Restart..
I (46097) 4g_main: Counter : 28

W (47094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (47097) 4g_main: Ping addr 8.8.8.8 Restart..
I (47097) 4g_main: Counter : 29

I (48097) 4g_main: Ping addr 8.8.8.8 Restart..
I (48097) 4g_main: Counter : 30

W (49094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (49097) 4g_main: Ping addr 8.8.8.8 Restart..
I (49097) 4g_main: Counter : 31

I (50097) 4g_main: Ping addr 8.8.8.8 Restart..
I (50097) 4g_main: Counter : 32

W (51094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (51097) 4g_main: Ping addr 8.8.8.8 Restart..
I (51097) 4g_main: Counter : 33

I (52097) 4g_main: Ping addr 8.8.8.8 Restart..
I (52097) 4g_main: Counter : 34

W (53094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (53097) 4g_main: Ping addr 8.8.8.8 Restart..
I (53097) 4g_main: Counter : 35

I (54097) 4g_main: Ping addr 8.8.8.8 Restart..
I (54097) 4g_main: Counter : 36

W (55094) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (55097) 4g_main: Ping addr 8.8.8.8 Restart..
I (55097) 4g_main: Counter : 37


@narangmayank
Copy link
Author

@leeebo at your end is it working fine ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants