Repository navigation
DEV-1389: Recognise NeuroSmart's Shimmer3R units (Neurosmart-XXXX-BT/BLE) - #356
Merged
Merged
Conversation
…XXXX-BT/BLE names NeuroSmart's Shimmer3R units are renamed in the factory (DEV-1388). A paired device is a Shimmer by its Bluetooth name, so a Neurosmart unit was classified as Unknown and dropped, in Consensys and in the Android API. - HwDriverShimmerDeviceDetails.SH_SEARCH.BT.isNeurosmartName: exactly Neurosmart-XXXX-BT or Neurosmart-XXXX-BLE, XXXX four hex digits. - BluetoothDeviceDetails classifies such a name as Shimmer3, and keeps it as the address where macOS connects by name. - ShimmerBluetoothManager.isSerialPortHandle: on macOS such a name is a serial port's handle, as a Shimmer one is. Every name recognised before classifies as it did (API_00050). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JongChern
marked this pull request as ready for review
November 18, 2026 07:23
MAzalya
reviewed
Nov 19, 2026
MAzalya
left a comment
Contributor
There was a problem hiding this comment.
Review (DEV-1389). Looks good to merge. The rule is exact and well tested, every name recognised before is unchanged, and CI is green.
Notes for the follow-ups, not blockers here:
- Android needs a code change as well as the republish.
ShimmerBluetoothManagerAndroid.connectShimmer3BLEThroughBTAddress(line ~226) picksHW_ID.SHIMMER_3Ronly when the name contains "Shimmer3R", so aNeurosmart-XXXX-BLEunit would be built as a Shimmer3. The paired list will be fine after the pin bump. Worth noting on DEV-1389 or the Android follow-up. - The prefix is case-sensitive and
NEUROSMART-…is explicitly rejected. That's fine as long as the factory tool always writes exactlyNeurosmart(DEV-1388). - Nit, pre-existing:
BluetoothDeviceDetails.setMacIdassignsmShimmerMacId = mac;twice.
MAzalya
approved these changes
Nov 19, 2026
MAzalya
left a comment
Contributor
There was a problem hiding this comment.
Approved. The rule is exact (Neurosmart-XXXX-BT/BLE, four hex digits), every name recognised before is unchanged, and the tests cover both. The Android BLE HW_ID note in my earlier comment is for the Android follow-up, not this PR.
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.
DEV-1389. NeuroSmart's Shimmer3R GSR+ units are renamed in the factory to
Neurosmart-XXXX-BTandNeurosmart-XXXX-BLE(DEV-1388). A paired device is a Shimmer by its Bluetooth name, so these units were classified as Unknown and dropped, in Consensys and in the Android API's paired list.Goes with ShimmerResearch/Shimmer-Advance-API#524, which needs this branch. Merge this one first.
What changes
HwDriverShimmerDeviceDetails.SH_SEARCH.BT.isNeurosmartName: exactlyNeurosmart-XXXX-BTorNeurosmart-XXXX-BLE, XXXX being four hex digits in either case.Neurosmart-2F31,MyNeurosmart-2F31-BTandneurosmart-2F31-BTare rejected.BluetoothDeviceDetails.checkDeviceType()classifies such a name as Shimmer3.BluetoothDeviceDetails.setMacId()keeps such a name as the address where macOS connects by name, as it does aShimmer…name.ShimmerBluetoothManager.isSerialPortHandle(): on macOS such a name is a serial port's handle, as aShimmer…one is.getBluetoothDeviceDetails()uses it.Testing
API_00050_BluetoothNameClassificationTestSerialPortHandleTestdriverUtilitiestests still pass: 88 in all.Neurosmart-9A3F-BTwith the Shimmer Capture web app, as the factory does it, then re-paired. In Consensys built from this branch and ShimmerResearch/Shimmer-Advance-API#524:Neurosmart XXXX. That fix is in #524 alone.Android
Android gets this only once
shimmerdriverandshimmerbluetoothmanagerare republished andShimmerAndroidAPIis pinned to them. That goes with the next Java release, after the Java and Android HILs.Other APIs
🤖 Generated with Claude Code