4G Modem D-Link

Hello everybody.

I’m using OpenSuse 13.1 and KDE

I’m trying to use a 4G modem D-Link
When I turn the modem into a USB port, the signal light changes from red to green but there is no connection.
In “Network Connections”, the “Mobile Broadband” tab remains disabled.

How do I use a 4G modem in Opensuse?

give us the output of “lsusb” command in terminal.

Hi,

When the modem is connected via usb port you can checkout

dmesg | grep -i modem

These are the outputs for dmesg and lsusb


linux-kplg:/home/sergio # dmesg | grep -i modem
    6.406660] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters


linux-kplg:/home/sergio # lsusb 
Bus 001 Device 002: ID 192f:0716 Avago Technologies, Pte. 
Bus 001 Device 006: ID 2001:a401 D-Link Corp. 
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0b38:0010 Gear Head 107-Key Keyboard



I’m not familiar with this device chipset, and google doesn’t reveal much either

Bus 001 Device 006: ID 2001:a401 D-Link Corp.

Can you run

usb-devices

and show us what driver (if any) is bound to this device?

The next step is to see how the device is detected when plugged in. Check with

sudo tail -f /var/log/messages

or from the systemd journal (if applicable)

journalctl -f

then capture output when device plugged in. That might provide enough clues about whether the device is supported, and able/ready to be configured.

I do not know where to see the driver’s modem
Here are the results



linux-kplg:/home/sergio # usb-devices
                                                                                                                                                              
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6                                                                                             
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1                                                                                                  
P:  Vendor=1d6b ProdID=0002 Rev=03.11                                                                                                                         
S:  Manufacturer=Linux 3.11.10-25-desktop xhci_hcd                                                                                                            
S:  Product=xHCI Host Controller                                                                                                                              
S:  SerialNumber=0000:00:14.0                                                                                                                                 
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA                                                                                                                          
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub                                                                                             
                                                                                                                                                              
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0                                                                                             
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1                                                                                                  
P:  Vendor=192f ProdID=0716 Rev=00.00                                                                                                                         
S:  Manufacturer=Avago                                                                                                                                        
S:  Product=USB LaserStream(TM) Mouse                                                                                                                         
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=98mA                                                                                                                         
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid                                                                                          
                                                                                                                                                              
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  5 Spd=480 MxCh= 0                                                                                             
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                                                                                                  
P:  Vendor=2001 ProdID=a401 Rev=02.32                                                                                                                         
S:  Manufacturer=Mobile Connect
S:  Product=Mobile Connect
S:  SerialNumber=0123456789ABCDEF
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=03 Dev#=  3 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=85.36
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=03 Port=02 Cnt=01 Dev#=  4 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0b38 ProdID=0010 Rev=01.02
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=03.11
S:  Manufacturer=Linux 3.11.10-25-desktop xhci_hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub


linux-kplg:/home/sergio # tail -f /var/log/messages
2014-12-23T20:45:17.932159-02:00 linux-kplg kernel:   533.690332] sd 2:0:0:0: [sdb]  
2014-12-23T20:45:17.932160-02:00 linux-kplg kernel:   533.690335] Add. Sense: Invalid command operation code
2014-12-23T20:45:17.960123-02:00 linux-kplg kernel:   533.718166] sd 2:0:0:0: [sdb] READ CAPACITY failed
2014-12-23T20:45:17.960143-02:00 linux-kplg kernel:   533.718172] sd 2:0:0:0: [sdb]  
2014-12-23T20:45:17.960146-02:00 linux-kplg kernel:   533.718175] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2014-12-23T20:45:17.960147-02:00 linux-kplg kernel:   533.718178] sd 2:0:0:0: [sdb]  
2014-12-23T20:45:17.960149-02:00 linux-kplg kernel:   533.718180] Sense Key : Illegal Request [current] 
2014-12-23T20:45:17.960150-02:00 linux-kplg kernel:   533.718184] sd 2:0:0:0: [sdb]  
2014-12-23T20:45:17.960151-02:00 linux-kplg kernel:   533.718187] Add. Sense: Invalid command operation code
2014-12-23T20:45:17.962105-02:00 linux-kplg kernel:   533.719807] sd 2:0:0:0: [sdb] Attached SCSI removable disk


