User Tools

Site Tools


proiecte:sparrow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proiecte:sparrow [2017/02/13 18:56]
iulia.manda [Server]
proiecte:sparrow [2017/02/13 20:11] (current)
iulia.manda [Results and Future Work]
Line 46: Line 46:
  
 The updated library can can be downloaded at the end of this page [6].  The updated library can can be downloaded at the end of this page [6]. 
- 
-=== Server Implementation === 
- 
 ===== Client ===== ===== Client =====
  
 === libcoap === === libcoap ===
-libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwith, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252.+libcoap [7] is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwith, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252.
 In our project, we use the client implementation from libcoap, as follows: In our project, we use the client implementation from libcoap, as follows:
 <code> <code>
Line 60: Line 57:
  
 === Copper === === Copper ===
-Copper (CU) is a Firefox plugin that implements the RFC 7252 and URI handling for the 'coap' scheme. It provides interaction through GET, POST, PUT, and DELETE, resource discovery, block wise transfers and resource observation.+Copper (CU) [8] is a Firefox plugin that implements the RFC 7252 and URI handling for the 'coap' scheme. It provides interaction through GET, POST, PUT, and DELETE, resource discovery, block wise transfers and resource observation.
  
  
 ===== Testing ===== ===== Testing =====
  
-In order to test the functionality of the ESP and the correct interconnection of the components from software, I have used test_espmodule.ino [5], which is attached at the end of this page. It is very useful as it uses AT basic commands and there is a transparent view of the status of the ESP. It is also very simple to update.+In order to test the functionality of the ESP and the correct interconnection of the components from software, I have used test_espmodule.ino [9], which is attached at the end of this page. It is very useful as it uses AT basic commands and there is a transparent view of the status of the ESP. It is also very simple to update.
  
 +{{:proiecte:screen_shot_2017-02-13_at_18.18.16.png?400|}}
 +{{ :proiecte:screen_shot_2017-02-13_at_18.18.27.png?400|}}
 ===== Results and Future Work ===== ===== Results and Future Work =====
  
-This project is in a Proof-of-Concept state right now. +This project is in a Proof-of-Concept state right now. Led on pin 11 can be turned on and off from the Coap client. After adding arduino-ESP8266 and COAP libraries to Arduino/libraries, espwifi_poc.ino [10] can be run to start the server. One must follow the activity on the serial in order to get the assigned IP address. This will be used afterwards in Copper (Firefox) to connect to the server, in our example as follows: 
 + 
 +<code> 
 +coap://<ip_address>:8083/light123 
 +</code> 
 + 
 +{{:proiecte:screen_shot_2017-02-13_at_19.27.50.png?400|}} 
 +{{ :proiecte:screen_shot_2017-02-13_at_19.27.40.png?400|}} 
  
 For a more efficient system, we mention the following: For a more efficient system, we mention the following:
 - CH_PD of the ESP can be used to deactivate the chip when it is not necessary; - CH_PD of the ESP can be used to deactivate the chip when it is not necessary;
 - read data from the sensors at specific larger moments of time, and use the CH_PD to also send data to the client rarely. - read data from the sensors at specific larger moments of time, and use the CH_PD to also send data to the client rarely.
 +
  
 ===== Resources ===== ===== Resources =====
Line 80: Line 88:
   * [2] AT Command Set: http://www.pridopia.co.uk/pi-doc/ESP8266ATCommandsSet.pdf   * [2] AT Command Set: http://www.pridopia.co.uk/pi-doc/ESP8266ATCommandsSet.pdf
   * [3] Modified Arduino-ESP8266: {{:proiecte:arduino-esp8266.zip|}}   * [3] Modified Arduino-ESP8266: {{:proiecte:arduino-esp8266.zip|}}
-  * [4] Sparkfun and ESP8266: https://www.sparkfun.com/products/13287 +  * [4] Initial Coap Server Library: https://github.com/hirotakaster/CoAP 
-  * [5] Check running ESP: {{:proiecte:test_espmodule.zip|}}+  * [5] Sparkfun and ESP8266: https://www.sparkfun.com/products/13287 
 +  * [6] Modified Coap Server Library: {{:proiecte:libcoap.zip|}} 
 +  * [7] libcoap Client: https://sourceforge.net/projects/libcoap/ 
 +  * [8] Copper (CU): https://addons.mozilla.org/en-US/firefox/addon/copper-270430/ 
 +  * [9] Check running ESP: {{:proiecte:test_espmodule.zip|}} 
 +  * [10] Sparrow-ESP8266 PoC {{:proiecte:espwifi_poc.zip|}}
  
proiecte/sparrow.1487005008.txt.gz · Last modified: 2017/02/13 18:56 by iulia.manda