mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.81k stars 1.58k forks source link

Receiving bytes in wrong order or replaced bytes #506

Closed Sir-Ask-A-Lot closed 11 months ago

Sir-Ask-A-Lot commented 1 year ago

Hi,

Sometimes a byte I receive is replaced, by what appears to be a 'double' byte, for example I receive '... 31 00 00 00 78 ...' instead of '... 31 36 00 00 78 ...'. Do you have any idea why this could be the case?

I am using using the CdcAcmSerialDriver for the Device I am connecting. If I connect this device to a Windows PC the Cdc-driver is also used, I detect no problems when using Windows.

kai-morich commented 1 year ago

if the serial device is powered over USB, it might work less stable when powered by the Android device

Sir-Ask-A-Lot commented 1 year ago

I now have the device powered from a different source, with enough juice, but the problem still remains.

Sir-Ask-A-Lot commented 9 months ago

It looks this is a Linux driver problem.