Skip to content

Integration test for new ble gatt protocol#781

Open
dastansam wants to merge 108 commits into
wip/ble-gatt-messaging_rebasedfrom
test/ble-integration
Open

Integration test for new ble gatt protocol#781
dastansam wants to merge 108 commits into
wip/ble-gatt-messaging_rebasedfrom
test/ble-integration

Conversation

@dastansam

Copy link
Copy Markdown
Contributor

No description provided.

brenodt and others added 30 commits February 13, 2026 09:32
* feat: add pagination support to user(_online)_request

* feat: add tests to validate pagination support

* chore: regenerate dart users protobuf

* chore: set zero-value defaults to the UserOnlineRequest and UserRequest messages

* chore: update protobuf package

* chore: regenerate dart protobuf files
* chore(ble): init rust ble module

* build(ble-rs): add prost and bytes

* chore: recompile proto

* feat(log): init logging

* feat(log): set up ble logger

* feat(rpc): init rpc channels

* feat(rpc): set up channels

* fix(proto): add local copy of qaul.sys.ble

* feat: run tokio select loop

* refactor(rpc): use async traits for easier testing

* refactor(rpc): remove unused rpcerrors

* refactor: run main loop in own module

* build(bluer): import bluer features

* feat(ble): add BLE UUIDs

* style: remove unused imports

* feat(ble): define BleManager trait

* feat(ble): advertise services

* feat(ble): add handles for main and msg chara

* refactor(ble): rename trait to QaulBleManager

* refactor(uuid): rename to main UUID

* build(ble): add futures

* feat(ble): add services

* feat(ble_module): scan

* feat(ble): filter devices by blocklist

* feat(ble): add close method

* refactor(ble): qaul ble trait to fit ble sys msgs

* refactor(rpc): give publiuc access to proto mod

* refactor(rpc loop): listen to sys msgs

* feat(loop): forward sys msgs to ble impl

* refactor(naming): improve naming

* feat(ble): get device info

* feat(start_ble): return when ble already started

* feat(ble): advertise

* feat(ble_utils): pretty print address

* refactor(ble): remove redundant close method

* feat(ble): break ble loop with mpsc

* feat(ble): connect to device

* feat(ble): set up notification and send device found

* feat(ble): report chara writes

* refactor(streams): WIP

* fix(ble): breaking stop stream

* refactor(ble): use merged streams

* feat(ble): implement direct send

* feat(ble): implement stop

* style: lint

* refactor(ble): remove unused handle types
# Conflicts:
#	rust/libqaul/src/rpc/protobuf_generated/rust/qaul.net.messaging.rs
#	rust/libqaul/src/services/messaging/qaul.net.messaging.rs
SYS communication from BLE connectivity module shall be called directly via callback from outside.
Libqaul calls the BLE module directly. There is no libqaul -> BLE_module channel needed anymore.

fixed qaul_id compile warning

Removed unused function from API
1. Linux is able to detect other devices
2. Other devices can detect Linux BLE advertisements
3. Linux device is able to recieve messages from other qaul devices
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com>
Lilit0x and others added 29 commits March 4, 2026 14:18
* fix: solve analyze errors

* fix: adjust minor inconsistencies and remove unused cases

* refactor: optimize user update logic

* refactor: streamline user update process by simplifying data handling

* refactor: (wip) frontend store abstraction to improve orchestration and composition, removing it from the ui logic

* refactor:  fix feed message and implement getByUserId with tests

* refactor: update user loading logic to use usersStore and implement pagination handling

* fix: remove rebase garbage

* fix: adjust new members to be appended at the end

* refactor: enhance user retrieval logic in feed message store for improved efficiency

* refactor: rename parameter in replaceAll method and enhance feed message tests for user retrieval

---------

Co-authored-by: brenodt <54450520+brenodt@users.noreply.github.com>
The optional libqaul features "rtc" and "ble" were added as build requirements to qaul-cli.
These features therefore always get built and are not forgotten when changing things.
…ants.

Done:
- deprecated small_id
- changed small_id to q8id

This change was needed due to the following reasons:

- it is necessary for the future GATT header (larger size would not fit)
- it simplifies libqaul, as there is only one small version left
- it make the GATT packages significantly smaller
…ices

- multiple devices can be reported via `BleInfoResponse`
- a specific device can be started via `BleStartRequest`
1. Linux is able to detect other devices
2. Other devices can detect Linux BLE advertisements
3. Linux device is able to recieve messages from other qaul devices
- New GATT messaging protocol Header
- deprecated BLE small_id functions (16 Bytes)
- moved BLE to q8id (8 Bytes) which is also used in routing
- removed GSON library
- libqaul: Fixed Messaging MAX_MESSAGE_LEN_BYTES to fit in 2 Bytes
- BLE large message implementation
- added connection manager to identify BLE device via qaul id
@dastansam dastansam force-pushed the test/ble-integration branch from b5c67f3 to 6c1b672 Compare March 11, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants