Commit Graph
353 Commits
Author SHA1 Message Date
Henrik Ekblad 90f79c97cd * Changed library to call by reference instead of using pointers. Makes code much cleaner.
* RelayNodes renamed to RepeaterNode to distiguish this from RelayActuator.
* Ack is now possible to request for all message types. Added ack-flag for some of the exposed internal messages and presentation message.
2014-06-16 00:30:13 +02:00
Henrik Ekblad 9ddf442e42 Fixed CRC zero-padding. Thanks Yveaux. 2014-06-15 17:10:27 +02:00
Henrik Ekblad 771401a317 Change version string 2014-06-13 21:20:30 +02:00
Henrik Ekblad 8a9061aee7 The last examples converted to 1.4. 2014-06-13 20:19:48 +02:00
Henrik Ekblad af90d238d4 Start of example conversion. Added sleep to MySensors API. 2014-06-13 13:54:12 +02:00
Henrik Ekblad d1ca16fe1b correct radix fixed 2014-05-29 00:30:30 +02:00
Henrik Ekblad c81a47c1f9 Fixed a couple of issues reported by a-lurker 2014-05-28 22:27:36 +02:00
Henrik Ekblad 6201d3cd54 IsGateway added 2014-05-19 23:33:36 +02:00
Henrik Ekblad 67f4ca1fb4 latest test sketches and working request for id 2014-05-19 20:08:12 +02:00
Henrik Ekblad 9e043f3379 Use pointers inernally instead of passing objects to save space. 2014-05-17 00:46:04 +02:00
Henrik Ekblad 8e07382d74 Gateway.cpp now compiles,
Ethernet gateway fits in memory with debug enabled. :)
2014-05-16 15:13:56 +02:00
Henrik Ekblad 891c826a0c * Converted time example. Callback for time request was the only clean solution. Now global callback for incoming messages only needs to care about SET commands coming from other nodes or gateway.
* New api for storing states. RelayActator now stores state in eeprom, making it more standalone.
* Controller config is now fetched in the background without needing any special tratment in sketch. Last received config is stored in eeprom:
2014-05-16 14:48:18 +02:00
Henrik Ekblad 9291a97d45 added some message builder helpers. Optimized libray a bit using inline functions and macros.
Converted Dallas example to use new library api.
2014-05-16 10:35:26 +02:00
Henrik Ekblad 7080520a3f Fix comment. Pseudo random. 2014-05-16 07:24:24 +02:00
Henrik Ekblad a31d9d1074 Reduce library size 2014-05-15 07:40:07 +02:00
Henrik Ekblad 710d445815 Stripping all sync-functions 2014-05-14 10:15:01 +02:00
Henrik Ekblad 4b18f9fbf4 Relay updated to new api 2014-05-14 00:26:52 +02:00
Henrik Ekblad 26ef9c81c2 refactoring continues. 2014-05-14 00:26:28 +02:00
Henrik Ekblad fadab95958 And myGateway... 2014-05-12 23:56:57 +02:00
Henrik Ekblad 7856dfb209 Compiling. No tests what so ever. 2014-05-12 23:50:44 +02:00
Henrik Ekblad 960efcd6f7 Prepared for ack:ing between sensors. And between actuator and gateway. Now using hardware ack when sending messages and burst-mode which gives much more reliable communication.
Use the corresponing development-branch for Vera plugin files.
2014-05-04 23:47:46 +02:00
Henrik Ekblad 40218118f3 Merge remote-tracking branch 'origin/master' into development
Conflicts:
	libraries/MySensors/Sensor.cpp
2014-05-01 22:41:35 +02:00
Henrik Ekblad 2bb71b0ab6 Merge branch 'master' of https://github.com/mysensors/RF24 into development 2014-05-01 20:55:29 +02:00
Henrik Ekblad 813f001f65 Powerup radio if asleep when start transmitting. 2014-05-01 20:51:23 +02:00
Henrik Ekblad 9583356f1d Merge branch 'master' of https://github.com/mysensors/RF24 into development 2014-05-01 19:28:58 +02:00
Henrik Ekblad 8759712f12 Added closeReadingPipe. 2014-05-01 18:55:01 +02:00
MySensors-BOT a95fe8ca20 [Version-Bot] updated version to 1.3b3 (18848a2) 2014-05-01 14:51:23 +00:00
Henrik Ekblad 18848a25a6 Renamed defines. 2014-05-01 16:50:50 +02:00
Henrik Ekblad a4aabb99fb Testing new TMRh20/RF24 library. Looks promising. No more soft-acks :) 2014-05-01 16:45:01 +02:00
Henrik Ekblad ab3bad4b1c subree of RF24 merged 2014-05-01 00:16:07 +02:00
Henrik Ekblad 1897409bde git tree messed up 2014-05-01 00:12:42 +02:00
Henrik Ekblad 8a686e0031 git tree messed up 2014-05-01 00:12:08 +02:00
Henrik Ekblad de0a374699 remove old rf24 2014-04-30 23:57:29 +02:00
Henrik Ekblad 9a32a81644 Only scan for relay node max 3 times per transmission attempt (to save battery)
Lower transmission speed to reach longer distances.

