Skip to content

Commit

Permalink
Merge pull request #14 from stich86/main
Browse files Browse the repository at this point in the history
Add support to display B28, B32 and B38 bands on MF289F modem
  • Loading branch information
4IceG authored Aug 17, 2022
2 parents e2cd5f4 + bc5fb29 commit 8bd0bce
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ case "$MODE_NUM" in
*"LTE B7") MODE=$(band 7 "LTE ");;
*"LTE B8") MODE=$(band 8 "LTE ");;
*"LTE B20") MODE=$(band 20 "LTE ");;
*"LTE B28") MODE=$(band 28 "LTE ");;
*"LTE B32") MODE=$(band 32 "LTE ");;
*"LTE B38") MODE=$(band 38 "LTE ");;
*) MODE="${T}";;
esac
T=$(echo "$O" | awk -F$AWK_FILTER '/^\+ZCAINFO/ {print $9}' | xargs)
Expand All @@ -66,6 +69,9 @@ case "$MODE_NUM" in
*"7") MODE="${MODE/LTE/LTE_A} / "$(band 7 "");;
*"8") MODE="${MODE/LTE/LTE_A} / "$(band 8 "");;
*"20") MODE="${MODE/LTE/LTE_A} / "$(band 20 "");;
*"28") MODE="${MODE/LTE/LTE_A} / "$(band 28 "");;
*"32") MODE="${MODE/LTE/LTE_A} / "$(band 32 "");;
*"38") MODE="${MODE/LTE/LTE_A} / "$(band 38 "");;
*) MODE="${MODE/LTE/LTE_A} / B${T}";;
esac
T=$(echo "$O" | awk -F[,:\;] '/^\+ZCAINFO/ {print $14}' | xargs)
Expand All @@ -76,6 +82,9 @@ case "$MODE_NUM" in
*"7") MODE="$MODE / "$(band 7 "");;
*"8") MODE="$MODE / "$(band 8 "");;
*"20") MODE="$MODE / "$(band 20 "");;
*"28") MODE="$MODE / "$(band 28 "");;
*"32") MODE="$MODE / "$(band 32 "");;
*"38") MODE="$MODE / "$(band 38 "");;
*) MODE="$MODE / B${T}";;
esac
MODE=$(echo $MODE | sed "s/LTE_A/LTE-A |/g" | sed 's,/,+,')
Expand All @@ -88,6 +97,9 @@ case "$MODE_NUM" in
*"7") MODE="$MODE / "$(band 7 "");;
*"8") MODE="$MODE / "$(band 8 "");;
*"20") MODE="$MODE / "$(band 20 "");;
*"28") MODE="$MODE / "$(band 28 "");;
*"32") MODE="$MODE / "$(band 32 "");;
*"38") MODE="$MODE / "$(band 38 "");;
*) MODE="$MODE / B${T}";;
esac
MODE=$(echo $MODE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ case "$MODE_NUM" in
*"LTE B7") MODE=$(band 7 "LTE ");;
*"LTE B8") MODE=$(band 8 "LTE ");;
*"LTE B20") MODE=$(band 20 "LTE ");;
*"LTE B28") MODE=$(band 28 "LTE ");;
*"LTE B32") MODE=$(band 32 "LTE ");;
*"LTE B38") MODE=$(band 38 "LTE ");;
*) MODE="$T";;
esac
T=$(echo "$O" | awk -F[,:\;] '/^\+ZCAINFO/ {print $9}' | xargs)
Expand All @@ -103,6 +106,9 @@ case "$MODE_NUM" in
*"7") MODE="${MODE/LTE/LTE_A} / "$(band 7 "");;
*"8") MODE="${MODE/LTE/LTE_A} / "$(band 8 "");;
*"20") MODE="${MODE/LTE/LTE_A} / "$(band 20 "");;
*"28") MODE="${MODE/LTE/LTE_A} / "$(band 28 "");;
*"32") MODE="${MODE/LTE/LTE_A} / "$(band 32 "");;
*"38") MODE="${MODE/LTE/LTE_A} / "$(band 38 "");;
*) MODE="${MODE/LTE/LTE_A} / B${T}";;
esac
T=$(echo "$O" | awk -F[,:\;] '/^\+ZCAINFO/ {print $14}' | xargs)
Expand All @@ -113,6 +119,9 @@ case "$MODE_NUM" in
*"7") MODE="$MODE / "$(band 7 "");;
*"8") MODE="$MODE / "$(band 8 "");;
*"20") MODE="$MODE / "$(band 20 "");;
*"28") MODE="$MODE / "$(band 28 "");;
*"32") MODE="$MODE / "$(band 32 "");;
*"38") MODE="$MODE / "$(band 38 "");;
*) MODE="$MODE / B${T}";;
esac
MODE=$(echo $MODE | sed "s/LTE_A/LTE-A |/g" | sed 's,/,+,')
Expand All @@ -125,6 +134,9 @@ case "$MODE_NUM" in
*"7") MODE="$MODE / "$(band 7 "");;
*"8") MODE="$MODE / "$(band 8 "");;
*"20") MODE="$MODE / "$(band 20 "");;
*"28") MODE="$MODE / "$(band 28 "");;
*"32") MODE="$MODE / "$(band 32 "");;
*"38") MODE="$MODE / "$(band 38 "");;
*) MODE="$MODE / B${T}";;
esac
fi
Expand Down

0 comments on commit 8bd0bce

Please sign in to comment.