Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected mobile reboot on serialUsb reconnect #2

Open
buttairfly opened this issue Jan 19, 2016 · 0 comments
Open

unexpected mobile reboot on serialUsb reconnect #2

buttairfly opened this issue Jan 19, 2016 · 0 comments
Labels

Comments

@buttairfly
Copy link
Contributor

The serial connection via USB has a major bug on some of the tested mobiles:
Samsung Galaxy S2
Modelnumber: GT19100
Android: 4.1.2
ROM: XWMS2 NeatROM v5.6
Kernel-Version: 3.0.31-1484249

At the end of the first connection, in the UsbSerial::close() function:
usbConnection.releaseInterface(usbInterface) returns false. This means the claiming of the usbInterface could not be freed. In the next attempt to connect to the usbDevice, no fail is detected during setup but when in UsbSerial::receive() function the usbConnection.bulkTransfer(...) is executed, the mobile reboots.

It does not happen, if the Usb cable gets unplugged and replugged again.
It does happen on the second try to connect to usb (while connecting to usb is possible -> no other error is detected). Inbetween it is possible to connect via bluetooth without any problems.

@buttairfly buttairfly added the bug label Jan 19, 2016
buttairfly pushed a commit that referenced this issue Jan 19, 2016
cleaned code
removed toasts
opened issues:
#3
#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant