-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOZED S12 PRO with Tozed LT70-C V1.0.1-B7 issue #96
Comments
This is the debug log in text file |
Hi @anngit1 , The newline error can be resolved by adding "| xargs" to data cut commands.
I am more curious why the modem returns 3ginfo-lite checks if the modem is logged into the network and only then allows it to show data. |
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 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 this is the one I modified as per your guidance. |
@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 Update 3ginfo-lite to the latest version and replace the contents of the file |
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. Thank you very much for your time and effort trying to help. |
@anngit1 OK, check this file 17824055 v3.txt. |
Still same result as in last image I posted. |
@anngit1 Clear browser cache and show Debug result. |
done. Here is the log. |
@anngit1 Upload again because file does not open properly. |
Here it is. |
Invention from this modem.. @anngit1 OK, check this file 17824055 v4.txt You have added scripts, but modem does not return a response to some data. An unusual modem. |
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 |
I fixed the modem file for the most part. operator name doesn't work yet. So I hardcoded it for now. |
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.) |
@anngit1 Great, glad it's working now. Can you show debug? Localization is also OK? |
Here it is. DebugLogv6_workingmodemscript.txt (On other note, I think upload and download volume arrow heads in primary information page is exchanged.) |
Did you maybe replace file mccmnc.dat? I'm asking in the context of the missing "location". |
You could also enable the base64 applet in busybox which is what I did in our OpenWrt fork when I wrote that script :) |
@1Conan Thanks for your awesome work. Little background of my network and some issue I noticed: 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. |
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 :)
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
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
'
'/^+COPS/ {print $4;exit}'
MODE_NUM=
MODE=-
sms_tool -d /dev/ttyUSB0 at at+cereg
OTX='
'
echo '
'
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"'
-d /dev/ttyUSB0 at 'AT+SPTZCMD="YXBwX2RlbW8gdGVzdF9uZXR3b3JrX2dldF9vcGVyYXRvcl9uYW1lfGdyZXAgT3xjdXQgLWIyNC18Y3V0IC1kJChlY2hvIC1lICcbJykgLWYx"'
-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
'
+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -93,-6,0,17
+CSQ: 9,99
OK
'
+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -93,-6,0,17
+CSQ: 9,99
OK
'
'
+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -93,-6,0,17
+CSQ: 9,99
OK
'
sh: invalid number '0x'
+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -93,-6,0,17
+CSQ: 9,99
OK
'
+CREG: 2,0
+CCID: "89941202101171109623"
+ZRSSI: -93,-6,0,17
+CSQ: 9,99
OK
'
/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/17824055: line 58: band: not found
The text was updated successfully, but these errors were encountered: