更新
This commit is contained in:
parent
682447971f
commit
3adc15f5f2
@ -190,6 +190,9 @@ msgstr "找不到网络设备"
|
||||
msgid "Only display the modes available for the adaptation modem"
|
||||
msgstr "仅显示适配模组可用的拨号模式"
|
||||
|
||||
msgid "Config ID"
|
||||
msgstr "配置ID"
|
||||
|
||||
msgid "Dial Tool"
|
||||
msgstr "拨号工具"
|
||||
|
||||
|
@ -312,10 +312,18 @@ fibocom_base_info()
|
||||
|
||||
#Temperature(温度)
|
||||
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')
|
||||
if [ -n "$response" ]; then
|
||||
temperature="$response$(printf "\xc2\xb0")C"
|
||||
fi
|
||||
response=$(sh ${SCRIPT_DIR}/modem_at.sh $at_port $at_command | grep "+MTSM: " | sed 's/+MTSM: //g' | sed 's/\r//g')
|
||||
|
||||
[ -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"
|
||||
}
|
||||
}
|
||||
|
||||
#获取SIM卡状态
|
||||
|
@ -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')
|
||||
}
|
||||
|
||||
#特殊处理FM350-GL-00 5G Module
|
||||
[[ "$modem_name" = *"fm350-gl"* ]] && {
|
||||
modem_name="fm350-gl"
|
||||
}
|
||||
|
||||
[ -n "$modem_name" ] && {
|
||||
#获取模组信息
|
||||
local data_interface=$(uci -q get modem.modem${modem_no}.data_interface)
|
||||
|
@ -211,7 +211,7 @@ quectel_get_self_test_info()
|
||||
|
||||
#Voltage(电压)
|
||||
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}"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user