ESP32S2 USB HOST CDC 4G urb status: data overflow问题

Moderator: ESP_Bob

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

ESP32S2 USB HOST CDC 4G urb status: data overflow问题

Postby X二X二X二X » Thu Nov 10, 2022 2:59 am

I (5168) 4g_main: ====================================
I (5169) 4g_main: ESP 4G Cat.1 Wi-Fi Router
I (5169) 4g_main: ====================================
W (5174) modem_board: Force reset modem
I (5179) gpio: GPIO[41]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
W (5188) modem_board: Resetting modem using io=41, level=1
W (5394) modem_board: Waiting for modem initialize ready
I (10425) ESP_USBH: USB Port=1 init succeed, fifo strategy=0
I (10426) ESP_USBH: usb port start succeed
I (10426) USB_HCDC: usb driver install succeed
I (10431) USB_HCDC: Waiting CDC Device Connection
I (10436) USB_HCDC: CDC task start
I (10440) ESP_USBH: USB Processing Start
I (10445) ESP_USBH: Waiting USB Connection
I (10450) ESP_USBH: Port power: ON Succeed
I (22534) ESP_USBH: line 144 PORT_EVENT_CONNECTION
I (22634) ESP_USBH: Resetting Port
I (22694) ESP_USBH: Port reset succeed
I (22694) ESP_USBH: Getting Port Speed
I (22695) ESP_USBH: USB Speed: full-speed
I (22697) ESP_USBH: Pipe init succeed, addr: 00
I (22702) ESP_USBH: Set Device Addr = 1
I (22707) ESP_USBH: Set Device Addr Done
I (22711) ESP_USBH: get device desc
E (22717) ESP_USBH: D:/PROJECT/ESP32/esp-iot-solution/components/usb/esp_usbh/esp_usbh.c:790 (_usbh_get_dev_desc):urb status: data overflow
I (22728) ESP_USBH: get short config desc
E (22734) ESP_USBH: D:/PROJECT/ESP32/esp-iot-solution/components/usb/esp_usbh/esp_usbh.c:838 (_usbh_get_config_desc):urb status: data overflow
I (22746) ESP_USBH: Set Device Configuration = 1
I (22752) ESP_USBH: Set Device Configuration Done
I (22758) ESP_USBH: Pipe init succeed, addr: 81
I (22762) ESP_USBH: Pipe init succeed, addr: 0A
I (22768) USB_HCDC: CDC Device Connected
I (22773) esp-modem: --------- Modem PreDefined Info ------------------
I (22779) esp-modem: Model: A7600C1
I (22784) esp-modem: Modem itf: IN Addr:0x81, OUT Addr:0x0A
I (22790) esp-modem: ----------------------------------------------------
I (22798) gpio: GPIO[41]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (22809) USB_HCDC: rx0 flush -0 = 0
W (22811) USB_HCDC: Itf:0 ep: 0x0A PIPE_EVENT_ERROR_XFER
I (22817) modem_board: DTE reconnect, reconnecting ...
urb.png
urb.png (61.24 KiB) Viewed 5416 times
打印测试num_bytes字节实际是72B,比后面结构体大所以报警,应该是USB setup 返回的描述信息吧
这个应该如何解决?
原来USB 4G测试没问题的。

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

Re: ESP32S2 USB HOST CDC 4G urb status: data overflow问题

Postby X二X二X二X » Thu Nov 10, 2022 7:54 am

如果屏掉以上两条,连接没有问题。有数据流时
E (56664) ESP_USBH: D:/PROJECT/ESP32/esp-iot-solution/components/usb/esp_usbh/esp_usbh.c:711 (esp_usbh_urb_enqueue):invalid usb state

ESP_Bob
Posts: 80
Joined: Fri Nov 27, 2020 12:52 pm

Re: ESP32S2 USB HOST CDC 4G urb status: data overflow问题

Postby ESP_Bob » Thu Nov 10, 2022 11:53 am

实际获取到的描述符,大于了预期,所以报错。可能这个模块的向下兼容有点问题?

传输有问题,可能端点地址配置不正确。需要先把描述符打出来,查一下正确的端点地址

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

Re: ESP32S2 USB HOST CDC 4G urb status: data overflow问题

Postby X二X二X二X » Mon Nov 14, 2022 3:18 am

微信图片_20221114091233.jpg
微信图片_20221114091233.jpg (120.71 KiB) Viewed 5282 times

Who is online

Users browsing this forum: No registered users and 6 guests