For more information, including FAQs and resources, please visit the link below:
RDKM-SSO
Any questions or comments please feel free to contact RDK Support team support@rdkcentral.com . Thank you. ***
Refer below link for RPI-0 Environment setup
Refer below link to build camera image
RDK-C Build Instructions for R-Pi
Refer below link for Image flash Procedure.
STEP 1:
Add require SSID and PSK in /etc/wpa_supplicant.conf file in below format
network={
ssid="username"
psk="password"
}
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 update_config=1 network={ ssid="RDK" psk="Comcast1" }
STEP 2:
Reboot the Target
After Reboot don't do step 1 and 2.
Note : Step 1 & 2 is only applicable for fresh target boot-up with new image.
STEP 3:
WiFi connection is must needed for WEBPA validation.
Check WiFi connection by using below command.
ifconfig
root@raspberrypi0-rdk-camera:~# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:87 errors:0 dropped:0 overruns:0 frame:0 TX packets:87 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4552 (4.4 KiB) TX bytes:4552 (4.4 KiB) wlan0 Link encap:Ethernet HWaddr B8:27:EB:2E:72:2B inet addr:192.168.43.246 Bcast:192.168.43.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:23 errors:0 dropped:0 overruns:0 frame:0 TX packets:44 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2893 (2.8 KiB) TX bytes:5887 (5.7 KiB)
STEP 4:
check Parodus binary running status in RPI by using below command
ps -Af | grep parodus
STEP 5:
check Webpacamera binary running status in RPI by using below command
ps -Af | grep webpacamera
STEP 6:
Fetch device or feature parameter detail from client( RPI ) device through parodus by using webpa server.
Command :
curl -H ’ Authorization:Basic <AUTH_TOKEN>’ -i http://<WEBPA_URL>/api/v2/devices
Example :
curl -H 'Authorization:Basic dXNlcjp3ZWJwYQo=' -i 'http://192.168.2.75:9003/api/v2/device/mac:b827eb2e722b/config?names=Device.DeviceInfo.X_RDKCENTRAL-COM_IMAGENAME'
Output :
{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_IMAGENAME","value":"RPI-CAM_stable2_20200318070913","dataType":0,"parameterCount":1,"
message":"Success"}],"statusCode":200}
Able to fetch below list of parameter from client( RPI ) device.
Sl# | WebPA Parameter | WebPA Output ( Example ) |
---|---|---|
1 | Device.DeviceInfo.X_RDKCENTRAL-COM_IMAGENAME | RPI-CAM_stable2_20200318070913 |
2 | Device.DeviceInfo.Manufacturer | RPI |
3 | Device.DeviceInfo.X_RDKCENTRAL-COM_MAC | b8:27:eb:2e:72:2b |
4 | Device.DeviceInfo.UpTime | 477 sec |
5 | Device.DeviceInfo.MemoryStatus.Total | 309732.000000 KB |
6 | Device.DeviceInfo.MemoryStatus.Free | 276588.000000 KB |
7 | Device.WiFi.X_RDKCENTRAL-COM_IPv4Address | 192.168.43.246 |
8 | Device.WiFi.X_RDKCENTRAL-COM_PublicIP | 157.46.55.67 |
9 | Device.WiFi.X_RDKCENTRAL-COM_HostName | raspberrypi0-wifi-camera |
10 | Device.WiFi.X_RDKCENTRAL-COM_NetMask | 168.109.28.0 |
11 | Device.WiFi.X_RDKCENTRAL-COM_Gateway | 192.168.43.218 |
12 | Device.WiFi.X_RDKCENTRAL-COM_UserName | root |
13 | Device.DeviceInfo.ModelName | RPIMC |
14 | Device.DeviceInfo.Description | RPIMC Home Security Device |
15 | Device.DeviceInfo.SerialNumber | 000000009e7b277e |
16 | Device.X_RDKCENTRAL-COM_Camera.LiveStream.EvoStream.ServerIP | 192.168.0.107 |
17 | Device.X_RDKCENTRAL-COM_Camera.LiveStream.EvoStream.ServerPort | 81 |
18 | Device.X_RDKCENTRAL-COM_Camera.LiveStream.EvoStream.RoomName | rpi0 |
Following are the error message that user may taken into considerations:
"message":"Invalid parameter value"}],"statusCode":520
For Invalid parameter value, check for correct parameter name and the unwanted space in the command.
"message":"Error unsupported namespace","statusCode":520
For Unsupported namespace, check for the respective services that are essential to fetch tha data. For example, WiFi related information can be accessed only if ccspwifiagent service is active.
"message":Service Unavailable", "statusCode":531
For this error, ensure the network connection and the server and client-side services are up.
Since different services are involved in the communication, port-number specification should be taken into account.