Add engineering output to deviceState.networkInfo (#20948)

* Add engineering output to deviceState.networkInfo

* update cereal
old-commit-hash: e8641f643056bc6719559ea264121a52bcf79ed9
This commit is contained in:
Willem Melching
2021-05-18 14:08:08 +02:00
committed by GitHub
parent 7477a8c296
commit caabd56607
2 changed files with 5 additions and 2 deletions
+1 -1
Submodule cereal updated: 42b73b00f1...4cfd67776e
+4 -1
View File
@@ -133,11 +133,13 @@ class Tici(HardwareBase):
modem = self.get_modem()
try:
info = modem.Command("AT+QNWINFO", int(TIMEOUT * 1000), dbus_interface=MM_MODEM, timeout=TIMEOUT)
extra = modem.Command('AT+QENG="servingcell"', int(TIMEOUT * 1000), dbus_interface=MM_MODEM, timeout=TIMEOUT)
except Exception:
return None
if info and info.startswith('+QNWINFO: '):
info = info.replace('+QNWINFO: ', '').replace('"', '').split(',')
extra = "" if extra is None else extra.replace('+QENG: "servingcell",', '').replace('"', '')
if len(info) != 4:
return None
@@ -148,7 +150,8 @@ class Tici(HardwareBase):
'technology': technology,
'operator': operator,
'band': band,
'channel': int(channel)
'channel': int(channel),
'extra': extra,
})
else:
return None