Closed KeaganFerrao closed 1 year ago
do you get the same issue with the sample app or https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal?
Hello! I also have the same problem, and i use the sample app which you say ( https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal?) ,also get the same problem. how can i do? thanks~
which device are you using?
I've got this same issue. Randomly loses connection somehow and receives the same error. When trying with the sample app I receive no response. Trying to sen BREAK results in "BREAK failed: controlTransfer failed".
Any suggestions? :)
which device are you using?
I'm using a Pixel 6 Pro
which USB device type are you using?
I'm using USB-C on both ends.
which device type (ftdi, pl2303, cdc, ...) are you using?
Ohh, sorry... It's CDC :)
does your CDC device read the data you write? I observed timeout errors, when data cannot be written, very likely due to some buffer being full on recieving side.
I doesn't seem lite the write succeeds, only that IOException is thrown. I've verified that the connection is available with proper port, but it fails during write.
Often this issue is resolved by killing the app and re-connect together with starting the app again. (but not always)
The issue seems to occur when jumping between FTDI and CDC... :/
do you have connected FTDI and CDC devices at the same time, or does it work with FTDI without issues, and only when you change to CDC device you observe the issues?
No, switching between CDC and FTDI.. When using FTDI, https://ftdichip.com/drivers/d2xx-drivers/ is used with custom handling.
Switching cable to use CDC makes it sometimes throwing this error :/
does the issue also happen with FTDI and usb-serial-for-android library?
Full stack trace: java.io.IOException: Error writing 20 bytes at offset 0 of total 20 at com.hoho.android.usbserial.driver.CommonUsbSerialPort.write(CommonUsbSerialPort.java:248) at in.xtrememedia.controller.serialmanager.SerialCommand.fireSerialCommand(SerialCommand.java:634) at in.xtrememedia.controller.LEDMonitoringService.fireSerialCommand(LEDMonitoringService.java:532) at in.xtrememedia.controller.LEDMonitoringService.fireNextCommand(LEDMonitoringService.java:389) at in.xtrememedia.controller.LEDMonitoringService$1.run(LEDMonitoringService.java:412) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)