OpenWRT and Huawei E3372s

Does this help?

Works with option mode 'lte', but internet speed is still very slow...

However, after router reboot option mode 'lte' stopped working... :crazy_face:

I suggest adding this:

option delay '20'
1 Like

I can't explain in what conditions it works. I'm trying different values of mode and sometimes it works, sometimes it is not. Very strange...

After several reboots it's stopped to work at all. Again can't get address from dhcp...

Ok, I guess I found some pattern: success of connectivity doesn't depend on mode or other options of interface. When openwrt boots, LED of modem blinks green, after several second it starts to blink blue and if after several seconds LED is blue permanently, then connection success, otherwise (if LED continue blinking blue) connection will fail (no dhcp response).

People should stop using these ancient modems :wink:
Let me summarise some recommendations:

  • install the latest modem firmware (21.300.05.*)
  • set ff;10,12,16 USB composition
  • make minimal NCM config, refer to the official instructions if necessary
  • boot the router without modem attached
  • connect the modem using a short extension cable (if available)
1 Like

Ok, I've finally made it work stable.
There is a script /lib/netifd/proto/ncm.sh which is executed every time modem is connected. Inside this script AT commands (listed in /etc/gcom/ncm.json for particular manufacture) are executed.
So I aded sleep 3 between AT^SYSCFGEX="030201",3fffffff,2,4,7fffffffffffffff,, and AT^NDISDUP=1,1,"m.tinkoff". After this dirty hack modem connects and openwrt receives address from DHCP every time.

I still do not understand real reason of such behavior, but this fix works.

2 Likes

You don't really need using mode and send AT^SYSCFGEX each and every time. As mentioned in the wiki, we should try to minimize the modem flash writes.
If there is a need for a delay, it should be placed into ncm.sh before "echo "Starting network $interface".

1 Like

Spent a bit more time trying to find better solution - no luck. There is no any AT command which can be added to /etc/gcom/ncm.json and no any options on network interface which can add delay between mentioned AT commands.
So, after two days of research I gonna stop on this "dirty but working" solution.

@AndrewZ @patrakov thanks so much for your help, guys!

That's also why I have the delay in my config.

Is there any performance improvement or major difference between HiLink setup and the modem setup by using cdc-wdm0?

The only difference I noticed is absence of double NAT. OpenWRT receives IP directly from ISP, not from HiLink's local network.
I didn't noticed any performance improvements though.

which firmware version is running the stick? I got a new one with huawei firmware.
Despite it being noted to be the E3372s, it appears all the time as hilink. I can enter on debug mode but it does now allow me to run the AT command to change the SETPORT value so I can see as a modem on openwrt :confused:

also, could be possible to get the opkg list-installed output? that would allow me to see if it could work here on my openwrt 22.03.5

I used this firmware for my E3372s: E3372s-153_Update_21.300.05.00.00.exe

opkg list-installed:

