Activation Codes and Methods, Hardware Details, Sniffing
kacior
Posts: 4
Joined: 03 May 2018, 10:21

Re: D-LINK DWM-222

Post by kacior » 03 May 2018, 10:31

Hi there
I've bought this modem, and can't force it to working properly. Drivers included to this modem are for ubuntu, and turning them on on my opensuse causes many errors.

Code: Select all

lsusb
Bus 001 Device 004: ID 2001:7e35 D-Link Corp. 

Code: Select all

20: SCSI 600.0: 10600 Disk
  [Created at block.256]
  Unique ID: tE6H.hmuTLZjTiC3
  Parent ID: MZfG.XSOA08KXan3
  SysFS ID: /class/block/sdb
  SysFS BusID: 6:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.5/host6/target6:0:0/6:0:0:0
  Hardware Class: disk
  Model: "SD Storage"
  Vendor: usb 0x2001 
  Device: usb 0x7e35 "SD Storage"
  Revision: "0000"
  Serial ID: "0123456789ABCDEF"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage", "sd_mod"
  Device File: /dev/sdb (/dev/sg2)
  Device Files: /dev/sdb, /dev/disk/by-id/scsi-S__3, /dev/disk/by-path/pci-0000:00:14.0-scsi-0:0:0:0, /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.5-scsi-0:0:0:0
  Device Number: block 8:16-8:31 (char 21:2)
  Geometry (Logical): CHS 1024/0/62
  Speed: 480 Mbps
  Module Alias: "usb:v2001p7E35d0228dc00dsc00dp00ic08isc06ip50in05"
  Driver Info #0:
    Driver Status: uas is active
    Driver Activation Cmd: "modprobe uas"
  Driver Info #1:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #4 (USB Controller)

Code: Select all

lsusb -vd 2001:7e35

Bus 001 Device 006: ID 2001:7e35 D-Link Corp. 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.01
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x2001 D-Link Corp.
  idProduct          0x7e35 
  bcdDevice            2.28
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          232
    bNumInterfaces          6
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              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
      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        1
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** 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     0x000a  1x 10 bytes
        bInterval               9
      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        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 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        3
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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        4
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x89  EP 9 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               9
      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     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        5
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8a  EP 10 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        
usb_modeswitch version 2.5.2-1.1
I would be thankful for any help

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

Re: D-LINK DWM-222

Post by LOM » 03 May 2018, 14:37

kacior wrote:Hi there
I've bought this modem, and can't force it to working properly. Drivers included to this modem are for ubuntu, and turning them on on my opensuse causes many errors.
You don't need any "included" drivers for this modem, linux already has all drivers for it.
The dongle is quite new so it is probably only supported in openSUSE Tumbleweed, you can not expect old linux versions to support hardware that was not available at that time.

kacior
Posts: 4
Joined: 03 May 2018, 10:21

Re: D-LINK DWM-222

Post by kacior » 03 May 2018, 15:33

LOM wrote:
kacior wrote:Hi there
I've bought this modem, and can't force it to working properly. Drivers included to this modem are for ubuntu, and turning them on on my opensuse causes many errors.
You don't need any "included" drivers for this modem, linux already has all drivers for it.
The dongle is quite new so it is probably only supported in openSUSE Tumbleweed, you can not expect old linux versions to support hardware that was not available at that time.
I'm using opensuse 42.3, it isn't old linux. Updating only linux to newest version would solve this problem? Right now 4.4.126. When i'll have some free time i'll do upgrade to tumbleweed. or newest opensuse leap version which is in beta still.
EDIT
With newer kernel (4.14.38-1-desktop), the same.

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

Re: D-LINK DWM-222

Post by LOM » 03 May 2018, 15:59

kacior wrote: With newer kernel (4.14.38-1-desktop), the same.
The dongle got linux support around kernel 4.10, I have 4.14.22 source here locally and 2001:7e35 is supported in /drivers/net/usb/qmi-wwan.c for the net interface and also in /drivers/usb/serial/option.c for the serial interfaces.

Don't know where your problem is but it is not usb_modeswitch related if the dongle appears as 2001:7e35 after switching. Your dmesg should show if drivers bind.

kacior
Posts: 4
Joined: 03 May 2018, 10:21

Re: D-LINK DWM-222

Post by kacior » 03 May 2018, 16:08

LOM wrote:
kacior wrote: With newer kernel (4.14.38-1-desktop), the same.
The dongle got linux support around kernel 4.10, I have 4.14.22 source here locally and 2001:7e35 is supported in /drivers/net/usb/qmi-wwan.c for the net interface and also in /drivers/usb/serial/option.c for the serial interfaces.

Don't know where your problem is but it is not usb_modeswitch related if the dongle appears as 2001:7e35 after switching. Your dmesg should show if drivers bind.

Code: Select all

