-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
I'm unable to access the USB device connected to Android.
According to dmesg the USB device is attached as "1-1.4", but the app is unable to parse it.
And if binding to "1-1" a strange error occurs I don't understand.
Client: Windows 10 Pro x64 with usbip v0.3.5
First attempt
C:\usbip-win>usbip --debug attach -r 192.168.35.10 -b 1-1
usbip: debug: usbip.c:151:[run_command] running command: attach
usbip: debug: usbip_network.c:175:[usbip_net_recv_op_common] request failed: status: ST_NA
usbip: debug: usbip_attach.c:142:[query_import_device] failed to recv common header: ERR_STATUS
usbip: debug: usbip_attach.c:144:[query_import_device] op code error: ST_NA
usbip: error: failed to attach
Second attempt
C:\usbip-win>usbip --debug attach -r 192.168.35.10 -b 1-1.4
usbip: debug: usbip.c:151:[run_command] running command: attach
usbip: debug: usbip_network.c:151:[usbip_net_recv_op_common] usbip_net_recv failed: -1
usbip: debug: usbip_attach.c:142:[query_import_device] failed to recv common header: ERR_NETWORK
usbip: error: failed to attach
On Debian Linux 9 client it looks similarly (tested with 1-1 and 1-1.4):
sudo usbip --debug attach -r 192.168.35.10 -b 1-1
usbip: debug: usbip.c:141:[run_command] running command: `attach'
usbip: debug: usbip_network.c:183:[usbip_net_recv_op_common] usbip_net_recv failed: -1
usbip: error: recv op_common
usbip: error: query
Server: Android 9 (aarch64)
[Tue Nov 23 14:38:43 2021] usb 1-1.4: new full-speed USB device number 6 using xhci-hcd
[Tue Nov 23 14:38:43 2021] usb 1-1.4: Unsupported device
First attempt
2021-11-23 14:40:55.396 9863-9900/org.cgutman.usbipserverforandroid I/System.out: Server listening on 3240
2021-11-23 14:41:14.139 9863-9904/org.cgutman.usbipserverforandroid I/System.out: In code: 0x8003
2021-11-23 14:41:14.141 9863-9904/org.cgutman.usbipserverforandroid I/System.out: Out code: 0x3
2021-11-23 14:41:14.148 9863-9904/org.cgutman.usbipserverforandroid I/System.out: Client disconnected
Second attempt
2021-11-23 14:46:52.304 10169-10169/? I/Zygote: seccomp disabled by setenforce 0
2021-11-23 14:46:52.370 10169-10187/org.cgutman.usbipserverforandroid I/System.out: Server listening on 3240
2021-11-23 14:47:13.439 10169-10199/org.cgutman.usbipserverforandroid I/System.out: In code: 0x8003
2021-11-23 14:47:13.440 10169-10199/org.cgutman.usbipserverforandroid E/AndroidRuntime: FATAL EXCEPTION: Thread-3
Process: org.cgutman.usbipserverforandroid, PID: 10169
java.lang.NumberFormatException: For input string: "1.4"
at java.lang.Integer.parseInt(Integer.java:615)
at java.lang.Integer.parseInt(Integer.java:650)
at org.cgutman.usbip.service.UsbIpService.busIdToDevNum(UsbIpService.java:271)
at org.cgutman.usbip.service.UsbIpService.busIdToDeviceId(UsbIpService.java:275)
at org.cgutman.usbip.service.UsbIpService.getDevice(UsbIpService.java:626)
at org.cgutman.usbip.service.UsbIpService.attachToDevice(UsbIpService.java:647)
at org.cgutman.usbip.server.UsbIpServer.handleRequest(UsbIpServer.java:50)
at org.cgutman.usbip.server.UsbIpServer.access$000(UsbIpServer.java:18)
at org.cgutman.usbip.server.UsbIpServer$1.run(UsbIpServer.java:114)
Any ideas? Thank you.
Metadata
Metadata
Assignees
Labels
No labels