Skip to content
Wenbin Guo edited this page May 12, 2019 · 2 revisions

Welcome to the Zephyr-group12 wiki!

Introduction

The smart thermostrat can read the house temperature and set the thermostat based on user input. It will then automatically switch to heating or cooling based on the temperature the user chose and use the timer to simulate how long it will heat/cool for.

Zephyr VM Installation

Download a copy of our VM

Note: Install and use VirtualBox, other VM software such as VMWare are not tested to work.

Zephyr VM Download

Import the copy of the VM by going to File->Import Appliance and finding the .ova file you just downloaded.
Login to User with the password pass

Update the leshan-server file

Rather than update the large ZephyrOS VM file every time the code is updated, you can download the latest leshan-server-demo.jar file in this repository.

After downloading the current leshan-server-demo.jar file, in the ZephyrOS VM go to Files, then navigate to the Downloads folder. Replace the leshan-server-demo.jar file with the current version you downloaded from this repository.

Setting Up QEMU with Net-Tools

Open 4 terminals

In terminal 1 go to your net-tools directory
cd Documents/zephyrproject/net-tools
and run ./loop-socat.sh

In terminal 2 go to your net-tools directory and run
sudo ./loop-slip-tap.sh

In terminal 3 go to your Downloads directory
cd Downloads
and run java -jar leshan-server-demo.jar

In terminal 4 go to your zephyr directory
cd Documents/zephyrproject/zephyr
and run source zephyr-env.sh
Inside the zephyr directory go to the project directory
cd samples/net/lwm2m_client
There should already be a build folder if you downloaded the above VM copy, if there is, skip this next line
Build the lwm2m_client project
west build -b qemu_x86
Run the lwm2m_client project
west build -t run

Run the local host program

Run a browser and go to
http://localhost:8080

Sprint 1

Sprint1 doc

Sprint 2

Sprint2 doc

Sprint 3

Final target system

Sprint 4

Developer instructions

Project issues

Issues

Clone this wiki locally