Skip to content

Swapping RCP => OTBR not working? #9786

Answered by jwhui
olavt asked this question in Q&A
Jan 18, 2024 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

The OT settings filename is based on the IEEE EUI-64 reported by the RCP:

otPlatRadioGetIeeeEui64(aInstance, reinterpret_cast<uint8_t *>(&nodeId));
nodeId = ot::BigEndian::HostSwap64(nodeId);
snprintf(aFileName, kMaxFileNameSize, OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH "/%s_%" PRIx64 ".%s",
offset == nullptr ? "0" : offset, nodeId, (aSwap ? "swap" : "data"));

If you want to be able to seamlessly swap RCPs that have different IEEE EUI-64 values, you can try changing the implementation to use a fixed filename.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by olavt
Comment options

You must be logged in to vote
3 replies
@jwhui
Comment options

@olavt
Comment options

@jwhui
Comment options

Comment options

You must be logged in to vote
2 replies
@abtink
Comment options

@olavt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants