onkar260193
Lurker
Hi ,
I am currently working on a project where i am using android open accessory protocol to communicate android tablet with the external micro-controller. I am using FT311d(FTDI) chip for UART to USB conversion . The basic working setup of project is that ,there is an android application which continuously after every 1 sec will be sending a data sequence acting as REQUEST string to micro-controller and in response, the micro-controller sends out a data of size 2KB called as RESPONSE string . This RESPONSE string data will be read inside the android application using FileInputStream's read() api and displayed in a text-view. This setup has to run continuously.
Now the problem is that sometimes while reading , the data loss of 64 or 128 bytes is observed in the android application. I have tried tapping both the UART and USB lines of the FT311d chip to check for data loss ,but the data seems to be proper there. The application behavior changes with respect to tablet too, when testing the application running with the baud rate of 38400 on Samsung JMax the data loss is very rare (or not observed even after two days of continuous run) but on the contrary while running the same application on Lenovo Phab the loss is observed quite frequently like once within 20 minutes. So i just need to know what is the reason behind this data loss.
Thanks.
I am currently working on a project where i am using android open accessory protocol to communicate android tablet with the external micro-controller. I am using FT311d(FTDI) chip for UART to USB conversion . The basic working setup of project is that ,there is an android application which continuously after every 1 sec will be sending a data sequence acting as REQUEST string to micro-controller and in response, the micro-controller sends out a data of size 2KB called as RESPONSE string . This RESPONSE string data will be read inside the android application using FileInputStream's read() api and displayed in a text-view. This setup has to run continuously.
Now the problem is that sometimes while reading , the data loss of 64 or 128 bytes is observed in the android application. I have tried tapping both the UART and USB lines of the FT311d chip to check for data loss ,but the data seems to be proper there. The application behavior changes with respect to tablet too, when testing the application running with the baud rate of 38400 on Samsung JMax the data loss is very rare (or not observed even after two days of continuous run) but on the contrary while running the same application on Lenovo Phab the loss is observed quite frequently like once within 20 minutes. So i just need to know what is the reason behind this data loss.
Thanks.