Commit Graph
18 Commits
Author SHA1 Message Date
scottpandClaude Fable 5 037af33154 v0.7.0: pure C core + Zephyr module
- Extract all decode/decrypt into a dependency-free C99 core
  (include/victronble.h, src/victronble_core.c): victronble_decode(),
  is_product_adv/key_matches pre-filters, NAN sentinels, LE accessors.
- AES-128-CTR behind a hook: weak-symbol bundled tiny-AES default,
  runtime override (victronble_set_aes_ctr) for PSA/mbedTLS/hardware.
- Arduino VictronBLE class becomes a thin wrapper over the core
  (registry + nonce dedup + rate limit); public C++ API unchanged,
  NAN converted back to the legacy 0 convention.
- Host test vectors (tests/vectors): openssl-generated ciphertext,
  independent of the bundled AES; all five payload shapes + negatives.
- Zephyr module: zephyr/module.yml + Kconfig (CONFIG_VICTRONBLE) +
  observer backend (victronble_zephyr.{h,c}) — scan cb pre-filters and
  queues, dedicated decode thread, listener callbacks, slow passive
  scan defaults, stats counters. docs/ZEPHYR_PORT.md records the plan.
- library.properties: fix URL (gitea, not the nonexistent GitHub).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 11:59:19 +10:00
scottp de6607d870 Branch version ready for testing with nRF52 2026-06-04 23:47:55 +10:00
scottp 7706f88399 Bug fixes for reported issues 2026-06-04 21:21:18 +10:00
scottp 4944757903 Fix to be non blocking without tasks 2026-02-28 14:31:42 +11:00
scottp 84d153c9a8 Single callback version - vastly simplified. 2026-02-28 13:34:20 +11:00
scottp a64fef899b New version with smaller memory footprint etc 2026-02-12 18:33:56 +11:00
scottp 26b0196791 Decoding working for MPPT 2025-12-29 20:22:41 +11:00
scottp 0863f8572c Finally working decode MPPT 2025-12-29 20:00:05 +11:00
scottp d3b1c632db work on better mac address 2025-12-29 19:26:32 +11:00
scottp 03d8da3b7d Cleaning up by using structs and reusing data blocks 2025-12-29 19:12:47 +11:00
scottp 6a517246ea Experimental version 2025-12-29 13:38:47 +11:00
scottp 2bd6094955 Cleanup only 2025-12-29 11:09:33 +11:00
scottp 9f0f2ce8fd Improved structs 2025-12-28 23:35:27 +11:00
scottp 139c6f961d Work on decoding using structs 2025-12-18 22:27:15 +11:00
scottp 2ccac7b0c8 Experimenting and decoding - seems some structs are wrong, check original code 2025-12-18 21:49:04 +11:00
scottp 97a71ce34c TODO and m5stick and debug 2025-12-18 20:43:10 +11:00
scottp 3daf61d78a Copyright etc 2025-12-18 17:48:55 +11:00
scottp d5f3d3ecbe Initial readme up 2025-12-18 17:39:13 +11:00