Fix for the Konfigurator breaking BLE advertising (and related game features) #17

Merged
Joe merged 11 commits from fix/Konfigurator-breaks-BLE-advertising into main 2026-10-16 01:27:02 +00:00
Owner

As was reported here, the use of the Konfigurator (and, to my knowledge, only the use of the Konfigurator) would cause SystemK-based devices to perform erratically or not at all. In particular, BLE-based features like the KPoint game mode did not work at all. This fix address some of the root causes of that misbehavior.

The key fix was the substitution of cooperative timers in the place of the FreeRTOS timers used in the SystemK State Machine: we were overflowing timer queues and causing all kinds of problems. That can't happen anymore. This is described in more detail in the README.

As was reported [here](https://forum.ktag.clubk.club/t/the-ktag-app-breaks-at-sundown-may-30th-2026/74), the use of the [Konfigurator](https://git.ktag.clubk.club/Software/Android-KTag-Apps/src/branch/main/subapp-konfigurator) (and, to my knowledge, only the use of the Konfigurator) would cause SystemK-based devices to perform erratically or not at all. In particular, BLE-based features like the KPoint game mode did not work at all. This fix address some of the root causes of that misbehavior. The key fix was the substitution of cooperative timers in the place of the FreeRTOS timers used in the SystemK State Machine: we were overflowing timer queues and causing all kinds of problems. That can't happen anymore. This is described in more detail [in the README](https://git.ktag.clubk.club/Software/SystemK/src/commit/c13cc52d809381bcfe4c03d85af62ad24611ddf8/README.md#timers). ## Related PRs: * https://git.ktag.clubk.club/Software/KTag-HIL-Tester/pulls/2 * https://git.ktag.clubk.club/Software/2024A-SW/pulls/20 * https://git.ktag.clubk.club/Software/2020TPC-SW/pulls/10
Fixes for the Konfigurator use case.
All checks were successful
Tests / build-and-test (push) Successful in 24s
92ce95c6cf
Changes to support testing.
All checks were successful
Tests / build-and-test (push) Successful in 14s
eb976ce618
More fixes after HIL testing.
All checks were successful
Tests / build-and-test (push) Successful in 15s
Tests / build-and-test (pull_request) Successful in 17s
aab345b4fa
Joe self-assigned this 2026-09-07 22:01:25 +00:00
Joe changed title from Fix for the Konfigurator breaking BLE advertising (and related game features). to Fix for the Konfigurator breaking BLE advertising (and related game features) 2026-09-07 22:01:57 +00:00
Joe requested review from jack 2026-09-07 23:54:43 +00:00
Refactored to use cooperative timers.
All checks were successful
Tests / build-and-test (push) Successful in 18s
Tests / build-and-test (pull_request) Successful in 14s
a43ed4af68
Restored deleted timer test helpers.
All checks were successful
Tests / build-and-test (push) Successful in 15s
Tests / build-and-test (pull_request) Successful in 16s
d652f9b02a
Updated the README.
All checks were successful
Tests / build-and-test (push) Successful in 7m10s
Tests / build-and-test (pull_request) Successful in 5m34s
6a2a1760cf
Fixes to the NEC Protocol.
All checks were successful
Tests / build-and-test (push) Successful in 1m36s
Tests / build-and-test (pull_request) Successful in 22s
30242c8eed
Added the "NEC Command" weapon type.
All checks were successful
Tests / build-and-test (push) Successful in 6m1s
Tests / build-and-test (pull_request) Successful in 58s
1f67197935
Better concurrency for BLE packets.
All checks were successful
Tests / build-and-test (push) Successful in 18s
Tests / build-and-test (pull_request) Successful in 14s
5f72e025b4
Added an early filter for BLE.
All checks were successful
Tests / build-and-test (push) Successful in 16s
Tests / build-and-test (pull_request) Successful in 15s
b96d1aefc1
Bumped SystemK version.
All checks were successful
Tests / build-and-test (push) Successful in 31s
Tests / build-and-test (pull_request) Successful in 22s
c13cc52d80
Joe merged commit 190b2b9a51 into main 2026-10-16 01:27:02 +00:00
Joe deleted branch fix/Konfigurator-breaks-BLE-advertising 2026-10-16 01:27:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Software/SystemK!17
No description provided.