- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I noticed this strange behaviour for USBX CDC ACM:
it sometimes fails when "Write" less than 8 bytes.
You can test this from "snip/usbx_usb_device/usb_device_cdc_acm_read_write".
Go to "usb_device_app_cdc_acm_console_rw"
and in the infinite loop substitue the code with this...
actual_length=3;
cdc_acm_buffer[0]='a';
cdc_acm_buffer[1]='b';
cdc_acm_buffer[2]='c';
requested_length = actual_length;
wiced_rtos_delay_milliseconds(1);
status = ux_device_class_cdc_acm_write( cdc_acm, cdc_acm_buffer, requested_length, &actual_length );
Open terminal program (I use Tera Term) and receive this 3 bytes flux data.
I use USBPCap Wireshark to sniff USB communication.
You notice that sometimes USBX don't send the 3 bytes packet but send ZLP (zero length packet).
- Labels:
-
WICED Studio Wi-Fi Combo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
which is the device that you are using and what is version of wiced under question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
device = CYW943907AEVAL1F
WICED Version: Wiced_006.006.000.0009
54140c5acfaf45c86e7b06bba21685769d3e9cda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No...I'm still send not less than 8 bytes