[GH-ISSUE #96] TOZED S12 PRO with Tozed LT70-C V1.0.1-B7 issue #74

Open
opened 2026-03-04 11:58:25 +03:00 by kerem · 21 comments
Owner

Originally created by @anngit1 on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/96

When I tried 3ginfo lite on TOZED S12 PRO with Tozed LT70-C V1.0.1-B7, I get following errors

SyntaxError
Bad control character in string literal in JSON at position 446 (line 19 column 18)

Error: Bad control character in string literal in JSON at position 446 (line 19 column 18)

I debug log near "registration":"0 seems to have a new line. that might be the issue.

Thumbs up for your work :)
3ginfo issue

Following is debug log.

`{
"conn_time":"0d, 01:14:31",
"conn_time_sec":"4471",
"conn_time_since":"20240908061517",
"rx":"379.5 MiB",
"tx":"34.1 MiB",
"modem":"Tozed LT70-C V1.0.1-B7",
"mtemp":"",
"firmware":"SL8563-21.36.5-14-DBG-C1BD04B16-61CAA5BB-NCM4-B34C8C1E6CC810D6-61DBFC74_LT70-GA",
"cport":"/dev/ttyUSB0",
"protocol":"ncm",
"csq":"9",
"signal":"29",
"operator_name":"",
"operator_mcc":"413",
"operator_mnc":"12",
"location":"",
"mode":"LTE / ",
"registration":"0
",
"simslot":"",
"imei":"867792051014359",
"imsi":"",
"iccid":"89941202101171109623",
"lac_dec":"",
"lac_hex":"",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"0",
"cid_hex":"",
"pci":"408",
"earfcn":"39990",
"pband":"41",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-93",
"rsrq":"-6",
"rssi":"-73",
"sinr":"17"
}

  • RES=/usr/share/3ginfo-lite

  • /usr/share/3ginfo-lite/detect.sh

  • DEVICE=/dev/ttyUSB0

  • '[' -z /dev/ttyUSB0 ]

  • O=

  • '[' -e /usr/bin/sms_tool ]

  • sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'

  • O='
    +CME ERROR: 3
    '

  • CONFIG=modemdefine

  • uci show modemdefine

  • grep -o '@modemdefine[[0-9]*].modem'

  • wc -l

  • xargs

  • MODEMZ=0

  • '' 0 -gt 1

  • '' 0 -eq 0

  • uci -q get '3ginfo.@3ginfo[0].network'

  • SEC=wwan

  • '' 0 -eq 1

  • '[' -z wwan ]

  • CONN_TIME=-

  • RX=-

  • TX=-

  • ifstatus wwan

  • grep '"up": true'

  • NETUP=' "up": true,'

  • '[' -n ' "up": true,' ]

  • uci -q -P /var/state/ get network.wwan.connect_time

  • CT=

  • '[' -z ]

  • ifstatus wwan

  • xargs

  • awk '-F[:,]' '/uptime/ {print $2}'

  • CT=4471

  • '[' '!' -z 4471 ]

  • expr 4471 / 60 / 60 / 24

  • D=0

  • expr 4471 / 60 / 60 '%' 24

  • H=1

  • expr 4471 / 60 '%' 60

  • M=14

  • expr 4471 '%' 60

  • S=31

  • printf '%dd, %02d:%02d:%02d' 0 1 14 31

  • CONN_TIME='0d, 01:14:31'

  • date '+%s'

  • date '+%Y%m%d%H%M%S' -d @1725776117

  • CONN_TIME_SINCE=20240908061517

  • ifstatus+ wwanawk
    '-F"' '/l3_device/ {print $4}'

  • IFACE=usb0

  • '[' -n usb0 ]

  • ifconfig usb0

  • awk '-F[()]' '/bytes/ {printf "%s",$2}'

  • RX='379.5 MiB'

  • ifconfig usb0

  • awk '-F[()]' '/bytes/ {printf "%s",$4}'

  • TX='34.1 MiB'

  • echo '
    +CME ERROR: 3
    '

  • awk '-F[, ]' '/^+CSQ/ {print $2}'

  • CSQ=

  • '[' x '==' x ]

  • CSQ=-1

  • '[' -1 -ge 0 -a -1 -le 31 ]

  • CSQ=

  • CSQ_PER=

  • COPS=

  • COPS_MCC=

  • COPS_MNC=

  • echo '
    +CME ERROR: 3
    '

  • awk '-F["]' '/^+COPS:\s*.,2/ {print $2}'

  • COPS_NUM=

  • '[' -n ]

  • echo '
    +CME ERROR: 3
    '

  • awk '-F["]' '/^+COPS:\s*.,0/ {print $2}'

  • TCOPS=

  • '[' x '!=' x ]

  • '[' -z ]

  • '[' -n ]

  • '[' -z ]

  • COPS=

  • '

  • sms_tool -d /dev/ttyUSB0 at 'AT+COPS?'

  • sed -n 2p

    • tr -d '\r'
      cut -d '"' -f2
  • isp=41312

  • isp_num=' '

  • isp_numws=

  • '

  • LOCATIONFILE=/tmp/location

  • '[' -e /tmp/location ]

  • '

  • echo '
    +CME ERROR: 3
    '

  • awk '-F[, ]' '/^+CPIN:/ {print $0;exit}'

  • xargs

  • T=

  • '[' -n ]

  • echo '
    +CME ERROR: 3
    '

  • awk '-F[, ]' '/^+CME ERROR:/ {print $0;exit}'

  • T='+CME ERROR: 3
    '

  • '[' -n '+CME ERROR: 3
    ' ]

  • echo '+CME ERROR: 3
    '

  • cut -f2 -d:

  • xargs

  • REG=3

  • echo '
    +CME ERROR: 3
    '

  • awk '-F[,]' '/^+CREG/ {gsub(/[[:space:]"]+/,"");printf "T="%d";LAC_HEX="%X";CID_HEX="%X";LAC_DEC="%d";CID_DEC="%d";MODE_NUM="%d"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}'

  • eval

  • REG=

  • '[' -z ]

  • echo '
    +CME ERROR: 3
    '

    • awkxargs '-F[,]'
      '/^+COPS/ {print $4;exit}'
  • MODE_NUM=

  • MODE=-

  • sms_tool -d /dev/ttyUSB0 at at+cereg

  • OTX='
    '

  • echo '
    '

    • sedawk '-F[,]' 's/[^A-F0-9]//g' '/^+CEREG/ {printf "%s", toupper($3)}'
  • TAC=

  • '[' x '!=' x ]

  • TAC=-

  • TAC_HEX=-

  • uci -q get '3ginfo.@3ginfo[0].device'

  • CONF_DEVICE=/dev/ttyUSB0

  • echo x/dev/ttyUSB0

  • grep -q 192.168.

  • '[' -e /usr/bin/sms_tool ]

  • REGOK=0

  • '[' x '==' x1 ]

  • '[' x '==' x5 ]

  • '[' x '==' x6 ]

  • '[' x '==' x7 ]

  • getdevicevendorproduct /dev/ttyUSB0

  • basename /dev/ttyUSB0

  • devname=ttyUSB0

  • readlink -f /sys/class/tty/ttyUSB0/device

  • devpath=/sys/devices/platform/1e1c0000.xhci/usb1/1-1/1-1:1.8/ttyUSB0

  • T=/sys/devices/platform/1e1c0000.xhci/usb1/1-1

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-1/idVendor

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-1/idProduct

  • echo usb/17824055

  • VIDPID=usb/17824055

  • '[' -e /usr/share/3ginfo-lite/modem/usb/17824055 ]

  • cat /tmp/sysinfo/board_name

  • . /usr/share/3ginfo-lite/modem/usb/17824055

  • PROTO=ncm

  • at AT+CGMM

  • sms_tool -D -d /dev/ttyUSB0 at AT+CGMM

  • xargs echo -n

  • cut '-d ' -f1

  • MODEL='Tozed LT70-C V1.0.1-B7'

  • at AT+SPTZVER

  • sms_tool -D -d /dev/ttyUSB0 at AT+SPTZVER

  • grep SL8563

  • xargs echo -n

  • FW=SL8563-21.36.5-14-DBG-C1BD04B16-61CAA5BB-NCM4-B34C8C1E6CC810D6-61DBFC74_LT70-GA

  • at 'AT+SPTZCMD="YXBwX2RlbW8gdGVzdF9uZXR3b3JrX2dldF9vcGVyYXRvcl9uYW1lfGdyZXAgT3xjdXQgLWIyNC18Y3V0IC1kJChlY2hvIC1lICcbJykgLWYx"'

    • grepsms_tool S -D
      -d /dev/ttyUSB0 at 'AT+SPTZCMD="YXBwX2RlbW8gdGVzdF9uZXR3b3JrX2dldF9vcGVyYXRvcl9uYW1lfGdyZXAgT3xjdXQgLWIyNC18Y3V0IC1kJChlY2hvIC1lICcbJykgLWYx"'
    • cutbase64 -d
      -d:/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/17824055: line 13: base64: not found
      -f2
  • OPERATOR_NAME=

  • COPS=

  • at AT+CIMI

  • sms_tool -D -d /dev/ttyUSB0 at AT+CIMI

  • xargs echo -n

  • cut '-d ' -f1

  • NR_CIMI=413120117110962

  • echo 413120117110962

  • cut -c1-3

  • COPS_MCC=413

  • echo 413120117110962

  • cut -c4-5

  • COPS_MNC=12

  • at AT+CGSN

  • sms_tool -D -d /dev/ttyUSB0 at AT+CGSN

  • xargs echo -n

  • cut '-d ' -f1

  • NR_IMEI=867792051014359

  • at 'AT+SPENGMD=0,6,0'

  • sms_tool -D -d /dev/ttyUSB0 at 'AT+SPENGMD=0,6,0'

  • xargs echo -n

  • awk '{print $1}'

  • SPD_DATA=41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0

  • at 'AT+SPENGMD=0,0,6'

  • sms_tool -D -d /dev/ttyUSB0 at 'AT+SPENGMD=0,0,6'

  • xargs echo -n

  • awk '{print $1}'

  • SPD_DATA2=2,0-7,0-17,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,1,10,0,0,0,0,0,0,1,0-6,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,2,3,5,9,0,0,0,0,0,0-4,0-14,0-4,0--1,0-0,0-0,0-5,0-12,0-2,0--73,0--72,0-1087,0-118,0-17,0-10,0-4,0-12,5,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0--9387,0--9356,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0-0-0--637,0--693,0

  • echo 2,0-7,0-17,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,1,10,0,0,0,0,0,0,1,0-6,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,2,3,5,9,0,0,0,0,0,0-4,0-14,0-4,0--1,0-0,0-0,0-5,0-12,0-2,0--73,0--72,0-1087,0-118,0-17,0-10,0-4,0-12,5,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0--9387,0--9356,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0-0-0--637,0--693,0

  • cut -d, -f75

  • cut -d- -f3

  • RSSI=-73

  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0

  • cut -d, -f1

  • PBAND=41

  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0

  • cut -d,+ -f3cut
    -d- -f2

  • PCI=408

  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0

  • cut -d, -f2

  • cut -d- -f2

  • EARFCN=39990

  • at 'AT+CREG?;+CCID;+ZRSSI?;+CSQ'

  • sms_tool -D -d /dev/ttyUSB0 at 'AT+CREG?;+CCID;+ZRSSI?;+CSQ'

  • DATA='
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • echo '
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • grep CSQ
  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=9
  • '[' x9 '=' x ]
  • CSQ_PER=29
  • echo '
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • grep CREG
  • cut -d, -f2
  • REG='0
    '
  • echo '
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • grep CREG
  • cut -d, -f4
  • xargs echo
  • CID_HEX=
  • printf '%d' 0x
    sh: invalid number '0x'
  • CID_DEC=0
  • echo '
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • grep CCID
  • xargs echo
  • awk '{print $2}'
  • NR_ICCID=89941202101171109623
  • echo '
    +CREG: 2,0

+CCID: "89941202101171109623"

+ZRSSI: -93,-6,0,17

+CSQ: 9,99

OK
'

  • grep ZRSSI
  • awk '{print $2}'
  • ZRSSI_DATA=-93,-6,0,17
  • echo -93,-6,0,17
  • cut -d, -f1
  • RSRP=-93
  • echo -93,-6,0,17
  • cut -d, -f2
  • RSRQ=-6
  • echo -93,-6,0,17
  • cut -d, -f4
  • SINR=17
  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0
  • cut -d, -f2
  • cut -d- -f1
  • CA_BAND=0
  • '[' 0 -ne 0 ]
  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0
  • cut -d, -f4
  • cut -d- -f1
  • CA_PCI=0
  • '[' 0 -ne 0 ]
  • echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0
  • cut -d, -f3
  • cut -d- -f1
  • CA_EARFCN=0
  • '[' 0 -ne 0 ]
  • '[' 0 -ne 0 ]
  • band 41
    /usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/17824055: line 58: band: not found
  • MODE='LTE / '
  • cat
  • exit 0`
