Tici hardware abstraction layer (#2183)

* rename android hardware

* add tici class

* elif

* read correct serial number

* Update release files

* Get IMEI

* Refactor AT command

* move get_cmdline into base class

* Remove unused import

* Small cleanup
old-commit-hash: c90cb1b529c24580f8351c046f2b5b022a956ba8
This commit is contained in:
Willem Melching
2020-09-17 13:36:42 +02:00
committed by GitHub
parent 398796a010
commit d455516765
5 changed files with 71 additions and 2 deletions
+4 -1
View File
@@ -3,7 +3,8 @@ import random
from typing import cast
from cereal import log
from common.android import Android
from common.hardware_android import Android
from common.hardware_tici import Tici
from common.hardware_base import HardwareBase
EON = os.path.isfile('/EON')
@@ -50,5 +51,7 @@ class Pc(HardwareBase):
if EON:
HARDWARE = cast(HardwareBase, Android())
elif TICI:
HARDWARE = cast(HardwareBase, Tici())
else:
HARDWARE = cast(HardwareBase, Pc())