cu-ecen-aeld / final-project-MehulCUB

final-project-MehulCUB created by GitHub Classroom
0 stars 1 forks source link

Integration between MQTT publisher-subscriber (server - client raspberry pi ) #12

Closed MehulCUB closed 2 years ago

MehulCUB commented 2 years ago

DoD :

Blockers : 1 : https://github.com/cu-ecen-aeld/final-project-MehulCUB/issues/6#issue-1057783717

Resolved

2 : https://github.com/cu-ecen-aeld/final-project-MehulCUB/issues/6#issue-1057783717

3 : https://github.com/cu-ecen-aeld/final-project-MehulCUB/issues/13#issue-1059753755

MehulCUB commented 2 years ago

Working on Azure cloud setup for MQTT sent data as per wiki page : https://github.com/cu-ecen-aeld/yocto-stm32mp1/wiki/Azure-IoT-Setup Adding support package for IOT azure cloud setup on Yocto for integration of MQTT data as per reference : https://kevinsaye.wordpress.com/2019/06/21/how-to-build-a-yocto-image-for-the-raspberry-pi-running-azure-iot-edge/

MehulCUB commented 2 years ago

Tested python package by adding test-package added as per commit 33b58a7e096abf584423244a282c59c70bd1a1f7 and updated build script as per 8a90faad092120becd01bc9b798c8488cfbc1a24

We are testing pub sub system separately and will integrate it upon success

MehulCUB commented 2 years ago

Facing issue with Implementing MQTT C package For implementing Subscriber system on Yocto - Raspberry Pi Working as per https://www.eclipse.org/paho/index.php?page=clients/c/index.php

MehulCUB commented 2 years ago

I tested it is working on Raspbian system but facing issue for Yocto adding support package for creating recipe followed https://git.yoctoproject.org/meta-intel-iot-middleware/tree/recipes-connectivity/paho-mqtt/paho-mqtt_3.1.bb?h=daisy

MehulCUB commented 2 years ago

Camera-setup on Yocto working successfully

Added support package for Camera, and meta-camera laye capturing for Raspberry Pi on Yocto

Camera-capturing code added at link using video4linux drivers for Logitech 270 camera

Python script already tested by Bjorn as per commit ID : )

I tested Camera capture code C code added in the at the support repository link: https://github.com/cu-ecen-aeld/final-project-support-bjorn-mehul.git

Also added Image transformation feature as per commit ID : in the support repository link: https://github.com/cu-ecen-aeld/final-project-support-bjorn-mehul.git

MehulCUB commented 2 years ago

Image Capturing working succefully

MehulCUB commented 2 years ago

Tested python package by adding test-package added as per commit 33b58a7e096abf584423244a282c59c70bd1a1f7 and updated build script as per 8a90faad092120becd01bc9b798c8488cfbc1a24

MehulCUB commented 2 years ago

We are testing pub sub system separately and will integrate it upon success

MehulCUB commented 2 years ago

Result of showing

Sending BME280 Sensor data read correctly, and captured image send over MQTT to subscriber systems

Image :

MehulCUB commented 2 years ago

(Added support for Camera capturing for Raspberry Pi on Yocto Python script already tested by Bjorn as per commit ID : )

I tested Camera capture code C code added in the

at the support repository link: https://github.com/cu-ecen-aeld/final-project-support-bjorn-mehul.git

Also added Image transformation feature as per commit ID :

in the support repository link: https://github.com/cu-ecen-aeld/final-project-support-bjorn-mehul.git

MehulCUB commented 2 years ago

Image Capturing working succefully

MehulCUB commented 2 years ago

meta-Iot-cloud layer added added package group cloud-azure IMG-8604

MehulCUB commented 2 years ago

Facing some issue for developing IoT SDK IMG-8601

MehulCUB commented 2 years ago

Instead of working on C library we moved to python package for MQTT.

We worked on Python scripts for MQTT, by adding paho-mqtt package for python.

Relevent Changes commited by Bjorn as per commit lD: 21d29d76d157df2bd498f8836ee9f99c4a564a7f

Also add nano text editor, additional mqtt dependencies for python in build script for Yocto

please find client script https://github.com/cu-ecen-aeld/final-project-support-bjorn-mehul/tree/main/mqtt_scripts

MehulCUB commented 2 years ago

Full integration working as per commit Id : bcf14e6298875a6d444cbb676b167799a0a2950a

MehulCUB commented 2 years ago

Successfully Image transfer and BME sensor reading communication between server-client using MQTT communication.

showing data and image transfer working successfully on as per below image

one image is shown on ImageMagick is captured on yocto based rpi and another is captured on buildroot based RPI

IMG-8763

MehulCUB commented 2 years ago

.