Originally created by @anngit1 on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/96 When I tried 3ginfo lite on TOZED S12 PRO with Tozed LT70-C V1.0.1-B7, I get following errors SyntaxError Bad control character in string literal in JSON at position 446 (line 19 column 18) Error: Bad control character in string literal in JSON at position 446 (line 19 column 18) I debug log near "registration":"0 seems to have a new line. that might be the issue. Thumbs up for your work :) ![3ginfo issue](https://github.com/user-attachments/assets/818828af-382e-47a5-b388-11e0ba656462) Following is debug log. `{ "conn_time":"0d, 01:14:31", "conn_time_sec":"4471", "conn_time_since":"20240908061517", "rx":"379.5 MiB", "tx":"34.1 MiB", "modem":"Tozed LT70-C V1.0.1-B7", "mtemp":"", "firmware":"SL8563-21.36.5-14-DBG-C1BD04B16-61CAA5BB-NCM4-B34C8C1E6CC810D6-61DBFC74_LT70-GA", "cport":"/dev/ttyUSB0", "protocol":"ncm", "csq":"9", "signal":"29", "operator_name":"", "operator_mcc":"413", "operator_mnc":"12", "location":"", "mode":"LTE / ", "registration":"0 ", "simslot":"", "imei":"867792051014359", "imsi":"", "iccid":"89941202101171109623", "lac_dec":"", "lac_hex":"", "tac_dec":"", "tac_hex":"-", "tac_h":"", "tac_d":"", "cid_dec":"0", "cid_hex":"", "pci":"408", "earfcn":"39990", "pband":"41", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"-93", "rsrq":"-6", "rssi":"-73", "sinr":"17" } + RES=/usr/share/3ginfo-lite + /usr/share/3ginfo-lite/detect.sh + DEVICE=/dev/ttyUSB0 + '[' -z /dev/ttyUSB0 ] + O= + '[' -e /usr/bin/sms_tool ] + sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?' + O=' +CME ERROR: 3 ' + CONFIG=modemdefine + uci show modemdefine + grep -o '@modemdefine\[[0-9]*\]\.modem' + wc -l + xargs + MODEMZ=0 + '[[' 0 -gt 1 ]] + '[[' 0 -eq 0 ]] + uci -q get '3ginfo.@3ginfo[0].network' + SEC=wwan + '[[' 0 -eq 1 ]] + '[' -z wwan ] + CONN_TIME=- + RX=- + TX=- + ifstatus wwan + grep '"up": true' + NETUP=' "up": true,' + '[' -n ' "up": true,' ] + uci -q -P /var/state/ get network.wwan.connect_time + CT= + '[' -z ] + ifstatus wwan + xargs + awk '-F[:,]' '/uptime/ {print $2}' + CT=4471 + '[' '!' -z 4471 ] + expr 4471 / 60 / 60 / 24 + D=0 + expr 4471 / 60 / 60 '%' 24 + H=1 + expr 4471 / 60 '%' 60 + M=14 + expr 4471 '%' 60 + S=31 + printf '%dd, %02d:%02d:%02d' 0 1 14 31 + CONN_TIME='0d, 01:14:31' + date '+%s' + date '+%Y%m%d%H%M%S' -d @1725776117 + CONN_TIME_SINCE=20240908061517 + ifstatus+ wwanawk '-F"' '/l3_device/ {print $4}' + IFACE=usb0 + '[' -n usb0 ] + ifconfig usb0 + awk '-F[()]' '/bytes/ {printf "%s",$2}' + RX='379.5 MiB' + ifconfig usb0 + awk '-F[()]' '/bytes/ {printf "%s",$4}' + TX='34.1 MiB' + echo ' +CME ERROR: 3 ' + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ= + '[' x '==' x ] + CSQ=-1 + '[' -1 -ge 0 -a -1 -le 31 ] + CSQ= + CSQ_PER= + COPS= + COPS_MCC= + COPS_MNC= + echo ' +CME ERROR: 3 ' + awk '-F["]' '/^\+COPS:\s*.,2/ {print $2}' + COPS_NUM= + '[' -n ] + echo ' +CME ERROR: 3 ' + awk '-F["]' '/^\+COPS:\s*.,0/ {print $2}' + TCOPS= + '[' x '!=' x ] + '[' -z ] + '[' -n ] + '[' -z ] + COPS= + '[[' '=~' ' ' ]] + sms_tool -d /dev/ttyUSB0 at 'AT+COPS?' + sed -n 2p + + tr -d '\r' cut -d '"' -f2 + isp=41312 + isp_num=' ' + isp_numws= + '[[' '=~' '^[0-9]+$' ]] + LOCATIONFILE=/tmp/location + '[' -e /tmp/location ] + '[[' '=~' '^[0-9]+$' ]] + echo ' +CME ERROR: 3 ' + awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}' + xargs + T= + '[' -n ] + echo ' +CME ERROR: 3 ' + awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}' + T='+CME ERROR: 3 ' + '[' -n '+CME ERROR: 3 ' ] + echo '+CME ERROR: 3 ' + cut -f2 -d: + xargs + REG=3 + echo ' +CME ERROR: 3 ' + awk '-F[,]' '/^\+CREG/ {gsub(/[[:space:]"]+/,"");printf "T=\"%d\";LAC_HEX=\"%X\";CID_HEX=\"%X\";LAC_DEC=\"%d\";CID_DEC=\"%d\";MODE_NUM=\"%d\"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}' + eval + REG= + '[' -z ] + echo ' +CME ERROR: 3 ' + + awkxargs '-F[,]' '/^\+COPS/ {print $4;exit}' + MODE_NUM= + MODE=- + sms_tool -d /dev/ttyUSB0 at at+cereg + OTX=' ' + echo ' ' + + sedawk '-F[,]' 's/[^A-F0-9]//g' '/^\+CEREG/ {printf "%s", toupper($3)}' + TAC= + '[' x '!=' x ] + TAC=- + TAC_HEX=- + uci -q get '3ginfo.@3ginfo[0].device' + CONF_DEVICE=/dev/ttyUSB0 + echo x/dev/ttyUSB0 + grep -q 192.168. + '[' -e /usr/bin/sms_tool ] + REGOK=0 + '[' x '==' x1 ] + '[' x '==' x5 ] + '[' x '==' x6 ] + '[' x '==' x7 ] + getdevicevendorproduct /dev/ttyUSB0 + basename /dev/ttyUSB0 + devname=ttyUSB0 + readlink -f /sys/class/tty/ttyUSB0/device + devpath=/sys/devices/platform/1e1c0000.xhci/usb1/1-1/1-1:1.8/ttyUSB0 + T=/sys/devices/platform/1e1c0000.xhci/usb1/1-1 + cat /sys/devices/platform/1e1c0000.xhci/usb1/1-1/idVendor + cat /sys/devices/platform/1e1c0000.xhci/usb1/1-1/idProduct + echo usb/17824055 + VIDPID=usb/17824055 + '[' -e /usr/share/3ginfo-lite/modem/usb/17824055 ] + cat /tmp/sysinfo/board_name + . /usr/share/3ginfo-lite/modem/usb/17824055 + PROTO=ncm + at AT+CGMM + sms_tool -D -d /dev/ttyUSB0 at AT+CGMM + xargs echo -n + cut '-d ' -f1 + MODEL='Tozed LT70-C V1.0.1-B7' + at AT+SPTZVER + sms_tool -D -d /dev/ttyUSB0 at AT+SPTZVER + grep SL8563 + xargs echo -n + FW=SL8563-21.36.5-14-DBG-C1BD04B16-61CAA5BB-NCM4-B34C8C1E6CC810D6-61DBFC74_LT70-GA + at 'AT+SPTZCMD="YXBwX2RlbW8gdGVzdF9uZXR3b3JrX2dldF9vcGVyYXRvcl9uYW1lfGdyZXAgT3xjdXQgLWIyNC18Y3V0IC1kJChlY2hvIC1lICcbJykgLWYx"' + + grepsms_tool S -D -d /dev/ttyUSB0 at 'AT+SPTZCMD="YXBwX2RlbW8gdGVzdF9uZXR3b3JrX2dldF9vcGVyYXRvcl9uYW1lfGdyZXAgT3xjdXQgLWIyNC18Y3V0IC1kJChlY2hvIC1lICcbJykgLWYx"' + + cutbase64 -d -d:/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/17824055: line 13: base64: not found -f2 + OPERATOR_NAME= + COPS= + at AT+CIMI + sms_tool -D -d /dev/ttyUSB0 at AT+CIMI + xargs echo -n + cut '-d ' -f1 + NR_CIMI=413120117110962 + echo 413120117110962 + cut -c1-3 + COPS_MCC=413 + echo 413120117110962 + cut -c4-5 + COPS_MNC=12 + at AT+CGSN + sms_tool -D -d /dev/ttyUSB0 at AT+CGSN + xargs echo -n + cut '-d ' -f1 + NR_IMEI=867792051014359 + at 'AT+SPENGMD=0,6,0' + sms_tool -D -d /dev/ttyUSB0 at 'AT+SPENGMD=0,6,0' + xargs echo -n + awk '{print $1}' + SPD_DATA=41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + at 'AT+SPENGMD=0,0,6' + sms_tool -D -d /dev/ttyUSB0 at 'AT+SPENGMD=0,0,6' + xargs echo -n + awk '{print $1}' + SPD_DATA2=2,0-7,0-17,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,1,10,0,0,0,0,0,0,1,0-6,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,2,3,5,9,0,0,0,0,0,0-4,0-14,0-4,0--1,0-0,0-0,0-5,0-12,0-2,0--73,0--72,0-1087,0-118,0-17,0-10,0-4,0-12,5,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0--9387,0--9356,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0-0-0--637,0--693,0 + echo 2,0-7,0-17,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,1,10,0,0,0,0,0,0,1,0-6,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,2,3,5,9,0,0,0,0,0,0-4,0-14,0-4,0--1,0-0,0-0,0-5,0-12,0-2,0--73,0--72,0-1087,0-118,0-17,0-10,0-4,0-12,5,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0--9387,0--9356,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0-0-0--637,0--693,0 + cut -d, -f75 + cut -d- -f3 + RSSI=-73 + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d, -f1 + PBAND=41 + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d,+ -f3cut -d- -f2 + PCI=408 + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d, -f2 + cut -d- -f2 + EARFCN=39990 + at 'AT+CREG?;+CCID;+ZRSSI?;+CSQ' + sms_tool -D -d /dev/ttyUSB0 at 'AT+CREG?;+CCID;+ZRSSI?;+CSQ' + DATA=' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + echo ' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + grep CSQ + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=9 + '[' x9 '=' x ] + CSQ_PER=29 + echo ' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + grep CREG + cut -d, -f2 + REG='0 ' + echo ' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + grep CREG + cut -d, -f4 + xargs echo + CID_HEX= + printf '%d' 0x sh: invalid number '0x' + CID_DEC=0 + echo ' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + grep CCID + xargs echo + awk '{print $2}' + NR_ICCID=89941202101171109623 + echo ' +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -93,-6,0,17 +CSQ: 9,99 OK ' + grep ZRSSI + awk '{print $2}' + ZRSSI_DATA=-93,-6,0,17 + echo -93,-6,0,17 + cut -d, -f1 + RSRP=-93 + echo -93,-6,0,17 + cut -d, -f2 + RSRQ=-6 + echo -93,-6,0,17 + cut -d, -f4 + SINR=17 + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d, -f2 + cut -d- -f1 + CA_BAND=0 + '[' 0 -ne 0 ] + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d, -f4 + cut -d- -f1 + CA_PCI=0 + '[' 0 -ne 0 ] + echo 41,0-39990,0-408,0--9356,0--693,0--12600,0-1,0-5,255-0,0--32647010,0-20242,0-7,0-0,0-0,0,0-0-0-0-0-0-0-0-0-0--9387,0--9356,0-39990,0-1,0-1280,0-2147483647,0-43822,0--637,0--693,0-0 + cut -d, -f3 + cut -d- -f1 + CA_EARFCN=0 + '[' 0 -ne 0 ] + '[' 0 -ne 0 ] + band 41 /usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/17824055: line 58: band: not found + MODE='LTE / ' + cat + exit 0`
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

This is the debug log in text file

3ginfo debuglog.txt

<!-- gh-comment-id:2336582015 --> @anngit1 commented on GitHub (Sep 8, 2024): This is the debug log in text file [3ginfo debuglog.txt](https://github.com/user-attachments/files/16921311/3ginfo.debuglog.txt)
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

Hi @anngit1 ,
I don't remember adding support for these USB modems.

The newline error can be resolved by adding "| xargs" to data cut commands.

O=$(sms_tool -d $DEVICE at "AT+CREG?;+CCID;+ZRSSI?;+CSQ")
DATA=$(echo "$O" | cut code | xargs)

I am more curious why the modem returns +CREG: 2.0, which means that it is not logged into network?
Operator name is also missing, the commands AT+COPS=3,0;+COPS?; return nothing?

3ginfo-lite checks if the modem is logged into the network and only then allows it to show data.

<!-- gh-comment-id:2336643648 --> @4IceG commented on GitHub (Sep 8, 2024): Hi @anngit1 , I don't remember adding support for these USB modems. The newline error can be resolved by adding "| xargs" to data cut commands. ``` O=$(sms_tool -d $DEVICE at "AT+CREG?;+CCID;+ZRSSI?;+CSQ") DATA=$(echo "$O" | cut code | xargs) ``` I am more curious why the modem returns `+CREG: 2.0`, which means that it is not logged into network? Operator name is also missing, the commands `AT+COPS=3,0;+COPS?;` return nothing? 3ginfo-lite checks if the modem is logged into the network and only then allows it to show data.
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

hi, Thanks for your quick response.

Modem is indeed connected to LTE and receives data. But no CA though. I think roaming is also disabled. but I couldn't find AT command to enable roaming and CA. I'm trying to get your script working as it provides lot of info.

I receive following data to AT+CREG?;+CCID;+ZRSSI?;+CSQ

+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -95,-8,0,23
+CSQ: 9,99

I included your suggestion to attached modem file. Now no errors. but no info too. attached a picture of output

Im using attached modem script. (I added txt extension so I can upload it here.

This is original one gave me issue
17824055.txt
)

this is the one I modified as per your guidance.
17824055changed.txt

3ginfo issue2

<!-- gh-comment-id:2336693471 --> @anngit1 commented on GitHub (Sep 8, 2024): hi, Thanks for your quick response. Modem is indeed connected to LTE and receives data. But no CA though. I think roaming is also disabled. but I couldn't find AT command to enable roaming and CA. I'm trying to get your script working as it provides lot of info. I receive following data to AT+CREG?;+CCID;+ZRSSI?;+CSQ +CREG: 2,0 +CCID: "89941202101171109623" +ZRSSI: -95,-8,0,23 +CSQ: 9,99 I included your suggestion to attached modem file. Now no errors. but no info too. attached a picture of output Im using attached modem script. (I added txt extension so I can upload it here. This is original one gave me issue [17824055.txt](https://github.com/user-attachments/files/16922411/17824055.txt) ) this is the one I modified as per your guidance. [17824055changed.txt](https://github.com/user-attachments/files/16922465/17824055changed.txt) ![3ginfo issue2](https://github.com/user-attachments/assets/c0838ee2-9701-4ab7-992d-5d1ac5ea19e3)
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

@anngit1 Check this file 17824055 v2.txt.

Which version of 3ginfo-lite are you using? From your chaotic script I can see that you did not follow the scripts from other modems.

You don't need to repeat the AT+CREG? and AT+CSQ commands (3ginfo-lite already has these commands in scripts).

Update 3ginfo-lite to the latest version and replace the contents of the file /usr/share/3ginfo-lite/mccmnc.dat with the contents of the file mccmnc.dat from github (I made an update for your location).

<!-- gh-comment-id:2336732860 --> @4IceG commented on GitHub (Sep 8, 2024): @anngit1 Check this file [17824055 v2.txt](https://github.com/user-attachments/files/16922746/17824055.v2.txt). Which version of 3ginfo-lite are you using? From your chaotic script I can see that you did not follow the scripts from other modems. You don't need to repeat the `AT+CREG?` and `AT+CSQ` commands (3ginfo-lite already has these commands in scripts). Update 3ginfo-lite to the latest version and replace the contents of the file `/usr/share/3ginfo-lite/mccmnc.dat` with the contents of the file [mccmnc.dat](https://github.com/4IceG/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/mccmnc.dat) from github (I made an update for your location).
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

Im on the latest version 3ginfo-lite (1.0.74-20240827)

I did replace mccmnc.dat and used updated modem script you sent. but still no response (Same picture as I posted in last message.)

Following is new debug log.
debuglog3.txt

Thank you very much for your time and effort trying to help.

<!-- gh-comment-id:2336740327 --> @anngit1 commented on GitHub (Sep 8, 2024): Im on the latest version 3ginfo-lite (1.0.74-20240827) I did replace mccmnc.dat and used updated modem script you sent. but still no response (Same picture as I posted in last message.) Following is new debug log. [debuglog3.txt](https://github.com/user-attachments/files/16922890/debuglog3.txt) Thank you very much for your time and effort trying to help.
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

@anngit1 OK, check this file 17824055 v3.txt.

<!-- gh-comment-id:2336743427 --> @4IceG commented on GitHub (Sep 8, 2024): @anngit1 OK, check this file [17824055 v3.txt](https://github.com/user-attachments/files/16922940/17824055.v3.txt).
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

Still same result as in last image I posted.

<!-- gh-comment-id:2336744889 --> @anngit1 commented on GitHub (Sep 8, 2024): Still same result as in last image I posted.
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

@anngit1 Clear browser cache and show Debug result.

<!-- gh-comment-id:2336745855 --> @4IceG commented on GitHub (Sep 8, 2024): @anngit1 Clear browser cache and show Debug result.
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

done. Here is the log.

debuglog4_clearedBrowsercache.txt

<!-- gh-comment-id:2336746889 --> @anngit1 commented on GitHub (Sep 8, 2024): done. Here is the log. [debuglog4_clearedBrowsercache.txt](https://github.com/user-attachments/files/16922966/debuglog4_clearedBrowsercache.txt)
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

@anngit1 Upload again because file does not open properly.

<!-- gh-comment-id:2336747723 --> @4IceG commented on GitHub (Sep 8, 2024): @anngit1 Upload again because file does not open properly.
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

Here it is.
debuglog4_cachecl.txt

<!-- gh-comment-id:2336748523 --> @anngit1 commented on GitHub (Sep 8, 2024): Here it is. [debuglog4_cachecl.txt](https://github.com/user-attachments/files/16922977/debuglog4_cachecl.txt)
Author
Owner

@4IceG commented on GitHub (Sep 8, 2024):

Invention from this modem..

@anngit1 OK, check this file 17824055 v4.txt
My last attempt.

You have added scripts, but modem does not return a response to some data. An unusual modem.

<!-- gh-comment-id:2336757787 --> @4IceG commented on GitHub (Sep 8, 2024): Invention from this modem.. @anngit1 OK, check this file [17824055 v4.txt](https://github.com/user-attachments/files/16923045/17824055.v4.txt) My last attempt. You have added scripts, but modem does not return a response to some data. An unusual modem.
Author
Owner

@anngit1 commented on GitHub (Sep 8, 2024):

Thanks. This didn't work either. same result as my last image.

I noticed that when I issue following command I get response.

sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?'

But when I issue similar command with 2 AT commands like follow, it give me +CME ERROR: 3

sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ'

I get same +CME ERROR: 3 for following command extracted from debug log.

sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'

Thanks for trying to help. I will keep trying and post here if I managed to fix the issue.

Following is last debug log and above responses from SSH
debuglog5.txt

3ginfo-issue3

<!-- gh-comment-id:2336764249 --> @anngit1 commented on GitHub (Sep 8, 2024): Thanks. This didn't work either. same result as my last image. I noticed that when I issue following command I get response. sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?' But when I issue similar command with 2 AT commands like follow, it give me +CME ERROR: 3 sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ' I get same +CME ERROR: 3 for following command extracted from debug log. sms_tool -D -d /dev/ttyUSB0 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?' Thanks for trying to help. I will keep trying and post here if I managed to fix the issue. Following is last debug log and above responses from SSH [debuglog5.txt](https://github.com/user-attachments/files/16923088/debuglog5.txt) ![3ginfo-issue3](https://github.com/user-attachments/assets/a1ce16db-5a31-4baa-a901-b0e1269ee81a)
Author
Owner

@anngit1 commented on GitHub (Sep 9, 2024):

I fixed the modem file for the most part. operator name doesn't work yet. So I hardcoded it for now.

17824055.txt

<!-- gh-comment-id:2338871653 --> @anngit1 commented on GitHub (Sep 9, 2024): I fixed the modem file for the most part. operator name doesn't work yet. So I hardcoded it for now. [17824055.txt](https://github.com/user-attachments/files/16935318/17824055.txt)
Author
Owner

@anngit1 commented on GitHub (Sep 10, 2024):

Fully working modem template file for Tozed LT70-C cat6 modem. Working as of luci-app-3ginfo-lite version 1.0.74-20240827. Tested on TOZED S12 PRO (on 2024 Sep 10). Tested on Sri Lanka, SLTMobitel SLT 4G home broadband network.

This modem script needs coreutils-base64 package to acquire operator name from modem.

(Added txt extension to the file to upload it here.)
17824055.txt

<!-- gh-comment-id:2340620727 --> @anngit1 commented on GitHub (Sep 10, 2024): Fully working modem template file for Tozed LT70-C cat6 modem. Working as of luci-app-3ginfo-lite version 1.0.74-20240827. Tested on TOZED S12 PRO (on 2024 Sep 10). Tested on Sri Lanka, SLTMobitel SLT 4G home broadband network. This modem script needs coreutils-base64 package to acquire operator name from modem. (Added txt extension to the file to upload it here.) [17824055.txt](https://github.com/user-attachments/files/16944819/17824055.txt)
Author
Owner

@4IceG commented on GitHub (Sep 10, 2024):

@anngit1 Great, glad it's working now.

Can you show debug? Localization is also OK?

<!-- gh-comment-id:2341289550 --> @4IceG commented on GitHub (Sep 10, 2024): @anngit1 Great, glad it's working now. Can you show debug? Localization is also OK?
Author
Owner

@anngit1 commented on GitHub (Sep 10, 2024):

Here it is.

DebugLogv6_workingmodemscript.txt

(On other note, I think upload and download volume arrow heads in primary information page is exchanged.)

<!-- gh-comment-id:2341303520 --> @anngit1 commented on GitHub (Sep 10, 2024): Here it is. [DebugLogv6_workingmodemscript.txt](https://github.com/user-attachments/files/16947408/DebugLogv6_workingmodemscript.txt) (On other note, I think upload and download volume arrow heads in primary information page is exchanged.)
Author
Owner

@4IceG commented on GitHub (Sep 10, 2024):

Did you maybe replace file mccmnc.dat? I'm asking in the context of the missing "location".

obraz

<!-- gh-comment-id:2341372955 --> @4IceG commented on GitHub (Sep 10, 2024): Did you maybe replace file [mccmnc.dat](https://github.com/4IceG/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/mccmnc.dat)? I'm asking in the context of the missing "location". ![obraz](https://github.com/user-attachments/assets/79cad8b0-ce8c-4c73-97b2-aa94a4d11895)
Author
Owner

@anngit1 commented on GitHub (Sep 10, 2024):

Yes I replaced mccmnc.dat. checked again now too.

Following are up down volumes I get.
updown1
updown2

<!-- gh-comment-id:2341429474 --> @anngit1 commented on GitHub (Sep 10, 2024): Yes I replaced mccmnc.dat. checked again now too. Following are up down volumes I get. ![updown1](https://github.com/user-attachments/assets/787f9090-efd6-43a5-8cdf-a7c4fdd8aff9) ![updown2](https://github.com/user-attachments/assets/00bfde78-9f21-4731-8097-3d312b30fab7)
Author
Owner

@1Conan commented on GitHub (Oct 5, 2024):

This modem script needs coreutils-base64 package to acquire operator name from modem.

You could also enable the base64 applet in busybox which is what I did in our OpenWrt fork when I wrote that script :)
But yeah looks like I need to update it to use band4g.

<!-- gh-comment-id:2395167867 --> @1Conan commented on GitHub (Oct 5, 2024): > This modem script needs coreutils-base64 package to acquire operator name from modem. You could also enable the base64 applet in busybox which is what I did in our OpenWrt fork when I wrote that [script](https://github.com/bkspc/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/modem/usb/17824055) :) But yeah looks like I need to update it to use band4g.
Author
Owner

@anngit1 commented on GitHub (Oct 6, 2024):

@1Conan Thanks for your awesome work.

Little background of my network and some issue I noticed:
I'm on SLT 4G broadband network in Sri Lanka for internet only. The company name is SLT mobitel and they have voice network for mobile phones separately. SLT 4G is mainly for 4G home broadband. but they do offer fixed line telephones connected to 4G modem too.

I found that the SLT 4G network I'm using (for modems I used, LT70-C and RG500Q-EA) returns +CREG: 2,3 for AT+CREG? command. This says, "Registration denied". However, for AT+CEREG? my RG500Q-EA modem returns +CEREG: 2,1,"AB2E","4F1204",7 meaning I'm attached to 4G network.

My internet connection works fine with both modems, even though both modems return "Registration denied" for AT+CREG? command.

So, it seems like for me to see whether I'm attached to the network, I have to use AT+CEREG? command. (LTE version of command) and AT+CREG? doesn't work ("Registration denied") because I'm not subscribed for voice.

So, may be these scripts need to check network connection with both commands AT+CEREG? and AT+CREG? and if one of them says registered, we can consider as successful network registration.

Again, thanks for all of your work @1Conan @4IceG

<!-- gh-comment-id:2395275825 --> @anngit1 commented on GitHub (Oct 6, 2024): @1Conan Thanks for your awesome work. Little background of my network and some issue I noticed: I'm on SLT 4G broadband network in Sri Lanka for internet only. The company name is SLT mobitel and they have voice network for mobile phones separately. SLT 4G is mainly for 4G home broadband. [but they do offer fixed line telephones connected to 4G modem too.](https://slt.lk/en/personal/broadband/lte/new-connection-charges) I found that the SLT 4G network I'm using (for modems I used, LT70-C and RG500Q-EA) returns +CREG: 2,3 for AT+CREG? command. This says, "Registration denied". However, for AT+CEREG? my RG500Q-EA modem returns +CEREG: 2,1,"AB2E","4F1204",7 meaning I'm attached to 4G network. My internet connection works fine with both modems, even though both modems return "Registration denied" for AT+CREG? command. So, it seems like for me to see whether I'm attached to the network, I have to use AT+CEREG? command. (LTE version of command) and AT+CREG? doesn't work ("Registration denied") because I'm not subscribed for voice. So, may be these scripts need to check network connection with both commands AT+CEREG? and AT+CREG? and if one of them says registered, we can consider as successful network registration. Again, thanks for all of your work @1Conan @4IceG
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-3ginfo-lite#74
No description provided.