Activation Codes and Methods, Hardware Details, Sniffing
A.E.I.O.U.
Posts: 4
Joined: 17 Dec 2015, 15:30

E5786/R226 Speed Issues

Post by A.E.I.O.U. » 17 Dec 2015, 16:09

Hi guys, first of all thank you for this amazing and (for me) essential piece of software. I really appreciate your work! I am using usb_modeswitch successfully in a lot of distributions with a lot of different modems, but now i encountered an issue i really can't get rid of. I am using a brand new r226(Same hardware as E5786) from Vodafone flashed with the newest unbranded Firmware from Huawei. The switching works perfectly and everything is just fine, except for the download speed. The upload speed is at about 45-48MBit/s which is just fine, but the upload speed is at about 0.8 - 1 MBit/s. If i am connected over 802.11ac the download speeds are at about 145MBit/s and the upload is at about 45MBit/s. I have encountered this issue on various distributions (Fedora 22, Fedora 23, Ubuntu 14.04LTS and Ubuntu 15.10) and different laptops/pc's. I am using the newest usb_modswitch version (usb-modeswitch-2.2.6). I KNOW that this is probably not the right forum for my question, but in this case usb_modeswitch is the lowest common denominator and i want to use it as a start, to get hints of you guys to get in touch with other forums. I hope somebody can help me :D

lsusb output:

Code: Select all

Bus 002 Device 009: ID 12d1:15bf Huawei Technologies Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x15bf 
  bcdDevice            1.02
  iManufacturer           1 HUAWEI_MOBILE
  iProduct                2 HUAWEI_MOBILE
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          128
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass        224 Wireless
      bFunctionSubClass       1 Radio Frequency
      bFunctionProtocol       3 RNDIS
      iFunction               7 RNDIS
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      3 RNDIS
      iInterface              5 RNDIS Communications Control
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 01
      ** UNRECOGNIZED:  04 24 02 00
      ** UNRECOGNIZED:  05 24 06 00 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               5
        bMaxBurst               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              6 RNDIS Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              8 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000000
      (Missing must-be-set LPM bit!)
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000f
      Device can operate at Low Speed (1Mbps)
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         500 micro seconds
Device Status:     0x0001
  Self Powered
dmesg output:

Code: Select all

