eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
157 stars 92 forks source link

The ux_host_class_cdc_ecm not support process zero-length packet #26

Closed zxslzx closed 3 years ago

zxslzx commented 3 years ago

On linux we can use URB_ZERO_PACKET flag, but usbx doesn't seem to support similar operations.

xiaocq2001 commented 3 years ago

Is there any special reason to use URB_ZERO_PACKET ? USBX binds NetX and all network operations are handled by NetX or triggered by NetX operations, so I don't thing the API can be exactly same as linux API.

zxslzx commented 3 years ago

Is there any special reason to use URB_ZERO_PACKET ? USBX binds NetX and all network operations are handled by NetX or triggered by NetX operations, so I don't thing the API can be exactly same as linux API.

On Universal Serial Bus Communications Class Subclass Specification for Ethernet Control Model Devices Snipaste_2021-08-04_11-18-33 ECM120.pdf

xiaocq2001 commented 3 years ago

In USBX 6.1.4 the segmentation (ZLP) is already handled.

zxslzx commented 3 years ago

I saw it, thank you very much

In USBX 6.1.4 the segmentation (ZLP) is already handled.

I saw it, thank you very much