Skip to content

RDKEMW-13607: merge pair code with mac hash methods#191

Merged
egalla204 merged 5 commits into
developfrom
feature/RDKEMW-13607_ctrlm_standardize_pairing_methods
Apr 29, 2026
Merged

RDKEMW-13607: merge pair code with mac hash methods#191
egalla204 merged 5 commits into
developfrom
feature/RDKEMW-13607_ctrlm_standardize_pairing_methods

Conversation

@egalla204
Copy link
Copy Markdown
Contributor

No description provided.

@egalla204 egalla204 requested a review from a team as a code owner April 2, 2026 01:18
Copilot AI review requested due to automatic review settings April 2, 2026 01:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR unifies BLE targeted pairing so the system uses a single “pair with code” path for both advertising-name-based pairing and MAC-hash-based pairing, removing the separate MAC-hash pairing APIs and the need to pass the originating IR key code through IPC.

Changes:

  • Remove pairWithMacHash / startPairingWithMacHash / startWithMacHash APIs and route all targeted pairing through the existing “pair with code” flow.
  • Update the BLE model config parsing to use a new advertisingNames object (required regexPairing, optional targeted pairing format + reconnect regex).
  • Simplify IPC for Main_StartPairWithCode by removing the key_code field.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/ctrlm_ir_controller.cpp Stops sending key_code in the pair-with-code request and only forwards the pairing byte.
src/ble/hal/configsettings/configmodelsettings.cpp Parses new advertisingNames config structure; adjusts optional/required behavior and logging.
src/ble/hal/blercu/blercupairingstatemachine.h Removes startWithMacHash() declaration.
src/ble/hal/blercu/blercupairingstatemachine.cpp Merges MAC-hash and code pairing behavior into startWithCode() and keeps MAC-hash matching as a fallback.
src/ble/hal/blercu/blercucontroller.h Removes startPairingWithMacHash() from the controller interface.
src/ble/hal/blercu/blercucontroller.cpp Removes the controller implementation of MAC-hash pairing.
src/ble/hal/blercu/blercucontroller_p.h Removes override for startPairingWithMacHash().
src/ble/ctrlm_ble_rcu_interface.h Removes pairWithMacHash() from the BLE RCU interface.
src/ble/ctrlm_ble_rcu_interface.cpp Removes pairWithMacHash() implementation; pairing is done via pairWithCode().
src/ble/ctrlm_ble_network.cpp Always calls pairWithCode() for targeted pairing requests.
include/ctrlm_ipc.h Removes key_code from ctrlm_iarm_call_StartPairWithCode_params_t.

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

Comment thread src/ctrlm_ir_controller.cpp
Comment thread include/ctrlm_ipc.h
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp Outdated
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp Outdated
Comment thread src/ble/hal/blercu/blercupairingstatemachine.cpp Outdated
Copilot AI review requested due to automatic review settings April 3, 2026 16:20
Copy link
Copy Markdown

Copilot AI left a comment

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 12 out of 12 changed files in this pull request and generated 4 comments.


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

Comment thread src/ble/hal/configsettings/configmodelsettings.cpp Outdated
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp
Comment thread src/ble/hal/blercu/blercupairingstatemachine.cpp
Comment thread src/ble/hal/blercu/blercupairingstatemachine.cpp
Copy link
Copy Markdown
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

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

Looks good! Just a couple of comments...

Comment thread src/ble/hal/configsettings/configmodelsettings.cpp Outdated
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp Outdated
Copy link
Copy Markdown
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

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

Approved for QA test

Copy link
Copy Markdown
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

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

approved!

Copilot AI review requested due to automatic review settings April 29, 2026 22:59
Copy link
Copy Markdown

Copilot AI left a comment

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 12 out of 12 changed files in this pull request and generated 3 comments.


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

Comment thread src/ble/hal/configsettings/configmodelsettings.cpp
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp
Comment thread src/ble/hal/configsettings/configmodelsettings.cpp
@egalla204 egalla204 merged commit cdfa87f into develop Apr 29, 2026
12 checks passed
@egalla204 egalla204 deleted the feature/RDKEMW-13607_ctrlm_standardize_pairing_methods branch April 29, 2026 23:50
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants