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

Problem with Virtual Com Port

Hi all!
I try to implement a Virtual Com Port with eval board MCBSTM32. I started with the HID example provided in the download area.
There are two interfaces: I0: bulk in + bulk out with max. packet size = 64k, I1: interrupt in

So far everything works fine: I can connect my device to host and open Com port with TeraTerm.
Additionally I can write data to host (less or more than maxPacketSize=64k) and also receive one byte. But after the first transmission (in both directions) usb does not seem to work any more, i.e. ISR for bulk(in)-endpoint is not called when I write data to it.

Any help would be appreciated.

Parents
  • Andi;
    Two quick suggestions.
    One: Search this forum for more information on MaxPacketSize.
    Two: Look at Zero Length Packet (ZLP). Windows HID always looks for a complete packet as defined in the descriptor file. If you send less than a full packet, then you need to tell Win HID that the small packet is complete. This is the purpose of the ZLP.

    Bradford

Reply
  • Andi;
    Two quick suggestions.
    One: Search this forum for more information on MaxPacketSize.
    Two: Look at Zero Length Packet (ZLP). Windows HID always looks for a complete packet as defined in the descriptor file. If you send less than a full packet, then you need to tell Win HID that the small packet is complete. This is the purpose of the ZLP.

    Bradford

Children