Add bounded Morse receive and negotiated RS232 autosleep
Add native narrow-band CW capture, ACK-first remote sessions, retained LoRa-readable pages, checked restoration and transport-safe progress. Add stock-compatible negotiated heartbeat/autosleep and recovery. Include host regressions and identity-bound HIL runners; keep unverified faster tuning HIL-only and document outstanding hardware validation.
This commit is contained in:
1 parent
d2bea5fb10
commit
ca9caece53
152 files changed
+12631
-149
No files matched your search
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
struct Callbacks {
|
||||
TestRadio* radio;
|
||||
mesh::Radio* getProfileRadio() { return radio; }
|
||||
};
|
||||
struct PrefixedCLI {
|
||||
Callbacks* _callbacks;
|
||||
void handle(const char* command, char* reply) { @COMMON_MORSE_CALL@ }
|
||||
};
|
||||
int main() {
|
||||
TestRadio radio; radio.rx_supported = true;
|
||||
radio.capture = std::string(mesh::MorseRx::CaptureCapacity, 'E');
|
||||
Callbacks callbacks{&radio}; PrefixedCLI cli{&callbacks};
|
||||
char reply[161]; memset(reply, '~', sizeof(reply)); memcpy(reply, "AB:", 3);
|
||||
cli.handle("morse read", reply + 3);
|
||||
assert(!memcmp(reply, "AB:", 3) && reply[160] == '~');
|
||||
assert(memchr(reply + 3, 0, 157));
|
||||
unsigned offset = 0, total = 0, next = 0;
|
||||
assert(sscanf(reply + 3, "> %u/%u next=%u", &offset, &total, &next) == 3);
|
||||
assert(offset == 0 && total == mesh::MorseRx::CaptureCapacity && next > 0 && next < 125);
|
||||
assert(strlen(reply) < 160);
|
||||
}
|
||||
Reference in new issue
Block a user