Skip to content

Added new Devices JieStar 4/JieStar 8 Channel Smart Creative Module#230

Merged
vicocz merged 16 commits into
vicocz:defaultfrom
J0EK3R:merge/vicocz/JieStar
Jun 10, 2026
Merged

Added new Devices JieStar 4/JieStar 8 Channel Smart Creative Module#230
vicocz merged 16 commits into
vicocz:defaultfrom
J0EK3R:merge/vicocz/JieStar

Conversation

@J0EK3R

@J0EK3R J0EK3R commented May 27, 2026

Copy link
Copy Markdown

I've added two new devices:

They're pretty equal to a nibble-based module from Mould King.

@J0EK3R J0EK3R marked this pull request as ready for review May 27, 2026 11:51
@J0EK3R J0EK3R marked this pull request as draft May 27, 2026 11:52
@J0EK3R J0EK3R changed the title Added new Device JieStar 8 Channel Smart Creative Module Added new Devices JieStar 4/JieStar 8 Channel Smart Creative Module May 29, 2026
@J0EK3R J0EK3R force-pushed the merge/vicocz/JieStar branch from b66c7fd to 5c6208f Compare May 29, 2026 09:32
@J0EK3R J0EK3R marked this pull request as ready for review May 29, 2026 10:10
@vicocz vicocz requested review from Copilot and vicocz May 29, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for two new BLE-advertising devices — the JieStar 4-channel and 8-channel Smart Creative Modules — closely modeled on the existing Mould King nibble-based modules. A new JieStar vendor/namespace introduces a shared base class, per-platform RF-payload services, a protocol constants class, a device-manager that persists an App identifier, and the corresponding UI sections (channel selector grid, channel-letter labels, README entry).

Changes:

  • New BrickController2.DeviceManagement.JieStar namespace with JieStarBase, JieStarSCM4, JieStarSCM8, JieStarDeviceManager, vendor registration, and platform service interfaces.
  • Per-platform JieStarPlatformService (Android/iOS/WinUI) wired up through Autofac, plus a shared JieStarProtocol constants class.
  • UI integration: new DeviceType values, channel-letter mapping, two new XAML sections (JieStarSCM4Section / JieStarSCM8Section) and command/selection wiring in DeviceChannelSelector.xaml.cs; README updated.

Reviewed changes

Copilot reviewed 19 out of 23 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
README.md Lists the two new JieStar devices as supported.
BrickController2/DeviceManagement/DeviceType.cs Adds JieStarSCM4 / JieStarSCM8 enum values.
BrickController2/DeviceManagement/JieStar/JieStar.cs Vendor registration of manager and 1×SCM4 / 3×SCM8 device factories.
BrickController2/DeviceManagement/JieStar/JieStarBase.cs Abstract base for nibble-per-channel advertising devices, patches AppID into telegrams.
BrickController2/DeviceManagement/JieStar/JieStarSCM4.cs 4-channel SCM device with connect/base telegrams and analog-channel encoding.
BrickController2/DeviceManagement/JieStar/JieStarSCM8.cs 8-channel SCM with three device-specific base telegrams selected by address.
BrickController2/DeviceManagement/JieStar/JieStarDeviceManager.cs Persists a random per-install AppID via IPreferencesService.
BrickController2/DeviceManagement/JieStar/IJieStarDeviceManager.cs Interface exposing the AppID.
BrickController2/DeviceManagement/JieStar/IJieStarPlatformService.cs Interface for platform-specific RF payload generation.
BrickController2/Protocols/JieStarProtocol.cs Shared constants (manufacturer ID, CTX values, seed/header arrays).
BrickController2.Android/.../JieStarPlatformService.cs Android implementation of IJieStarPlatformService.
BrickController2.iOS/.../JieStarPlatformService.cs iOS implementation (different header offset / fill pattern).
BrickController2.WinUI/.../JieStarPlatformService.cs WinUI implementation (uses payload offset variant of CryptTools.GetRfPayload).
BrickController2.Android/.../PlatformServices/DI/PlatformServicesModule.cs Registers Android JieStar platform service.
BrickController2.iOS/.../PlatformServices/DI/PlatformServicesModule.cs Registers iOS JieStar platform service, reorders usings.
BrickController2.WinUI/.../PlatformServices/DI/PlatformServicesModule.cs Registers WinUI JieStar platform service.
BrickController2/UI/Controls/DeviceChannelLabel.cs Adds JieStar channel-letter mapping (A–H).
BrickController2/UI/Controls/DeviceChannelSelector.xaml New visual sections for SCM4/SCM8 channel selection.
BrickController2/UI/Controls/DeviceChannelSelector.xaml.cs Wires new section visibility, channel commands, and selected-channel propagation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread BrickController2/BrickController2/Protocols/JieStarProtocol.cs

@vicocz vicocz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for delayed review, just few minor things to address.

Comment thread BrickController2/BrickController2/DeviceManagement/JieStar/JieStarSCM4.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/JieStar/JieStarSCM4.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/JieStar/JieStarSCM8.cs Outdated
Comment thread BrickController2/BrickController2/DeviceManagement/JieStar/JieStarSCM8.cs Outdated
Comment thread BrickController2/BrickController2/UI/Controls/DeviceChannelLabel.cs
Comment thread BrickController2/BrickController2/UI/Images/jiestarscm4_image.png

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 23 changed files in this pull request and generated 5 comments.

Comment thread BrickController2/BrickController2/DeviceManagement/JieStar/JieStar.cs Outdated
@J0EK3R

J0EK3R commented Jun 10, 2026

Copy link
Copy Markdown
Author

By incrementing CTXValue2 for encryption JIESTAR SCM 4 now supports Device2 and Device3!

79c95dd

@vicocz vicocz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collaboration is welcome here, thx.
Hope this works have no device to test.

@vicocz vicocz merged commit e4aa995 into vicocz:default Jun 10, 2026
1 of 3 checks passed
@J0EK3R

J0EK3R commented Jun 10, 2026

Copy link
Copy Markdown
Author

Thank you very much :)

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.

3 participants