# Equipment upgrade :id=top

------

> _Doc Ver:_ 2.3  
_App Ver:_ 2.6.6.53  
_Date:_ 09/18/2026

------

Use **`sa1-upgrader`**. Do not use `install_sa2.sh`, SA 3.x packages, or `sa_run`. SA1 and SA2 are mutually exclusive (same UDP 8190). Stop SA2 before upgrading SA1.

Guides: http://192.168.3.9/sa1/install/ · http://sc.casstk.com/sa1/install/  
Chooser: http://192.168.3.9/sa1/install/get.html  
Ask: http://112.74.47.129:9999

The upgrader downloads a `sa1-v2.6.*` tar, verifies sha256, extracts to `/home/debian/sa1/releases/<ver>`, keeps `persist/`, stops processes (**not** `killall -9`), switches `current`, then health-checks (one `sa-di`, `*IDN?`, `/login` on 80 **or** 8080 **or** 81). Failure rolls back. **No default reboot.**

Debian uses `sa-di` + `sa-web` + `csdfu` systemd units. BusyBox / no systemd (T113 armv7l) uses `/etc/init.d/sa1` (`sa1-supervise`). `sa1-upgrader status` prints `init=`.

## 1. Online upgrade :id=online

### 1.1 Management UI

Firefox or Chrome.

1. Menu > **Help** > **Upgrade**
2. **Upgrade** keeps `persist/conf`. **Reset / Reinstall** is `--reset-conf` (factory conf, keep IDN/SN).
3. Wait for the background job. Refresh the browser when `/login` is back. You do not need a 5-minute silent reboot.

### 1.2 SSH

The PC must ping the demodulator and use a different IP.

```bash
ssh debian@192.168.3.252
curl -fsSL http://192.168.3.9/sa1/install/install | sudo bash
# or
sudo sa1-upgrader upgrade -y
```

Online upgrade pulls the public **`casstk/sa1`** generic packages (no token). Do not point `SA1_REGISTRY` at private `sa1/sa1`.

Replace the host with the device address. BusyBox boards may be `root` if there is no `debian` user. If the factory Linux password is still the historical `temppwd`, change it after login.

### 1.3 Direct upgrader

```bash
sa1-upgrader status
sa1-upgrader check
sudo sa1-upgrader upgrade --version 2.6.6.21 -y
```

## 2. Offline upgrade :id=offline

1. On a networked PC open the chooser and download `sa1-v<ver>-linux_amd64.tar.gz` or **`linux_arm`** for armv7l.
2. Menu > Help > Upgrade > Offline, upload that tar  
   **or** `scp` it to the device and run:

```bash
sudo sa1-upgrader inspect --local ~/sa1-v2.6.6.21-linux_amd64.tar.gz
sudo sa1-upgrader upgrade --local ~/sa1-v2.6.6.21-linux_amd64.tar.gz -y
# armv7l:
sudo sa1-upgrader upgrade --local ~/sa1-v2.6.6.21-linux_arm.tar.gz -y
```

## 3. Auto-upgrade :id=auto

Menu > **Settings** > **Upgrade** > **Auto**. Interval minimum is 60 seconds. The implementation is `sa1-upgrader check --auto-upgrade`. Point URI at the SA1 index, not an SA2 package URL.

## 4. Rollback :id=rollback

```bash
sudo sa1-upgrader rollback -y
```

Automatic if health check fails.

## 5. Start if `/login` is down :id=start

After upgrade the upgrader starts the units. If the page is still dead:

```bash
sudo systemctl start sa-di sa-web csdfu
# BusyBox:
sudo /etc/init.d/sa1 start
```

Do not `killall -9`. Cookbook: [Start, check, upgrade](operate.md#start).

## 6. Check after upgrade :id=check

```bash
sa1-upgrader status
pgrep -a sa-di
pgrep -a sa-web
printf '*IDN?\n' | nc -w 2 127.0.0.1 7090; echo
printf '*VER?\n' | nc -w 2 127.0.0.1 7090; echo
curl -sS http://127.0.0.1/api/info; echo
```

`/api/info` should show the new dotted version. If `*VER?` is still the old VersionN, `sudo systemctl restart sa-di` (BusyBox: `sudo /etc/init.d/sa1 restart`). Pass criteria: [Start, check, upgrade](operate.md#check).

## 7. Old procedure (before 2.6.6.1)

Older help described `bash install.sh`, `sa.install.tar.gz` from `112.74.80.60`, and a mandatory reboot. That publish path is retired. Use `sa1-upgrader` and `/sa1/install/`.

## Change log :id=changelog

|Version|Date|Description|
|:--:|----|----------|
|2.2|09/07/2026|Start and check after upgrade; examples use 2.6.6.20|
|2.1|09/06/2026|BusyBox / linux_arm, health check 8080/81, not sa_run|
|2.0|09/03/2026|sa1-upgrader, /home/debian/sa1, portal on 192.168.3.9 and sc.casstk.com|
|1.3|06/04/2022|Added auto-upgrade help.|
|1.2|09/04/2020|Create help for the new file format.|
