Skip to content

Commit 655ddec

Browse files
committed
gosuncn: fix lte platfrom cell info parsing
1 parent 3dc5bf3 commit 655ddec

File tree

1 file changed

+3
-3
lines changed
  • application/qmodem/files/usr/share/qmodem/vendor

1 file changed

+3
-3
lines changed

application/qmodem/files/usr/share/qmodem/vendor/gosuncn.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:")

0 commit comments

Comments
 (0)