Automatic Activation, Hotplug and UDEV, Configuration
danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 00:06

Hi friends,
using Ubuntu 14.04 Gnome
I would like to automate the mass storage/modem of an Huawey MD Touch
lsusb: Bus 001 Device 005: ID 12d1:101e Huawei Technologies Co., Ltd.

by default the phone is not usable for mass storage or modem too.

I've added on /usr/share/usb_modeswitch/12d1:101e from your "device_reference.txt":

Code: Select all

# Huawei U7510 / U7517

DefaultVendor=  0x12d1
DefaultProduct= 0x101e

TargetClass=0xff
#MessageContent="55534243123456780000000000000011062000000101000100000000000000"
MessageContent="55534243123456780600000080000601000000000000000000000000000000"
but nothing

if I connect the phone this is the dmesg output:

Code: Select all

[ 1129.782292] usb 1-3: USB disconnect, device number 3
[ 1129.784706] option1 ttyUSB0: option_instat_callback: error -108
[ 1129.785305] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1129.785364] option 1-3:1.0: device disconnected
[ 1129.788275] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1129.788343] option 1-3:1.1: device disconnected
[ 1581.417822] perf samples too long (2505 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 2374.440298] perf samples too long (5039 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
[ 3050.684111] usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 3050.821378] usb 1-3: New USB device found, idVendor=12d1, idProduct=101e
[ 3050.821392] usb 1-3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 3050.821398] usb 1-3: Product: HUAWEI MOBILE
[ 3050.821404] usb 1-3: Manufacturer: Huawei Technologies
[ 3050.824117] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 3050.825396] scsi4 : usb-storage 1-3:1.0
[ 3051.826351] scsi 4:0:0:0: CD-ROM            Huawei T Mass Storage     2.31 PQ: 0 ANSI: 2
[ 3051.834627] sr1: scsi-1 drive
[ 3051.835095] sr 4:0:0:0: Attached scsi CD-ROM sr1
[ 3051.840598] sr 4:0:0:0: Attached scsi generic sg4 type 5

if I run: usb_modeswitch -v 0x12d1 -p 0x101e -d 1

Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 1
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
Product: Mobile Configuration
Serial No.: not provided
-------------------------
Detach storage driver as switching method ...
Looking for active driver ...
OK, driver detached
-> Run lsusb to note any changes. Bye!



dmesg:

Code: Select all

[ 1129.782292] usb 1-3: USB disconnect, device number 3
[ 1129.784706] option1 ttyUSB0: option_instat_callback: error -108
[ 1129.785305] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1129.785364] option 1-3:1.0: device disconnected
[ 1129.788275] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1129.788343] option 1-3:1.1: device disconnected
[ 1581.417822] perf samples too long (2505 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 2374.440298] perf samples too long (5039 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
[ 3050.684111] usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 3050.821378] usb 1-3: New USB device found, idVendor=12d1, idProduct=101e
[ 3050.821392] usb 1-3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 3050.821398] usb 1-3: Product: HUAWEI MOBILE
[ 3050.821404] usb 1-3: Manufacturer: Huawei Technologies
[ 3050.824117] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 3050.825396] scsi4 : usb-storage 1-3:1.0
[ 3051.826351] scsi 4:0:0:0: CD-ROM            Huawei T Mass Storage     2.31 PQ: 0 ANSI: 2
[ 3051.834627] sr1: scsi-1 drive
[ 3051.835095] sr 4:0:0:0: Attached scsi CD-ROM sr1
[ 3051.840598] sr 4:0:0:0: Attached scsi generic sg4 type 5
[ 3062.603186] usb 1-3: USB disconnect, device number 4
[ 3062.975122] usb 1-3: new high-speed USB device number 5 using ehci-pci
[ 3063.112987] usb 1-3: New USB device found, idVendor=12d1, idProduct=101e
[ 3063.113001] usb 1-3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 3063.113008] usb 1-3: Product: Mobile Configuration
[ 3063.113013] usb 1-3: Manufacturer: Huawei Technologies
[ 3063.117759] option 1-3:1.0: GSM modem (1-port) converter detected
[ 3063.118780] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 3063.119062] option 1-3:1.1: GSM modem (1-port) converter detected
[ 3063.119846] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 3063.120786] usb-storage 1-3:1.2: USB Mass Storage device detected
[ 3063.130493] scsi5 : usb-storage 1-3:1.2
[ 3064.130473] scsi 5:0:0:0: CD-ROM            Huawei T Mass Storage     2.31 PQ: 0 ANSI: 2
[ 3064.143679] sr1: scsi-1 drive
[ 3064.144266] sr 5:0:0:0: Attached scsi CD-ROM sr1
[ 3064.145319] sr 5:0:0:0: Attached scsi generic sg4 type 5
[ 3136.143757] option1 ttyUSB0: option_instat_callback: error -108
[ 3136.144855] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 3136.144927] option 1-3:1.0: device disconnected

