Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.55 KB | None | 0 0
  1. Bus 002 Device 024: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
  2.  
  3. USB_ModeSwitch log from Fri Dec 5 22:52:36 2014
  4.  
  5. Use global config file: /etc/usb_modeswitch.conf
  6.  
  7.  
  8. Started via upstart
  9. Raw args from udev: /2-2
  10.  
  11. Bus ID for device not given by udev.
  12. Trying to determine it from kernel name (2-2) ...
  13. Use top device dir /sys/bus/usb/devices/2-2
  14.  
  15. USB dir exists: /sys/bus/usb/devices/2-2
  16. Warning: USB attribute "serial" not readable.
  17.  
  18. SCSI dir exists: /sys/bus/usb/devices/2-2
  19. Warning: SCSI attribute "vendor" not readable.
  20. Warning: SCSI attribute "model" not readable.
  21. Warning: SCSI attribute "rev" not readable.
  22. Use interface /sys/bus/usb/devices/2-2/2-2:1.0
  23. ----------------
  24. USB values from sysfs:
  25. idVendor 12d1
  26. idProduct 14fe
  27. manufacturer HUAWEI Technology
  28. product HUAWEI Mobile
  29. serial (null)
  30. bNumConfigurations 1
  31. ----------------
  32. bNumConfigurations is 1 - don't check for active configuration
  33. Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
  34. Searching entries named: /usr/share/usb_modeswitch/12d1:14fe*
  35. Searching overriding entries named: /etc/usb_modeswitch.d/12d1:14fe*
  36. SCSI attributes not needed, move on.
  37.  
  38. Extract config 12d1:14fe from collection /usr/share/usb_modeswitch/configPack.tar.gz
  39. config: TargetVendor set to 12d1
  40. config: TargetProduct set to 1506,150f,151d
  41. Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
  42. ! matched, now switching
  43. Command to be run:
  44. /usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1 -v 12d1 -p 14fe 2>&1
  45.  
  46. Verbose debug output of usb_modeswitch and libusb follows
  47. (Note that some USB errors are expected in the process)
  48. --------------------------------
  49.  
  50. Read config file: /run/usb_modeswitch/current_cfg
  51.  
  52. * usb_modeswitch: handle USB devices with multiple modes
  53. * Version 2.1.1 (C) Josua Dietze 2014
  54. * Based on libusb1/libusbx
  55.  
  56. ! PLEASE REPORT NEW CONFIGURATIONS !
  57.  
  58. DefaultVendor= 0x12d1
  59. DefaultProduct= 0x14fe
  60. TargetVendor= 0x12d1
  61. TargetProductList="1506,150f,151d"
  62. MessageContent="55534243123456780000000000000011062000000101000100000000000000"
  63. NeedResponse=0
  64. Success check enabled, max. wait time 20 seconds
  65. System integration mode enabled
  66.  
  67. Look for target devices ...
  68. found USB ID 12d1:14fe
  69. vendor ID matched
  70. found USB ID 1d6b:0002
  71. found USB ID 1d6b:0001
  72. found USB ID 046d:c05f
  73. found USB ID 1d6b:0001
  74. found USB ID 1d6b:0001
  75. found USB ID 1d6b:0002
  76. found USB ID 1d6b:0001
  77. found USB ID 1d6b:0001
  78. found USB ID 1d6b:0001
  79. No devices in target mode or class found
  80. Look for default devices ...
  81. found USB ID 12d1:14fe
  82. vendor ID matched
  83. product ID matched
  84. found USB ID 1d6b:0002
  85. found USB ID 1d6b:0001
  86. found USB ID 046d:c05f
  87. found USB ID 1d6b:0001
  88. found USB ID 1d6b:0001
  89. found USB ID 1d6b:0002
  90. found USB ID 1d6b:0001
  91. found USB ID 1d6b:0001
  92. found USB ID 1d6b:0001
  93. Found devices in default mode (1)
  94. Access device 027 on bus 002
  95. Use interface number 0
  96. Use endpoints 0x01 (out) and 0x81 (in)
  97.  
  98. USB description data (for identification)
  99. -------------------------
  100. Manufacturer: HUAWEI Technology
  101. Product: HUAWEI Mobile
  102. Serial No.: not provided
  103. -------------------------
  104. Looking for active driver ...
  105. OK, driver detached
  106. Set up interface 0
  107. Use endpoint 0x01 for message sending ...
  108. Trying to send message 1 to endpoint 0x01 ...
  109. OK, message successfully sent
  110. Reset response endpoint 0x81
  111. Could not reset endpoint (probably harmless): -99
  112. Reset message endpoint 0x01
  113. Could not reset endpoint (probably harmless): -4
  114. Device is gone, skip any further commands
  115.  
  116. Check for mode switch (max. 20 times, once per second) ...
  117. Search for target devices ...
  118. found USB ID 12d1:1506
  119. vendor ID matched
  120. product ID matched
  121. found USB ID 1d6b:0002
  122. found USB ID 1d6b:0001
  123. found USB ID 046d:c05f
  124. found USB ID 1d6b:0001
  125. found USB ID 1d6b:0001
  126. found USB ID 1d6b:0002
  127. found USB ID 1d6b:0001
  128. found USB ID 1d6b:0001
  129. found USB ID 1d6b:0001
  130.  
  131. Found target device, open it
  132.  
  133. Found target device 028 on bus 002
  134.  
  135. Target device description data
  136. -------------------------
  137. Manufacturer: HUAWEI Technology
  138. Product: HUAWEI Mobile
  139. Serial No.: not provided
  140. -------------------------
  141. Found correct target device
  142.  
  143. Mode switch succeeded. Bye!
  144.  
  145. ok:no_data
  146. --------------------------------
  147. (end of usb_modeswitch output)
  148. Check success of mode switch for max. 20 seconds ... Read attributes ...
  149. USB dir exists: /sys/bus/usb/devices/2-2
  150. Warning: USB attribute "serial" not readable.
  151. All attributes matched
  152. Mode switching was successful, found 12d1:1506 (HUAWEI Technology: HUAWEI Mobile)Now check for bound driver ...
  153. no driver has bound to interface 0 yet
  154. Device not in "bind_list" yet, bind it now
  155. Module loader is /sbin/modprobe
  156. Module is active already
  157. Try to add ID to driver "option"
  158. ID added to driver; check for new devices in /dev
  159. driver binding failed
  160. Check for AVOID_RESET_QUIRK kernel attribute
  161. AVOID_RESET_QUIRK activated
  162.  
  163. All done, exit
  164.  
  165. [Dialer Defaults]
  166. Init1 = ATZ
  167. Init2 = ATQ0 V1 E1 S0=0
  168. Modem Type = Analog Modem
  169. Baud = 9600
  170. New PPPD = yes
  171. Modem = /dev/ttyUSB0
  172. ISDN = 0
  173. ; Phone = <Target Phone Number>
  174. ; Password = <Your Password>
  175. ; Username = <Your Login Name>
  176.  
  177. [Dialer tele2]
  178. Modem = /dev/ttyUSB0
  179. Phone = *99#
  180. Username =;
  181. Password =;
  182. Init1 = ATZ
  183. Init2 = AT+CPIN=1689
  184. Init3 = AT+CGDCONT=1,"IP","4g.tele2.ee"
  185. Auto DNS = on
  186.  
  187. $ wvdial tele2
  188. --> WvDial: Internet dialer version 1.61
  189. --> Initializing modem.
  190. --> Sending: ATZ
  191. ATZ
  192. OK
  193. --> Sending: AT+CPIN=1689
  194. AT+CPIN=1689
  195. OK
  196. --> Sending: AT+CGDCONT=1,"IP","4g.tele2.ee"
  197. AT+CGDCONT=1,"IP","4g.tele2.ee"
  198. OK
  199. --> Modem initialized.
  200. --> Sending: ATDT*99#
  201. --> Waiting for carrier.
  202. ATDT*99#
  203. CONNECT
  204. --> Carrier detected. Waiting for prompt.
  205. --> Connected, but carrier signal lost! Retrying...
  206. --> Sending: ATDT*99#
  207. --> Waiting for carrier.
  208. --> Timed out while dialing. Trying again.
  209. --> Sending: ATDT*99#
  210. --> Waiting for carrier.
  211. --> Timed out while dialing. Trying again.
  212. --> Sending: ATDT*99#
  213. --> Waiting for carrier.
  214.  
  215. Dec 6 08:57:45 dell-vostro-1015 NetworkManager[1269]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.1/net/wwan0, iface: wwan0)
  216. Dec 6 08:57:45 dell-vostro-1015 NetworkManager[1269]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.1/net/wwan0, iface: wwan0): no ifupdown configuration found.
  217. Dec 6 08:57:45 dell-vostro-1015 ModemManager[1057]: <warn> (ttyUSB0): port attributes not fully set
  218. Dec 6 08:57:45 dell-vostro-1015 usb_modeswitch: switched to 12d1:ffffffff on 002/046
  219. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.405169] scsi 93:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
  220. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.405173] scsi 92:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
  221. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.405796] sd 93:0:0:0: Attached scsi generic sg2 type 0
  222. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.419892] sr1: scsi-1 drive
  223. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.420173] sr 92:0:0:0: Attached scsi CD-ROM sr1
  224. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.420345] sr 92:0:0:0: Attached scsi generic sg3 type 5
  225. Dec 6 08:57:46 dell-vostro-1015 kernel: [12557.420929] sd 93:0:0:0: [sdb] Attached SCSI removable disk
  226. Dec 6 08:57:46 dell-vostro-1015 usb_modeswitch[20728]: usb_modeswitch: switched to 12d1:1506 on 2/47
  227. Dec 6 08:57:47 dell-vostro-1015 usb_modeswitch[20728]: usb_modeswitch: add device ID 12d1:1506 to driver option
  228. Dec 6 08:57:47 dell-vostro-1015 usb_modeswitch[20728]: usb_modeswitch: please report the device ID to the Linux USB developers!
  229. Dec 6 08:57:53 dell-vostro-1015 ModemManager[1057]: <info> Creating modem with plugin 'Huawei' and '3' ports
  230. Dec 6 08:57:53 dell-vostro-1015 ModemManager[1057]: <warn> Could not grab port (usbmisc/cdc-wdm0): 'Cannot add port 'usbmisc/cdc-wdm0', unsupported'
  231. Dec 6 08:57:53 dell-vostro-1015 ModemManager[1057]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1': Failed to find primary AT port
  232.  
  233. # custom udev rules for UMTS modems
  234. ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 14fe -M '55534243123456780000000000000011062000000100000000000000000000'"
  235. ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1506", RUN+="/bin/bash -c 'modprobe option && echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id
  236.  
  237. sudo usb_modeswitch -J -v 0x12d1 -p 0x14fe
  238.  
  239. https://launchpad.net/ubuntu/+source/usb-modeswitch/2.2.5+repack0-1ubuntu1/+build/8089712
  240.  
  241. http://packages.ubuntu.com/wily/all/usb-modeswitch-data/download
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement