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.
@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}}
- First of all Raspberry Pi 4 is configured and Ubuntu OS is installed
- The Putty is used to access the IoT device from the IoT platform
- 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
- Install putty to connect with Raspberry pi 4 remotely.
- The putty initiate the SSH command which allow the IoT platform to send the instructions remotely
- There are some other software are also available to use the SSH request
- The windows terminal can also be sued to connect the IoT device with IoT Platform
- 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
- The winSCP is a FTP based system which is used to sed the files from the platform to the devicen
- The device need some file like Iotivity 2.2.2 and some python scripts
- These files are transferred from the system to the device using Winscp
- Open Putty and connect it with device (Raspberry pi)
- 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
- 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
- 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
Final Output of Client and server communication
- Energy Saving percentage of proposed model