Open imbichitra opened 4 years ago
Yes, It does.
I too encountered this issue while impending multi port example for my requirements. I root caused this issue till usb read function thread. If we use any of inputStream or syncRead in read thread then the app hangs. Just try to comment this read function call, the hang issue goes away. I was unable to get any log during the hang even when I had got strict thread rules enabled for 100% adb logging.
Update: Further I root caused the issue to read timeout. By default, both inputStream & syncRead use infinite timeout with value zero. This is having some problem internally within the library which the developer has to take care. Currently, I'm no longer seeing this hang issue by manually setting timeout to some constant value.
@Shreyas-R How to solve this problem specifically?Can You show me how your code works?, thank you
HI all developer of UsbSerial i am integrating examplemultipleports for communicating two port the connection and communication with device work fine, but when the user kill the app in middle and open it second time the app is going to hang state just display a white screen , and when i disconnect the Usb and reconnect the device it work fine.
Please help me to solve this problem.