Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
Broli
Posts: 2
Joined: 11 Jan 2015, 14:52

Modem 3G ZTE MF710M

Post by Broli » 11 Jan 2015, 15:54

Hi! I have a 3g modem: ZTE MF710M 21,6mb/s. My linux OS (Xubuntu 14.10 x86) is not detecting my modem, only as storage and i dont' have a Mobile Broadband Connection option in Network Menu, but i can connect as Ethernet. In my modem manual it doesn't say it supports Linux, only Windows and Mac. What i have tried from what i found from internet:
I have added in /etc/usb_modeswitch.d/

Code: Select all

# ZTE MF 710M
DefaultVendor=  0x19d2
DefaultProduct= 0x1405
TargetVendor=   0x19d2
TargetProduct=  0x1405
MessageContent="55534243123456780000000000000011062000000000000100000000000000"
NeedResponse=0
I have added in /lib/udev/rules.d/40-usb_modeswitch.rules a rule with my modem vendor and id,
I have tried with modprobe, sakis3g.

lsusb

Code: Select all

Bus 001 Device 003: ID 19d2:1405 ZTE WCDMA Technologies MSM 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 13ba:0018 PCPlay Barcode PCP-BCG4209
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
usb_modeswitch log

Code: Select all


USB_ModeSwitch log from Sun Jan 11 15:21:55 2015

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /1-7

Bus ID for device not given by udev.
 Trying to determine it from kernel name (1-7) ...
Use top device dir /sys/bus/usb/devices/1-7

USB dir exists: /sys/bus/usb/devices/1-7

SCSI dir exists: /sys/bus/usb/devices/1-7
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/1-7/1-7:1.0
----------------
USB values from sysfs:
  idVendor	19d2
  idProduct	1405
  manufacturer	ZTE,Incorporated
  product	ZTE Mobile Broadband Station
  serial	1234567890ABCDEF
  bNumConfigurations	1
  bConfigurationValue	1
  devnum	3
  busnum	1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/19d2:1405*
Searching overriding entries named: /etc/usb_modeswitch.d/19d2:1405*
SCSI attributes not needed, move on.

Use overriden config 19d2:1405 from collection /etc/usb_modeswitch.d
config: TargetVendor set to 19d2
config: TargetProduct set to 1405
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /etc/usb_modeswitch.d/19d2:1405 -u -1 -b 1 -g 3 -v 19d2 -p 1405 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Read config file: /etc/usb_modeswitch.d/19d2:1405

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

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x19d2
DefaultProduct= 0x1405
TargetVendor=   0x19d2
TargetProduct=  0x1405
MessageContent="55534243123456780000000000000011062000000000000100000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Use given bus/device number: 001/003 ...
Look for default devices ...
 bus/device number matched
  found USB ID 19d2:1405
   vendor ID matched
   product ID matched
 Found devices in default mode (1)
Use interface number 0
--------------------------------
(end of usb_modeswitch output)

USB dir exists: /sys/bus/usb/devices/1-7

All done, exit
lsusb -v

Code: Select all

Bus 001 Device 004: ID 19d2:1405 ZTE WCDMA Technologies MSM 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x1405 
  bcdDevice           50.54
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          111
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       6 Ethernet Networking
      bFunctionProtocol       0 
      iFunction               6 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0 
      iInterface              4 
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      CDC Ethernet:
        iMacAddress                      7 (??)
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              5 
      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
      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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              8 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        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     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
dmesg

Code: Select all

[    1.929442] usb 1-7: unable to read config index 2 descriptor/start: -32
[    1.761783] usb 1-7: chopping to 2 config(s)
[    1.788237] usb 1-7: New USB device found, idVendor=19d2, idProduct=1225
[    1.788240] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[    1.788244] usb 1-7: Product: ZTE Mobile Broadband Station
[    1.788246] usb 1-7: Manufacturer: ZTE,Incorporated
[    1.800492] usb 1-7: can't set config #1, error -71

[    1.928097] usb 1-7: USB disconnect, device number 3
[    2.168058] usb 1-7: new high-speed USB device number 4 using ehci-pci

[    2.301424] usb 1-7: New USB device found, idVendor=19d2, idProduct=1405
[    2.301427] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.301430] usb 1-7: Product: ZTE Mobile Broadband Station
[    2.301433] usb 1-7: Manufacturer: ZTE,Incorporated
[    2.301436] usb 1-7: SerialNumber: 1234567890ABCDEF
[    2.316506] usb-storage 1-7:1.2: USB Mass Storage device detected
[    2.316735] scsi host6: usb-storage 1-7:1.2
[    2.316925] usbcore: registered new interface driver usb-storage
[    2.323987] usbcore: registered new interface driver uas
usb_modeswitch doesn't contain vendor and id of modem in /usr/share/usb_modeswitch/configPack.tar.gz

And i can't find no information about this model on internet.
Can someone help me with this specific modem?
Last edited by Broli on 13 Jan 2015, 15:01, edited 1 time in total.

skweek
Posts: 9
Joined: 10 Jan 2015, 18:23

Re: Modem 3G ZTE MF710M

Post by skweek » 12 Jan 2015, 02:54

Not sure if this is helpful but have you seen this? http://blogger.ziesemer.com/2008/10/all ... buntu.html

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Modem 3G ZTE MF710M

Post by Josh » 15 Jan 2015, 09:39

The modem is in communication mode already as the "lsusb" output shows. The product ID 0x1405 is a target ID - look at config file "19d2:1225" ...

It has most likely switched automatically if you have the usb-modeswitch package installed on your system. Don't try to switch it again!

Broli
Posts: 2
Joined: 11 Jan 2015, 14:52

Re: Modem 3G ZTE MF710M

Post by Broli » 15 Jan 2015, 11:57

I saw the config file "19d2:1225" , but i wasn't sure it works for my modem because it doesn't say its for zte mf710m.
I understand it has already switched to communication mode, but why i can't see the "Mobile Connection" in Network.
And if i try to manually crate connection it doesn't see the device (it says "any device") and after i create the connection it doesn't show in Network menu. And it doesn't create a /dev/tty symlink. How to manually create it?

sudo wvdialconf

Code: Select all

Modem Port Scan<*1>: S0   S1   S2   S3   S4   S5   S6   S7   
Modem Port Scan<*1>: S8   S9   S10  S11  S12  S13  S14  S15  
Modem Port Scan<*1>: S16  S17  S18  S19  S20  S21  S22  S23  
Modem Port Scan<*1>: S24  S25  S26  S27  S28  S29  S30  S31  
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial

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

Re: Modem 3G ZTE MF710M

Post by LOM » 15 Jan 2015, 12:27

MF710M is not a dial-up modem, it doesn't have any serial interfaces so there wont be any serial tty devices created in your system and vwdial can not manage the dongle.
MF710M is a direct ethernet device for which you have to load the cdc_ether driver and
it will appear in NetworkManager as an ethernet device.

Post Reply