why connect printer return code -5?
yzzshmily opened this issue · 1 comments
[73.275998] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
003.004 03f0:0e71 Unknown (Hewlett-Packard)
Protocol: (Defined at Interface level)
[73.268602] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() returned 258
Configuration 1:
[91.193903] [00001f84] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
--------------
[94.439749] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() for 2 HANDLEs with timeout in 100ms
Interface 0 alternate setting 0 (available endpoints: [0x04(4,OUT) 0x83(3,IN)])
Vendor Specific Class (Vendor Specific Subclass) Vendor Specific Protocol
[100.457755] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() returned 258
ep #4 OUT (address 0x04) bulk [512 bytes]
[101.865264] [00001f84] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[102.710782] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() for 2 HANDLEs with timeout in 100ms
ep #3 IN (address 0x83) bulk [512 bytes]
[104.202269] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() returned 258
--------------
[106.855681] [00001f84] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[107.629118] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() for 2 HANDLEs with timeout in 100ms
Interface 1 alternate setting 0 (available endpoints: [0x02(2,OUT) 0x81(1,IN)])
Printer (Printer) Bidirectional
[109.364188] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() returned 258
ep #2 OUT (address 0x02) bulk [512 bytes]
[110.560661] [00001f84] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
ep #1 IN (address 0x81) bulk [512 bytes]
[111.084987] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() for 2 HANDLEs with timeout in 100ms
--------------
[117.370625] [00001f84] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() returned 258
[119.755040] [00000114] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[119.760014] [00000114] libusb: debug [usbi_wait_for_events] WaitForMultipleObjects() for 2 HANDLEs with timeout in 100ms
[119.753190] [00002504] libusb: debug [libusb_open] open 3.4
[119.760708] [00002504] libusb: debug [libusb_open] open 3.4 returns -5
[143.661979] [00002504] libusb: debug [libusb_unref_device] destroy device 3.4
[143.662941] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.663352] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.663910] [00002504] libusb: debug [libusb_unref_device] destroy device 1.2
[143.664335] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.664566] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.664764] [00002504] libusb: debug [parse_endpoint] skipping descriptor 0x30
[143.665015] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.665263] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.665562] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.665814] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.666130] [00002504] libusb: debug [libusb_unref_device] destroy device 3.2
[143.666416] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.666663] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.666888] [00002504] libusb: debug [libusb_unref_device] destroy device 3.3
[143.667398] [00002504] libusb: debug [libusb_unref_device] destroy device 3.0
[143.667917] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.668225] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.668513] [00002504] libusb: debug [libusb_unref_device] destroy device 1.0
[143.668785] [00002504] libusb: debug [libusb_get_device_descriptor]
[143.669049] [00002504] libusb: debug [libusb_get_config_descriptor] index 0
[143.669335] [00002504] libusb: debug [parse_configuration] skipping descriptor 0xb
[143.670164] [00002504] libusb: debug [libusb_unref_device] destroy device 2.1
[143.670475] [00002504] libusb: debug [libusb_unref_device] destroy device 2.0
22-03-09 11:38:17 ERR device.go:51 > OpenDevices(): libusb: not found [code -5]
Sorry, there is not enough information in this question to make any meaningful attempt at answering. All the logs provided are from libusb and generally not relevant to gousb development.