support at device

pull/35314/head
Trey Moen 1 week ago
parent 5d208ceed6
commit 9c6d66b063
  1. 6
      system/hardware/tici/esim.py

@ -6,6 +6,7 @@ import os
import shutil import shutil
import subprocess import subprocess
from dataclasses import dataclass from dataclasses import dataclass
from typing import Literal
@dataclass @dataclass
class Profile: class Profile:
@ -22,10 +23,11 @@ class LPAProfileNotFoundError(LPAError):
class LPA: class LPA:
def __init__(self): def __init__(self, interface: Literal['qmi', 'at'] = 'qmi'):
self.env = os.environ.copy() self.env = os.environ.copy()
self.env['LPAC_APDU'] = 'qmi' self.env['LPAC_APDU'] = interface
self.env['QMI_DEVICE'] = '/dev/cdc-wdm0' self.env['QMI_DEVICE'] = '/dev/cdc-wdm0'
self.env['AT_DEVICE'] = '/dev/ttyUSB2'
self.timeout_sec = 45 self.timeout_sec = 45

Loading…
Cancel
Save