У меня usb-модем Huawei E3372H-153 с альтернативной прошивкой из 4PDA от 2018 года.
Я подключил его к роутеру, добавил сетевой интерфейс lte, привязанный к девайсу /dev/eth1, подключился к интернету, связь есть.
Веб-интерфейс модема по адресу 192.168.8.1 я тоже вижу.
Теперь хотелось бы настроить отображение информации из модема в веб-интерфейсе роутера в разделе Modem.
Конфигурация 3ginfo-lite
Однако, в Details ничего не видно:
Вывод 3ginfo.sh, запущенной из терминала
open(192.168.8.1)
tcgetattr(192.168.8.1)
tcsetattr(192.168.8.1)
reopen(192.168.8.1)
failed tcsetattr(192.168.8.1): Bad file descriptor
open(192.168.8.1)
tcgetattr(192.168.8.1)
tcsetattr(192.168.8.1)
reopen(192.168.8.1)
failed tcsetattr(192.168.8.1): Bad file descriptor
open(192.168.8.1)
tcgetattr(192.168.8.1)
tcsetattr(192.168.8.1)
reopen(192.168.8.1)
failed tcsetattr(192.168.8.1): Bad file descriptor
awk: /tmp/webserver-token: No such file or directory
awk: /tmp/webserver-token: No such file or directory
/usr/bin/wget: unrecognized option: keep-session-cookies
Usage: /usr/bin/wget [options] <URL>
Options:
-4 Use IPv4 only
-6 Use IPv6 only
-O <file> Redirect output to file (use "-" for stdout)
-P <dir> Set directory for output files
--quiet | -q Turn off status messages
--continue | -c Continue a partially-downloaded file
--user=<user> HTTP authentication username
--password=<password> HTTP authentication password
--user-agent | -U <str> Set HTTP user agent
--post-data=STRING use the POST method; send STRING as the data
--post-file=FILE use the POST method; send FILE as the data
--spider | -s Spider mode - only check file existence
--timeout=N | -T N Set connect/request timeout to N seconds
--proxy=on | -Y on Enable interpretation of proxy env vars (default)
--proxy=off | -Y off |
--no-proxy Disable interpretation of proxy env vars
HTTPS options:
--ca-certificate=<cert> Load CA certificates from file <cert>
--no-check-certificate don't validate the server's certificate
--ciphers=<cipherlist> Set the cipher list string
awk: /tmp/device-signal: No such file or directory
awk: /tmp/monitoring-status: No such file or directory
awk: /tmp/monitoring-status: No such file or directory
awk: /tmp/monitoring-status: No such file or directory
sh: missing ]
awk: /tmp/device-information: No such file or directory
awk: /tmp/device-basic_information: No such file or directory
awk: /tmp/device-basic_information: No such file or directory
awk: /tmp/device-information: No such file or directory
awk: /tmp/net-current-plmn: No such file or directory
awk: /tmp/net-current-plmn: No such file or directory
sh: ^[0-9]+$: unknown operand
awk: /tmp/net-signal-para: No such file or directory
awk: /tmp/add-param: No such file or directory
rm: can't remove '/tmp/add-param': No such file or directory
awk: /tmp/net-signal-para: No such file or directory
awk: /tmp/device-signal: No such file or directory
/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/hilink/huawei_hilink.sh: line 243: arithmetic syntax error
{
"conn_time":"0d, 00:39:29",
"conn_time_sec":"2369",
"conn_time_since":"20250516154040",
"rx":"340.7 MiB",
"tx":"71.0 MiB",
"modem":"",
"mtemp":"-",
"firmware":"-",
"cport":"192.168.8.1",
"protocol":"ecm",
"csq":"",
"signal":"",
"operator_name":"",
"operator_mcc":"",
"operator_mnc":"",
"location":"",
"mode":"-",
"registration":"",
"simslot":"",
"imei":"",
"imsi":"",
"iccid":"",
"lac_dec":"",
"lac_hex":"-",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"",
"cid_hex":"-",
"pci":"",
"earfcn":"",
"pband":"",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"",
"rsrq":"",
"rssi":"",
"sinr":""
}
UPD. Похоже, надо править скрипты в modemband и 3ginfo
USB devices
# cat /sys/kernel/debug/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.167 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=11200000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=14dc Rev= 1.02
S: Manufacturer=HUAWEI_MOBILE
S: Product=HUAWEI_MOBILE
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=2ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=10000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.10 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.167 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=11200000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms