Commit Graph
37 Commits
Author SHA1 Message Date
liu weikai 3201f6a394 Fix Meshtastic nodeinfo persistence 2026-04-13 13:14:28 +08:00
liu weikai 5a61bab5d0 Harden Meshtastic BLE receive path 2026-04-13 12:57:19 +08:00
liu weikai 210dcfd592 fix sync node info 2026-04-12 19:50:40 +08:00
liu weikai 5a4fed59e1 fix reset time 2026-04-12 18:06:27 +08:00
liu weikai 67e6ce404a Refactor nrf52 fs helpers and show flash free space 2026-04-12 16:06:35 +08:00
liu weikai 768f71a49e Revert Meshtastic BLE hardening changes
Revert b9e20b2662 because it causes app-side configuration reads to hang on GAT562.

This restores the previous Meshtastic BLE timing/notification behavior and also drops the cross-target compatibility adjustments that came with that commit.
2026-04-12 15:23:48 +08:00
liu weikai e7382b135a Fix GAT562 mono channel slot UI and screen timeout 2026-04-12 14:42:06 +08:00
liu weikai b9e20b2662 Harden Meshtastic BLE flow and cross-target builds
Adjust the Meshtastic BLE transport timing on nRF52, retain pending FROMNUM notifications, and defer local admin/self replies to reduce request/response races during Android settings flows.

Also make the shared chat/UI code compile across non-nRF targets by gating RTOS and Arduino-only helpers and by updating the team page layout to the current page profile fields.

Note: this does not resolve the gat562 Meshtastic Android settings progress bar issue yet; the BLE/admin response path is improved and instrumented, but the root cause of the stuck loading state remains unresolved.
2026-04-12 14:04:18 +08:00
liu weikai 37b773d102 Polish mono conversation and message info layout 2026-04-12 11:06:53 +08:00
liu weikai 0b0b250735 Refine mono conversation bubble focus 2026-04-12 10:48:31 +08:00
liu weikai 1f795dbf2f Define LoRa tx power caps per board 2026-04-12 10:05:31 +08:00
liu weikai 7bc9c18cc3 fix: gat562 settings 2026-04-11 15:24:50 +08:00
liu weikai 379fce15c1 Refactor GAT562 runtime and stabilize Meshtastic BLE
Refactor the GAT562 board runtime by extracting dedicated GPS and input runtime components and routing config application through a focused runtime apply service.

Narrow the nRF52 BLE manager dependencies, rework the Meshtastic BLE transport to better match the Android client handshake, and harden the FromRadio/FromNum flow with improved staging, read pacing, diagnostics, and stack-safe config snapshot generation.

Also repair repository text encoding issues in docs and UI comments, and add Meshtastic BLE timing documentation to capture the expected Android/firmware interaction model for future debugging.
2026-04-10 10:03:22 +08:00
liu weikai e2a586bc1d Add T-Deck Pro board bring-up and sync pending UI fixes 2026-03-28 10:53:25 +08:00
liu weikai f6a70d0860 Remove key verification UI and hide MC position exchange 2026-03-27 23:53:08 +08:00
liu weikai e0076d707b Align Meshtastic phone sync and chat UI refresh 2026-03-27 22:32:51 +08:00
liu weikai df76526b5d perf: reduce chat list and message handling latency 2026-03-27 17:35:47 +08:00
liu weikai 988827a3bc chore: checkpoint current chat and contacts changes 2026-03-27 17:22:27 +08:00
liu weikai 86e07c0d7f Add APRS asset, expand System controls, and harden GAT562 self-position persistence
Bundle the current workspace changes into a single checkpoint covering the in-progress shared UI, settings, and GAT562 runtime work.

What this includes:

- add the APRS asset source and image resource currently used by the shared UI asset set

- extend the shared System/settings flow so vibration and screen brightness can be surfaced through the device runtime and settings UI plumbing

- update the mono 128x64 runtime and the GAT562 platform bindings so the new settings controls are available in the GAT562 experience

- wire the ESP runtime/startup helpers needed to support the same device-runtime settings path on the ESP side

- persist the GAT562 self GPS position into the node store during core service updates so a device that already obtained a fix can retain its own last known position across reboot

- add an explicit node-store flush interface and implement it in both the nRF52 and ESP Meshtastic node-store backends so critical self-position updates can be forced to persistent storage immediately instead of waiting for the normal debounce window

