Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
eewlll
Posts: 1
Joined: 01 Feb 2014, 18:50

D-Link DWM-157 B1(2001:00a6) config

Post by eewlll » 01 Feb 2014, 20:42

I don't find DWM-157 B1 from data file, could you please add it to next update of the data package. let me know if need more information. Thanks.

I tested it on my Debian machine.

Code: Select all

root@debian:~# uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux
Storage mode(dmesg)

Code: Select all

root@debian:~# dmesg
[  233.545255] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[  233.824394] usb 1-1: New USB device found, idVendor=2001, idProduct=00a6
[  233.824410] usb 1-1: New USB device strings: Mfr=4, Product=5, SerialNumber=6
[  233.824439] usb 1-1: Product: D-Link DWM-157
[  233.824453] usb 1-1: Manufacturer: D-Link,Inc  
[  233.824461] usb 1-1: SerialNumber: 532274400030500
[  233.890086] Initializing USB Mass Storage driver...
[  233.891879] scsi3 : usb-storage 1-1:1.0
[  233.893281] usbcore: registered new interface driver usb-storage
[  233.893311] USB Mass Storage support registered.
[  234.898872] scsi 3:0:0:0: CD-ROM            HSPA USB SCSI CD-ROM      6225 PQ: 0 ANSI: 0 CCS
[  234.907809] sr1: scsi3-mmc drive: 0x/0x caddy
[  234.910519] sr 3:0:0:0: Attached scsi CD-ROM sr1
[  234.912467] sr 3:0:0:0: Attached scsi generic sg2 type 5
Storage mode(2001:00a6)

Code: Select all

root@debian:~# lsusb
Bus 001 Device 002: ID 2001:00a6 D-Link Corp.
Storage mode(usb-devices)

Code: Select all

root@debian:~# usb-devices
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  2
P:  Vendor=2001 ProdID=00a6 Rev=03.00
S:  Manufacturer=D-Link,Inc  
S:  Product=D-Link DWM-157
S:  SerialNumber=532274400030500
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
data of usb_modeswitch.d

Code: Select all

root@debian:~# cat /etc/usb_modeswitch.d/2001\:00a6 
# D-Link DWM-157 B1

DefaultVendor=  0x2001
DefaultProduct= 0x00a6

TargetVendor=   0x2001
TargetProduct=  0x7d02

MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
Tested with command line

Code: Select all

root@debian:~# usb_modeswitch -c /etc/usb_modeswitch.d/2001\:00a6
Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Ambiguous Class/InterfaceClass: 0xef/0x08
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HSPA USB
   Model String: SCSI CD-ROM     
Revision String: 6225
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: D-Link,Inc  
     Product: D-Link DWM-157
  Serial No.: 532274400030500
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
-> Run lsusb to note any changes. Bye.
Modem mode(2001:7d02)

Code: Select all

root@debian:~# lsusb
Bus 001 Device 007: ID 2001:7d02 D-Link Corp.
Modem mode(dmesg)

Code: Select all

root@debian:~# dmesg
[ 2227.076679] usb 1-1: new high-speed USB device number 7 using ehci_hcd
[ 2227.375359] usb 1-1: New USB device found, idVendor=2001, idProduct=7d02
[ 2227.375363] usb 1-1: New USB device strings: Mfr=9, Product=10, SerialNumber=0
[ 2227.375366] usb 1-1: Product: D-Link DWM-157
[ 2227.375367] usb 1-1: Manufacturer: D-Link,Inc  
[ 2227.385422] option 1-1:1.2: GSM modem (1-port) converter detected
[ 2227.385643] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 2227.387643] option 1-1:1.3: GSM modem (1-port) converter detected
[ 2227.387800] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 2227.389435] option 1-1:1.4: GSM modem (1-port) converter detected
[ 2227.389581] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 2227.391539] option 1-1:1.5: GSM modem (1-port) converter detected
[ 2227.391644] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Modem mode(usb-devices)

Code: Select all

root@debian:~# usb-devices
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2001 ProdID=7d02 Rev=03.00
S:  Manufacturer=D-Link,Inc  
S:  Product=D-Link DWM-157
C:  #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=(none)
I:  If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

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

Re: D-Link DWM-157 B1(2001:00a6) config

Post by LOM » 03 Feb 2014, 16:03

Thank you very much for the report, 2001:00a6 is an initial id not seen before. It will be included in the next update of the data package.

Post Reply