linux-kplg:/home/sergio # journalctl -f
-- Logs begin at Ter 2014-12-23 20:36:29 BRST. --
Dez 23 20:45:17 linux-kplg kernel: Add. Sense: Invalid command operation code
Dez 23 20:45:17 linux-kplg kernel: sd 2:0:0:0: [sdb] READ CAPACITY failed
Dez 23 20:45:17 linux-kplg kernel: sd 2:0:0:0: [sdb]  
Dez 23 20:45:17 linux-kplg kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Dez 23 20:45:17 linux-kplg kernel: sd 2:0:0:0: [sdb]  
Dez 23 20:45:17 linux-kplg kernel: Sense Key : Illegal Request [current] 
Dez 23 20:45:17 linux-kplg kernel: sd 2:0:0:0: [sdb]  
Dez 23 20:45:17 linux-kplg kernel: Add. Sense: Invalid command operation code
Dez 23 20:45:17 linux-kplg kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Dez 23 20:45:32 linux-kplg kernel: SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:96de:80ff:fef4:983a DST=ff02:0000:0000:0000:...53 LEN=44 
Dez 23 20:51:24 linux-kplg systemd[1]: Starting Cleanup of Temporary Directories...
Dez 23 20:51:24 linux-kplg systemd-tmpfiles[2152]: stat(/run/user/1000/gvfs) failed: Permission denied
Dez 23 20:51:24 linux-kplg systemd[1]: Started Cleanup of Temporary Directories.

The relevant section (look for the vendor and product code for lsusb output for D-Link device) is

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  5 Spd=480 MxCh= 0                                            
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                                                  
P:  Vendor=2001 ProdID=a401 Rev=02.32                                                                         
S:  Manufacturer=Mobile Connect
S:  Product=Mobile Connect
S:  SerialNumber=0123456789ABCDEF
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

It and the dmesg output confirms that the device is in storage device mode.

If this device is new, it is probably not supported by usb_modeswitch yet.

http://www.draisberghof.de/usb_modeswitch/#trouble
http://www.draisberghof.de/usb_modeswitch/#contrib

You might try doing

sudo eject /dev/sdb

then run the following again

usb-devices

We’re interested in examining if the modem device is detected/supported following the ‘eject’ command to remove the storage device. However, the modem device might still need to be activated with a suitable activation string (usually handled usb_modeswitch according to the chipset involved). Anyway, worth a shot.

You may need to contact the USB ModeSwitch forum for further assistance.

http://www.draisberghof.de/usb_modeswitch/bb/

maybe it is the same problem that i encounered when i tried to use the huawei e3131 modem. maybe updating modeswitch to tumbleweed version will help.
read this:
https://forums.opensuse.org/showthread.php/503256-Huawei-UMTS-USB-sticks-on-openSUSE-13-2-update-available

Unfortunately, his device chipset is not in the latest USB ModeSwitch device_reference.txt, so that advice won’t work.

I took the modem chip and put him in a cell and I can browse the internet normally.
This means that I have a broken modem, is not it?

I have a modem D-Link DWM-221, could you please say whether this modem is supported?

Do you mean the SIM card? No, it does not imply a broken modem. From the information you’ve supplied so far, the modem is not yet supported.

I have a modem D-Link DWM-221, could you please say whether this modem is supported?

Unfrotunately, chipset details are what matters here. Many of these devices have variants, with completely different chipsets inside. For supported devices (requiring usb_modeswitch support), the following reference is definitive:

@sergelli: Did you try my suggestion in post #9 yet?

that is the results:


linux-kplg:/home/sergio # eject /dev/sdb
eject: unable to eject


linux-kplg:/home/sergio # usb-devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=03.11
S:  Manufacturer=Linux 3.11.10-25-desktop xhci_hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=126 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2001 ProdID=a401 Rev=02.32
S:  Manufacturer=Mobile Connect
S:  Product=Mobile Connect
S:  SerialNumber=0123456789ABCDEF
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  5 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=192f ProdID=0716 Rev=00.00
S:  Manufacturer=Avago
S:  Product=USB LaserStream(TM) Mouse
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=03 Dev#=  3 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=85.36
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=03 Port=02 Cnt=01 Dev#=  4 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1                                                                                                  
P:  Vendor=0b38 ProdID=0010 Rev=01.02                                                                                                                         
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA                                                                                                                        
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid                                                                                          
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid                                                                                          
                                                                                                                                                              
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1                                                                                            
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1                                                                                                  
P:  Vendor=1d6b ProdID=0003 Rev=03.11                                                                                                                         
S:  Manufacturer=Linux 3.11.10-25-desktop xhci_hcd                                                                                                            
S:  Product=xHCI Host Controller                                                                                                                              
S:  SerialNumber=0000:00:14.0                                                                                                                                 
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA                                                                                                                          
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub           

Please. I really need help. The lost time with this problem is being too large.

Searching the internet, I found these possible solutions:

I created the file:

 /etc/udev/rules.d/meu_modem.rules 

With the following content:

