🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

@@ -0,0 +1,28 @@
------查询------;AT
查看IMEI;AT+CGSN
固件版本信息;AT+GMR
信号强度;AT+CSQ
正在使用的网络信息;AT+QNWINFO
查询限速;AT+C5GQOSRDP=1
模块温度;AT+QTEMP
查询运营商名称;AT+QSPN
查询小区信息;AT+QENG="servingcell"
-----3/4/5G网络配置-----;AT
查询当前网络搜索模式;AT+QNWPREFCFG="mode_pref"
!切换仅3G;AT+QNWPREFCFG="mode_pref",WCDMA
切换仅4G;AT+QNWPREFCFG="mode_pref",LTE
切换仅5G;AT+QNWPREFCFG="mode_pref",NR5G
切换5,4G;AT+QNWPREFCFG="mode_pref",NR5G:LTE
切换AUTO;AT+QNWPREFCFG="mode_pref",AUTO
-----锁频段-----;AT
查询支持的所有频段;AT+QNWPREFCFG=?
查询当前配置的5G频段;AT+QNWPREFCFG="nr5g_band"
查询当前配置的4G频段;AT+QNWPREFCFG="lte_band"
!5G锁频段(78);AT+QNWPREFCFG="nr5g_band",78
5G默认频段;AT+QNWPREFCFG="nr5g_band",1:28:41:77:78:79
!4G锁频段(1);AT+QNWPREFCFG="lte_band",1
4G默认频段;AT+QNWPREFCFG="lte_band",1:2:3:5:7:8:20:28:34:38:39:40:41
-----MORE-----;AT
查看产品型号;ATI
挂断现有语音;ATH
!更改IMEI,需重启;AT+EGMR=1,7,"868227050701486"
@@ -0,0 +1 @@
other user;8613188888888
@@ -0,0 +1,14 @@
config sms_tool 'general'
option pnumber '86'
option prefix '1'
option ledtimeon '1'
option ledtimeoff '5'
option lednotify '0'
option checktime '10'
option mergesms '0'
option information '0'
option pdu '0'
option storage 'SM'
option prestart '6'
option ledtype 'D'
+30
View File
@@ -0,0 +1,30 @@
#!/bin/sh /etc/rc.common
# Copyright 2020 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
USE_PROCD=1
START=99
STOP=01
start_service() {
procd_open_instance
procd_set_param command /bin/sh "/sbin/smsled-init.sh"
procd_close_instance
}
stop_service() {
for KILLPID in `ps | grep 'smsled' | awk ' { print $1;}'`; do
(kill -9 $KILLPID >/dev/null 2>&1 )&
done
sleep 1
return 0
}
restart_service() {
stop_service
start_service
}
reload_service() {
restart
}
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
# Copyright 2020-2021 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
work=false
for port in /dev/ttyUSB*
do
[[ -e $port ]] || continue
gcom -d $port info &> /tmp/testusb
testUSB=`cat /tmp/testusb | grep "Error\|Can't"`
if [ -z "$testUSB" ]; then
work=$port
break
fi
done
rm -rf /tmp/testusb
if [ $work != false ]; then
uci set sms_tool.@sms_tool[0].readport=$work
uci set sms_tool.@sms_tool[0].sendport=$work
uci set sms_tool.@sms_tool[0].atport=$work
uci commit sms_tool
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Copyright 2020 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
/etc/init.d/smsled disable
exit 0
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
[ -e /etc/crontabs/root ] || touch /etc/crontabs/root
SLED=$(uci -q get sms_tool.general.lednotify)
if [ "x$SLED" != "x1" ]; then
if grep -q "smsled" /etc/crontabs/root; then
grep -v "/init.d/smsled" /etc/crontabs/root > /tmp/new_cron
mv /tmp/new_cron /etc/crontabs/root
/etc/init.d/cron restart
fi
exit 0
fi
if ! grep -q "smsled" /etc/crontabs/root; then
PTR=$(uci -q get sms_tool.general.prestart)
echo "1 */$PTR * * * /etc/init.d/smsled enable" >> /etc/crontabs/root
/etc/init.d/cron restart
fi
exit 0
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
# Copyright 2020-2021 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
work=false
for port in /dev/ttyUSB*
do
[[ -e $port ]] || continue
gcom -d $port info &> /tmp/testusb
testUSB=`cat /tmp/testusb | grep "Error\|Can't"`
if [ -z "$testUSB" ]; then
work=$port
break
fi
done
rm -rf /tmp/testusb
if [ $work != false ]; then
uci set sms_tool.@sms_tool[0].readport=$work
uci set sms_tool.@sms_tool[0].sendport=$work
uci set sms_tool.@sms_tool[0].ussdport=$work
uci set sms_tool.@sms_tool[0].atport=$work
uci commit sms_tool
fi
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
# Copyright 2020 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
sleep 10
CT=$(uci -q get sms_tool.general.checktime)
TX=$(echo $CT | tr -dc '0-9')
TM=$(($TX * 60))
while [ 1 ]; do
LED=$(uci -q get sms_tool.general.lednotify)
if [ $LED == "1" ]; then
sleep $TM
(/sbin/smsled.sh >/dev/null 2>&1 )&
continue
fi
sleep 1
done
exit 0
+39
View File
@@ -0,0 +1,39 @@
#!/bin/sh
# Copyright 2020-2021 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
DEV=$(uci -q get sms_tool.general.readport)
LEDX=$(uci -q get sms_tool.general.smsled)
MEM=$(uci -q get sms_tool.general.storage)
STX=$(sms_tool -s $MEM -d $DEV status | cut -c23-27)
SMS=$(echo $STX | tr -dc '0-9')
SMSC=$(cat /etc/config/sms_count)
LEDT="/sys/class/leds/$LEDX/trigger"
LEDON="/sys/class/leds/$LEDX/delay_on"
LEDOFF="/sys/class/leds/$LEDX/delay_off"
LED="/sys/class/leds/$LEDX/brightness"
LON=$(uci -q get sms_tool.general.ledtimeon)
TXON=$(echo $LON | tr -dc '0-9')
TMON=$(($TXON * 1000))
LOFF=$(uci -q get sms_tool.general.ledtimeoff)
TXOFF=$(echo $LOFF | tr -dc '0-9')
TMOFF=$(($TXOFF * 1000))
if [ $SMS == $SMSC ]; then
exit 0
fi
if [ $SMS > $SMSC ]; then
echo timer > $LEDT
echo $TMOFF > $LEDOFF
echo $TMON > $LEDON
exit 0
fi
exit 0
@@ -0,0 +1,24 @@
{
"luci-app-sms-tool": {
"description": "Grant UCI and file access for luci-app-sms-tool",
"read": {
"file": {
"/usr/bin/sms_tool *": [ "exec" ],
},
"uci": [ "sms_tool" ]
},
"write": {
"file": {
"/usr/bin/sms_tool *": [ "exec" ],
},
"uci": [ "sms_tool" ]
}
}
}