Remove RF24 to prepare gittree import.
2014-04-30 23:39:06 +02:00
TMRh20 6530f954a1 RPi SPI functionality and RPi fix for startWrite
- Enabled use of hardware CS1 pin
- Removed custom_cs code for software driven CSN
- Modified BCM driver to allow use of hardware SPI pins not in use while
SPI is active.
- Updated constructor in examples
2014-04-25 19:38:08 -06:00
TMRh20 cd8bb19dc3 fix typo in readme 2014-04-24 15:32:55 -06:00
TMRh20 2406e06a77 Raspberry Pi support
Added support for hardware SPI on RPI per jscrane fork:
- Fixed a few bugs with single SPI transfers
- Aligned with optimized RF24 library fork
- Updated bmc2835 files per
http://www.airspayce.com/mikem/bcm2835/index.html
- Merged bcm files with changes from
https://github.com/farconada/RF24Network
- Added example files
- Added setup info to readme
2014-04-24 14:47:39 -06:00
TMRh20 8ff9fb6f15 Small fix before pushing last commit
- fixed mistake with changes to setPALevel prior to pushing
2014-04-23 13:27:46 -06:00
TMRh20 c965f73838 FIFO rd change (Thanks Zephyrr), Initial SI24R1 support
- Using status register is faster to read TX FIFO status - Zephyrr (GitHub)
- Fixed typo on FLUSH_RX cmd
- Added support for pwr levels on SI24R1 chips with smaller code
2014-04-22 13:34:10 -06:00
MySensors-BOT 09886418a7 [Version-Bot] updated version to 1.3b3 (541cd43) 2014-04-16 00:24:23 +00:00
Bruce Lacey 541cd4360a Merge pull request #13 from mysensors/bugfixes-reported-on-forum
Bug fixed for
2014-04-15 17:24:18 -07:00
MySensors-BOT 16160504b1 [Version-Bot] updated version to 1.3b3 (43d74e2) 2014-04-15 17:38:55 +00:00
Henrik Ekblad 43d74e2083 Bug fixed for
http://forum.mysensors.org/topic/37/sensor-readmessage
2014-04-15 19:38:39 +02:00
TMRh20 e83a107bdf Update examples, minimize code size
- Updated some example files and tests
- Small changes to minimize code size
2014-04-15 09:40:36 -06:00
TMRh20 5fabf2608a Fix: Return value of write, writefast 2014-04-11 02:17:42 -06:00
TMRh20 1858312338 Revert powerUp() delay to 5ms delay
For nRF24L01+ to go from power down mode to TX or RX mode it must first
pass through stand-by mode.
There must be a delay of Tpd2stby (see Table 16.) after the nRF24L01+
leaves power down mode before
the CEis set high.

5ms is the maximum defined in the v1.0 datasheet
2014-04-10 13:01:51 -06:00
TMRh20 92a19af8f8 enableDynamicAck(), Single NOACK, default RT,
- Added new function: enableDynamicAck()  to enable single-write NOACK
payloads (merge closer with gcopeland fork)
- Added single NOACK writes for write(), writeFast(), startWrite() and
startFastWrite()
- powerUp() now checks to see if radio is powered on. No delay if
powered up.
- radio must still be powered up manually if powered down manually
- use setRetries function in begin()
- set CE low on powerDown
- updated readme
2014-04-10 09:49:23 -06:00
TMRh20 07eb9f8749 ATTiny support fr jscrane fork tested and working
ATTiny support pulled in from https://github.com/jscrane/RF24
- SPI support for ATTiny is included with the library. Do NOT include
SPI.h with tiny.

Pin info etc can be found at:
http://programmablehardware.blogspot.ca/2013/09/rf24-with-attiny84.html

ATTiny 85 Example:
RF24 radio(4,3);    // CE: 4  CS: 3
2014-04-09 10:53:47 -06:00
TMRh20 8077f56a7f Merge pull request #1 from zephyrr/master
Merge improved write_payload() and read_payload()  - looks good and passes my testing.
2014-04-08 01:33:04 -06:00
zephyrr 84146a17f3 Revamped write_payload() and read_payload()
Restructured based on needing or not needing blank padding
2014-04-07 23:31:52 -07:00