-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
93 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo-addon/19d21432
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ZTE MF286 | ||
|
||
O=$(sms_tool -d $DEVICE at "at+zrssi;+zcellinfo?;+zcainfo?;+zdon?") | ||
|
||
case "$MODE1" in | ||
2*| \ | ||
3*) | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $2}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
RSSI="'$T' dBm" | ||
ADDON="$ADDON"'{"RSSI":"'$T' dBm"}' | ||
;; | ||
4*| \ | ||
5*| \ | ||
6*) | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $2}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
ADDON="$ADDON"'{"RSCP":"'$T' dBm"}' | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $3}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
ADDON="$ADDON"'{"ECIO":"'$T' dB"}' | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZCELLINFO/ {print $4}' | xargs) | ||
[ -n "$T" ] && MODE="$T" | ||
;; | ||
7*) | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $2}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
RSRP="'$T' dBm" | ||
ADDON="$ADDON"'{"RSRP":"'$T' dBm"}' | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $3}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
RSRQ="'$T' dB" | ||
ADDON="$ADDON"'{"RSRQ":"'$T' dB"}' | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $4}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
RSSI="'$T' dBm" | ||
ADDON="$ADDON"'{"RSSI":"'$T' dBm"}' | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZRSSI/ {print $5}' | xargs) | ||
[ -n "$ADDON" ] && ADDON="$ADDON," | ||
ADDON="$ADDON"'{"SINR":"'$T' dB"}' | ||
SINR="'$T' dB" | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZCELLINFO/ {print $4}' | xargs) | ||
case "$T" in | ||
*"LTE B1") MODE=$(band 1 "LTE ");; | ||
*"LTE B3") MODE=$(band 3 "LTE ");; | ||
*"LTE B7") MODE=$(band 7 "LTE ");; | ||
*"LTE B8") MODE=$(band 8 "LTE ");; | ||
*"LTE B20") MODE=$(band 20 "LTE ");; | ||
*) MODE="LTE B${T}";; | ||
esac | ||
T=$(echo "$O" | awk -F[,:] '/^\+ZCAINFO/ {print $8}' | xargs) | ||
if [ -n "$T" ]; then | ||
case $T in | ||
*"1") MODE="${MODE/LTE/LTE_A} / "$(band 1 "");; | ||
*"3") MODE="${MODE/LTE/LTE_A} / "$(band 3 "");; | ||
*"7") MODE="${MODE/LTE/LTE_A} / "$(band 7 "");; | ||
*"8") MODE="${MODE/LTE/LTE_A} / "$(band 8 "");; | ||
*"20") MODE="{MODE/LTE/LTE_A} / "$(band 20 "");; | ||
*) MODE="${MODE/LTE/LTE_A} / B${T}";; | ||
esac | ||
fi | ||
;; | ||
esac | ||
|
||
T=$(echo "$O" | awk -F[,:] '/^\+ZDON/ {print $2}' | xargs) | ||
if [ -n "$T" ]; then | ||
COPS="$T" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# (c) 2010-2021 Cezary Jackiewicz <[email protected]> | ||
# (c) 2021 modified by Rafał Wabik - IceG - From eko.one.pl forum | ||
# (c) 2010-2022 Cezary Jackiewicz <[email protected]> | ||
# (c) 2021-2022 modified by Rafał Wabik - IceG - From eko.one.pl forum | ||
# | ||
|
||
band() { | ||
|