Skip to content

I have provided source code to handle the sensors for the Healthcare Supply Chain using Blockchain project. I used the MFRC522 Sensor with multiple Raspberry Pi (Model 3B+). Each time the Sensor is triggered, a JSON object is sent to a MQTT broker.

License

Notifications You must be signed in to change notification settings

AzharMithani/Healthcare-Supply-Chain-using-Blockchain

Repository files navigation

Healthcare Supply Chain using Blockchain

Test-server http://130.63.202.67 🔴 (offline)

Overview

This Project is a feasibility study to explore how an healthcare supply-chain can be implemented with blockchain technology.

This project uses the hyperledger fabric blockchain together with the hyperledger composer tool.

Here is an architecture overview: architecture overview

Here is an uml diagram: uml diagram

Blockchain Sender

Overview

I have provided source code to handle the sensors for the Healthcare Supply Chain using Blockchain project. I used the MFRC522 Sensor with multiple Raspberry Pi (Model 3B+). Each time the Sensor is triggered, a JSON object is sent to a MQTT broker.

Prerequisites

python3, git, python-pip3, python-dev, build-essential

Installation

sudo pip3 install RPi.GPIO
# also possible: python3 -m pip install RPi.GPIO
printf "device_tree_param=spi=on \ndtoverlay=spi-bcm2708\n" >>  /boot/config.txt
sudo raspi-config 

In the menu select "5 Interfacing Options" Select "SPI" (probably 4th entry) When asked if you want to enable the SPI interface select ""
Exit menu with ""

Reboot your Raspberry Pi

sudo reboot

#It is super important to INSTALL WITH PYTHON3
sudo python3 setup.py install 
pip3 install paho-mqtt python-etcd

Run


python3 scan.py 

In another terminal you can run the listener.py. It listens to the default settings of scan.py(no flags needed). These are the presettings:

receiver = "iot.eclipse.org" port = 1883 max_timeout = 60 topic = "supply/sensor1"

And then run the Skript:

python3 listener.py

About

I have provided source code to handle the sensors for the Healthcare Supply Chain using Blockchain project. I used the MFRC522 Sensor with multiple Raspberry Pi (Model 3B+). Each time the Sensor is triggered, a JSON object is sent to a MQTT broker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published