RT-AX56U, E5787 and USB CDC-NCM

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

edzat1

New Around Here
You are reading a first sharing from Linux beginner who try to use un-support-ed USB device..
I got old E5787, used RT-AX56U and want to draw USB powered from router to mifi..

At the beginning, I found several way and required manual intervention (or JFFS scripting)..
To avoid that hustle then no choice but to compile the firmware..

It is using no-brain solution by updating "55534243123456780000000000000011062000000101000100000000000000" to "55534243123456780000000000000011063000000000010000000000000000" in usb_modeswitch.c:
Code:
else if (ModeMap & HUAWEINEW_MODE) {
        SHOW_PROGRESS(output,"Using standard Huawei switching message\n");
        detachDriver();
        strcpy(Messages[0],"55534243123456780000000000000011063000000000010000000000000000");
        switchSendMessage();
    }

Those string referred from usb_modeswitch_modes.md:
CDC Ethernet mode: 55534243123456780000000000000011062000000101000100000000000000
CDC NCM (modem) mode: 55534243123456780000000000000011063000000000010000000000000000

Then, compile the firmware..you can take a shortcut by using amcfwm..after updating usb_modeswitch.c file, I made a little adjustment by commenting two lines in amcfwm.sh as I need stable version (git checkout 386_2.6):
Code:
# git checkout "$BRANCH" >/dev/null 2>&1
# git pull origin "$BRANCH" >/dev/null 2>&1

The rest is the finding..

Initially, E5787 recognized as [12d1:1506] and it will not switch anymore so you won't have wwan0 interface..
However with the trick, Merlin's firmware will auto switch the modem USB ID from [12d1:15ca] to [12d1:155e]..

Using iperf (which is copied from E5787 firmware to RT-AX56U), direct USB connection able to exceed >100Mbps..
iperf.png

Measuring WAN by using Speedtest ended up with >80Mbps (DL) which is good enough for me..
speedtest.png

Take note that LTE coverage at my place is not so good..
signal.png

I noticed that WAN LED is not blinking and don't know how to remap it:
IMG_20210715_130636.jpg

BTW, I also had E8372 and E5577 which work fine using USB CDC-Ether without any modification to the firmware..

THAT'S ALL and THANK YOU..!
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top