AnsweredAssumed Answered

USB CDC host receiving unsolicited data from a device

Question asked by Tarik Aweimrin on Dec 9, 2014
Latest reply on Dec 11, 2014 by Tarik Aweimrin

I have 2 KL26Z micros talking to each other, one is the host and the other is a CDC device.  I am using the USB stack 4.1.1 I can use the serial_write and serial_read functionality from the host to send and receive data from the device when I know that the device is sending data.  How do I determine if the device has sent unexpected data that needs to be read and the amount of data sent by the device to read?  Is there a flag set somewhere or a callback that I haven't been able to find yet?

Any help would be appreciated.