Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
john8
Posts: 1
Joined: 26 Aug 2020, 12:38

Huawei E3372s-153

Post by john8 » 26 Aug 2020, 12:59

Hello i am trying to understand the modes and the tool USB_ModeSwitch , i am using PFsense

CYFROWY POLSAT plus Huawei E3372s-153
Hardware version: CL1E3372SM
Software version: 22.300.09.00.00
Web UI version: 17.100.13.112.03

Code: Select all

ugen4.2: <HUAWEIMOBILE HUAWEIMOBILE> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0210
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x00ff
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x1f01
  bcdDevice = 0x0102
  iManufacturer = 0x0001  <HUAWEI_MOBILE>
  iProduct = 0x0002  <HUAWEI_MOBILE>
  iSerialNumber = 0x0003  <0123456789ABCDEF>
  bNumConfigurations = 0x0001

 Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x0020
    bNumInterfaces = 0x0001
    bConfigurationValue = 0x0001
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00c0
    bMaxPower = 0x0001

    Interface 0
      bLength = 0x0009
      bDescriptorType = 0x0004
      bInterfaceNumber = 0x0000
      bAlternateSetting = 0x0000
      bNumEndpoints = 0x0002
      bInterfaceClass = 0x0008  <Mass storage>
      bInterfaceSubClass = 0x0006
      bInterfaceProtocol = 0x0050
      iInterface = 0x0004  <Mass Storage>

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 1
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0001  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200
        bInterval = 0x0001
        bRefresh = 0x0000
        bSynchAddress = 0x0000

Code: Select all

Aug 19 12:53:50 	nginx 		2020/08/19 12:53:50 [error] 45260#100457: send() failed (54: Connection reset by peer)
Aug 19 12:54:21 	kernel 		ugen4.2: <HUAWEIMOBILE HUAWEIMOBILE> at usbus4
Aug 19 12:54:21 	kernel 		umass0 on uhub3
Aug 19 12:54:21 	kernel 		umass0: <Mass Storage> on usbus4
Aug 19 12:54:21 	kernel 		cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
Aug 19 12:54:21 	kernel 		cd0: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-2 device
Aug 19 12:54:21 	kernel 		cd0: Serial Number 0123456789ABCDEF
Aug 19 12:54:21 	kernel 		cd0: 40.000MB/s transfers
Aug 19 12:54:21 	kernel 		cd0: Attempt to query device size failed: NOT READY, Medium not present
Aug 19 12:54:21 	kernel 		cd0: quirks=0x10<10_BYTE_ONLY>
Aug 19 12:54:21 	kernel 		da0 at umass-sim0 bus 0 scbus2 target 0 lun 1
Aug 19 12:54:21 	kernel 		da0: <HUAWEI TF CARD Storage 2.31> Removable Direct Access SCSI-2 device
Aug 19 12:54:21 	kernel 		da0: Serial Number 0123456789ABCDEF
Aug 19 12:54:21 	kernel 		da0: 40.000MB/s transfers
Aug 19 12:54:21 	kernel 		da0: Attempt to query device size failed: NOT READY, Medium not present
Aug 19 12:54:21 	kernel 		da0: quirks=0x2<NO_6_BYTE>
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f c1 00 00 04 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfc1
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f fe 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xffe
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f fe 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xffe
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:24 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f c1 00 00 04 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfc1
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f fe 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xffe
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f fe 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xffe
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 0f ff 00 00 01 00
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Info: 0xfff
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
Aug 19 12:54:26 	kernel 		(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back 
if i use

usb_modeswitch -J -W -v 0x12d1 -p 0x1f01

Code: Select all

Look for default devices ...
 Found devices in default mode (1)
Access device 002 on bus 004
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x01 (out) and 0x81 (in)
Using standard Huawei switching message
Looking for active drivers ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 0
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
- usb_modeswitch -J -W -v 0x12d1 -p 0x1f01

Code: Select all

Take all parameters from the command line


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

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1f01
HuaweiNewMode=1

Look for default devices ...
  found USB ID 0000:0000
  found USB ID 0000:0000
  found USB ID 0000:0000
  found USB ID 0000:0000
  found USB ID 0000:0000
  found USB ID 12d1:14dc
   vendor ID matched
 No devices in default mode found. Nothing to do. Bye!
 
usb_modeswitch -J -W -v 0x12d1 -p 0x14dc

Code: Select all

Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort

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

Re: Huawei E3372s-153

Post by LOM » 26 Aug 2020, 13:28

Your 1st switch cmd is successful, it switches the dongle from 12d1:1f01 to 12d1:14dc
Your 2nd switch cmd fails because the dongle has already switched, it no longer has the usb id 12d1:1f01
Your 3rd switch cmd fails because you can not switch 12d1:14dc, that is the id after switching and you can not switch it further.

Post Reply