Author Message

<  Setup Discussion  ~  Switch model E3131 to HiLink

PostPosted: Mon Dec 05, 2016 3:19 pm Reply with quote
Posts: 2 Joined: Mon Dec 05, 2016 3:15 pm
Hello all,

I have a Huawei E3131 3G dongle. I am trying to use it as a HiLink modem on a PC running Ubuntu 16.04. The ID of the device is 12d1:14fe. When I plug it in, it automatically switches to a serial modem with ID 14fe:1506.

Is there any configuration that enables the use of the modem as a HiLink CDC Ethernet device?

Thank you very much in advance.


Offline
PostPosted: Tue Dec 06, 2016 12:32 pm Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
parraman wrote:

Is there any configuration that enables the use of the modem as a HiLink CDC Ethernet device?



No, the direct ethernet interface in 12d1:1506 is either qmi_wwan or cdc_ncm depending on which firmware the dongles has.


Offline
PostPosted: Tue Dec 06, 2016 9:00 pm Reply with quote
Site Admin Posts: 6436 Joined: Sat Nov 03, 2007 12:30 am
I have the E3131s2. It doesn't say HiLink anywhere.

I can reach the mode that LOM pointed out with this MessageContent:
55534243123456780000000000000011062000000101000100000000000000

Then there is the RNDIS (Windows) mode:
55534243123456780000000000000011060000000000000000000000000000

And the Serial/PPP mode:
55534243123456780000000000000011063000000100010000000000000000


Offline
PostPosted: Wed Dec 14, 2016 6:17 pm Reply with quote
Posts: 2 Joined: Mon Dec 05, 2016 3:15 pm
Sorry for the delay and thank you very much for the answers...

As I understood from your messages, there is no way to setup the modem to work as an Ethernet device, is it? I have tried the MessageContents you provided with both DefaultProduct=0x1506 and DefaultProduct=0x14fe and none of the targeted products (12d1:1001 and 12d1:1c05) resulted in a new Ethernet device being installed in the system. I am currently using Linux Ubuntu 16.04.

I would like to connect to the device without having to use AT commands via USBSerial ports...

Thanks a lot!


Offline
PostPosted: Thu Dec 15, 2016 5:15 pm Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
parraman wrote:

As I understood from your messages, there is no way to setup the modem to work as an Ethernet device, is it?


There is no composition containing the cdc_ether protocol but 12d1:1506 has a cdc_ncm interface.
cdc_ncm is just a more efficient ethernet protocol than cdc_ether and Ubuntu ought to have support for it in 16.04
hw_cdc_ncm is the name of the driver.

12d1:1001 or 12d1:1c05 has only got serial interfaces for ppp dialup making it possible for those who don't want to have direct ethernet function to switch their dongle to this backward compatible mode, this is the opposit of what you want so not useful for you.

You could, as a last resort, try to use a McIntosh switch message.
I don't know what protocols they have but it might be that it is cdc_ether compatible.
Change the 110620 in the switch msg to 110610


Offline
PostPosted: Thu Apr 20, 2017 7:30 pm Reply with quote
Posts: 14 Joined: Fri Feb 19, 2016 5:40 pm
Hi guys, I'm definitely lacking some info. I've got a E3131 running on an arm-linux drone.
I've got the modeswitch line to have it become 0x1506.
Then one can load the option.ko module which creates three usb serial port,
where /dev/tyyUSB0 can be used by pppd to create an internet connection.

until recently.
The very same E3131 stick now features a different "unswitched" id (forgot witch, stick in in the office) and can be switched to 0x1c05

No 0x1506 anymore!

the option.ko module does create three usb ttys for 0x1c05, too,
but the chat script of pppd doesn't get a sensible answer for ATZ anymore.


1) What has possibly happened, actually what have I presumably done to cause that?

2) How do I configure it back to the old 0x15ca -> 0x1506 switching behavior? !

thx in advance!


Offline
PostPosted: Fri Apr 21, 2017 5:30 am Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
dipr wrote:
The very same E3131 stick now features a different "unswitched" id (forgot witch, stick in in the office) and can be switched to 0x1c05


The initial id does not change unless you have tampered with the stick or flashed another firmware on it.


Offline
PostPosted: Fri Apr 21, 2017 9:08 am Reply with quote
Posts: 14 Joined: Fri Feb 19, 2016 5:40 pm
LOM wrote:
dipr wrote:
The very same E3131 stick now features a different "unswitched" id (forgot witch, stick in in the office) and can be switched to 0x1c05


The initial id does not change unless you have tampered with the stick or flashed another firmware on it.


Scary fact for sure. I certainly didn't flash any new firmware, and am rather sure i didn't tamper with it
as the environment (embedded arm) doesn't have a tty program besides chat used by pppd.

