From Queen Bongo, 1 Year ago, written in Plain Text.
  1. Cant find the "device(s)" in /dev/usb*
  2.  
  3. From logfile:
  4.  
  5. USB_ModeSwitch log from Tue May  09 22:29:02 UTC 2017
  6.  
  7. Use global config file: /etc/usb_modeswitch.conf
  8.  
  9. Started via systemd
  10. Raw args from udev: _1-1.5
  11.  
  12. Use top device dir /sys/bus/usb/devices/1-1.5
  13. Check class of first interface ...
  14.  Interface 0 class is 08.
  15.  
  16. ----------------
  17. USB values from sysfs:
  18.   manufacturer  D-Link,Inc
  19.   product       D-Link DWM-157
  20.   serial        536512508581240
  21. ----------------
  22. ConfigList: /usr/share/usb_modeswitch/2001:a407
  23. SCSI attributes not needed, move on
  24. Check config: /usr/share/usb_modeswitch/2001:a407
  25. ! matched. Read config data
  26. Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
  27.  
  28. Device may have an MBIM configuration, check driver ...
  29.  driver for MBIM devices is available
  30. Find MBIM configuration number ...
  31.  No MBIM configuration found, switch to legacy modem mode
  32. Unbinding driver
  33. Command to be run:
  34. usb_modeswitch -W -D  -b 1 -g 12 -v 2001 -p a407 -f $flags(config)
  35.  
  36. Verbose debug output of usb_modeswitch and libusb follows
  37. (Note that some USB errors are to be expected in the process)
  38. --------------------------------
  39.  
  40. Read long config from command line
  41.  
  42.  * usb_modeswitch: handle USB devices with multiple modes
  43.  * Version 2.4.0 (C) Josua Dietze 2016
  44.  * Based on libusb1/libusbx
  45.  
  46.  ! PLEASE REPORT NEW CONFIGURATIONS !
  47.  
  48. DefaultVendor=  0x2001
  49. DefaultProduct= 0xa407
  50. TargetVendor=   0x2001
  51. TargetProduct=  0x7d0e
  52.  
  53. StandardEject=1
  54. System integration mode enabled
  55.  
  56. Use given bus/device number: 001/012 ...
  57. Look for default devices ...
  58.  bus/device number matched
  59.   found USB ID 2001:a407
  60.    vendor ID matched
  61.    product ID matched
  62.  Found devices in default mode (1)
  63. Get the current device configuration ...
  64. Current configuration number is 1
  65. Use interface number 0
  66. Use endpoints 0x01 (out) and 0x81 (in)
  67.  
  68. USB description data (for identification)
  69. -------------------------
  70. Manufacturer: D-Link,Inc
  71.      Product: D-Link DWM-157
  72.   Serial No.: 536512508581240
  73. -------------------------
  74. Sending standard EJECT sequence
  75. Looking for active driver ...
  76.  No active driver found. Detached before or never attached
  77. Set up interface 0
  78. Use endpoint 0x01 for message sending ...
  79. Trying to send message 1 to endpoint 0x01 ...
  80.  OK, message successfully sent
  81. Read the response to message 1 (CSW) ...
  82.  Response successfully read (13 bytes), status 1
  83. Trying to send message 2 to endpoint 0x01 ...
  84.  OK, message successfully sent
  85. Read the response to message 2 (CSW) ...
  86.  Response successfully read (13 bytes), status 1
  87. Trying to send message 3 to endpoint 0x01 ...
  88.  OK, message successfully sent
  89. Read the response to message 3 (CSW) ...
  90.  Response reading failed (error -1)
  91.  Device is gone, skip any further commands
  92. ok:busdev
  93. --------------------------------
  94. (end of usb_modeswitch output)
  95.  
  96. Check success of mode switch for max. 20 seconds ...
  97.  Read attributes ...
  98.  All attributes matched
  99. Mode switching was successful, found 2001:7d0e (D-Link,Inc: D-Link DWM-157)
  100. Logger is /usr/bin/logger
  101. Now check for bound driver ...
  102.  driver has bound, device is known
  103. Check for AVOID_RESET_QUIRK kernel attribute
  104.  AVOID_RESET_QUIRK activated
  105.  
  106. All done, exit
  107.  
  108.  
  109.  
  110.                                                                      
captcha