This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

VCOM End of transmission

Dear all,

I used the LPC1778 and I will sending data via USB CDC class. Sending a big amount of data from the device to the host is no problem. The Problem is that I don't be able to detect the end of an OUT transition. The device max packet length is 64 Byte and the host send 138 Byte in the best case the device will get three ISR with 64 + 64 + 10 Byte. How can I knew that the frame ends?

Parents
  • USB normally uses short - or empty - frames to report end of a message.

    But an important thing is that COM ports are stream devices. So there are no "end-of-file" in the carrier. So COM protocols that requires packet processing must introduce some framing information within the serial data to let the receiver know when it has a complete message.

Reply
  • USB normally uses short - or empty - frames to report end of a message.

    But an important thing is that COM ports are stream devices. So there are no "end-of-file" in the carrier. So COM protocols that requires packet processing must introduce some framing information within the serial data to let the receiver know when it has a complete message.

Children