Transmitting binary data throught ttyACM
<p>Good afternoon,</p>

<p>I have a peripheral device which communicates over usb over virtual serial port. Everything works well under Windows with generic ACM serial driver, for example with: <a href="https://www.kernel.org/doc/Documentation/usb/linux-cdc-acm.inf" rel="nofollow">https://www.kernel.org/doc/Documentation/usb/linux-cdc-acm.inf</a></p>

<p>Under Linux, it uses CDC ACM drivers. Everything in sys logs seems to work ok, but communication is behaving strangely. When I connect the device, about 10 bytes at the begining of communication are lost. Next, just each second command is received ok.</p>

<p>My questions are:
1) Communication protocol of this device doesn't use ASCII, it is binary (it can randomly contain control characters etc...). Should I use stty for configuring just speed, data bits, stop bits and parity, or something more is necessary to be set up for binary communication? (To ignore control bits in kernel and transmit every byte - raw data.)</p>

<p>2) Any idea, how to test if linux ACM drivers works properly, or which another drivers should i try for my CDC ACM device?</p>

<p>Thanks for any idea!</p>