ATTR{idVendor}=="2001",ATTR{idProduct}=="a401",RUN+="/sbin/modprobe usbserial vendor=0x2001 product=0xa401" KERNEL=="ttyUSB[23]",ACTION=="add",ATTR{idVendor}=="2001",ATTR{idProduct}=="a401",RUN+="/bin/sleep 2"

But nothing happened.
NetworkManager continues without enabling the tab “Mobile Broadband”

I also tried to force the recognition of the modem, running on this line prompt:


linux-kplg:/home/sergio # modprobe usbserial vendor=2001 product=a401

But the result also failed.

Any idea?

Well that actually looks like two rules, and it is unlikely that loading the useb serial driver like that will work anyway. The chipset that is reported pertains to the device in ‘usb-storage’ mode. Since, you report that the eject command failed to work (as I’d hoped), then it’s not likely that there is a known method to get the modem enabled yet. The best chance of success will lie with engaging with the USB ModeSwitch folks IMHO.

NetworkManager continues without enabling the tab “Mobile Broadband”[/QUOTE
As expected, since there is no modem device available yet.

[QUOTE]I also tried to force the recognition of the modem, running on this line prompt:

linux-kplg:/home/sergio # modprobe usbserial vendor=2001 product=a401

But the result also failed.

As above.

Any idea?

Follow up with a post/bug report in the usb_modeswitch forum as I suggested previously.

Something that that might be worth trying (no promises though)

sudo /usr/sbin/usb_modeswitch -v 2001 -p a401 -d 1

and observe output. If the device can be recognised at all, you’ll soon know.

Run

lsusb

to see if there is any product ID change. We’re specifically looking to see if usb_modeswitch can successfully expose/enable the modem device.

I did it. But no response so far.
Here results for the command usb_modeswitch:


linux-kplg:/home/sergio # /usr/sbin/usb_modeswitch -v 2001 -p a401 -d 1
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 005 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String:         
   Model String: SD Storage      
Revision String: 0000
-------------------------                                                                                                                                                                                         
                                                                                                                                                                                                                  
USB description data (for identification)                                                                                                                                                                         
-------------------------                                                                                                                                                                                         
Manufacturer: Mobile Connect                                                                                                                                                                                      
     Product: Mobile Connect                                                                                                                                                                                      
  Serial No.: 0123456789ABCDEF                                                                                                                                                                                    
-------------------------                                                                                                                                                                                         
Only detaching storage driver for switching ...                                                                                                                                                                   
 Any driver was already detached for inquiry                                                                                                                                                                      
-> Run lsusb to note any changes. Bye.               

That’s the lsusb result:

                                                                                                                                                             
linux-kplg:/home/sergio # lsusb                                                                                                                                                                                   
Bus 001 Device 002: ID 192f:0716 Avago Technologies, Pte.                                                                                                                                                         
Bus 001 Device 005: ID 2001:a401 D-Link Corp.                                                                                                                                                                     
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB                                                                                                                                           
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0b38:0010 Gear Head 107-Key Keyboard
linux-kplg:/home/sergio # 

No conection!
We will have a next step?

You’ll need to be patient. I’m sure you’ll get a response.

Here results for the command usb_modeswitch:

linux-kplg:/home/sergio # /usr/sbin/usb_modeswitch -v 2001 -p a401 -d 1
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 005 on bus 001 …
Getting the current device configuration …
OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
No driver found. Either detached before or never attached

SCSI inquiry data (for identification)

Vendor String:
Model String: SD Storage
Revision String: 0000

USB description data (for identification)

Manufacturer: Mobile Connect
Product: Mobile Connect
Serial No.: 0123456789ABCDEF

Only detaching storage driver for switching …
Any driver was already detached for inquiry
→ Run lsusb to note any changes. Bye.

That’s the lsusb result:

                                                                                                                                                             
linux-kplg:/home/sergio # lsusb                                                                                                                                                                                   
Bus 001 Device 002: ID 192f:0716 Avago Technologies, Pte.                                                                                                                                                         
Bus 001 Device 005: ID 2001:a401 D-Link Corp.                                                                                                                                                                     
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB                                                                                                                                           
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0b38:0010 Gear Head 107-Key Keyboard
linux-kplg:/home/sergio # 

The device is not switched (same product ID as before), so no modem device detected either. You’ll have to pursue this via the USB Modeswitch forum.

No conection!

I think by now you understand that without a modem device enabled (and supported), you won’t be able to configure let alone connect.

We will have a next step?

I can only suggest you try to help yourself by following the advice here

This is not an openSUSE-specific problem, but one of hardware support, and your best bet is via the USB ModeSwitch forum.