Advertisement
Guest User

Untitled

a guest
Aug 19th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. Take all parameters from the command line
  2.  
  3.  
  4. * usb_modeswitch: handle USB devices with multiple modes
  5. * Version 2.0.1 (C) Josua Dietze 2013
  6. * Based on libusb1/libusbx
  7.  
  8. ! PLEASE REPORT NEW CONFIGURATIONS !
  9.  
  10. DefaultVendor= 0x12d1
  11. DefaultProduct= 0x1505
  12. HuaweiMode=1
  13. NeedResponse=0
  14.  
  15. InquireDevice enabled (default)
  16.  
  17. Look for default devices ...
  18. found USB ID 8087:0020
  19. found USB ID 1d6b:0002
  20. found USB ID 0461:4db6
  21. found USB ID 12d1:1505
  22. vendor ID matched
  23. product ID matched
  24. found USB ID 138a:0007
  25. found USB ID 03f0:231d
  26. found USB ID 8087:0020
  27. found USB ID 1d6b:0002
  28. Found devices in default mode (1)
  29. Access device 005 on bus 001
  30. Get the current device configuration ...
  31. OK, got current device configuration (1)
  32. Use interface number 0
  33. Use endpoints 0x08 (out) and 0x87 (in)
  34. Inquire device details; driver will be detached ...
  35. Looking for active driver ...
  36. OK, driver detached
  37. INQUIRY message failed (error -9)
  38.  
  39. USB description data (for identification)
  40. -------------------------
  41. Manufacturer: HUA?WEI TECHNOLOGIES
  42. Product: HUAWEI Mobile
  43. Serial No.: ???????????????????
  44. -------------------------
  45. Send old Huawei control message ...
  46. -> Run lsusb to note any changes. Bye!
  47.  
  48. lsusb
  49.  
  50. cd /etc/usb_modeswitch.d
  51.  
  52. sudo gedit
  53.  
  54. DefaultVendor= 0x12d1
  55. DefaultProduct=0x1505
  56.  
  57. MessageContent="55534243123456780000000000000011062000000100000000000000000000"
  58.  
  59. sudo usb_modeswitch -I -W -c 12d1:1505
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement