-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[srpl] integrate SRPL #1743
base: main
Are you sure you want to change the base?
[srpl] integrate SRPL #1743
Conversation
953800a
to
5eccff2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @superwhd. Overall looks great.
Some questions/suggestions below
f286297
to
853238d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall. Thanks @superwhd
853238d
to
94fa8de
Compare
94fa8de
to
312a353
Compare
1bc6caf
to
0f2d158
Compare
5f323b2
to
719eafc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @superwhd, looks great. 👍
partnerInfo.mTxtLength = aInstanceInfo.mTxtData.size(); | ||
partnerInfo.mSockAddr.mPort = aInstanceInfo.mPort; | ||
} | ||
otPlatSrplHandleDnssdBrowseResult(mNcp.GetInstance(), &partnerInfo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have this requirement from platform API:
If the IPv6 address of the an already discovered/added service changes, then the platform MUST first call
otPlatSrplHandleDnssdBrowseResult()
to remove the old address, before calling it again to add the new
address.
Will this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the logic to support this. Note that currently only 1 address is returned in a callback. When a service with N addresses is discovered, it triggers N add events and N - 1 remove events which results in unnecessary operations. It doesn't break my test though. I'll work on supporting multiple addresses later.
719eafc
to
d8ad775
Compare
d8ad775
to
d3d5656
Compare
We have created a environment with 2 OTBR's ( RPi4 with skyconnect RCP devices ) and 2 or more nanoleaf bulbs.
enthread-spinel-rcp.a third_party/openthread/repo/src/lib/url/libopenthread-url.a -lutil -lrt -lanl && : |
Hi @muralidhar-bn let's continue the discussion in #2505 |
This PR implements the platform code for supporting SRPL. It depends on the openthread PR openthread/openthread#8403.
This PR also contains the commit of #1742. Please review the most recent commit only.
Future work:
Test: