Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
jakub.jnbm
Posts: 4
Joined: 30 Jun 2014, 08:45

Centos Modem:E3531 is not working

Post by jakub.jnbm » 30 Jun 2014, 08:52

Hello,

I bought a modem Huawei E3531 to send sms via bash. Problem is when i run switch mode i don't see device connected as /dev/sttyUSB.

Can somebody please help me? It's quite urgen, because i need to setup monitoring. Thx a lot.

I ran this command to switch the modem

Code: Select all

usb_modeswitch -v 12d1 -p 15ca -V 0x12d1 -P 0x14dc -M "55534243000000000000000000000011060000000000000000000000000000"
After command i get this:

Code: Select all

usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 1-1: USB disconnect, device number 7
usb 1-1: new high speed USB device number 8 using ehci_hcd
usb 1-1: New USB device found, idVendor=12d1, idProduct=1506
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI
usb 1-1: configuration #1 chosen from 1 choice
scsi12 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
scsi13 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb-storage: device scan complete
scsi 12:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 13:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 12:0:0:0: Attached scsi CD-ROM sr1
sr 12:0:0:0: Attached scsi generic sg2 type 5
sd 13:0:0:0: Attached scsi generic sg3 type 0
sd 13:0:0:0: [sdb] Attached SCSI removable dis
But i don't see modem connected as /dev/sttyUSB


lsub list

Bus 001 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard

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

Re: Centos Modem:E3531 is not working

Post by LOM » 30 Jun 2014, 10:07

It is possible that there are no serial tty interfaces in this device, the E3531 I have come across are all ncm devices which should be handled by the huawei_cdc_ncm driver.
Paste an output from lsusb -v -d 12d1:1506 in your next post and I will then be able to tell you what kind of interfaces your dongle have.

jakub.jnbm
Posts: 4
Joined: 30 Jun 2014, 08:45

Re: Centos Modem:E3531 is not working

Post by jakub.jnbm » 30 Jun 2014, 10:25

LOM wrote:It is possible that there are no serial tty interfaces in this device, the E3531 I have come across are all ncm devices which should be handled by the huawei_cdc_ncm driver.
Paste an output from lsusb -v -d 12d1:1506 in your next post and I will then be able to tell you what kind of interfaces your dongle have.

Code: Select all

Bus 001 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1506 Modem/Networkcard
  bcdDevice            1.02
  iManufacturer           1 HUAWEI
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          237
    bNumInterfaces          6
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol      1 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 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               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol     22 
      iInterface              8 CDC Network Control Model (NCM)
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  06 24 1a 00 01 1f
      ** UNRECOGNIZED:  0c 24 1b 00 01 00 04 10 14 dc 05 20
      ** UNRECOGNIZED:  0d 24 0f 0a 0f 00 00 00 ea 05 03 00 01
      ** UNRECOGNIZED:  05 24 06 01 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 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       1
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol     22 
      iInterface              9 CDC Network Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 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     0x03  EP 3 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       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol      3 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 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     0x04  EP 4 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        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol      2 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 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     0x05  EP 5 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        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 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     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        5
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x89  EP 9 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     0x07  EP 7 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

jakub.jnbm
Posts: 4
Joined: 30 Jun 2014, 08:45

Re: Centos Modem:E3531 is not working

Post by jakub.jnbm » 30 Jun 2014, 10:35

There is also discussion named
Huawei E3531 does not automatically switches to modem mode
Where was showed log which has the /dev/ttyUSB with the same model of the modem

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

Re: Centos Modem:E3531 is not working

Post by LOM » 30 Jun 2014, 11:18

jakub.jnbm wrote:There is also discussion named
Huawei E3531 does not automatically switches to modem mode
Where was showed log which has the /dev/ttyUSB with the same model of the modem
That was a problem of a new usb id + problem to switch mode on a USB 3.0 port which is a hub driver problem, your dongle has a different firmware with different interface attributes and yours does switch.
You should btw replace 0x14dc with 0x1506 in your usb_modeswitch cmd line.

Your dongle is:

Interface #0 utps_modem (serial ppp dialup modem)
Interface #1 direct ethernet ncm
Interface #2 utps_diag
Interface #3 utpc_pcui
Interface #4 usb mass storage
Interface #5 usb mass storage

so interface #1 should be driven by the huawei_cdc_ncm driver in order to get the highest possible speed and the 3 utps type interfaces should be driven by the option serial driver which will create 3 ttyUSB devices under /dev
You can probably use the dongle for ppp dialup instead of direct ethernet but be aware that the dongle is primarily intended for direct ethernet and we have seen firmwares in the past where the ppp dialup doesn't work well when there is a ncm direct ethernet interface in the dongle.

Your firmware version is currently not supported by linux ncm drivers, it has to be added for upcoming linux releases.
It is supported by the serial option driver though but you will need a very recent option driver which has support for bInterfaceSubClass 3 (see your lsusb listing).
bInterfaceSubClass 3 got option driver support 7-8 month ago which is about the same time as E3531 appeared on the market.
I would guess that your Centos distro does not have such a recent option driver and that would explain why you don't get any ttyUSB devices created.

bmork
Posts: 167
Joined: 15 Mar 2012, 22:47
Location: Oslo, Norway

Re: Centos Modem:E3531 is not working

Post by bmork » 30 Jun 2014, 13:56

LOM wrote:Your firmware version is currently not supported by linux ncm drivers, it has to be added for upcoming linux releases.
It is supported by the serial option driver though but you will need a very recent option driver which has support for bInterfaceSubClass 3 (see your lsusb listing).
bInterfaceSubClass 3 got option driver support 7-8 month ago which is about the same time as E3531 appeared on the market.
Yes, I remember noticing that and wondering what we should do about the network device drivers....

I guess the lsusb listing here is enough proof that we should add subclass 3, protocol 22 to the huawei_cdc_ncm driver. But I have a feeling that there might be more...

jakub.jnbm, could you please upload the *.inf files from the Windows drivers coming with this modem? They might give us some more hints about what to expect in the future.

Post Reply