- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am checking USB Device CDC funciton on CWY943907AEVAL1F. I use WICED-Studio-6.2.
I modified the snip.usbx_usb_device.usb_device_cdc_acm_read_write to send data from device to host.
I called ux_device_class_cdc_acm_write function like below.
I connected the device to PC(USB Host).
The case '1' is OK, but in case '2' the transmission is not done as expected.
Is there a limit on the size of one transmission?
'1'
for (int i = 0; i < 1000; i++) {
ux_device_class_cdc_acm_write( cdc_acm, tempbuf, 256, &actual_length ); // OK
}
'2'
for (int i = 0; i < 1000; i++) {
ux_device_class_cdc_acm_write( cdc_acm, tempbuf, 512, &actual_length ); // NG
}
'3'
for (int i = 0; i < 1000; i++) {
ux_device_class_cdc_acm_write( cdc_acm, tempbuf, 511, &actual_length ); // OK
}
Solved! Go to Solution.
- Labels:
-
WICED Studio
-
Wireless MCU
- Tags:
- usb device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Sir,
This is a known issue in WICED which will be fixed in the next release. I will update the thread when the fix is available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Sir,
This is a known issue in WICED which will be fixed in the next release. I will update the thread when the fix is available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your information.
I ’m looking forward to updating WICED.