I have an Android application that receives serial data from a physical device. To simulate the device we are using Docklight. For some unknown reason, the data being sent by Docklight is being received in two parts. First I received one byte, then the rest of the byte array, meaning the listener function onNewData is being called twice for every sequence sent from Docklight.
It is important to note that the Android app has previously been tested as we also use another cable with a different chipset, for that we use a different usb-serial library, and everything works fine.
This is the code we are using to configure the serial port.
Hello guys,
I have an Android application that receives serial data from a physical device. To simulate the device we are using Docklight. For some unknown reason, the data being sent by Docklight is being received in two parts. First I received one byte, then the rest of the byte array, meaning the listener function
onNewData
is being called twice for every sequence sent from Docklight.It is important to note that the Android app has previously been tested as we also use another cable with a different chipset, for that we use a different usb-serial library, and everything works fine.
This is the code we are using to configure the serial port.
Am I missing anything?