docs(arnavi): consolidate server and tracker handoff with qualification evidence

This commit is contained in:
DCCONSTRUCTIONS
2026-09-28 18:44:50 +03:00
parent 67ae1f4d77
commit 21f46ac38a
42 changed files with 6839 additions and 0 deletions
+90
View File
@@ -0,0 +1,90 @@
# B2 network configuration: qualified endpoint change
This document records the original Host 0.1.6 endpoint-only acceptance. Current
full-profile network support, owner configuration endpoint and post-restart
qualification are described in [autonomy and commands](AUTONOMY_AND_COMMANDS.md).
The historical limitations below must not be read as the current feature list.
## Accepted scope, 2026-09-26
B2 model 231, firmware 0.01, can change its **first monitoring server address and
port** through the owner's VPS (Host 0.1.6). The already configured second server
must remain the current VPS. A real change and reversal completed over INTERNAL;
independent USB reading after reversal was byte-identical to the initial backup.
USB was used only as independent qualification evidence, never to perform these
writes. The owner's first server migration can now run from Core settings.
This is not full-profile network support. Trajectory, sensor thresholds, APN,
other server slots and vendor-web polling are not admitted network writes.
Unchanged fields in the saved profile may remain present; if comparison against
the last USB baseline finds any other requested changes, Core rejects the entire
network operation before dispatch. A verified endpoint never marks all 78 USB
profile parameters as remotely applied.
## Protocol authority
- [B2 manufacturer documentation](https://8888.arusnavi.ru/Arnavi%20B2/), manual
sections 9.3–9.4: GETP and SETP #1 host/port, omitted parameters preserved.
- [Manufacturer INTERNAL protocol](https://docs.google.com/spreadsheets/d/15s-2ZbqOQ1bZvAtFFm9sIEuKy3jbJzxdeynp72sjoYU/edit), SERVER_COM and SMS:
FC Windows-1251 text, one-byte length, sum checksum, asynchronous TCP commands.
The operation sends `password*SETP*#1=host,port` (under 160 ASCII characters).
It does not alter protocol, ID, the undocumented fifth server value or any other
group. It requires the qualified group shape: INTERNAL, ID zero, empty fifth
value. Core also requires registered, reachable source and target hosts assigned
to the same vehicle. Credentials come from private enrollment evidence and never
from portable profiles or browser requests.
## Durable state and readback
1. Core persists operation ID and requested revision before POST. Lost POST
responses are reconciled by GET; Core never blindly resubmits. USB operations,
desired settings changes and tracker reassignment are blocked while pending.
2. VPS admits one pending operation per IMEI, expiring after 120 seconds.
3. Fresh GETP must match the expected primary and show this VPS as secondary.
An unexpected configuration stops the write. All returned groups are retained
privately as the precondition/baseline.
4. Dispatch is committed before sending. SETP is sent at most once. Receipt is
not proof of application. Restart during any uncertain stage never replays it.
5. After at least 15 seconds, a separate GETP verifies the target endpoint and
equality of every other reported group. Only this read may move to a new TCP
session following a reconnect; its answer must belong to that session.
6. Core exposes only endpoint, stage, timestamps and outcome. Original GETP,
access parameters, password and raw replies never reach the browser. The
footer saves desired settings and starts a bounded remote operation; the
separate Read through VPS action reconciles an uncertain endpoint without
writing. A profile save never initiates a fleet rollout.
Packets are checksum-validated before command processing. Evidence rejects
stale timestamps, duplicates and responses from another session. Real B2 text
clock lag was about four seconds; the accepted window is at most ten seconds
behind and five seconds ahead of host time. Successive stages require strictly
increasing device timestamps. FC supplies **no transaction token**: this bounds
freshness, but cannot provide cryptographic correlation of a response to a
command. Do not describe a TCP ACK or any arbitrary text as verified settings.
Desired endpoint changes retain admission on observed/confirmed prior endpoints
of already assigned hosts. This prevents saving a new address from revoking the
old uplink before device confirmation. The secondary channel is not retired
automatically. Replacing a host or losing Core connectivity cannot cause a write
replay. On reconnect Core polls the persisted operation; unresolved outcomes stay
uncertain. Queue expiry is not an indefinite offline rollout.
## Physical qualification
- 0.1.4 rejected a fresh preflight due to clock skew; no write occurred.
- 0.1.5 sent the documented change, independently visible over USB, but correctly
withheld success when B2's response arrived after TCP reconnection.
- 0.1.6 verified the network reversal through the surviving secondary, including
a fresh GETP after reconnection. USB backup and restored configuration hashes
were equal; no other configuration bytes changed.
- Synthetic checks cover stale/wrong-session/duplicate replies, missing ACK,
reconnect, restart, expiry, altered unrelated fields, expected-value conflict,
mixed unsupported profiles, private-field projection and desired/admission
separation. This is not a thousand-device load qualification.
Full USB CONF is larger than the FC frame. Do not split it into guessed chunks,
map binary field IDs directly into SETP, or invent FD file/apply semantics.
The B2 manual says accepted changes synchronize to its vendor web configurator;
existing vendor polling remains enabled. Full vendor-cloud independence,
factory-empty devices and network delivery of every settings field remain open.