Add engineering output to deviceState.networkInfo (#20948)
* Add engineering output to deviceState.networkInfo * update cerealalbatross
parent
b4af541877
commit
e8641f6430
2
cereal
2
cereal
|
@ -1 +1 @@
|
||||||
Subproject commit 42b73b00f1a9d08ce03e996aef6474569c426888
|
Subproject commit 4cfd67776eaf7926bd5abf35668bee8c5faee320
|
|
@ -133,11 +133,13 @@ class Tici(HardwareBase):
|
||||||
modem = self.get_modem()
|
modem = self.get_modem()
|
||||||
try:
|
try:
|
||||||
info = modem.Command("AT+QNWINFO", int(TIMEOUT * 1000), dbus_interface=MM_MODEM, timeout=TIMEOUT)
|
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:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if info and info.startswith('+QNWINFO: '):
|
if info and info.startswith('+QNWINFO: '):
|
||||||
info = info.replace('+QNWINFO: ', '').replace('"', '').split(',')
|
info = info.replace('+QNWINFO: ', '').replace('"', '').split(',')
|
||||||
|
extra = "" if extra is None else extra.replace('+QENG: "servingcell",', '').replace('"', '')
|
||||||
|
|
||||||
if len(info) != 4:
|
if len(info) != 4:
|
||||||
return None
|
return None
|
||||||
|
@ -148,7 +150,8 @@ class Tici(HardwareBase):
|
||||||
'technology': technology,
|
'technology': technology,
|
||||||
'operator': operator,
|
'operator': operator,
|
||||||
'band': band,
|
'band': band,
|
||||||
'channel': int(channel)
|
'channel': int(channel),
|
||||||
|
'extra': extra,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue