BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

OnBoardRequest sent by obuspa #103

Closed chen0627 closed 4 months ago

chen0627 commented 8 months ago

Hi Team,

I notice that obuspa just establishes a session to controller but it would not send an OnBoardRequest message or a Boot/Wakeup event to controller.

I have to execute the following command when I configure device after a factory reset. obuspa -c operate "Device.LocalAgent.Controller.1.SendOnBoardRequest()"

Is there a way for obuspa to send these kind of message spontaneously when the session is established?

BTW, I am using protocol WebSocket on obuspa version 7.0.0.

Thank you.

holme-r commented 8 months ago

OBUSPA can sent a Boot! event, but you need to setup a subscription for the event. This would normally be done in your factory reset configuration. OBUSPA also sends USP Connect records (https://usp.technology/specification/index.html#sec:connect-and-disconnect-record-types). SendOnBoardRequest() is a USP Command that a USP Controller can invoke on the USP Agent.

[UPDATED] A USP Agent sends an OnBoardRequest in the following circumstances: https://usp.technology/specification/index.htm#r-not.5 But OBUSPA only supports the first of those circumstances. You could use 'obuspa -c operate' to force OBUSPA to send an OnBoardRequest for the second circumstance.