esp32s2 与4g模块ml302 使用usb_cdc_4g_module例程
Posted: Tue Feb 22, 2022 8:32 am
请问esp32s2使用git上esp—iot—solution里面的usb_cdc_4g_module例程,与ml302搭配使用,发现usb port resetting failed,是有什么原因呢?
得到的log如下:
I (327) cpu_start: Starting scheduler on PRO CPU.
W (332) main: Force reset 4g board
I (336) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3851) main: ====================================
I (3851) main: ESP 4G Cat.1 Wi-Fi Router
I (3851) main: ====================================
I (3856) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3865) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3875) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3934) USB_HCDC: usb driver install succeed
I (3934) USB_HCDC: Waitting Device Connection
I (3964) USB_HCDC: USB Port=1 init succeed
I (3964) USB_HCDC: Waitting USB Connection
I (3964) USB_HCDC: Port power: ON
I (321265) USB_HCDC: line 263 HCD_PORT_EVENT_CONNECTION
I (321265) USB_HCDC: Resetting Port
E (321265) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:398 (_usb_port_reset):Port reset failed
E (321278) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:1048 (_usb_processing_task):Port Reset failed
W (321292) USB_HCDC: Resetting USB Driver
I (321297) USB_HCDC: hcd recovering
I (321351) USB_HCDC: Waitting USB Connection
I (321601) USB_HCDC: line 263 HCD_PORT_EVENT_CONNECTION
I (321601) USB_HCDC: Resetting Port
E (321601) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:398 (_usb_port_reset):Port reset failed
E (321613) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:1048 (_usb_processing_task):Port Reset failed
得到的log如下:
I (327) cpu_start: Starting scheduler on PRO CPU.
W (332) main: Force reset 4g board
I (336) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3851) main: ====================================
I (3851) main: ESP 4G Cat.1 Wi-Fi Router
I (3851) main: ====================================
I (3856) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3865) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3875) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3934) USB_HCDC: usb driver install succeed
I (3934) USB_HCDC: Waitting Device Connection
I (3964) USB_HCDC: USB Port=1 init succeed
I (3964) USB_HCDC: Waitting USB Connection
I (3964) USB_HCDC: Port power: ON
I (321265) USB_HCDC: line 263 HCD_PORT_EVENT_CONNECTION
I (321265) USB_HCDC: Resetting Port
E (321265) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:398 (_usb_port_reset):Port reset failed
E (321278) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:1048 (_usb_processing_task):Port Reset failed
W (321292) USB_HCDC: Resetting USB Driver
I (321297) USB_HCDC: hcd recovering
I (321351) USB_HCDC: Waitting USB Connection
I (321601) USB_HCDC: line 263 HCD_PORT_EVENT_CONNECTION
I (321601) USB_HCDC: Resetting Port
E (321601) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:398 (_usb_port_reset):Port reset failed
E (321613) USB_HCDC: C:/UE/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:1048 (_usb_processing_task):Port Reset failed