Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This page dedicated to bringing up and validation of RMS and CVR use case with bootup service filePipeWire.

RMS: The RDKC Media Server is much more than a multi-format, multi-protocol server that delivers your media rich content across multiple screens and platforms. The RDK camera software runs on RPi-0/RPI-3 device. With RTSP streaming we can able to play live streaming content in VLC player or browser page or Mobile Application.

CVR: It using pipewire PipeWire callback to receive frames from v4l2 and also it's using AWS Kinesis Video Stream( KVS ) to perform 24/7 video recording with AWS IOT credential.

...

Fresh Bootup Setup

STEP 1:

Can validate this use case with Ethernet network or WiFi network.

Below networking process is only applicable for WiFi network, For Ethernet network only need to connect Ethernet cable to RPI target.

Please add your WiFi network username and password to this Add require SSID and PSK in /etc/wpa_supplicant.conf file in like below format

network={

ssid="username"

...

2. After the AWS account creation, Need to create IOT credential with AWS CLI interface to validate CVR use case.

Use the Refer below link to install AWS CLI interface package for to create AWS IOT credential.

...

Code Block
languagebash
titleAWS Configure
vi ~/.aws/credentials

[default]
aws_access_key_id = XXXXXXXXX
aws_secret_access_key = YYYYYYYYYYYYY


use the Refer below link to create AWS IOT credential

...

After creation of IOT credential, you we can get below list of details

Stream Name, Default Region, IOT Credential Endpoint, Certificate key, Private Kay, Role Alias and cacertificate key


STEP 3:

Copy Have to copy certificate.pem,private.pem.key and cacert.pem keys into your RPI /etc/ssl/certs/ directory

Give AMS Update your AWS STREAM_NAME, AWS_DEFAULT_REGION, IOT_GET_CREDENTIAL_ENDPOINT and ROLE_ALIAS values in your RPI /usr/local/cvr/cvr.conf file

...

Reboot the Target

After Reboot don't do step no need to follow steps 1 to 4.

Note : Step 1 to 4 is only applicable for fresh target boot-up with new image.

RMS & CVR Validation

STEP 1:

WiFi/Ethernet connection is Ethernet or WiFi ip's are must needed for validationCheck WiFi/Ethernet connection by using below this use case validation, So please confirm Ethernet/WiFi network ip's availability in RPI target with "ifconfig"command.

ifconfig

Code Block
languagebash
titleConsole output
root@raspberrypi3-rdk-camera:~# ifconfig
eth0      Link encap:Ethernet  HWaddr B8:27:EB:87:67:91  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:89842 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89842 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25639748 (24.4 MiB)  TX bytes:25639748 (24.4 MiB)

wlan0     Link encap:Ethernet  HWaddr B8:27:EB:D2:32:C4  
          inet addr:192.168.43.146  Bcast:192.168.43.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4484 (4.3 KiB)  TX bytes:10216 (9.9 KiB)

Possibility errors:

  1.  

STEP 2:

Please ensure loaded v4l2 module with "lsmod"

...