The initial purpose of the USP Controller is to allow USP agent validation and can be expanded to further use cases as required
| Table of Contents |
|---|
Supported MTPs:
...
The above can be saved to a text file and run as follows:
To build into an image, modify meta-rdk-broadband/recipes-rdkb/usp-pa/usp-pa/conf/usp_factory_reset.conf
...
...
| Message Box | ||||||
|---|---|---|---|---|---|---|
| ||||||
# Version | ||||||
| No Format | ||||||
| #Versionroot@RaspberryPi -Gateway:~# UspPa -c version
command on database /nvram/usp-pa.db
is being called before data model has been initialised
is being called before data model has been initialised
is being called before data model has been initialised
Version=8.0.3
Version=OpenSSL 3.0.5 5 Jul 2022
Version=3.31.1
Version=libcurl/7.82.0 OpenSSL/3.0.5 zlib/1.2.11 libidn2/2.3.2
Version=1.2.11
Version=2.0.14
~# # get UspPa -c get Device.X_RDK_Ethernet.Link.1.
=> false
=> Up
=> WANOE
=> erouter0
= >> => eth0
=> e4:5f:01:d5:3c:13
=> 3
=> false
=> false
=> 0
~# # set UspPa -c set Device.WiFi.SSID.1.SSID 2GHz
=> 2GHz
UspPa -c set Device.WiFi.ApplyAccessPointSettings true
=> true
dmcli eRT getv Device.WiFi.SSID.1. SSIDSSID component name is: eRT.com.cisco.spvtg.ccsp.CR
eRT.
succeed.
1 name: Device.WiFi.SSID.1.SSID
string, value: 2GHz #instances2GHz # instances UspPa -c instances Device.Users.User.
# add UspPa -c add Device.Users.User.
Device.Users.User.4
UspPa -c instances Device.Users.User.
UspPa -c del Device.Users.User.4.
Device.Users.User.4
UspPa -c instances Device.Users.User.
# dump UspPa -c dump datamodel | head -n 30 Dumping DataModel Schema...
event_arg:Cause
event_arg:CommandKey
event_arg:FirmwareUpdated
event_arg:ParameterMap
~# # database UspPa -c show database
command on database /nvram/usp-pa.db
is being called before data model has been initialised
is being called before data model has been initialised
is being called before data model has been initialised
=> oktopusController
=> 192.168.2.11
= >> = >> => cpe-1
=> true
=> STOMP
=> Device.STOMP.Connection.1
= >> => cpe-1
=> true
=> Device.LocalAgent.ControllerTrust.Role.1 #dac
# dac use case using UspPa by operate command UspPa -c operate "Device.SoftwareModules.InstallDU(URL=http://192.168.2.165/busybox.tar.gz)"
Operation (Device.SoftwareModules.InstallDU()) Started successfully.
created.
log for output arguments of operation root@RaspberryPi-Gateway:~/destination# UspPa -c operate "Device.SoftwareModules.ExecutionUnit.1.SetRequestedState(RequestedState=Active)"
Operation (Device.SoftwareModules.ExecutionUnit.1.SetRequestedState()) completed successfully.
Arguments:-
=> "Starting EU"
DobbyTool list
| id | state
| Kn | running root@RaspberryPirunning root@RaspberryPi-Gateway:/var/log# UspPa -c operate "Device.SoftwareModules.ExecutionUnit.1.SetRequestedState(RequestedState=Idle)"
Operation (Device.SoftwareModules.ExecutionUnit.1.SetRequestedState()) completed successfully.
Arguments:-
=> "Stopping EU" |
...
# /usr/bin/UspPa -p -v 4 -r usp_factory_reset.conf
| Message Box | ||||||
|---|---|---|---|---|---|---|
| ||||||
root@RaspberryPi-Gateway:~# systemctl stop usp-pa
|
# If we remove and regenerate the usp_dm_comps.conf, usp_dm_objs.conf and usp_dm_params.conf files, observed below issue
...
→ To resolve this issue , remove all Device.SoftwareModules.ExecEnv. lines from
usp_dm_objs.conf and usp_dm_params.conf
...