Skip to content
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

Behavior of rootpath update (rt="oma.lwm2m") #525

Open
sbernard31 opened this issue May 10, 2021 · 7 comments
Open

Behavior of rootpath update (rt="oma.lwm2m") #525

sbernard31 opened this issue May 10, 2021 · 7 comments
Assignees
Labels

Comments

@sbernard31
Copy link

sbernard31 commented May 10, 2021

The specification defines a way to put the LWM2M tree under a custom root path by using rt="oma.lwm2m" attribute at registration time. (transport§6.4.1 Alternate Path)

This looks like :

</customRootPath>;rt="oma.lwm2m", </customRootPath/1/0>,</customRootPath/3/0>

I understand that

</>;rt="oma.lwm2m", </1/0>,</3/0>

is equivalent to :

</1/0>,</3/0>

What is no clear to me is about Update Request.
If you are using a custom root path is it mandatory to put it in each update request ?
If not, what is the expected behavior.

example 1) :

Register : </customRootPath>;rt="oma.lwm2m", </customRootPath/1/0>,</customRootPath/3/0>
Update  :  </customRootPath>;rt="oma.lwm2m", </customRootPath/1/0>,</customRootPath/3/0>,</customRootPath/4/0>

example 2):

Register : </customRootPath>;rt="oma.lwm2m", </customRootPath/1/0>,</customRootPath/3/0>
Update  :  </customRootPath/1/0>,</customRootPath/3/0>,</customRootPath/4/0>

example 3):

Register : </customRootPath>;rt="oma.lwm2m", </customRootPath/1/0>,</customRootPath/3/0>
Update  :  </1/0>,</3/0>,</4/0>

For 1), it seems to be the obvious way.
For 2) I guess this is an invalid update request ?
For 3) I guess this changes the rootpath to / ?

@mlasch
Copy link

mlasch commented Jul 26, 2023

I came across this issue, because this might not be handled correctly in the Wakaama Server. Wakaama currently requires </>;rt="oma.lwm2m", and rejects registrations without having rt= set to oma.lwm2m.

I understand that

</>;rt="oma.lwm2m", </1/0>,</3/0>

is equivalent to :

</1/0>,</3/0>

If thats the case (which is not explicitly defined in the specification) we should modify Wakaama to also accept registrations without rt= set for </>. There are already workarounds, for example in the Zephyr LwM2M client, to add rt= for the default root path in order to work properly with Wakaama.

@sbernard31 Regarding your original question, I agree with your conclusions in 1), 2) and 3).

@sbernard31
Copy link
Author

sbernard31 commented Jul 26, 2023

@mlasch Thx for sharing 🙏 .

It would be great to get confirmation from OMA.

@mkgillmore
Copy link

@sbernard31 is this still an issue for your implementation that needs clarification from OMA?

@sbernard31
Copy link
Author

@mkgillmore, yes please clarification would be appreciated 🙏.

@eliasweingaertner
Copy link

My opinion:

  1. valid
  2. invalid, as it misses the custom rootpath. We can't expect devices to guess it from Object links
  3. valid

@mkgillmore
Copy link

@sbernard31 @eliasweingaertner Comment is consensus of the group. Can I close the issue?

@mkgillmore mkgillmore added the v1.3 label Oct 8, 2024
@sbernard31
Copy link
Author

@mkgillmore

It sounds good to me but to be sure and before to close.
Could you clarify the meaning of example 3. 🙏 ? Do I have the "right" interpretation : "this UPDATE means that device has now a / as rootpath?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants