File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
application/qmodem/files/usr/share/qmodem/vendor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -540,9 +540,9 @@ cell_info_lte()
540540
541541 # 解析 ZCELLINFO 字段
542542 local tac=$( echo " $zcellinfo " | cut -d' ,' -f1 | tr -d ' ' )
543- local cell_id=$( echo " $zcellinfo " | grep -o ' cellid:[^,]* ' | cut -d: -f2 )
544- local pci=$( echo " $zcellinfo " | grep -o ' pci:[^,]* ' | cut -d: -f2 )
545- local lband=$( echo " $zcellinfo " | grep -o ' band:[^,]* ' | cut -d: -f2 | tr -d ' \r ' )
543+ local cell_id=$( echo " $zcellinfo " | cut -d ' , ' -f2 | tr -d ' ' )
544+ local pci=$( echo " $zcellinfo " | cut -d ' , ' -f3 | tr -d ' ' )
545+ local lband=$( echo " $zcellinfo " | cut -d ' , ' -f4 | tr -d ' \r ' | tr -d ' \n ' )
546546
547547 # 获取信号质量
548548 local cesq_response=$( at $at_port " AT+CESQ" | grep " +CESQ:" )
You can’t perform that action at this time.
0 commit comments