LuCI JS APP: Luci-app-modemband (Set LTE/5G bands for selected 4G/5G modems)

Hi, I created next small LuCI app.

Luci-app-modemband is a My GUI for https://eko.one.pl/?p=openwrt-modemband. A program to set LTE/5G bands for selected 4G/5G modems.

Thanks for the modemband application to @cezary.

Modem drivers are required for proper operation.
kmod-usb-serial kmod-usb-serial-option

+DEPENDS:
sms-tool_2021-12-03-d38898f4-1 modemband_20220404

Important!
Please treat this package as a curiosity/experiment, a package for testing.

Supported devices:
- BroadMobi BM806U
- Dell DW5821e Snapdragon X20 LTE (Foxconn T77W968)
- Fibocom L850-GL
- Fibocom L850-GL in mbim mode
- Fibocom L860-GL
- HP lt4220 (Foxconn T77W676)
- HP lt4220 (Foxconn T77W676) in mbim mode
- Huawei (various models) in serial mode
  - Huawei E3272/E3372/E3276
  - Huawei ME906s
  - Huawei ME909s-120
  - Huawei ME909s-821
  - Huawei ME909s-821a
  - Huawei ME909u-521
- Quectel EC20
- Quectel EC25
- Quectel EG06-E
- Quectel EM12-G
- Quectel EM160R-GL
- Quectel EP06-E
- Quectel RG502Q-EA
- Telit LN940 (Foxconn T77W676)
- Telit LN940 (Foxconn T77W676) in mbim mode
- Telit LN960 (Foxconn T77W968)
- ZTE MF286 (router)
- ZTE MF286A (router)
- ZTE MF286D (router)
- ZTE MF286R (router)

Preview (version 1.0.12-20220404 & modem Quectel EM160R-GL)


Enlarge the page to see the movie with better quality. (CTRL +)


Application version (1.0.12-20220404):
luci-app-modemband_1.0.12-20220404_all.ipk
modemband_20220404_all.ipk

Older versions Application version (1.0.12-20220325): [modemband_20220313_all.ipk](https://github.com/4IceG/luci-app-modemband/releases/download/1.0.12-20220325/modemband_20220313_all.ipk) [luci-app-modemband_1.0.12-20220325_all.ipk](https://github.com/4IceG/luci-app-modemband/releases/download/1.0.12-20220325/luci-app-modemband_1.0.12-20220325_all.ipk)

Application version (1.0.12-20220306):
modemband_20220220_all.ipk
luci-app-modemband_1.0.12-20220306_all.ipk

Do you have another type of modem? Would you like to add support for it?
Send PR/mail with description:
- exact name of modem and ew version number
- VID and PID identifier on the USB bus
- serial port used for communication with the modem ("diagnostic")
- AT command to read the set bands together with an example result
- an AT command to set specific bands
- a list of all bands that can be set on the modem

The latest version always on
https://github.com/4IceG/luci-app-modemband
https://github.com/obsy/packages/tree/master/modemband
https://github.com/obsy/sms_tool

5 Likes

Hello, .thank you for sharing your project that is so interesting. now I use ZBT WG1602 run OpenWrt SNAPSHOT r19227-4551bfd91f / LuCI Master git-22.058.70382-d29400e .and try its but can not install . can do you help me?
Thank you.

Hi @SunyarnDEE ,
I assume you have a supported modem (or want to have a supported one). The modemband package uses the sms-tool package (requires in dependencies), which is not normally found in the OpenWrt repository and has to be specifically compiled for a particular device architecture.

If on eko.one.pl forum there is no sms-tool version for your device you have to compile everything yourself by adding manually packages sms-tool, modemband, luci-app-modmband.

Ok....complete total newb here (less than a week with OpenWrt). Is this possible for the ZBT Links WG1608 with the EP06-A? It has the eko.one.pl and this version of OpenWrt: Powered by LuCI Master (git-22.189.49133-e193259). If so I would need a step by step instruction of how to achieve this (ie. If something needs to be added to the system.....how would I do it?)

Hi @Tauz
Simply speaking:
If you have an image downloaded from the link

you do:

opkg update
opkg install wget
wget https://github.com/4IceG/luci-app-modemband/releases/download/1.0.15-20220720/luci-app-modemband_1.0.15-20220720_all.ipk -O /tmp/luci-app-modemband_1.0.15 -20220720_all.ipk
opkg install /tmp/luci-app-modemband_1.0.15-20220720_all.ipk

I will be building new images for myself during the week, so there will be a package upgrade to github.

Hi @Tauz
If the modem was not supported, write, because I see that you have a slightly different version and I do not know if there are other differences apart from the bands.

I am new to doing anything with AT commands, so your app seems like a great option. Would you be able to make it work for a Quectel RM500Q-AE or will it already work with it?

Hi @keldon00 , prepare everything needed to add support for the modem, as it is described on my github or on the forum eko.one.pl. Then write a message on the forum or on the github.

You can also find a hint above at the beginning of the topic.

I can't install ipk file for openwrt 22.03 version. Can you post ipk file for xiaomi mi r3g v1 ?

Hi @dtthhoanglong , my package is not available in the repository.

You need to download and install the sms-tool package
https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/sms-tool_2022-03-21-f07699ab-1_mipsel_24kc.ipk

Then you need to download files from my github

or add my repository

and install packages from there.

1 Like

IG,

I attempted to install the sms-tool with the link you provided but there is an error returned when using the LUCI Software page.

Collected errors:
 * wfopen: https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/sms-tool_2022-03-21-f07699ab-1_mipsel_24kc.ipk: No such file or directory.
 * pkg_init_from_file: Failed to extract control file from https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/sms-tool_2022-03-21-f07699ab-1_mipsel_24kc.ipk.

Also instructions on how to install the modemband luci app in OWRT is requested. The modem in use is in the list of integrated modems. Router is a ZBT 1608 and Modem Fibocom L860.

Hi @JACOBELIGOODSON

I don't know how to describe the package installation process in a simpler / more understandable way.
Please, start reading the instructions, and don't say it doesn't work, can't be installed, etc.
The manual is there (https://github.com/4IceG/luci-app-modemband), it even explains step by step.

If you can't install (sms-tool) from the link, download the package manually and install it manually. Everything works here, you just have to read and read and read.

The opkg on your firmware does not support SSL. Try replacing the https:// with http:// in the package url.

1 Like

Hi Rafal, I've tried luci-app-modemband with a Huawei E3372h-320 and it's showing not supported. It's running in stick mode, I've followed the info on this post.

ATI
Manufacturer: Huawei Technologies Co.,Ltd.
Model: E3372h-320
Revision: 10.0.3.1(H192SP2C983)
IMEI: XXXXXXXXXXXXXXX
+GCAP: +CGSM,+DS,+ES

at^syscfgex?
^SYSCFGEX: "00",2000000680380,1,2,80800C5

OK

The VID and PID after the switch to stick mode are 12d1:155e. The serial port is /dev/ttyUSB2. luci-app-3ginfo-lite detects the modem fine.

I'm not sure about the AT command syntax to set a band, possibly it's the same as the other E3372h-xxx versions? The bands supported by the modem are 1, 3, 7, 8, 20, 28 (taken from the product's datasheet).

Let me know if you need more info, I'm ok with running any tests as I'm trying this on an old test router, a Fritzbox 7360 v1 (lantiq/xrx200) running snapshot r24223-75aeb7ed62 from 2023-10-28.

Hi @grifo ,
Thanks for reporting. From what I see, support for this version of the E3372h modem has not been added to the package, we need add modem.

Thank you, let me know if there's anything I can do to help and of course I'm more than happy to test.

Hi @grifo ,
Install the latest version and check if it works properly.

Thank you. The modem is recognized now but the band selection isn't working yet.

If I don't select "modem restart" the LED keeps blinking and the modem doesn't restore a link, if I do it goes back to the default bands.

What is the problem? Modem does not accept the new bands settings? or is it unable to connect to the network after changing the bands?

It looks like the modem accepts the new bands settings as I don't get any error and the "Currently set LTE bands" shows the new band/s, but the modem LED starts blinking and the link doesn't restore other than with an interface or modem restart and then the bands go back to default.

To confirm I can run the AT commands via the terminal, if you tell me which commands.