Introduction :
Websocket based protocol hence bi-directional asynchronous communication is possible between gateway and WEBPA Server in real-time. This is similar to SNMP-PA and TR069-PA.
Cloud PA will be implemented as a RDK-B component which would register with RDKB-CR (Component Registry). Server PA would act like an interface between Cloud UI and RDK-B stack for faster real time communication. Persistent websocket connection is established between Cloud PA and Server PA during the client boot up. This would eliminate initial connection handshake overhead but would have an impact on the scalability aspects on the server side.
Data communication and messaging format will be based on JSON format.
Below data needs to be furnished in the Curl Get & Set commands
URL: CommunityWebpaserverurl
MAC: 080027D7C5A7 (erouter0 MAC of BPI R4 )
TOKEN: d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK
Curl -X GET 'URL/api/v2/device/mac:DEVICE MAC/config?names=GET_COMMAND_DM' -H 'authorization: Bearer TOKEN' |
curl -X GET 'http://52.88.248.43:9003/api/v2/device/mac:4e07b781a3b8/config?names=Device.DeviceInfo.SoftwareVersion' -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' {"parameters":[{"name":"Device.DeviceInfo.SoftwareVersion","value":"rdkb-generic-broadband-image_rdk-next_20240710125200","dataType":0,"parameterCount":1,"message":"Success"}],"statusCode":200}% |
curl -X PATCH URL/api/v2/device/mac:DEVICE MAC/config -d '{"parameters": [ {"dataType": 0, "name": "SET_COMMAND_DM", "value": "Testing"}]}' -H 'authorization: Bearer TOKEN' |
curl -X PATCH http://webpa.rdkcentral.com:9003/api/v2/device/mac:4e07b781a3b8/config -d '{"parameters": [ {"dataType": 0, "name": "Device.WiFi.SSID.10001.SSID", "value": "Filogic_5G2"}]}' -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' {"parameters":[{"name":"Device.WiFi.SSID.10001.SSID","message":"Success"}],"statusCode":200}% |
Below process should be running in BPI ,
root@Filogic-GW:~# systemctl status webpabroadband * webpabroadband.service - WebpaBroadBand Loaded: loaded (/lib/systemd/system/webpabroadband.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-07-10 12:52:17 UTC; 3s ago Process: 17966 ExecStartPre=/bin/sh -c /lib/rdk/webpa_pre_setup.sh; (code=exited, status=0/SUCCESS) Process: 20964 ExecStart=/usr/bin/webpa & (code=exited, status=0/SUCCESS) Main PID: 21000 (webpa) CGroup: /system.slice/webpabroadband.service `- 21000 /usr/bin/webpa "&"2024 Jul 10 12:52:14 Filogic-GW systemd[1]: Starting WebpaBroadBand... 2024 Jul 10 12:52:17 Filogic-GW sh[17966]: dropbear is running properly 2024 Jul 10 12:52:17 Filogic-GW webpa[20964]: rdk_dyn_log_initg_dl_socket = 3 __progname = webpa 2024 Jul 10 12:52:17 Filogic-GW systemd[1]: Started WebpaBroadBand. root@Filogic-GW:~# systemctl status parodus * parodus.service - Parodus Loaded: loaded (/lib/systemd/system/parodus.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-07-10 12:52:01 UTC; 21s ago Process: 5416 ExecStart=/bin/sh -c /lib/rdk/parodus_start.sh; (code=exited, status=0/SUCCESS) Main PID: 5562 (parodus) CGroup: /system.slice/parodus.service `- 5562 /usr/bin/parodus --hw-model=Bananapi --hw-serial-number=ae38bda57acf --hw-manufacturer=Mediatek --hw-last-reboot-reason= --fw-name=rdkb-generic-broadband-image_rdk-next_20240710125200 --boot-time=1720615891 --hw-mac=ae:38:bd:a5:7a:cf --webpa-ping-time=180 --webpa-interface-used=erouter0 --webpa-url=http://webpa.rdkcentral.com:8080 --webpa-backoff-max=9 --parodus-local-url=tcp://127.0.0.1:6666 --partner-id=comcast --ssl-cert-path=/etc/ssl/certs/ca-certificates.crt --force-ipv4 |
References