Compare commits

...

3 Commits

Author SHA1 Message Date
Jason Wen 9f1d6552c0 chore: update CHANGELOG for 2026.002.003 2026-11-19 23:35:04 -05:00
Jason Wen cbfc38abf9 lpa: import pyserial lazily 2026-11-19 23:35:04 -05:00
Jason Wen 74154ecab1 version: bump to 2026.002.003 2026-11-19 23:35:03 -05:00
4 changed files with 17 additions and 5 deletions
+5
View File
@@ -1,3 +1,8 @@
sunnypilot Version 2026.002.003 (2026-11-19)
========================
* What's Changed
* hardware: fix fresh install stuck on comma logo on AGNOS 19.4 to 20.1 by @sunnyhaibin
sunnypilot Version 2026.002.002 (2026-08-05)
========================
* What's Changed
+1 -1
View File
@@ -1 +1 @@
#define SUNNYPILOT_VERSION "2026.002.002"
#define SUNNYPILOT_VERSION "2026.002.003"
+9 -2
View File
@@ -6,7 +6,6 @@ import fcntl
import hashlib
import os
import requests
import serial
import subprocess
import sys
import termios
@@ -14,13 +13,17 @@ import time
from collections.abc import Callable, Generator
from contextlib import contextmanager
from typing import Any
from typing import TYPE_CHECKING, Any
from pathlib import Path
from openpilot.common.time_helpers import system_time_valid
from openpilot.system.hardware.base import LPABase, LPAError, LPAProfileNotFoundError, Profile
# pyserial is imported where used: AGNOS 19.4 to 20.1 lack it, and the updater imports this module
if TYPE_CHECKING:
import serial
GSMA_CI_BUNDLE = str(Path(__file__).parent / "gsma_ci_bundle.pem")
DEFAULT_DEVICE = "/dev/modem_at0"
@@ -176,6 +179,7 @@ class AtClient:
lines.append(line)
def _ensure_serial(self, reconnect: bool = False) -> None:
import serial
if reconnect:
self.channel = None
try:
@@ -188,6 +192,7 @@ class AtClient:
self._serial = serial.Serial(self._device, baudrate=self._baud, timeout=self._timeout)
def query(self, cmd: str) -> list[str]:
import serial
self._ensure_serial()
try:
self._send(cmd)
@@ -198,6 +203,7 @@ class AtClient:
return self._expect()
def _open_isdr_once(self) -> None:
import serial
if self.channel:
try:
self.query(f"AT+CCHC={self.channel}")
@@ -226,6 +232,7 @@ class AtClient:
subprocess.run(['/usr/comma/lte/lte.sh', 'start'], capture_output=True)
def open_isdr(self) -> None:
import serial
for attempt in range(OPEN_ISDR_RETRIES):
try:
self._open_isdr_once()
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a94ab8395f20d20a9d5a2a2bacca0694f072df8421cf13adca6250d28065bdc
size 24709205
oid sha256:cb85afe38931bd5b2c8622ff0f7546dc154505090808a6f5f7835ec7a8d78c05
size 24709209