Giter VIP home page Giter VIP logo

mymysensors2.3's Introduction

Repository for Arduino >= 2.0.4 and MySensors >=2.3.2 Library for building wireless sensor and activators 
used in home automation 


Files that need to be copied to external folder locations before building sketches:

MyRadio_NRF24.h  	(C:/Users/me/Documents/Arduino/libraries/MyMySensors/MyRadio_NRF24.h)

RF24.cpp			(C:\Users\Me\Documents\Arduino\libraries\MySensors\hal\transport\RF24\driver/RF24.cpp )

MyTransport.cpp 	(C:\Users\Me\Documents\Arduino\libraries\MySensors\core/MyTransport.cpp)


File "MyRadio_NRF24.h"  contains the PAN id and other RF related items such as PA-Level and Frequency.
Place the file in a "fake" library folder so that the arduinon IDE can include it from the various sketches.
All sketches must include the same file. After placing the file, make a link in the sketch folders to access the file conveniently.


	File  C:/user/me/Documents/Arduino/libraries/MyMySensors/MyRadio_NRF24.h


File "RF24.cpp" has the modified function "RF24_sendMessage()" that allows the IRQ line to be used during transmission to detect 
when the transmission of a packet is complete, without hammering on the SPI bus constantly. This reduces noise and allows the 
receiver to catch the HW ack signal sent by the reciving node.

Copy the file RF24.cpp to the active MySensor library for the Arduino IDE. The "#define MY_RF24_IRQ_PIN (2)" controls the use of this feature.
	
Path for the MySensor library 2.3:

	File	C:\Users\Me\Documents\Arduino\libraries\MySensors\hal\transport\RF24\driver/RF24.cpp 
 
File "MyTransport.cpp" has a modified  function "transportProcessMessage(void)" to insert a 4ms delay for rx/tx turn around time 
between the reception of a package and the sending out of the ACK for it. See line 706-712. Without this delay the Serial Gateway 
will intermittendly miss receiving the ack pakage. Change only affetcs networks with RF24 hardware. 

Path for the MySensor library 2.3:

	File	C:\Users\Me\Documents\Arduino\libraries\MySensors\core/MyTransport.cpp

mymysensors2.3's People

Contributors

garystofer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.