lpcware

How to handle bulk In ZLP on LPC11U37 usbd_rom_cdc example code?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by liaochengyi on Mon Mar 24 23:25:54 MST 2014
Hi, Lpcware guys and all,

I have a  question about PC side app will hang with IOCTL_SERIAL_WAIT_ON_MASK

http://www.keil.com/forum/12298/

[color=#f00]If your host app is coded in VB, and it uses OnComm with RThreshold, you may need to send extra ZLP from the device side. This problem of IOCTL_SERIAL_WAIT_ON_MASK was seen on usbser.sys on this topic in USB-IF.[/color]

In above discussion, the device side need add handler of "ZLP just after the 64 bytes IN transfer".

May I ask, how to handle the bulk in ZLP on LPC11U37 usbd_rom_cdc example code?


The other question is :
the LPC11U37 usbd_rom_cdc example code also not handle the all Class-Specific Request Codes of CDC.

Is it need to complete it?

Thank you for your answer.
Best regards,
Chengyi

Outcomes