modem:increase scan interval

This commit is contained in:
padavanonly
2025-05-25 23:40:40 +08:00
parent 512316f742
commit 9e83cfb34c
3 changed files with 8 additions and 9 deletions

View File

@@ -468,9 +468,9 @@ fibocom_sim_info()
#ISP互联网服务提供商
at_command="AT+COPS?"
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} ${at_command} | grep "+COPS" | awk -F'"' '{print $2}'| tr -d '\r\n' | xargs)
if [ "$isp" = "4E2D56FD8054901A" ]; then
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
isp="CHN-UNICOM"
fi
fi
# if [ "$isp" = "CHN-CMCC" ] || [ "$isp" = "CMCC" ]|| [ "$isp" = "46000" ]; then
# isp="中国移动"
# elif [ "$isp" = "CHN-UNICOM" ] || [ "$isp" = "UNICOM" ] || [ "$isp" = "46001" ]; then

View File

@@ -162,7 +162,7 @@ rndis_dial()
if [ "$manufacturer" = "fibocom" ] && [ "$platform" = "mediatek" ]; then
local at_command="AT+COPS?"
isp=$(at ${at_port} ${at_command} | grep "+COPS" | awk -F'"' '{print $2}' | tr -d '\r\n' | xargs)
if [ "$isp" = "4E2D56FD8054901A" ]; then
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
isp="CHN-UNICOM"
fi
@@ -184,7 +184,6 @@ rndis_dial()
at "$at_port" "$at_command"
echo "matching ISP: [$isp]" >> "${MODEM_RUNDIR}/modem${modem_no}_dial.cache"
fi
sleep 3s
local at_command="AT+CGACT=1,${define_connect}"
#打印日志
dial_log "${at_command}" "${MODEM_RUNDIR}/modem${modem_no}_dial.cache"
@@ -337,7 +336,7 @@ modem_network_task()
fi
rdisc6 eth2 &
ndisc6 fe80::1 eth2 &
sleep 5s
sleep 15s
done
}

View File

@@ -636,14 +636,14 @@ tdtech_sim_info()
#ISP互联网服务提供商
at_command="AT+COPS?"
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} ${at_command} | grep "+COPS" | awk -F'"' '{print $2}'| tr -d '\r\n' | xargs)
if [ "$isp" = "4E2D56FD8054901A" ]; then
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
isp="CHN-UNICOM"
fi
if [ -z "$isp" ]; then
at_command="AT^EONS=1"
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} "${at_command}" | grep "^EONS" | awk -F'"' '{print $2}')
if [ "$isp" = "4E2D56FD8054901A" ]; then
isp="CHN-UNICOM"
isp=$(sh ${SCRIPT_DIR}/modem_at.sh ${at_port} "${at_command}" | grep "^EONS" | awk -F'"' '{print $2}'| tr -d '\r\n' | xargs)
if [[ "$isp" == "4E2D56FD8054901A" ]]; then
isp="CHN-UNICOM"
fi
fi
# if [ "$isp" = "CHN-CMCC" ] || [ "$isp" = "CMCC" ]|| [ "$isp" = "46000" ]; then