[   57.540768] usb 1-1.2: new high-speed USB device number 5 using ehci-pci
[   57.675603] usb 1-1.2: New USB device found, idVendor=2001, idProduct=ab00
[   57.675611] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   57.675618] usb 1-1.2: Product: Mobile Connect
[   57.675624] usb 1-1.2: Manufacturer: Mobile Connect
[   57.675630] usb 1-1.2: SerialNumber: af8f04a60e7d
[   57.793071] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   57.797444] scsi host6: usb-storage 1-1.2:1.0
[   57.797622] usbcore: registered new interface driver usb-storage
[   57.799534] usbcore: registered new interface driver uas
[   60.646833] usb 1-1.2: USB disconnect, device number 5
[   60.868301] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
[   61.000142] usb 1-1.2: New USB device found, idVendor=2001, idProduct=7e35
[   61.000146] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   61.000148] usb 1-1.2: Product: Mobile Connect
[   61.000151] usb 1-1.2: Manufacturer: Mobile Connect
[   61.000153] usb 1-1.2: SerialNumber: 0123456789ABCDEF
[   61.047388] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[   61.047586] scsi host6: usb-storage 1-1.2:1.5
[   61.129061] usbcore: registered new interface driver usbserial
[   61.129537] usbcore: registered new interface driver usbserial_generic
[   61.129759] usbserial: USB Serial support registered for generic
[   61.136500] usbcore: registered new interface driver option
[   61.136579] usbserial: USB Serial support registered for GSM modem (1-port)
[   61.138563] option 1-1.2:1.0: GSM modem (1-port) converter detected
[   61.138700] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   61.138934] option 1-1.2:1.1: GSM modem (1-port) converter detected
[   61.139083] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   61.139317] option 1-1.2:1.2: GSM modem (1-port) converter detected
[   61.139441] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[   61.139675] option 1-1.2:1.3: GSM modem (1-port) converter detected
[   61.139799] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[   61.159800] qmi_wwan 1-1.2:1.4: cdc-wdm2: USB WDM device
[   61.161192] qmi_wwan 1-1.2:1.4 wwan1: register 'qmi_wwan' at usb-0000:00:1a.0-1.2, WWAN/QMI device, 0e:64:99:0e:84:ea
[   61.161273] usbcore: registered new interface driver qmi_wwan
[   62.062380] scsi 6:0:0:0: Direct-Access              SD Storage       0000 PQ: 0 ANSI: 2
[   62.062669] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   62.069090] sd 6:0:0:0: [sdb] Unit Not Ready
[   62.069095] sd 6:0:0:0: [sdb] Sense Key : Illegal Request [current] 
[   62.069100] sd 6:0:0:0: [sdb] Add. Sense: Invalid command operation code
[   62.078071] sd 6:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   62.078078] sd 6:0:0:0: [sdb] Sense Key : Illegal Request [current] 
[   62.078093] sd 6:0:0:0: [sdb] Add. Sense: Invalid command operation code
[   62.078102] sd 6:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[   62.078108] sd 6:0:0:0: [sdb] 0-byte physical blocks
[   62.079419] sd 6:0:0:0: [sdb] Write Protect is off
[   62.079422] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[   62.080556] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   62.089125] sd 6:0:0:0: [sdb] Unit Not Ready
[   62.089130] sd 6:0:0:0: [sdb] Sense Key : Illegal Request [current] 
[   62.089136] sd 6:0:0:0: [sdb] Add. Sense: Invalid command operation code
[   62.101229] sd 6:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   62.101235] sd 6:0:0:0: [sdb] Sense Key : Illegal Request [current] 
[   62.101240] sd 6:0:0:0: [sdb] Add. Sense: Invalid command operation code
[   62.104209] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[  109.853322] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[  110.198757] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[  110.198759] EDD information not available.
[  154.360887] fuse init (API version 7.26)

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

Re: D-LINK DWM-222

Post by LOM » 03 May 2018, 16:38

So you've got a wwan1 data device and a cdc-wdm2 cmd device which linux ModemManager and NetworkManager will handle. I suppose openSuse does not include them in the distro so you have to install them afterwards. You'll also need libqmi in case you don't already have it.

We have now reached a point where we are far away from what this forum is about, there are mailinglists for both of those programs in case you need any help with them.

kacior
Posts: 4
Joined: 03 May 2018, 10:21

Re: D-LINK DWM-222

Post by kacior » 04 May 2018, 06:46

LOM wrote:So you've got a wwan1 data device and a cdc-wdm2 cmd device which linux ModemManager and NetworkManager will handle. I suppose openSuse does not include them in the distro so you have to install them afterwards. You'll also need libqmi in case you don't already have it.

We have now reached a point where we are far away from what this forum is about, there are mailinglists for both of those programs in case you need any help with them.
Yes, I get it. I have ModemManager and NetworkManager installes. I'm using lenovo modem in thinkpad and huawei modem without issues on new kernels.
So I will fight with it by myself now, thank's anyway for some advices.

ViBE
Posts: 2
Joined: 15 Apr 2022, 23:47

Re: D-LINK DWM-222

Post by ViBE » 16 Apr 2022, 00:11

hey there. maybe im not in the right place. i also have a DWM-222 and i would like to use it in PPP (?) mode. is this method switches the mode on the actual machine or it directly switches on the modem itself?

Post Reply