This commit is contained in:
ling 2024-04-13 20:54:19 +08:00
parent 682447971f
commit 3adc15f5f2
4 changed files with 21 additions and 5 deletions

View File

@ -190,6 +190,9 @@ msgstr "找不到网络设备"
msgid "Only display the modes available for the adaptation modem" msgid "Only display the modes available for the adaptation modem"
msgstr "仅显示适配模组可用的拨号模式" msgstr "仅显示适配模组可用的拨号模式"
msgid "Config ID"
msgstr "配置ID"
msgid "Dial Tool" msgid "Dial Tool"
msgstr "拨号工具" msgstr "拨号工具"

View File

@ -312,10 +312,18 @@ fibocom_base_info()
#Temperature温度 #Temperature温度
at_command="AT+MTSM=1,6" at_command="AT+MTSM=1,6"
response=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | sed -n '2p' | sed 's/+MTSM: //g' | sed 's/\r//g') response=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | grep "+MTSM: " | sed 's/+MTSM: //g' | sed 's/\r//g')
if [ -n "$response" ]; then
[ -z "$response" ] && {
#联发科平台
at_command="AT+GTSENRDTEMP=0"
response=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | grep "+GTSENRDTEMP: " | awk -F',' '{print $2}' | sed 's/\r//g')
response="${response:0:2}"
}
[ -n "$response" ] && {
temperature="$response$(printf "\xc2\xb0")C" temperature="$response$(printf "\xc2\xb0")C"
fi }
} }
#获取SIM卡状态 #获取SIM卡状态

View File

@ -348,6 +348,11 @@ retry_set_modem_config()
modem_name=$(at ${at_port} ${at_command} | sed -n '2p' | sed 's/\r//g' | tr 'A-Z' 'a-z') modem_name=$(at ${at_port} ${at_command} | sed -n '2p' | sed 's/\r//g' | tr 'A-Z' 'a-z')
} }
#特殊处理FM350-GL-00 5G Module
[[ "$modem_name" = *"fm350-gl"* ]] && {
modem_name="fm350-gl"
}
[ -n "$modem_name" ] && { [ -n "$modem_name" ] && {
#获取模组信息 #获取模组信息
local data_interface=$(uci -q get modem.modem${modem_no}.data_interface) local data_interface=$(uci -q get modem.modem${modem_no}.data_interface)

View File

@ -211,7 +211,7 @@ quectel_get_self_test_info()
#Voltage电压 #Voltage电压
at_command="AT+CBC" at_command="AT+CBC"
local voltage=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | grep "+CBC:" | awk -F',' '{print $2}' | sed 's/\r//g') local voltage=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | grep "+CBC:" | awk -F',' '{print $3}' | sed 's/\r//g')
echo "${voltage}" echo "${voltage}"
} }