From 9c6d66b06363d8d3028725519e58b56e371a4292 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Tue, 20 May 2025 21:37:19 -0700 Subject: [PATCH] support at device --- system/hardware/tici/esim.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/hardware/tici/esim.py b/system/hardware/tici/esim.py index 1cd765b752..7275898320 100755 --- a/system/hardware/tici/esim.py +++ b/system/hardware/tici/esim.py @@ -6,6 +6,7 @@ import os import shutil import subprocess from dataclasses import dataclass +from typing import Literal @dataclass class Profile: @@ -22,10 +23,11 @@ class LPAProfileNotFoundError(LPAError): class LPA: - def __init__(self): + def __init__(self, interface: Literal['qmi', 'at'] = 'qmi'): self.env = os.environ.copy() - self.env['LPAC_APDU'] = 'qmi' + self.env['LPAC_APDU'] = interface self.env['QMI_DEVICE'] = '/dev/cdc-wdm0' + self.env['AT_DEVICE'] = '/dev/ttyUSB2' self.timeout_sec = 45