Skip to content

atifrizwan91/Greenhouse

Repository files navigation

Publication

Optimal Environment Control Mechanism Based on OCF Connectivity for Efficient Energy Consumption in Greenhouse

Cite: APA

A. Rizwan, A. N. Khan, R. Ahmad and D. H. Kim, "Optimal Environment Control Mechanism Based on OCF Connectivity for Efficient Energy Consumption in Greenhouse," in IEEE Internet of Things Journal, 2022, doi: 10.1109/JIOT.2022.3222086.

Cite: Bibtex

@ARTICLE{9951153, author={Rizwan, Atif and Khan, Anam Nawaz and Ahmad, Rashid and Kim, Do Hyeun}, journal={IEEE Internet of Things Journal}, title={Optimal Environment Control Mechanism Based on OCF Connectivity for Efficient Energy Consumption in Greenhouse}, year={2022}, volume={}, number={}, pages={1-1}, doi={10.1109/JIOT.2022.3222086}}

Architecture of the proposed model

  1. First of all Raspberry Pi 4 is configured and Ubuntu OS is installed
  2. The Putty is used to access the IoT device from the IoT platform
  3. Ubuntu is preferred instead of raspbian operating system because we have lot of support for IoTivity for ubuntu
  • The card is then injected in the Raspberry pi to start the operating system

Installation of required software

Putty

  1. Install putty to connect with Raspberry pi 4 remotely.
  2. The putty initiate the SSH command which allow the IoT platform to send the instructions remotely
  3. There are some other software are also available to use the SSH request
  4. The windows terminal can also be sued to connect the IoT device with IoT Platform

WINSCP

  1. WinSCP is installed to move files from local system to Raspberry pi -Host name: IP address of Raspberry pi -Username and password entered -Hit Login Button
  2. The winSCP is a FTP based system which is used to sed the files from the platform to the devicen
  3. The device need some file like Iotivity 2.2.2 and some python scripts
  4. These files are transferred from the system to the device using Winscp

Build and Install IoTivity on device

  • Open Putty and connect it with device (Raspberry pi)
  1. Installed IoTivity version 2.2.2 from GitHub using git clone --recursive --depth 1 --single-branch --branch 2.2.2 https://github.com/iotivity/iotivity-lite.git iotivity-222
  2. Build and Run sample client and server
    • To build and run the sample execute the following commands.
    • ./build--server-lite.sh
    • ./run-server-lite.sh

IoT Platform

Eclipse IDE

  1. Open Eclipse
    • Search for the remote systems to connect remotely with IoT Device
    • The remote system will install remote shell and remote terminal to compile the Iotivity java code from Eclipse
    • The device will use remote compiler and execute the java code
    • Follow the procedure
      • The SSH connection will require some parameter to be set before the connection with the given IP address
      • Firstly Linux is selected as a operating system and the IP address of the Device will be provided in next step of the configuration
      • Dstore.files will be selected next and the linux shell will be selected after that point.
      • Finally by selecting the ssh.shell the configuration will be completed and the connection will be established with the IoT device

  • Open the SSH connection and connect with device

  • After the connection, run the IoTivity server andf client code.

Final Output of Client and server communication

  • Energy Saving percentage of proposed model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published