base-files - 1550-r23630-842932a63d
bcm27xx-gpu-fw - 2022-05-16-3673be308132de102fdff491d1333d9d0f823557
bcm27xx-userland - c4fd1b8986c6d6d4ae5cd51e65a8bbeb495dfa4e-1
brcmfmac-firmware-usb - 20230804-1
brcmfmac-nvram-43430-sdio - 20230804-1
brcmfmac-nvram-43455-sdio - 20230804-1
busybox - 1.36.1-1
ca-bundle - 20230311-1
cgi-io - 2022-08-10-901b0f04-21
chat - 2.4.9.git-2021-01-04-4
comgt - 0.32-35
comgt-ncm - 0.32-35
cypress-firmware-43430-sdio - 5.10.9-2022_0909-1
cypress-firmware-43455-sdio - 5.10.9-2022_0909-1
dnsmasq-full - 2.89-4
dropbear - 2022.82-5
e2fsprogs - 1.47.0-2
firewall4 - 2023-09-01-598d9fbb-1
fstools - 2023-02-28-bfe882d5-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2022-08-13-4c7b720b-2
hostapd-common - 2023-09-08-e5ccbfc6-6
ip-full - 6.3.0-1
ipset - 7.17-1
iw - 5.19-1
iwinfo - 2023-07-01-ca79f641-1
jansson4 - 2.14-3
jshn - 2023-05-23-75a3b870-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.15.137-1-2f29f5d52148751b163e722c9eaead1e
kmod-brcmfmac - 5.15.137+6.1.24-3
kmod-brcmutil - 5.15.137+6.1.24-3
kmod-cfg80211 - 5.15.137+6.1.24-3
kmod-crypto-acompress - 5.15.137-1
kmod-crypto-crc32c - 5.15.137-1
kmod-crypto-hash - 5.15.137-1
kmod-crypto-kpp - 5.15.137-1
kmod-crypto-lib-chacha20 - 5.15.137-1
kmod-crypto-lib-chacha20poly1305 - 5.15.137-1
kmod-crypto-lib-curve25519 - 5.15.137-1
kmod-crypto-lib-poly1305 - 5.15.137-1
kmod-fs-vfat - 5.15.137-1
kmod-hid - 5.15.137-1
kmod-hid-generic - 5.15.137-1
kmod-input-core - 5.15.137-1
kmod-input-evdev - 5.15.137-1
kmod-ipt-core - 5.15.137-1
kmod-ipt-ipset - 5.15.137-1
kmod-lib-crc-ccitt - 5.15.137-1
kmod-lib-crc32c - 5.15.137-1
kmod-lib-lzo - 5.15.137-1
kmod-mii - 5.15.137-1
kmod-mmc - 5.15.137-1
kmod-nf-conntrack - 5.15.137-1
kmod-nf-conntrack-netlink - 5.15.137-1
kmod-nf-conntrack6 - 5.15.137-1
kmod-nf-flow - 5.15.137-1
kmod-nf-ipt - 5.15.137-1
kmod-nf-log - 5.15.137-1
kmod-nf-log6 - 5.15.137-1
kmod-nf-nat - 5.15.137-1
kmod-nf-reject - 5.15.137-1
kmod-nf-reject6 - 5.15.137-1
kmod-nfnetlink - 5.15.137-1
kmod-nft-core - 5.15.137-1
kmod-nft-fib - 5.15.137-1
kmod-nft-nat - 5.15.137-1
kmod-nft-offload - 5.15.137-1
kmod-nls-base - 5.15.137-1
kmod-nls-cp437 - 5.15.137-1
kmod-nls-iso8859-1 - 5.15.137-1
kmod-nls-utf8 - 5.15.137-1
kmod-ppp - 5.15.137-1
kmod-pppoe - 5.15.137-1
kmod-pppox - 5.15.137-1
kmod-slhc - 5.15.137-1
kmod-sound-arm-bcm2835 - 5.15.137-1
kmod-sound-core - 5.15.137-1
kmod-tun - 5.15.137-1
kmod-udptunnel4 - 5.15.137-1
kmod-udptunnel6 - 5.15.137-1
kmod-usb-core - 5.15.137-1
kmod-usb-hid - 5.15.137-1
kmod-usb-net - 5.15.137-1
kmod-usb-net-cdc-ether - 5.15.137-1
kmod-usb-net-cdc-mbim - 5.15.137-1
kmod-usb-net-cdc-ncm - 5.15.137-1
kmod-usb-net-huawei-cdc-ncm - 5.15.137-1
kmod-usb-net-qmi-wwan - 5.15.137-1
kmod-usb-serial - 5.15.137-1
kmod-usb-serial-option - 5.15.137-1
kmod-usb-serial-wwan - 5.15.137-1
kmod-usb-wdm - 5.15.137-1
kmod-wireguard - 5.15.137-1
libatomic1 - 12.3.0-4
libblkid1 - 2.39-2
libblobmsg-json20230523 - 2023-05-23-75a3b870-1
libbpf1 - 1.2.2-1
libc - 1.2.4-4
libcomerr0 - 1.47.0-2
libelf1 - 0.189-1
libevdev - 1.13.0-1
libext2fs2 - 1.47.0-2
libf2fs6 - 1.16.0-1
libgcc1 - 12.3.0-4
libgmp10 - 6.2.1-1
libipset13 - 7.17-1
libiwinfo-data - 2023-07-01-ca79f641-1
libiwinfo20230701 - 2023-07-01-ca79f641-1
libjson-c5 - 0.16-3
libjson-script20230523 - 2023-05-23-75a3b870-1
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2023-03-15-9b5b683f-1
liblucihttp-ucode - 2023-03-15-9b5b683f-1
liblucihttp0 - 2023-03-15-9b5b683f-1
liblzo2 - 2.10-4
libmbedtls12 - 2.28.5-2
libmnl0 - 1.0.5-1
libncurses6 - 6.4-2
libnetfilter-conntrack3 - 1.0.9-2
libnettle8 - 3.9.1-1
libnfnetlink0 - 1.0.2-1
libnftnl11 - 1.2.6-1
libnl-tiny1 - 2023-07-27-bc92a280-1
libopenssl3 - 3.0.12-1
libpthread - 1.2.4-4
librt - 1.2.4-4
libsmartcols1 - 2.39-2
libss2 - 1.47.0-2
libubox20230523 - 2023-05-23-75a3b870-1
libubus-lua - 2023-06-05-f787c97b-1
libubus20230605 - 2023-06-05-f787c97b-1
libuci20130104 - 2023-08-10-5781664d-1
libuclient20201210 - 2023-04-13-007d9454-1
libucode20230711 - 2023-11-07-a6e75e02-1
libudev-zero - 1.0.1-1
libusb-1.0-0 - 1.0.26-3
libustream-mbedtls20201210 - 2023-02-25-498f6e26-1
libuuid1 - 2.39-2
logd - 2022-08-13-4c7b720b-2
lua - 5.1.5-10
luci - git-23.051.66410-a505bb1
luci-app-firewall - git-23.306.38853-a0466cd
luci-app-openvpn - git-23.013.73089-25983b9
luci-app-opkg - git-23.311.75635-769b30c
luci-app-pbr - 1.1.1-7
luci-base - git-23.306.39416-c86c256
luci-compat - git-22.297.83017-673f382
luci-lib-base - git-22.308.54612-9118452
luci-lib-ip - git-23.311.79290-c2a887e
luci-lib-jsonc - git-23.298.74571-62eb535
luci-lib-nixio - git-22.222.71555-88b9088
luci-light - git-23.024.33244-34dee82
luci-lua-runtime - git-23.233.52805-dae2684
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-23.313.56166-6da284d
luci-mod-status - git-23.306.52197-bdcd3e0
luci-mod-system - git-23.306.39416-7d3abf8
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ncm - git-22.209.60806-049d876
luci-proto-ppp - git-21.158.38888-88b9d84
luci-proto-wireguard - git-23.306.39498-cbf7bbd
luci-ssl - git-23.035.26083-7550ad6
luci-theme-bootstrap - git-23.306.39416-c86c256
mkf2fs - 1.16.0-1
mtd - 26
nano - 7.2-2
netifd - 2023-11-10-35facc83-1.1
nftables-json - 1.0.8-1
odhcp6c - 2023-05-12-bcd28363-20
odhcpd-ipv6only - 2023-10-24-d8118f6e-1
openvpn-openssl - 2.5.8-3
openwrt-keyring - 2022-03-25-62471e69-2
opkg - 2022-02-24-d038e5b6-2
partx-utils - 2.39-2
pbr - 1.1.1-7
picocom - 3.1-5
ppp - 2.4.9.git-2021-01-04-4
ppp-mod-pppoe - 2.4.9.git-2021-01-04-4
procd - 2023-06-25-2db83655-2
procd-seccomp - 2023-06-25-2db83655-2
procd-ujail - 2023-06-25-2db83655-2
px5g-mbedtls - 10
resolveip - 2
rpcd - 2023-07-01-c07ab2f9-1
rpcd-mod-file - 2023-07-01-c07ab2f9-1
rpcd-mod-iwinfo - 2023-07-01-c07ab2f9-1
rpcd-mod-luci - 20230123-1
rpcd-mod-rrdns - 20170710
rpcd-mod-ucode - 2023-07-01-c07ab2f9-1
terminfo - 6.4-2
ubox - 2022-08-13-4c7b720b-2
ubus - 2023-06-05-f787c97b-1
ubusd - 2023-06-05-f787c97b-1
uci - 2023-08-10-5781664d-1
uclient-fetch - 2023-04-13-007d9454-1
ucode - 2023-11-07-a6e75e02-1
ucode-mod-fs - 2023-11-07-a6e75e02-1
ucode-mod-html - 1
ucode-mod-lua - 1
ucode-mod-math - 2023-11-07-a6e75e02-1
ucode-mod-nl80211 - 2023-11-07-a6e75e02-1
ucode-mod-rtnl - 2023-11-07-a6e75e02-1
ucode-mod-ubus - 2023-11-07-a6e75e02-1
ucode-mod-uci - 2023-11-07-a6e75e02-1
ucode-mod-uloop - 2023-11-07-a6e75e02-1
uhttpd - 2023-06-25-34a8a74d-1
uhttpd-mod-ubus - 2023-06-25-34a8a74d-1
urandom-seed - 3
usb-modeswitch - 2022-02-24-3c8595a4-1
usbutils - 014-1
usign - 2020-05-23-f1f65026-1
wireguard-tools - 1.0.20210914-2
wireless-regdb - 2023.09.01-1
wpad-basic-mbedtls - 2023-09-08-e5ccbfc6-6
wwan - 2019-04-29-6
zlib - 1.2.13-1
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.