Repository navigation
Conversation
Adds shimmerble, the in-process BLE library (Rust on btleplug, loaded through JNI), and lets ShimmerPC talk through it instead of its COM port. ByteCommunicationNativeBle is a ByteCommunication, like ByteCommunicationJSSC, and ShimmerPC.setNativeBleDevice() chooses it. The device object, its protocol and its state stay the same over Bluetooth Classic and BLE. - shimmerble/, the driver.ble.nativeble binding and the native-ble.yml workflow come from the DEV-1134 branch, where the DEV-1132 prototype continued. ShimmerBLENative is left out; the transport replaces it. - A link lost over BLE makes reads and writes fail, as a lost COM port does, so ShimmerPC's existing connection-lost handling applies. - buildNative builds the library into src/main/resources/native/. The binaries are not committed. - Tests: API_00051 to API_00054, run against a fake radio, so they need no Bluetooth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shimmerble.dll (Windows x64) and libshimmerble.dylib (macOS arm64) go into ShimmerDriverPC/src/main/resources/native/, so every build of the driver carries them. That includes Consensys's release build, which compiles the driver from source for both installers. Both binaries are the Native BLE library workflow's builds of this shimmerble/ source, from one run (37553575065). The READMEs say how to refresh them when shimmerble/ changes: bump the version, run the workflow, and commit its binaries with the change. A local buildNative is not to be committed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Native BLE as a transport of
ShimmerPC. Consensys can connect a Shimmer3/3R through shimmerble, an in-process BLE library (Rust on btleplug, loaded through JNI), instead of the gRPC BLE server.ByteCommunicationNativeBleis aByteCommunication, likeByteCommunicationJSSC.ShimmerPC.setNativeBleDevice()selects it; without it,ShimmerPCuses its COM port as before. The device object, its protocol and its state are the same over Classic and BLE.ShimmerPC's existing connection-lost handling applies.shimmerble/, thedriver.ble.nativeblebinding and thenative-ble.ymlworkflow come from the DEV-1132 prototype.ShimmerBLENativeis left out; the transport replaces it.ShimmerDriverPC/src/main/resources/native/, both from one run of the Native BLE library workflow (37553575065), so every build of the driver carries them, Consensys's release build included. The READMEs say how to refresh them: bump the version, run the workflow, commit its binaries. A localbuildNativeis not to be committed.Other APIs
None need this change: it is a transport for the Java driver, with no change to the wire format, parsing, calibration or timestamps. shimmer-host-core is not affected.
Tests
API_00053_ByteCommunicationNativeBleTest(11) andAPI_00054_ShimmerPCTransportTest(4) run against a fake radio, so they need no Bluetooth. Both pass.Related
Consensys_v2.3.2): driver, Shimmer-Advance-API, ConsensysApps🤖 Generated with Claude Code