and I see a "mobile Broadband" menu on gnome3
but seem impossible to configure it;

could you suggest the right way?

many many thanks!

Davide
Italy

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 08:27

Your dmesg log shows the device switching mode and 2 ttyUSB devices being created so your problem ought to be with ModemManager.

Can you please attach the output of lsusb -v -d 12d1:101e in your next post, once before switching takes place and once after. You can just comment out the correct switch message in the device config file in order to disable switching so that you can get the lsusb listing for a not-switched device.

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 11:08

LOM wrote: Your dmesg log shows the device switching mode and 2 ttyUSB devices being created so your problem ought to be with ModemManager.
If iI run network manager configuration, happens that the device has no name..
and is not possible to configure it
LOM wrote: Can you please attach the output of lsusb -v -d 12d1:101e in your next post, once before switching takes place and once after. You can just comment out the correct switch message in the device config file in order to disable switching so that you can get the lsusb listing for a not-switched device.
I don't know if correct, I've commented any line on "/usr/share/usb_modeswitch/12d1:101e"
so lsusb -v -d 12d1:101e is:

Code: Select all

Bus 001 Device 004: ID 12d1:101e Huawei Technologies Co., Ltd. 
Bus 001 Device 007: ID 12d1:101e Huawei Technologies Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x101e 
  bcdDevice            0.00
  iManufacturer           3 Huawei Technologies
  iProduct                2 HUAWEI MOBILE
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 Mobile Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered
 


many man thanks again!

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 11:35

Aah, you have commented out DefaultVendor, DefaultProduct, and TargetClass.
That won't work, only the 2 MessageContent lines should be removed/disabled.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 15:06

Hmm.. There is no difference, the device doesn't get switched into modem mode where it will get 2 or more additional interfaces. Easiest for you to see that is to look for the bNumInterfaces value in the lsusb listing, you don't need to paste the output as long as that value is 1.

The dmesg in your initial post showed the device to switch and also ttyUSB devices being created so something is different now. Please try the following cmd line in a terminal window:

usb_modeswitch -p 12d1 -v 101e -I -W -H

and check if that makes a difference to the lsusb listing, if so then paste the listing here.

Which revision of usb_modeswitch do you use? It will show in the verbose output when calling usb_modeswitch from the cmd line.
Ubuntu 14.04 should afaik have the quite recent version 2.1.1 included in the distro.

If the above cmd line fails then try instead (on one line):


usb_modeswitch -p 12d1 -v 101e -I -W -M 55534243123456780600000080000601000000000000000000000000000000

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 15:55

LOM wrote:Hmm.. There is no difference, the device doesn't get switched into modem mode where it will get 2 or more additional interfaces. Easiest for you to see that is to look for the bNumInterfaces value in the lsusb listing, you don't need to paste the output as long as that value is 1.

The dmesg in your initial post showed the device to switch and also ttyUSB devices being created so something is different now. Please try the following cmd line in a terminal window:

usb_modeswitch -p 12d1 -v 101e -I -W -H
this is the diff output from old lsusb and new (after up command) lsusb:

Code: Select all

diff lsusb_1 lsusb_2
1c1
< Bus 001 Device 010: ID 12d1:101e Huawei Technologies Co., Ltd.
---
> Bus 001 Device 002: ID 12d1:101e Huawei Technologies Co., Ltd. 
7,8c7,8
<   bDeviceSubClass         0
<   bDeviceProtocol         0
---
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
11c11
<   idProduct          0x101e
---
>   idProduct          0x101e 
15c15
<   iSerial                 0
---
>   iSerial                 0 
37c37
<       iInterface              0
---
>       iInterface              0 
63,64c63,64
<   bDeviceSubClass         0
<   bDeviceProtocol         0
---
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
67c67
< Device Status:     0x0001
---
> Device Status:     0x0003
68a69,70
>   Remote Wakeup Enabled
> 
and modeswitch:

Code: Select all

DefaultVendor=  0x101e
DefaultProduct= 0x12d1
HuaweiMode=1
NeedResponse=0

InquireDevice=1

Look for default devices ...
  found USB ID 1d6b:0001
  found USB ID 12d1:101e
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 No devices in default mode found. Nothing to do. Bye!
LOM wrote: Which revision of usb_modeswitch do you use? It will show in the verbose output when calling usb_modeswitch from the cmd line.
Ubuntu 14.04 should afaik have the quite recent version 2.1.1 included in the distro.
* Version 2.1.1 (C) Josua Dietze 2014
LOM wrote: If the above cmd line fails then try instead (on one line):

usb_modeswitch -p 12d1 -v 101e -I -W -M 55534243123456780600000080000601000000000000000000000000000000

Code: Select all

DefaultVendor=  0x101e
DefaultProduct= 0x12d1
MessageContent="55534243123456780600000080000601000000000000000000000000000000"
NeedResponse=0

InquireDevice=1

Look for default devices ...
  found USB ID 1d6b:0001
  found USB ID 12d1:101e
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 No devices in default mode found. Nothing to do. Bye!
...hgg! :|

many thanks again!!

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 16:27

This is getting worse and worse, not only have I wasted our time by mixing up modeswitch methods (HuaweiMode can not be used for this device) but I also managed to turn around vendor and product id's for the cmd line test :( (I will have to do a major edit of this thread afterwards so other users doesn't get lured into wasting their time when finding the thread via google).

The cmd line should be:

usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780600000080000601000000000000000000000000000000

and that should switch the device.
That modeswitch message is an old Huawei message and current usb_modeswitch data pack contains a new Huawei message so please also check if that one works as well:

usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780000000000000011062000000101000100000000000000

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 16:47

LOM wrote:This is getting worse and worse, not only have I wasted our time by mixing up modeswitch methods (HuaweiMode can not be used for this device) but I also managed to turn around vendor and product id's for the cmd line test :( (I will have to do a major edit of this thread afterwards so other users doesn't get lured into wasting their time when finding the thread via google).
sure :-)
LOM wrote: The cmd line should be:

usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780600000080000601000000000000000000000000000000
ok, now I've:

Code: Select all

crw-rw---- 1 root dialout 188, 0 lug  1 16:38 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 lug  1 16:38 /dev/ttyUSB1

Code: Select all

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x101e
MessageContent="55534243123456780600000080000601000000000000000000000000000000"
NeedResponse=0

Look for default devices ...
  found USB ID 1d6b:0001
  found USB ID 12d1:101e
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: Mobile Configuration
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
and using "sakis3g" can now connect :lol:
LOM wrote: and that should switch the device.
That modeswitch message is an old Huawei message and current usb_modeswitch data pack contains a new Huawei message so please also check if that one works as well:

usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780000000000000011062000000101000100000000000000

Code: Select all

Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x101e
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
NeedResponse=0

Look for default devices ...
  found USB ID 1d6b:0001
  found USB ID 12d1:101e
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Found devices in default mode (1)
Access device 006 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x82 (in)
Error: can't use storage command in MessageContent with interface 0;
       interface class is 255, expected 8. Abort
no, this seem not correct, the ttyUSB* device stay again..

thanks!

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 17:02

I can see that you forgot to replug the dongle before testing the new message :)
Try again.

Can you please paste the lsusb -v -d 12d1:101e after the dongle has switch mode, I collect such listings as reference for the future.

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 17:34

if I unplug The device and the replug it, can I see:

Code: Select all

[ 6904.316108] usb 1-3: new high-speed USB device number 10 using ehci-pci
[ 6904.451856] usb 1-3: New USB device found, idVendor=12d1, idProduct=101e
[ 6904.451870] usb 1-3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6904.451876] usb 1-3: Product: Mobile Configuration
[ 6904.451881] usb 1-3: Manufacturer: Huawei Technologies
[ 6904.456980] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 6904.457846] scsi10 : usb-storage 1-3:1.0
[ 6905.458458] scsi 10:0:0:0: CD-ROM            Huawei T Mass Storage     2.31 PQ: 0 ANSI: 2
[ 6905.473543] sr1: scsi-1 drive
[ 6905.474019] sr 10:0:0:0: Attached scsi CD-ROM sr1
[ 6905.474435] sr 10:0:0:0: Attached scsi generic sg4 type 5
and can mount sr1, but it contains only windows executable not my photo (is it possible to mount the device containing photo?)..
unmount it, unplug and replug..

