Skip to content

Conversation

@Damian-Nordic
Copy link
Contributor

nrf_rpc: add Kconfig to configure default group flags

By default, groups defined with NRF_RPC_GROUP_DEFINE()
are initiators (send an init packet to the peer) and wait
for initialization (until they receive an init packet from
the peer).

Make it possible to override these settings with Kconfig
so that one can decide which device is an initiator and
which is a responder.

--

nrf_rpc: add nrf_rpc_setup, nrf_rpc_bind and nrf_rpc_unbind

  1. Add nrf_rpc_setup() and nrf_rpc_bind() experimental APIs
    that behave together like existing nrf_rpc_init().
  2. Add nrf_rpc_unbind() which clears the effects of former
    calling nrf_rpc_bind().

These are needed to support re-connecting to the peer, for
example after noticing that a peer has been reset, and the
peer is not a group initiator (thus, it does not send an nRF
RPC initialization packet automatically at startup).

By default, groups defined with NRF_RPC_GROUP_DEFINE()
are initiators (send an init packet to the peer) and wait
for initialization (until they receive an init packet from
the peer).

Make it possible to override these settings with Kconfig
so that one can decide which device is an initiator and
which is a responder.

Signed-off-by: Damian Krolik <[email protected]>
@Damian-Nordic Damian-Nordic force-pushed the nrf_rpc_flexible_init branch 2 times, most recently from 6a42668 to 6f50884 Compare October 24, 2025 08:43
1. Add nrf_rpc_setup() and nrf_rpc_bind() experimental APIs
   that behave together like existing nrf_rpc_init().
2. Add nrf_rpc_unbind() which clears the effects of former
   calling nrf_rpc_bind().

These are needed to support re-connecting to the peer, for
example after noticing that a peer has been reset, and the
peer is not a group initiator (thus, it does not send an nRF
RPC initialization packet automatically at startup).

Signed-off-by: Damian Krolik <[email protected]>
@sonarqubecloud
Copy link

@rlubos rlubos merged commit 53b039a into nrfconnect:main Oct 24, 2025
6 checks passed
@Damian-Nordic Damian-Nordic deleted the nrf_rpc_flexible_init branch October 24, 2025 11:14
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.

4 participants