Skip to content

Commit

Permalink
Update to 1.0.44-20230406
Browse files Browse the repository at this point in the history
Update scripts for Mikrotik R11e-LTE6.
  • Loading branch information
4IceG authored Apr 6, 2023
1 parent dcb42fc commit ad822ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion luci-app-3ginfo-lite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LUCI_TITLE:=LuCI JS Support for 3ginfo-lite
LUCI_DESCRIPTION:=LuCI JS interface for the 3ginfo-lite. The package allows you to view the parameters of the mobile internet connection.
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+sms-tool +comgt
PKG_VERSION:=1.0.43-20230406
PKG_VERSION:=1.0.44-20230406

include $(TOPDIR)/feeds/luci/luci.mk

Expand Down
13 changes: 10 additions & 3 deletions luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/modem/2cd20004
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ T=$(echo "$O" | awk -F[,:] '/^\+CESQ/ {print $6}' | xargs)
if [ -n "$T" ]; then
if [ "$T" != "255" ]; then
T=$(echo "$T" | awk '{printf "%.1f", -1 * (20 - $1 * 0.5)}')
RSRQ="-$T"
RSRQ="$T"
SINR=""
fi
fi
Expand All @@ -33,10 +33,12 @@ T=$(echo "$O" | awk -F[,:] '/^\+ZPAS/ {print $2}' | xargs)
if [ -n "$T" ]; then
MODE=$T
T=$(echo "$O" | awk -F[,:] '/^\+ZCELLINFO/ {print $4}' | xargs)
if [ "x$MODE_NUM" = "x7" ]; then
if [ "x$MODE_NUM" = "x7" ] || [ "x$MODE_NUM" = "x9" ]; then
MODE="$MODE $(band ${T/LTE B/})"
PBAND="$(band ${T/LTE B/})"
else
MODE="$MODE $T"
PBAND="$(band ${T})"
fi
fi

Expand All @@ -46,6 +48,7 @@ case "$MODE_NUM" in
if [ -n "$T" ]; then
if [ "$T" != "0" ]; then
MODE="$MODE / $(band ${T})"
S1BAND="$(band ${T})"
fi
fi
;;
Expand All @@ -63,6 +66,10 @@ MODELACUT=$(echo $MODELA | awk -F [:] '/^\+CGMM:/{print $2}' | xargs)
MODELBCUT=$(echo $MODELB | awk -F [:] '/^\+CGMI:/{print $2}' | xargs)
MODEL="$MODELBCUT "$MODELACUT

# LAC & TAC
T_HEX=$LAC_HEX
T_DEC=$LAC_DEC

# International Mobile Equipment Identity (IMEI)
O=$(sms_tool -d $DEVICE at "AT+CGSN" | xargs)
NR_I=$(echo "$O" | sed s/"AT+CGSN"//)
Expand All @@ -88,7 +95,7 @@ fi
# DRIVER=QMI_WWAN & DRIVER=CDC_MBIM & DRIVER=CDC_ETHER
PV=$(cat /sys/kernel/debug/usb/devices 2>/dev/null)
PVCUT=$(echo $PV | awk -F 'Vendor=2cd2 ProdID=0004' '{print $2}' | cut -c-1220)
if echo "$PVCUT" | grep -q "cdc_ncm"
if echo "$PVCUT" | grep -q "Driver=rndis_host"
then
PROTO="ncm"
fi

0 comments on commit ad822ff

Please sign in to comment.