This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
proiecte:temp [2018/09/24 14:20] narcisa_ana.vasile |
proiecte:temp [2018/11/28 11:48] (current) narcisa_ana.vasile [Bibliography] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Introduction ===== | ===== Introduction ===== | ||
- | TODO | + | The goal of this project is to create a flexible platform for developing Wireless Sensor Networks applications using the Sparrow sensor nodes. The key objectives of this project include porting the open-source operating system, Contiki, to Sparrow sensor nodes and porting CoAP network protocol to Contiki-running Sparrow nodes. |
===== Network Topology ===== | ===== Network Topology ===== | ||
Line 13: | Line 13: | ||
The other Sparrow nodes will run Contiki with a CoAP server as the main application. Those nodes will acquire data using different sensors and will pass the data to the CoAP client in the external network. | The other Sparrow nodes will run Contiki with a CoAP server as the main application. Those nodes will acquire data using different sensors and will pass the data to the CoAP client in the external network. | ||
- | ===== TODO - Title ===== | + | ===== Technologies ===== |
+ | |||
+ | ==== Contiki ==== | ||
+ | |||
+ | Contiki is an operating system for memory constrained systems, optimized for low-power microcontrollers. A list of available hardware platforms on which Contiki has been ported can be found at http:// | ||
+ | |||
+ | ==== CoAP ==== | ||
Sensor nodes are devices capable of acquiring information from the environment using different types of sensors attached to them. Those sensors perform measurements and return information such as the value of the temperature, | Sensor nodes are devices capable of acquiring information from the environment using different types of sensors attached to them. Those sensors perform measurements and return information such as the value of the temperature, | ||
Line 120: | Line 126: | ||
==== CoAP Client ==== | ==== CoAP Client ==== | ||
- | TODO | + | |
+ | From Github, clone the open source CoAP client (implemented in Python). Example of running the client: | ||
+ | < | ||
+ | python coapclient.py -o GET -p coap:// | ||
+ | </ | ||
==== Firebase ==== | ==== Firebase ==== | ||
Line 157: | Line 167: | ||
To store the information gathered from the sensors in the database, follow these steps: | To store the information gathered from the sensors in the database, follow these steps: | ||
- | + | - From Firebase console | |
- | | + | |
- | * Go to Firebase console, copy the url of your project. It should be something similar to ' | + | |
- | * Send the information received by the CoAP client running on the laptop to Firebase. Below, is an example of a python code that sends the value of the temperature in cloud: | + | |
< | < | ||
Line 167: | Line 176: | ||
from firebase_admin import db | from firebase_admin import db | ||
- | firebase_url = ' | + | firebase_url = ' |
- | cred = credentials.Certificate(" | + | cred = credentials.Certificate(" |
firebase_admin.initialize_app(cred, | firebase_admin.initialize_app(cred, | ||
' | ' | ||
Line 180: | Line 189: | ||
}) | }) | ||
</ | </ | ||
- | |||