Add engineering output to deviceState.networkInfo (#20948)

* Add engineering output to deviceState.networkInfo

* update cereal
albatross
Willem Melching 2021-05-18 14:08:08 +02:00 committed by GitHub
parent b4af541877
commit e8641f6430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

2
cereal

@ -1 +1 @@
Subproject commit 42b73b00f1a9d08ce03e996aef6474569c426888
Subproject commit 4cfd67776eaf7926bd5abf35668bee8c5faee320

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