So it appears that a 3G usb device can be mode switched between two configurations
(set up via AT^SETPORT) using usb_modeswitch, in my case ("Huawei E3131") from 0x15ca -> 0x1506,
AND
one can somehow switch the whole device to a different product,
in my case from E3131 (0x15ca -> 0x1506) to a "Huawei E173s" (0x1c0b -> 0x1c05) !

How does product switching work, and how to revert it (tools, commands)?
Can every E313 become a E173s? Is that a good thing, or is my E3131 bricked now?

Background
This was http://draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=16360#p16360 is the old switched E3131 device, and this is the new device, in switched form (on a Win10 PC):

Code:
    =========================== USB Port4 ===========================

Connection Status        : 0x01 (Device is connected)
Port Chain               : 1-3-4
Properties               : 0x01
 IsUserConnectable       : yes
 PortIsDebugCapable      : no
 PortHasMultiCompanions  : no
 PortConnectorIsTypeC    : no
ConnectionIndex          : 4
CompanionIndex           : 0
 CompanionHubSymLnk      : USB#VID_0451&PID_8040#5&670b65e&0&18#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
 CompanionPortNumber     : 4

      ======================== USB Device ========================

        +++++++++++++++++ Device Information ++++++++++++++++++
Device Description       : USB-Verbundgerät
Device Path              : \\.\usb#vid_12d1&pid_1c05#6&3310d4a9&0&4#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Device ID                : USB\VID_12D1&PID_1C05\6&3310D4A9&0&4
Hardware IDs             : USB\VID_12D1&PID_1C05&REV_0102 USB\VID_12D1&PID_1C05
Driver KeyName           : {36fc9e60-c465-11cf-8056-444553540000}\0018 (GUID_DEVCLASS_USB)
Driver                   : \SystemRoot\System32\drivers\usbccgp.sys (Version:   Date: )
Driver Inf               : C:\WINDOWS\inf\usb.inf
Legacy BusType           : PNPBus
Class                    : USB
Class GUID               : {36fc9e60-c465-11cf-8056-444553540000} (GUID_DEVCLASS_USB)
Interface GUID           : {a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Service                  : usbccgp
Enumerator               : USB
Location Info            : Port_#0004.Hub_#0004
Location IDs             : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(3)#USB(4), ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS03)#USB(4)
Container ID             : {814bbdfd-25a3-11e7-a940-bc5ff4e91122}
Manufacturer Info        : (Standard-USB-Hostcontroller)
Capabilities             : 0x84 (Removable, SurpriseRemovalOK)
Status                   : 0x0180600A (DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code             : 0
Address                  : 4
Power State              : D0 (supported: D0, D2, D3, wake from D0, wake from D2)
 Child Device 1          : HUAWEI Enumerator Device
  Device ID              : USB\VID_12D1&PID_1C05&MI_00\7&67368A9&0&0000
  Class                  : USB
 Child Device 2          : HUAWEI Enumerator Device
  Device ID              : USB\VID_12D1&PID_1C05&MI_01\7&67368A9&0&0001
  Class                  : USB
 Child Device 3          : HUAWEI Enumerator Device
  Device ID              : USB\VID_12D1&PID_1C05&MI_02\7&67368A9&0&0002
  Class                  : USB

        ---------------- Connection Information ---------------
Connection Index         : 0x04 (4)
Connection Status        : 0x01 (DeviceConnected)
Current Config Value     : 0x01
Device Address           : 0x0B (11)
Is Hub                   : 0x00 (no)
Number Of Open Pipes     : 0x07 (7)
Device Bus Speed         : 0x02 (High-Speed)
Pipe0ScheduleOffset      : 0x00 (0)
Pipe1ScheduleOffset      : 0x00 (0)
Pipe2ScheduleOffset      : 0x00 (0)
Pipe3ScheduleOffset      : 0x00 (0)
Pipe4ScheduleOffset      : 0x00 (0)
Pipe5ScheduleOffset      : 0x00 (0)
Pipe6ScheduleOffset      : 0x00 (0)

        --------------- Connection Information V2 -------------
Connection Index         : 0x04 (4)
Length                   : 0x10 (16 bytes)
SupportedUsbProtocols    : 0x03
 Usb110                  : 1 (yes)
 Usb200                  : 1 (yes)
 Usb300                  : 0 (no)
 ReservedMBZ             : 0x00
Flags                    : 0x00
 DevIsOpAtSsOrHigher     : 0 (Is not operating at SuperSpeed or higher)
 DevIsSsCapOrHigher      : 0 (Is not SuperSpeed capable or higher)
 DevIsOpAtSsPlusOrHigher : 0 (Is not operating at SuperSpeed?? or higher)
 DevIsSsPlusCapOrHigher  : 0 (Is not SuperSpeed?? capable or higher)
 ReservedMBZ             : 0x00

      -------------------- Device Descriptor --------------------
bLength                  : 0x12 (18 bytes)
bDescriptorType          : 0x01 (Device Descriptor)
bcdUSB                   : 0x200 (USB Version 2.00)
bDeviceClass             : 0x00 (defined by the interface descriptors)
bDeviceSubClass          : 0x00
bDeviceProtocol          : 0x00
bMaxPacketSize0          : 0x40 (64 bytes)
idVendor                 : 0x12D1 (Huawei Technologies Co., Ltd.)
idProduct                : 0x1C05
bcdDevice                : 0x0102
iManufacturer            : 0x02 (String Descriptor 2)
 Language 0x0409         : "HUAWEI Technology"
iProduct                 : 0x01 (String Descriptor 1)
 Language 0x0409         : "HUAWEI Mobile"
iSerialNumber            : 0x00 (No String Descriptor)
bNumConfigurations       : 0x01

    ------------------ Configuration Descriptor -------------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x02 (Configuration Descriptor)
wTotalLength             : 0x0091 (145 bytes)
bNumInterfaces           : 0x03
bConfigurationValue      : 0x01
iConfiguration           : 0x00 (No String Descriptor)
bmAttributes             : 0xC0
 D7: Reserved, set 1     : 0x01
 D6: Self Powered        : 0x01 (yes)
 D5: Remote Wakeup       : 0x00 (no)
 D4..0: Reserved, set 0  : 0x00
MaxPower                 : 0xFA (500 mA)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x00
bAlternateSetting        : 0x00
bNumEndpoints            : 0x03 (3 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 00

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 00 00 00

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x81 (Direction=IN EndpointID=1)
bmAttributes             : 0x03 (TransferType=Interrupt)
wMaxPacketSize           : 0x0040
 Bits 15..13             : 0x00 (reserved, must be zero)
 Bits 12..11             : 0x00 (0 additional transactions per microframe -> allows 1..1024 bytes per packet)
 Bits 10..0              : 0x40 (64 bytes per packet)
bInterval                : 0x05 (5 ms)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x82 (Direction=IN EndpointID=2)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x01 (Direction=OUT EndpointID=1)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x01
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02 (2 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 01 01 01

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x83 (Direction=IN EndpointID=3)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x02 (Direction=OUT EndpointID=2)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x02
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02 (2 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 02 02 02

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x84 (Direction=IN EndpointID=4)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x03 (Direction=OUT EndpointID=3)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0200 (max 512 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

      --------------- Device Qualifier Descriptor ---------------
bLength                  : 0x0A (10 bytes)
bDescriptorType          : 0x06 (Device_qualifier Descriptor)
bcdUSB                   : 0x200 (USB Version 2.00)
bDeviceClass             : 0x00 (Interface Class Defined Device)
bDeviceSubClass          : 0x00
bDeviceProtocol          : 0x00
bMaxPacketSize0          : 0x40 (64 Bytes)
bNumConfigurations       : 0x01 (1 other-speed configuration)
bReserved                : 0x00

    ------------ Other Speed Configuration Descriptor -------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x07 (Other_speed_configuration Descriptor)
wTotalLength             : 0x0091 (145 bytes)
bNumInterfaces           : 0x03
bConfigurationValue      : 0x01
iConfiguration           : 0x00 (No String Descriptor)
bmAttributes             : 0xC0
 D7: Reserved, set 1     : 0x01
 D6: Self Powered        : 0x01 (yes)
 D5: Remote Wakeup       : 0x00 (no)
 D4..0: Reserved, set 0  : 0x00
MaxPower                 : 0xFA (500 mA)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x00
bAlternateSetting        : 0x00
bNumEndpoints            : 0x03 (3 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 00

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 00 00 00

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x81 (Direction=IN EndpointID=1)
bmAttributes             : 0x03 (TransferType=Interrupt)
wMaxPacketSize           : 0x0040
 Bits 15..13             : 0x00 (reserved, must be zero)
 Bits 12..11             : 0x00 (0 additional transactions per microframe -> allows 1..1024 bytes per packet)
 Bits 10..0              : 0x40 (64 bytes per packet)
bInterval                : 0x05 (5 ms)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x82 (Direction=IN EndpointID=2)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x01 (Direction=OUT EndpointID=1)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x01
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02 (2 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 01 01 01

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x83 (Direction=IN EndpointID=3)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x02 (Direction=OUT EndpointID=2)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x02
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02 (2 Endpoints)
bInterfaceClass          : 0xFF (Vendor Specific)
bInterfaceSubClass       : 0xFF
bInterfaceProtocol       : 0xFF
iInterface               : 0x00 (No String Descriptor)

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 00 10 01

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 04 24 02 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x05 (5 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 05 24 01 00 02

        ----------------- Unknown Descriptor ------------------
bLength                  : 0x06 (6 bytes)
bDescriptorType          : 0x24
Data (HexDump)           : 06 24 06 02 02 02

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x84 (Direction=IN EndpointID=4)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x03 (Direction=OUT EndpointID=3)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (max 64 bytes)
bInterval                : 0x20 (at most 1 NAK each 32 microframes)

      -------------------- String Descriptors -------------------
             ------ String Descriptor 0 ------
bLength                  : 0x04 (4 bytes)
bDescriptorType          : 0x03 (String Descriptor)
Language ID[0]           : 0x0409 (English - United States)
             ------ String Descriptor 1 ------
bLength                  : 0x1C (28 bytes)
bDescriptorType          : 0x03 (String Descriptor)
Language 0x0409          : "HUAWEI Mobile"
             ------ String Descriptor 2 ------
bLength                  : 0x24 (36 bytes)
bDescriptorType          : 0x03 (String Descriptor)
Language 0x0409          : "HUAWEI Technology"


Offline
PostPosted: Fri Apr 21, 2017 9:53 am Reply with quote
Posts: 14 Joined: Fri Feb 19, 2016 5:40 pm
This is what Windows creates for the mystery E173s:
Attachment:
File comment: Windows Devices for E173s zombie
HuaweiE3131-E173s.PNG
HuaweiE3131-E173s.PNG [ 4.64 KiB | Viewed 2572 times ]


Looks like the real 3G modem tty is missing of the typical 3 ttys the E3131 had.

Which one to use to switch the product back to E3131,
or at least to reenable the 3G Modem tty device?


Offline
PostPosted: Fri Apr 21, 2017 11:37 am Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
Using AT^SETPORT is manipulation, it is a Huawei proprietary AT cmd which is not documented and not intended for end-users.
I assume you have removed the network interface and that's why it became something else than an E3131.
Maybe it becomes an E3131 again if you include the network interface in a AT^SETPORT cmd?
You are on your own with this, it is something which is not related to usb_modeswitch.


Offline
PostPosted: Fri Apr 21, 2017 5:21 pm Reply with quote
Site Admin Posts: 6436 Joined: Sat Nov 03, 2007 12:30 am
I had a feeling you have tampered around with AT^SETPORT ...

Check the output of "AT^SETPORT=?" for the available ports - no guarantee though.


Offline
PostPosted: Sat Apr 22, 2017 9:51 am Reply with quote
Posts: 14 Joined: Fri Feb 19, 2016 5:40 pm
Josh wrote:
I had a feeling you have tampered around with AT^SETPORT ...
Except for the life of me I've no idea howthat might have happened, I was in the process of porting my pppd dialup system to the new release of some gadgets firmware, I was quite happy with the E3131's config and had no need to tamper with it.

Quote:
Check the output of "AT^SETPORT=?" for the available ports - no guarantee though.
Thx for the reminder, but the problem is that neither of the two(!) ttyUSBs the option modul is creating will answer to serial communication using cu.
I tried thing like <slience>+++<slience> from the good ol' modem days, and AT, ATZ, ATE not one single OK received.
I think I mights have bricked it.

btw what type/config of E3131 is 12d1 1c05 supposed to be?
(on the inside of the stick it read E3131h2 on the PCB)


Offline
PostPosted: Sat Apr 22, 2017 10:49 am Reply with quote
Site Admin Posts: 6436 Joined: Sat Nov 03, 2007 12:30 am
I don't know "cu". I use "minicom".

Usually, "PC UI" should accept AT commands. There may be unsolicited messages though which may interfere with the cu tool.


Offline
PostPosted: Sat Apr 22, 2017 11:29 am Reply with quote
Posts: 14 Joined: Fri Feb 19, 2016 5:40 pm
I know, thx. But that bricked E3131 has a very weird boot up scheme:
( green blink-blink, pause ) repeated 3 times, ~8 seconds pause , the whole thing repeated ~6 times.
Only then it shows up via lsusb as 12d1:1c05
, it never took the device over a minute to show up on lsusb!

The three resuting ttyUSBs are not responding to whatever I type in, though.

But I got me another E3131 yesterday, this time apparently the HiLink version.
Will post here the plethora of modeswitching data it responds to, a very versatile device indeed.


Offline
PostPosted: Sat Apr 22, 2017 12:05 pm Reply with quote
Site Admin Posts: 6436 Joined: Sat Nov 03, 2007 12:30 am
A propos - if your original E3131 is bricked, you might try to re-flash the firmware.


Offline

Display posts from previous:  Sort by:

All times are UTC+02:00
Page 1 of 2
16 posts
Go to page 1 2 Next
Users browsing this forum: No registered users and 1 guest
Search for:
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron