diff --git a/Troubleshooting.mediawiki b/Troubleshooting.mediawiki index d515161..b3bf1c7 100644 --- a/Troubleshooting.mediawiki +++ b/Troubleshooting.mediawiki @@ -46,7 +46,7 @@ For example, to receive a 100 byte string, you might read 64 bytes, then 36 byte * Newline-terminated messages: Read until you see a \n (or any other "terminal" character). -== I observed read ''data loss'' with continuous transfer at high baud rates == +== I observed read data loss with continuous transfer at high baud rates == Android is not a real time OS. The thread responsible for receiving data might not be scheduled by the OS or garbage collection might be ongoing or … Therefore data loss can happen for continues read at high baud rates. If data is lost, typically some smaller fragments in the middle of the data are missing. @@ -55,7 +55,7 @@ This effect is more likely for slower Android device and USB devices with smalle Using a higher thread priority (default for SerialInputOutputManager since ''usb-serial-for-android v3.1.0'') and offloading work from onNewData to other threads can mitigates the issue. -''Data loss'' can also occur with inappropriate buffer size, as shown in next Question. +Data loss can also occur with inappropriate buffer size, as shown in next Question. == How to size the read buffer? ==