{"id":1510,"date":"2013-02-14T16:24:55","date_gmt":"2013-02-14T19:24:55","guid":{"rendered":"http:\/\/wordpress.matbra.com\/?page_id=1510"},"modified":"2013-02-14T16:26:36","modified_gmt":"2013-02-14T19:26:36","slug":"rf24sh-internet-das-coisas","status":"publish","type":"page","link":"https:\/\/wordpress.matbra.com\/en\/code\/rf24sh-internet-das-coisas\/","title":{"rendered":"RF24SH &#8211; Smart Home"},"content":{"rendered":"<p>RF24 Smart Home Protocol.<\/p>\n<p>Is a library to let you connect your Arduino (atmega), Teensy (arm) and Raspberry using wifi module NRF24L01+. This library uses <a href=\"https:\/\/github.com\/maniacbug\/RF24\" target=\"_blank\">Maniacbug RF24 Library<\/a> and add a new layer to it allowing easy communication between many nodes (up to 250). This let user to create a network of any stuff and move then to Internet of Things if Master is connected to internet.<\/p>\n<p><strong>THIS IS UNDER DEVELOPMENT!<\/strong><\/p>\n<p><strong>Goals:<\/strong><\/p>\n<p>Provides an easy to use Network Library for NRF24L01+.<\/p>\n<p><strong>Dependencies:<\/strong><\/p>\n<p>RF24 Library (Arduino) &#8211; librf24\/arduino\/ &#8211; <a href=\"https:\/\/github.com\/maniacbug\/RF24\" target=\"_blank\">https:\/\/github.com\/maniacbug\/RF24<\/a><br \/>\nRF24 Library (Teensy) &#8211; librf24\/teensy\/ &#8211;<br \/>\nRF24 Library (RPi) &#8211; librf24\/rpi\/ &#8211; <a href=\"https:\/\/github.com\/gnulnulf\/RF24\" target=\"_blank\">https:\/\/github.com\/gnulnulf\/RF24<\/a><\/p>\n<p><strong>How this library works: <\/strong><br \/>\nThe NRF24L01+ module can listen up to 6 channels. First channel can be 0x7878787878 for example all other channels must be in the same range for example 0xABABABABYY. More information about this you can get on NRF24L01+ datasheet. Channels:<\/p>\n<p>Channel 0 is for protocol communication<br \/>\nChannel 1 is for parent communication<br \/>\nChannel 2-5 is for child communication<\/p>\n<p>Master station is responsible to ID\/Parent\/Channels distribution (every network must have one)<br \/>\nStations are peers connected to the Network<\/p>\n<p><strong>How to use it:<\/strong><\/p>\n<p>Setup your NRF24L01+ and make sure they are working with RF24 Library and their examples. (Guarantee everything is wired correctly)<br \/>\nCreate a MASTER station<br \/>\nCreate less then 250 regular stations<br \/>\nJust connect one STATION by time (1 minute to stabilish connection &#8211; This is a huge secure factor)<\/p>\n<p><strong>Basic example of communication:<\/strong><\/p>\n<p>Master ON listening on Protocol Channel<br \/>\nChild connects without an ID &#8211; SENDS WHO_LISTEN (Every station that listen to it, will send a message I_LISTEN)<br \/>\nMaster sends I_LISTEN<br \/>\nChild keep track of 5 nodes that he can talk to. If station receives more then 5 I_LISTEN it will preserve the smaller level ones (So it keeps near MASTER station)<br \/>\nChild send ASK_CONFIG<br \/>\nMaster reply with SET_CONFIG sending ID, PARENT, LEVEL and other informations<br \/>\nIf a child can&#8217;t communicate directly to MASTER who can listen to him will forward the ASK_CONFIG (and the SET_CONFIG later)<\/p>\n<p><strong>Source Code:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/x-warrior\/RF24SH\" target=\"_blank\">https:\/\/github.com\/x-warrior\/RF24SH<\/a><br \/>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>RF24 Smart Home Protocol. Is a library to let you connect your Arduino (atmega), Teensy (arm) and Raspberry using wifi module NRF24L01+. This library uses&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/wordpress.matbra.com\/en\/code\/rf24sh-internet-das-coisas\/\">Continue reading<span class=\"screen-reader-text\">RF24SH &#8211; Smart Home<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":444,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-1510","page","type-page","status-publish","hentry","entry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PsjGE-om","_links":{"self":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/pages\/1510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/comments?post=1510"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/pages\/1510\/revisions"}],"predecessor-version":[{"id":1512,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/pages\/1510\/revisions\/1512"}],"up":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/pages\/444"}],"wp:attachment":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/media?parent=1510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}