Versions Compared

Key

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

...

Refer below link to create AWS IOT IoT credential

https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/how-iot.html


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

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


STEP 3:

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

...

Ethernet or WiFi ip's are must needed for this use case validation, So please confirm Ethernet/WiFi network ip's IP availability in RPI 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)

...

  1.  If there is no Ip in etho or in wlan0, Then please confirm ethernet cable connectivity in RPI for etho IP or else follow up fresh bootup boot-up setup steps again and check wlan0 IP.
  2.  Again if ip not generated, then check running status of wpa_supplicant service with below command
    1. systemctl status wpa_supplicant


Code Block
languagebash
titleConsole output
root@raspberrypi3-rdk-camera:~# systemctl status wpa_supplicant
● wpa_supplicant.service - Wifi Dnl802.11 interface
     Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; enabled; vendor preset: enabled)
     Active: active (exited) since Wed 2023-02-01 04:56:42 UTC; 1 months 11 days ago
    Process: 270 ExecStart=/usr/sbin/wpa_supplicant -B -Dnl80211 -iwlan0 -c /etc/wpa_supplicant.conf (code=exited, status=0/SUCCESS)
   Main PID: 270 (code=exited, status=0/SUCCESS)

Feb 01 04:56:42 raspberrypi3-rdk-camera systemd[1]: Starting Wifi Dnl802.11 interface...
Feb 01 04:56:42 raspberrypi3-rdk-camera wpa_supplicant[270]: Successfully initialized wpa_supplicant
Feb 01 04:56:42 raspberrypi3-rdk-camera systemd[1]: Started Wifi Dnl802.11 interface.


STEP 2:

Please ensure loaded camera module bcm2835-v4l2 with "lsmod"

lsmod

Code Block
languagebash
titleConsole output
root@raspberrypi3-rdk-camera:~# lsmod
Module                  Size  Used by
bcm2835_v4l2           40563  0
v4l2_common             4809  1 bcm2835_v4l2
videobuf2_vmalloc       6264  1 bcm2835_v4l2
videobuf2_memops        1528  1 videobuf2_vmalloc
videobuf2_v4l2         12640  1 bcm2835_v4l2
videobuf2_core         27389  2 bcm2835_v4l2,videobuf2_v4l2
videodev              154457  4 v4l2_common,videobuf2_core,bcm2835_v4l2,videobuf2_v4l2
media                  23307  1 videodev
brcmfmac              258239  0
brcmutil                7590  1 brcmfmac
snd_bcm2835            21405  0
cfg80211              492836  1 brcmfmac
snd_pcm                79872  1 snd_bcm2835
rfkill                 19936  3 cfg80211
snd_timer              20294  1 snd_pcm
snd                    52949  3 snd_timer,snd_bcm2835,snd_pcm
lirc_rpi                6840  0
lirc_dev                7533  1 lirc_rpi
uio_pdrv_genirq         3469  0
uio                     8703  1 uio_pdrv_genirq
fixed                   2876  0
sch_fq_codel            9662  2
ipv6                  384101  18

...

Please confirm camera device availability within /dev directory

ls /dev/video0

Code Block
languagebash
titleConsole output
root@raspberrypi0-rdk-camera:~# ls /dev/video0 
/dev/video0

...

We can able to see  live stream content in VLC Player.

Note: VLC player running  system and RPI target should be in same network.

...