then if I run your code:

Code: Select all

usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780000000000000011062000000101000100000000000000

Code: Select all

Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x101e
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
NeedResponse=0

Look for default devices ...
  found USB ID 1d6b:0001
  found USB ID 12d1:101e
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Found devices in default mode (1)
Access device 011 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: Mobile Configuration
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
now I cannot mount /dev/sr1 (the device is removed from directory /dev)

here the lsusb output to switched :

Code: Select all

Bus 001 Device 011: ID 12d1:101e Huawei Technologies Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x101e 
  bcdDevice            0.00
  iManufacturer           2 Huawei Technologies
  iProduct                1 Mobile Configuration
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 Mobile Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled
thanks!

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 17:56

Could you mount the phones internal storage when you used the old switch message?

The new switch message was given to us from Huawei and had been tested by them and confirmed to be working on all their modems, it may be that they meant all USB dongles and phones was not included.

If the old message works better, then we should revert back to that one.
We have seen in the past for another Huawei phone that the phones internal storage is available under Windows together with the modem but in linux we did only get the modem function.
I'll se if I can find that thread, I have a vague memory of it being a setting on the phone.

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 18:15

LOM wrote:Could you mount the phones internal storage when you used the old switch message?
no, I've newer mounted the image directory from Linux...
LOM wrote: The new switch message was given to us from Huawei and had been tested by them and confirmed to be working on all their modems, it may be that they meant all USB dongles and phones was not included.
GHH!!...
LOM wrote: [...]
I'll se if I can find that thread, I have a vague memory of it being a setting on the phone.
Ah, ok!
But you must know that now the phone have not the micro sd onboard;
if I install a microsd do you think that tha phone will store the new photo on it, and I could mount the microsd from linux?

PS
is it possible to automatize the modem setup by udev?
..and if the device is connected is it possible to access to microsd?


many thanks again

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 18:33

I found the other thread but the problem with getting modem and phone storage at the same time was not solved.

http://www.draisberghof.de/usb_modeswit ... f=3&t=1827


For automagic switching via udev you'll have to edit the 12d1:101e file and replace the new switch message with the old one.
Ubuntu does some distro specific modifications to usb_modeswitch and among others is that they keep all device config files in an archive, /usr/share/usb_modeswitch/configPack.tar.gz.
Find 12d1:101e therein, edit the switch message and repack the archive.
Remove the file which you created before outside of the archive (/usr/share/usb_modeswitch/12d1:101e), it is not needed because Ubuntu reads the file from the archive.

Regarding TF/SD card, I don't now if it will work but the reason why you couldn't mount /dev/sr1 may be because of no media inserted in the cardslot, you'll have to test.

danjde
Posts: 13
Joined: 02 Nov 2011, 19:37

Re: Huawey MD Touch: 12d1:101e

Post by danjde » 01 Jul 2014, 18:45

LOM wrote:I found the other thread but the problem with getting modem and phone storage at the same time was not solved.

http://www.draisberghof.de/usb_modeswit ... f=3&t=1827
ok thanks!
LOM wrote: For automagic switching via udev you'll have to edit the 12d1:101e file and replace the new switch message with the old one. [...]
The new "12d1:101e" should be so? Excuse me but I'm not shure...

Code: Select all

# Huawei U7510 / U7517

DefaultVendor=  0x12d1
DefaultProduct= 0x101e

TargetClass=0xff
MessageContent="usb_modeswitch -v 12d1 -p 101e -W -M 55534243123456780600000080000601000000000000000000000000000000"
#HuaweiMode=1
Then repack...

thanks again

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawey MD Touch: 12d1:101e

Post by LOM » 01 Jul 2014, 19:02

# Huawei U7510 / U7517

DefaultVendor= 0x12d1
DefaultProduct= 0x101e
TargetClass=0xff
MessageContent="55534243123456780600000080000601000000000000000000000000000000"

thats all, (remove the commented out line #HuaweiMode=1)

Post Reply