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

Firmware file for obuspa #45

Closed italktothewind closed 2 years ago

italktothewind commented 2 years ago

Hi!

I'm trying to write a test where my controller performs the Dowload() command on this agent.

That command requires an URL where the agent can download the new firmware.

Which firmware file can I use for this purpose?

Thanks!

holme-r commented 2 years ago

The firmware file is a a file that you need to create for your device. There isn't a standard format for this file (device/platform specific), nor does OBUSPA provide any code to deal with this file. The core OBUSPA data model does not include the Download() command - you will need to add one by calling USP_REGISTER_AsyncOperation(). The implementation of that command (and possibly the Activate command too) will deal with the file format of your firmware image file and apply it.

italktothewind commented 2 years ago

Thanks for the information

KuoEuran commented 2 weeks ago

Hi @holme-r , I have some questions about implement the firmware download function.

  1. As rdkb has defined datamodel "Device.DeviceInfo.FirmwareImage.{i}.Download()", should I call this datamodel or I can define my own datamodel to call?
  2. You have mentioned that it uses USP_REGISTER_AsyncOperation(), but I only found one place (usp_register.c) has the code. Do I also call my download function in this .c file? or init( ) in vendor.c?