Commit Graph
1603 Commits
Author SHA1 Message Date
TMRh20 281ace4ba2 Added writeFast() cmd - fill FIFO or return 0
- WriteFast allows the FIFO buffers to be filled up before returning 0
- The current payload will be dropped, and the previous payload resent
- The user should just keep trying to send the same data if a 0 is
received
2014-03-19 03:19:39 -06:00
TMRh20 d0ec0c461c Changed writing modes
- Changed writeClear to the default radio.write() option
- Changed write() to writeBlock() - uses the auto-retry functionality of
the chip and will block forever until successful
2014-03-19 00:46:47 -06:00
TMRh20 dfc75db8e6 Update readme temporarily
- advisory of non-compliance with current documentation
2014-03-18 08:32:10 -06:00
TMRh20 4cf0fb0c5a High Speed Data Transfers/Optimization
Changes:

- Enable PTX at radio begin, in standby-I mode
- Enable PTX at radio stopListening(); in standy-I mode

- Radio startListening
- removed delay. What is there to wait for when the radio will just be
listening anyway?

- Radio powerUp
- radio will need to be powered up after configuration
- radio will not power down unless instructed to
- need to issue radio.txStandBy(); when finished transmitting to engage
standby-I mode

- Added txStandBy() to drop to standBy-I mode if not switching to RX
mode

- Radio Write: Sped up
- radio previously did not use standby mode effectively, after TX
sending of each packet, the radio is
powered down introducing a 1.5ms delay in addition to the 130us delay
from standby.
- No observe-tx code, a simple NOP cmd is sent to get the status info
- No millis() timeout, hanging condition should only occur because of
faulty code
- Simplified whatHappened() code
- Flush TX FIFO if MAX_RT met as lib does not support re-transmit
instead of flush every time.
- Remove ack size monitoring
- No powerdown needed,

- Added writeClear() function for writes that need the interrupt flags
cleared (ack payloads, etc). Same as write() otherwise

- Radio startWrite: Sped up
- Enable PTX mode is now done in stopListening() code. Enter TX mode by
writing CE high.
This brings the data transfer capabilities up to a reasonable level
- No need to power up, already in Standby-I mode
- No need for delayMicroseconds() in write functon.
- No need for delay after writing CE high
- Does not enter Standby-I mode be default. It is up to the MCU to call
the new txStandBy() function to enter standby-I mode from PTX if not
switching back to PRX

- Radio available:
- Now checks the FIFO buffer instead of the interrupt flag (no missed
data)
- Moved clearing of interrupt flags to Read()

- Radio read:
- No longer returns any value - use available to check for more data

- Radio isAckPayloadAvailable() now checks the FIFO directly

- Radio getDynamicPayloadSize() - Per the datasheet, added fix to flush
corrupted packets
2014-03-18 07:07:03 -06:00
Henrik Ekblad 64048992cc Merge branch 'master' of https://github.com/mysensors/Arduino 2014-03-15 08:23:01 +01:00
Henrik Ekblad 6304c7ae77 Addded missing semicolon. 2014-03-15 08:22:48 +01:00
henrikekblad 799a80e265 Merge pull request #3 from bblacey/config-fix
Removed call to gw.setPALevel(RF24_PA_LOW) because the gateway PA Level ...
2014-03-13 09:09:02 +01:00
Bruce Lacey a182a1c05e Removed call to gw.setPALevel(RF24_PA_LOW) because the gateway PA Level is set by RF24_PA_LEVEL_GW in Config.h that is used by the gw.begin() method to set the PA_Level for the gateway. Users should change the PA_Level for the gateway using RF24_PA_LEVEL_GW in Config.h 2014-03-12 22:53:41 -07:00
Henrik Ekblad c270a9ec2c Setting default values from Config.h 2014-03-10 00:52:56 +01:00
henrikekblad 713245305a Merge pull request #2 from bblacey/net-config
Centralize sensor network configuration and debug flag feature
2014-03-09 23:58:49 +01:00
Bruce Lacey 2195a8c952 Added centralized sensor network configuration file to control channel, power level and data rate. 2014-03-09 15:30:33 -07:00
Bruce Lacey f1fe7062c6 Turn on DEBUG by default in my config 2014-03-09 09:23:08 -07:00
Bruce Lacey 830c9908f6 This contains my sensor net configuration. 2014-03-09 09:05:51 -07:00
Henrik Ekblad c1441dca4a fixed crlf for project 2014-03-07 21:17:56 +01:00
Henrik Ekblad 586a4d6239 Debug disabled by default 2014-03-07 18:58:15 +01:00
Bruce Lacey 89e3c4f0ef Sensor nodes can now report their sketch name and version to the gateway for informational purposes. Added class methods sendSketchName(), sendSketchVersion() and sendSketchInfo() that invokes the aforementioned as a convenience method. Sensor nodes report their sketch information to the gateway by calling sendSketchInfo(const char *name, const char *version) in the Arduino sketch setup() method after initializing the radio by invoking the Sensor::begin() method. 2014-03-07 09:05:25 -08:00
Henrik Ekblad 8681e37f48 Renamed of sketch to be recognized by Arduino IDE 2014-03-07 08:49:57 +01:00
Henrik Ekblad 1583e9c6b8 Renaming of sketch to be recognizable by Arduino IDE 2014-03-07 08:49:11 +01:00
Henrik Ekblad 85b7e3e009 Added contribution instruction file 2014-03-06 01:17:23 +01:00
Henrik Ekblad 98666c8288 Renaming sensors not following normal pattern 2014-03-05 16:48:05 +01:00
Henrik Ekblad 292e12965e This is a new simple binary switch example that can be uses for window/door sensors or trigger buttons (like a doorbell).
The example takes advantage of  the internal pull up resistor of the Arduino board (no need for external pull-up resistor) when connecting a button or reed switch.

Debounce library is also used to minimize debounce problems.
2014-03-05 10:56:44 +01:00
Henrik Ekblad b223879d12 Added the forgotten dataRate to begin() default speed is 2MBPS 2014-03-04 21:54:21 +01:00
Henrik Ekblad a684a49501 This example is not yet aopted to MySensor. But could be a good inspirations for how to receive 433Mhz stuff. 2014-03-04 19:15:49 +01:00
Henrik Ekblad 0506187e27 Default channel should be 76 (not the presumed 70) 2014-03-04 19:11:54 +01:00
Henrik Ekblad a5422954e6 Example of a battery powered sensor sending in battery level value in percent. 2014-03-04 17:08:54 +01:00
Henrik Ekblad 06ec39cc72 Adding git attributes for handling lineendings 2014-03-04 16:31:15 +01:00
Henrik Ekblad 546ed1d4ae Added new (optional) arguments to begin where you can set PA level and radio channel in sketches and gateway. Default values for constructor and begin arguments also made it possible to simplify all sketches when using defualt ce/cs pins (9,10) for radio and AUTO radion Id mode. 2014-03-04 00:24:26 +01:00
Henrik Ekblad f5215c9db3 Moved to library 2014-03-04 00:19:59 +01:00
Henrik Ekblad 4befc8a471 Added detech functionality. Contribution Derek Macias 2014-03-02 18:08:37 +01:00
Henrik Ekblad 1cb1143c94 Added example for BH1750 lux sensor 2014-03-02 18:07:40 +01:00
Henrik Ekblad 1d6ebad67e Fixed bug reported by a-lurker 2014-03-02 18:06:36 +01:00
Henrik Ekblad d563bf3a1a Added lock status variable, removed some compiler warnings. 2014-02-17 17:36:06 +01:00
Henrik Ekblad 6af26e664c Now Using pgmspace.h instead of progmem.h. Removed a couple of compiler warnigns. 2014-02-14 08:15:17 +01:00
Henrik Ekblad 2ade6ac2d8 Some people have reported problem when first radio transmit after sleep was send.
Added radio powerUp() in "sleeping" example sketches.
2014-02-09 20:54:33 +01:00
Henrik Ekblad 94f800c18b EthernetGateway added. Removed usage of string class i Gateway code (reduced program memroy by 2k). FIxed potential problem in Dallas sensor example sketch. 2014-02-07 22:44:13 +01:00
Henrik Ekblad 1ae8353d13 Increased stability. Higher radio speeds (2mbps). Soft-acks implemeted to avoid the unreliable hw-acks. No trash messages found during test runs. 2014-02-05 00:30:32 +01:00
Henrik Ekblad 25c7f386db Fixed problem with pipe 7 (trash messages) and double-sending of outgoning messages from gw. 2014-01-31 20:30:16 +01:00
Henrik Ekblad d8f055104c Fixed bug in routing for messages sent out from gateway. 2014-01-31 00:29:38 +01:00
hek 609d9e5be9 Move master branch from from mios git repo 2014-01-23 00:23:15 +01:00
maniacbug ebcd0d1d0b Add isValid 2013-10-03 06:53:28 -07:00
maniacbug 8eaad77b2c Merge pull request #16 from RWSDev/master
Updated led_remote example to use correct var on line 172
2013-07-12 20:31:56 -07:00
Jason Becht 49f22eae21 Update examples/led_remote/led_remote.pde
Line 172 was using button_pins instead of led_pins.  This caused leds to be lit dim when set to HIGH.  Changed to correct var.
2013-02-06 18:43:42 -06:00
maniacbug 84e464def4 latest jamfiles 2012-06-23 19:46:42 -07:00
maniacbug 2c97186329 Fix bug introduced in the move to PROGMEM. Props to @basilrx for finding this. Also added a test case to demonstrate the bug, and guard against more like it in the future. 2012-02-26 19:53:08 -08:00
maniacbug f6e59b9de8 Remove prog_char, for compliance with gcc 4.6.1 2012-01-17 22:05:11 -08:00
maniacbug 205d4b5cc1 Tune timing and upload rate of tests 2012-01-17 22:04:20 -08:00
maniacbug 94635e8cc5 runtests now hups between each test instead of uploading 2012-01-15 23:35:07 -08:00
maniacbug c6262edbce FAQ- How much RAM?? 2012-01-15 22:23:10 -08:00
maniacbug 99df87cba9 Merge branch 'master' of github.com:maniacbug/RF24 2012-01-15 22:18:16 -08:00
maniacbug dc48235343 Refactor pingpair_test to remove all serial io from within the irq handler, as necessitated by Arduino 1.0 2012-01-15 22:15:45 -08:00