- keep the existing debounced persistence behavior for ordinary node-store churn while allowing targeted immediate flushes for data that would otherwise be easy to lose during restart or power loss
2026-03-26 21:30:54 +08:00
liu weikai 5ff9abffb2 Apply CI formatting 2026-03-24 15:05:49 +08:00
liu weikai 317a49fd69 Persist node positions across restarts 2026-03-24 14:17:56 +08:00
liu weikai 9cd666ad3b Refactor shared board contracts out of ESP platform layer 2026-03-24 11:11:33 +08:00
liu weikai 7a804b6453 Include node position in Meshtastic phone info 2026-03-24 09:20:48 +08:00
liu weikai 84bff6d4a5 Refine mono node compass and GPS layouts 2026-03-24 09:18:20 +08:00
liu weikai b0dd2f8707 Fix deferred config persistence on gat562 BLE 2026-03-24 00:26:56 +08:00
liu weikai 15e31a73c5 Refine mono UI node and chat interactions 2026-03-24 00:02:20 +08:00
liu weikai 530d861378 Align nRF52 Meshtastic BLE and PKI behavior 2026-03-23 21:40:47 +08:00
liu weikai fc8a507ef7 Improve mono UI paging and Meshtastic RX fallback 2026-03-23 19:14:04 +08:00
liu weikai 3cb2841b1f Fix settings persistence and GNSS UI behavior 2026-03-23 17:49:19 +08:00
liu weikai 8ccb1732f2 Refine gat562 mono UI and persist UI settings 2026-03-23 14:22:25 +08:00
liu weikai 25381c5c22 refactor: align board runtimes, GAT562 app shell, and BLE integrations
- migrate ESP board-specific implementations and runtime adapters into boards/*
- continue GAT562/Tab5/UI runtime alignment across app and board layers
- sync BLE and runtime integrations, and apply repository clang-format rules
2026-03-23 11:20:39 +08:00
liu weikai 9cf12df3e8 Refine mono UI GPS pages and board diagnostics 2026-03-20 02:07:55 +08:00
liu weikai 9ade3e9a85 feat(gat562): align nrf ui and meshtastic behavior 2026-03-19 23:04:42 +08:00
liu weikai 69d80f26c3 Add NRF Fusion Pixel font and fix Meshtastic RX
Integrate Fusion Pixel 8px as the NRF mono UI font stack and switch the mono runtime to a dedicated MonoFont/TextRenderer path that can render ASCII, CJK, and symbols from one asset set.

Add the generated NRF font assets and generator script, including the compact font format with per-glyph advance support, and fix the BDF bitmap parsing bug that previously produced blank ASCII glyphs on device.

Move the LVGL Noto CJK font asset out of shared modules into the ESP-specific platform tree and update the related build/config references so the ESP-only font boundary is explicit and NRF does not compile the LVGL asset by accident.

Update the mono UI runtime to use the new renderer, normalize major menu and title labels to uppercase, and wire the GAT562 UI runtime to the Fusion Pixel font.

Fix the core mesh adapter router so Meshtastic and MeshCore backends can coexist without overwriting each other, and ensure active protocol selection is applied before mesh config changes are pushed into the runtime.

Improve GAT562 runtime diagnostics by mirroring debug output to both Serial and Serial2, logging startup radio configuration, and logging raw RX packets with RSSI/SNR so radio-path issues are visible during bring-up.

Relax SX1262 receive polling so it no longer hard-gates RX handling on DIO1 state alone, avoiding a failure mode where the board appeared alive but never delivered packets into the receive path.

Align the NRF Meshtastic adapter with the working ESP behavior for channel handling: use the default expanded public PSK for an unconfigured primary channel, compute channel hashes from the active preset name or Custom label instead of a hard-coded Primary string, and apply the same logic to self-announcement/NodeInfo packets.

Add protocol-layer Meshtastic RX diagnostics for parse, decrypt, decode, text queueing, app-data queueing, unknown-channel, and dedup events to make packet flow visible while validating interoperability.

Fix early duplicate handling for relayed packets so the first valid packet is still delivered into text processing while later relays are correctly suppressed, which restores Broadcast conversation creation and message visibility in the CHATS page.
2026-03-19 13:41:58 +08:00
liu weikai 6edfd084f3 refactor(chat): align shared BLE cores and nrf meshtastic routing
- extract Meshtastic and MeshCore phone/business flows into shared core_chat BLE cores with owner hook seams for ESP and nRF backends

- replace nrf-specific lite adapters with board/platform adapters that consume shared cores and shared storage contracts

- extend nrf Meshtastic radio path with packet history dedupe, flooding rebroadcast, route discovery/traceroute responses, routing ACK/error handling, observed relay learning, retransmit queueing, and next-hop persistence

- persist nrf device identity and node metadata more explicitly, including next-hop state and node-id initialization support

- move nrf chat/contact/blob storage further toward InternalFS-backed persistence and update contact/node store behavior accordingly

- wire gat562 protocol/app facade pieces to the concrete nrf stores/adapters and add supporting app time-sync hooks used by platform runtimes

- add owner-hook split files and planning/status docs to document the ongoing alignment with the reference meshtastic-firmware multi-platform structure
2026-03-19 11:19:02 +08:00
liu weikai de975f54a3 feat(gat562): wire nrf52 board runtime and bluetooth stack 2026-03-18 19:28:31 +08:00
vicliuandGitHub d320b6511d Unify PlatformIO and ESP-IDF around a shared UI/runtime shellRefactor/repo structure (#11)
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
2026-03-12 01:17:46 +08:00