[  566.732922] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  566.732925] usb 2-2: Product: HUAWEI_MOBILE
[  566.732927] usb 2-2: Manufacturer: HUAWEI_MOBILE
[  566.732929] usb 2-2: SerialNumber: 0123456789ABCDEF
[  566.778420] usb-storage 2-2:1.0: USB Mass Storage device detected
[  566.778728] scsi host10: usb-storage 2-2:1.0
[  567.716181] usb 2-2: USB disconnect, device number 4
[  568.000687] usb 2-2: new SuperSpeed USB device number 5 using xhci_hcd
[  568.016498] usb 2-2: New USB device found, idVendor=12d1, idProduct=1c20
[  568.016504] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  568.016507] usb 2-2: Product: HUAWEI_MOBILE
[  568.016510] usb 2-2: Manufacturer: HUAWEI_MOBILE
[  568.016512] usb 2-2: SerialNumber: 0123456789ABCDEF
[  568.076296] usb-storage 2-2:1.0: USB Mass Storage device detected
[  568.076582] scsi host11: usb-storage 2-2:1.0
[  569.081212] scsi 11:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  569.082736] sr 11:0:0:0: [sr0] scsi-1 drive
[  569.083776] sr 11:0:0:0: Attached scsi CD-ROM sr0
[  569.084623] sr 11:0:0:0: Attached scsi generic sg2 type 5
[  649.627826] usb 2-2: USB disconnect, device number 5
[  666.497843] usb 2-2: new SuperSpeed USB device number 6 using xhci_hcd
[  666.532347] usb 2-2: New USB device found, idVendor=12d1, idProduct=1c20
[  666.532353] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  666.532357] usb 2-2: Product: HUAWEI_MOBILE
[  666.532359] usb 2-2: Manufacturer: HUAWEI_MOBILE
[  666.532362] usb 2-2: SerialNumber: 0123456789ABCDEF
[  666.597642] usb-storage 2-2:1.0: USB Mass Storage device detected
[  666.597873] scsi host12: usb-storage 2-2:1.0
[  667.542508] usb 2-2: USB disconnect, device number 6
[  667.853883] usb 2-2: new SuperSpeed USB device number 7 using xhci_hcd
[  667.869726] usb 2-2: New USB device found, idVendor=12d1, idProduct=1c20
[  667.869732] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  667.869735] usb 2-2: Product: HUAWEI_MOBILE
[  667.869738] usb 2-2: Manufacturer: HUAWEI_MOBILE
[  667.869740] usb 2-2: SerialNumber: 0123456789ABCDEF
[  667.915276] usb-storage 2-2:1.0: USB Mass Storage device detected
[  667.915507] scsi host13: usb-storage 2-2:1.0
[  668.919759] scsi 13:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  668.921068] sr 13:0:0:0: [sr0] scsi-1 drive
[  668.921646] sr 13:0:0:0: Attached scsi CD-ROM sr0
[  668.922595] sr 13:0:0:0: Attached scsi generic sg2 type 5
[  848.166630] IPv6: ADDRCONF(NETDEV_UP): virbr0-nic: link is not ready
[  936.761858] IPv6: ADDRCONF(NETDEV_UP): wlp0s16f1u1: link is not ready
[  936.786422] IPv6: ADDRCONF(NETDEV_UP): wlp0s16f1u1: link is not ready
[ 1212.235866] usb 2-2: USB disconnect, device number 7
[ 1223.918235] usb 2-2: new SuperSpeed USB device number 8 using xhci_hcd
[ 1223.934026] usb 2-2: New USB device found, idVendor=12d1, idProduct=1f07
[ 1223.934032] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1223.934035] usb 2-2: Product: HUAWEI_MOBILE
[ 1223.934038] usb 2-2: Manufacturer: HUAWEI_MOBILE
[ 1223.934041] usb 2-2: SerialNumber: 0123456789ABCDEF
[ 1223.979551] usb-storage 2-2:1.0: USB Mass Storage device detected
[ 1223.979711] scsi host14: usb-storage 2-2:1.0
[ 1224.907922] usb 2-2: USB disconnect, device number 8
[ 1225.321510] usb 2-2: new SuperSpeed USB device number 9 using xhci_hcd
[ 1225.336737] usb 2-2: New USB device found, idVendor=12d1, idProduct=15bf
[ 1225.336744] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1225.336747] usb 2-2: Product: HUAWEI_MOBILE
[ 1225.336750] usb 2-2: Manufacturer: HUAWEI_MOBILE
[ 1225.430362] usb-storage 2-2:1.2: USB Mass Storage device detected
[ 1225.431458] scsi host15: usb-storage 2-2:1.2
[ 1225.461795] usbcore: registered new interface driver cdc_ether
[ 1225.474644] rndis_host 2-2:1.0 eth0: register 'rndis_host' at usb-0000:00:10.0-2, RNDIS device, 0c:5b:8f:27:9a:64
[ 1225.474749] usbcore: registered new interface driver rndis_host
[ 1225.482733] rndis_host 2-2:1.0 enp0s16f0u2: renamed from eth0
[ 1225.501126] IPv6: ADDRCONF(NETDEV_UP): enp0s16f0u2: link is not ready
[ 1226.436318] scsi 15:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
[ 1226.438353] sd 15:0:0:0: Attached scsi generic sg2 type 0
[ 1226.446121] sd 15:0:0:0: [sdc] Attached SCSI removable disk

dark_line
Posts: 2
Joined: 06 Jan 2016, 17:38

Re: E5786/R226 Speed Issues

Post by dark_line » 06 Jan 2016, 22:30

A.E.I.O.U. wrote: I am using a brand new r226(Same hardware as E5786) from Vodafone flashed with the newest unbranded Firmware from Huawei.
[/code]
Hello,

I understand that my question is a little off-topic on the USB Modeswitch forum, but it's related to the use of the Huawei E5786, for which information on the Internet is very scare, so I beg for apologies.

A.E.I.O.U., you mention that you flashed your R226 with the latest unbranded Huawei firmware.

Would you be so kind to give more information about the firmware you used to flash, where you got it, and how you flashed it?
Did you also flash a new Web UI?
Could you provide links and version number of firmware and Web UI?

Also, are there differences in the modem functionality? Maybe the Wi-Fi Extended which was originally present when the device was launched, but was absent in most customer products?

Thanks in advance for any information you could give!

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: E5786/R226 Speed Issues

Post by thomasschaefer » 06 Jan 2016, 22:58

Have you tried the original vodafone-software before flashing it?

Are you able to restore the vodafone-software?

I have two branded versions (Deutsche Telekom and Vodafone). The drivers under linux are not the same.

Maybe you have something destroyed by flashing the Huawei-image.

How do you make the speedtests?

dark_line
Posts: 2
Joined: 06 Jan 2016, 17:38

Re: E5786/R226 Speed Issues

Post by dark_line » 06 Jan 2016, 23:53

thomasschaefer wrote:Have you tried the original vodafone-software before flashing it?

Are you able to restore the vodafone-software?

I have two branded versions (Deutsche Telekom and Vodafone). The drivers under linux are not the same.

Maybe you have something destroyed by flashing the Huawei-image.

How do you make the speedtests?
Hello,

Well, my problem is different... FIrst of all, I use the E5786s-32 on a Windows 7 system (that's why I was off-topic from this forum).

Second, it's from the french provider Bouygues Telecom, so it's branded and has customization from this provider.
Current firmware is 21.297.01.00.309
Version Web UI is 17.100.03.00.309

So... if you could provide the links to the Huawei firmware (unbranded) and answer the question about the Wi-Fi Extender (or other changes you could have noticed, regarding the wireless ac for instance), I'd be very grateful.

Also, if you happen to know URLs for the original Vodafone firmware, that would be useful.

For speedtest with the E5786, I don't have a special software, I mainly use online websites such as http://speedtest.net and others.

A.E.I.O.U.
Posts: 4
Joined: 17 Dec 2015, 15:30

Re: E5786/R226 Speed Issues

Post by A.E.I.O.U. » 18 Jan 2016, 10:04

dark_line wrote:
A.E.I.O.U. wrote: I am using a brand new r226(Same hardware as E5786) from Vodafone flashed with the newest unbranded Firmware from Huawei.
[/code]
Hello,

I understand that my question is a little off-topic on the USB Modeswitch forum, but it's related to the use of the Huawei E5786, for which information on the Internet is very scare, so I beg for apologies.

A.E.I.O.U., you mention that you flashed your R226 with the latest unbranded Huawei firmware.

Would you be so kind to give more information about the firmware you used to flash, where you got it, and how you flashed it?
Did you also flash a new Web UI?
Could you provide links and version number of firmware and Web UI?

Also, are there differences in the modem functionality? Maybe the Wi-Fi Extended which was originally present when the device was launched, but was absent in most customer products?

Thanks in advance for any information you could give!
I have the firmware from the Austrian website "lte-forum.at" You can find the link to the newest unbranded Firmware here: click me. The direct link to the firmware is here: direct download. The Download includes the firmware and a new Web-UI. As you already mentioned, the unbranded firmware from the download link above enables the wifi-extender and A LOT of other functionality which is not present in the Vodafone Firmware.

A.E.I.O.U.
Posts: 4
Joined: 17 Dec 2015, 15:30

Re: E5786/R226 Speed Issues

Post by A.E.I.O.U. » 18 Jan 2016, 10:07

thomasschaefer wrote:Have you tried the original vodafone-software before flashing it?

Are you able to restore the vodafone-software?

I have two branded versions (Deutsche Telekom and Vodafone). The drivers under linux are not the same.

Maybe you have something destroyed by flashing the Huawei-image.

How do you make the speedtests?
Thx for your post. No i haven't tried the original firmware, because the functionality of the original firmware is very limited and i need different functionalities from the original huawei firmware. So going back to the Vodafone Firmware is not an option.

For the speedtests i use websites like speedtest.net and for good measure a torrent download or direct http downloads.

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: E5786/R226 Speed Issues

Post by thomasschaefer » 18 Jan 2016, 10:56

If you flash your device with wrong firmware, then you are on your own.

If you think the Huawei E786 is better than R226 ( it isn't in my opinion) then you should buy an E5786.

Now you have a zombie.

A.E.I.O.U.
Posts: 4
Joined: 17 Dec 2015, 15:30

Re: E5786/R226 Speed Issues

Post by A.E.I.O.U. » 18 Jan 2016, 13:35

thomasschaefer wrote:If you flash your device with wrong firmware, then you are on your own.

If you think the Huawei E786 is better than R226 ( it isn't in my opinion) then you should buy an E5786.

Now you have a zombie.
Neither have i flashed the wrong firmware, nor is my E5786/R226 a Zombie. Just to be clear, everything works perfectly fine, besides the usb-modem functionality under linux. All the other combinations (USB+windows, wifi+windows, wifi+linux) work just fine. I just thought that this forum might be a good start to ask my question, probably i was wrong :| If i find a solution, i will post it here so i can probably help someone.

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: E5786/R226 Speed Issues

Post by thomasschaefer » 18 Jan 2016, 14:40

I am not the forum. I am just one user of the forum.
And I think your firmware-mix was no good idea in this case.

Maybe other find a solution for your self made problem, but as long vodafone doesn't publish the firmware of the R226 I will not flash my device with huaweis software.


PS: you may try to reflash your device with:

https://routerunlock.com/download-huawe ... ware-v3-1/

so you can check if you device works with this software in normal speed again.

Unfortunately the software did not fit to my E5786, the flash procedure stops.

notz
Posts: 4
Joined: 12 Dec 2016, 02:32

Re: E5786/R226 Speed Issues

Post by notz » 12 Dec 2016, 02:36

A.E.I.O.U. wrote:Hi guys, first of all thank you for this amazing and (for me) essential piece of software. I really appreciate your work! I am using usb_modeswitch successfully in a lot of distributions with a lot of different modems, but now i encountered an issue i really can't get rid of. I am using a brand new r226(Same hardware as E5786) from Vodafone flashed with the newest unbranded Firmware from Huawei. The switching works perfectly and everything is just fine, except for the download speed. The upload speed is at about 45-48MBit/s which is just fine, but the upload speed is at about 0.8 - 1 MBit/s. If i am connected over 802.11ac the download speeds are at about 145MBit/s and the upload is at about 45MBit/s. I have encountered this issue on various distributions (Fedora 22, Fedora 23, Ubuntu 14.04LTS and Ubuntu 15.10) and different laptops/pc's. I am using the newest usb_modswitch version (usb-modeswitch-2.2.6). I KNOW that this is probably not the right forum for my question, but in this case usb_modeswitch is the lowest common denominator and i want to use it as a start, to get hints of you guys to get in touch with other forums. I hope somebody can help me :D
[/code]
Have you found a solution? It's working at full speed in both directions on windows but not on linux. Flashing back the old vodafone firmware isn't working either, so i can't test if the problem is the firmware.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: E5786/R226 Speed Issues

Post by Josh » 12 Dec 2016, 09:26

notz,

"on Linux" gives a very broad range of possible set-ups.

I assume your device is handled by "Network Manager". In that case its companion "modemmanager" is responsible for initializing the modem. It may be that there is something missing in this initialization compared to Windows.

To find out what the differences are to the initialization on Windows, you need to compare the communication of both systems with the modem.
If modemmanager (mm) is active, run "mmcli -G DEBUG" to increase the logging level. This will give you every command and response from/to the modem. Note that mm has to guess the exact modem model and will probe a lot, sometimes failing.

On Windows, you might have to 'sniff' the raw USB communication between system (driver) and modem. You will have to find out yourself about which 'sniffer' works on you Windows version. Maybe there is a tool (which I am not aware of) which can log the modem communication.

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: E5786/R226 Speed Issues

Post by thomasschaefer » 12 Dec 2016, 10:12

I think the ModemManager is not involved here. The devices work in router-mode.

notz
Posts: 4
Joined: 12 Dec 2016, 02:32

Re: E5786/R226 Speed Issues

Post by notz » 12 Dec 2016, 11:42

Yes, it works per default in router mode (rndis_host device).

On linux i'm able to switch it to modem mode (with usb_modeswitch and a special message) but i was not able to get a connection with network manager. I only see the signal level. I don't know if this mode is supported by the device.
Perhaps i should debug it more.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: E5786/R226 Speed Issues

Post by Josh » 12 Dec 2016, 11:43

thomasschaefer wrote:I think the ModemManager is not involved here. The devices work in router-mode.
Thanks for the information.

Still, if there is a real difference in speed between Windows and Linux, something must be different regarding the handling of these devices ...

Maybe there are issues with the Linux RNDIS driver?

notz
Posts: 4
Joined: 12 Dec 2016, 02:32

Re: E5786/R226 Speed Issues

Post by notz » 12 Jan 2017, 23:06

I sniffed now my windows driver and used the same message content for modeswitch.

And now my modem is running at full speed in both directions. See https://github.com/RMerl/asuswrt-merlin/pull/1140

It would be cool, if this will get included in usb_modeswitch release. Is their an source repo, where i can open a ticket or create a pull request?

Post Reply