Odp: ZTE MF286A - Openwrt
A ponieważ wolę generyczny openwrt to robie tak na generic openwrt z fabrycznym LUCI:
Dodać interfejs WAN_QMI w network/interfaces. Ustawić go na QMI cellular , modem device na /dev/cdc-wdm0, APN, protokół na IPv4, firewall do strefy WAN
QMI nie ustawia prawidłowo APN i dlatego trzeba ustawić z shella APN w modemie:
echo -e -n 'AT+CGDCONT=1,"IP","internet","",0,0\r' > /dev/ttyUSB1
echo -e -n 'AT+CGACT=1,1\r' > /dev/ttyUSB1
echo -e -n 'AT+CFUN=1,1\r' > /dev/ttyUSB1
Powinien powstać wirtualny interfejs WAN_QMI_4
Wstawić w /etc/opkg/customfeeds.conf:
src/gz IceG_repo [url]https://github.com/4IceG/Modem-extras/raw/main/myrepo[/url]
a potem z konsoli:
wget [url]https://github.com/4IceG/Modem-extras/raw/main/myrepo/IceG-repo.pub[/url] -O /tmp/IceG-repo.pub
opkg-key add /tmp/IceG-repo.pub
doinstalować brakujące paczki z repo lub lokalnie:
opkg update
wget --no-check-certificate -O /tmp/internet-detector_0.6-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_0.6-0_all.ipk
wget --no-check-certificate -O /tmp/luci-app-internet-detector_0.6-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_0.6-0_all.ipk
opkg install /tmp/internet-detector_0.6-0_all.ipk
opkg install /tmp/luci-app-internet-detector_0.6-0_all.ipk
(jak widać są pobrane z https://github.com/gSpotx2f/luci-app-internet-detector)
opkg install mailsend
opkg install luci-app-sms-tool-js
opkg install luci-app-modemband
opkg install luci-app-3ginfo-lite
opkg install luci-app-sqm
opkg install mailsend
opkg install irqbalance - opcjonalnie gdy mamy minimum 4 corowe CPU
Wstawić w /etc/config/atcmds.user:
Select AT command ;
APN info > AT+CGDCONT?;AT+CGDCONT?
APN setup > AT+CGDCONT=1,"IP","internet","",0,0;AT+CGDCONT=1,"IP","internet","",0,0
APN apply > AT+CGACT=1,1;AT+CGACT=1,1
Cell lock info > AT+ZLOCKCELL?;AT+ZLOCKCELL?
Cell lock disabled > AT+ZLOCKCELL=0;AT+ZLOCKCELL=0
Cell lock > AT+ZLOCKCELL=earfcn_tag,pci_tag;AT+ZLOCKCELL=AAAA,BBB
DL CA info > AT+ZCAINFO?;AT+ZCAINFO?
UL CA info > AT+ZULCA?;AT+ZULCA?
UL CA disabled > AT+ZULCA=0;AT+ZULCA=0
UL CA enabled > AT+ZULCA=1;AT+ZULCA=1
Locked band info > AT+ZNLOCKBAND?;AT+ZNLOCKBAND?
Modem reboot > AT+CFUN=1,1;AT+CFUN=1,1Na koniec trzeba sobie przeklikać gui i poustawiac po swojemu to co dodaliśmy - zwłaszcza port USB do komunikacji z modemem na zapewne /dev/USB1
