Commit Graph
594 Commits
Author SHA1 Message Date
Henrik Ekblad b60095a0ee Merge pull request #10 from henrikekblad/master
Create README.md
2014-04-06 20:41:44 +02:00
TMRh20 d28323aadc Fix: Missing byte with due RX
- SPI transfer fix to read every available byte in the payload with
payloads less than 32 bytes with dynamic payload size disabled.
2014-04-06 08:49:35 -06:00
Bruce Lacey fb618e70bb Merge remote-tracking branch 'upstream/master' into version-bot 2014-04-05 16:56:54 -07:00
Bruce Lacey cddee26a54 Re-factored LIBRARY_VERSION to a separate Version.h file for management by the MySensors Bot. 2014-04-05 16:55:29 -07:00
TMRh20 e1aaa57172 Full Due support, maskIRQ function
- Tested and now fully functional on Arduino Due
- Added support for the extended SPI functions: brings Due performance
up to par with Due managing the CSN   pin and settings
- Corrected issues with printDetails() on Due
- Changed added variables to staticly defined types: ie: uint16_t
instead of unsigned int
- I think this will work on all ARM based boards that use the Arduino
libs
- Added maskIRQ function - to be used in RF24Network sleep mode
- Changed csn(int mode) to csn(bool mode)
- Updated GettingStarted_CallResponse.ino example: Capture start time
AFTER printing to serial so measurement is more accurate
2014-04-05 05:34:52 -06:00
TMRh20 3455e489f4 Add powerUp to begin(), increase powerUp delay
- Found I could create a hang condition on startup with some code.
a: Now power up the radio on begin() to simplify things
b: Increase delay to 5ms for powerUp, although it should only take 2ms
tops, this prevents the hanging condition.
2014-04-02 22:08:29 -06:00
Bruce Lacey fa750e8ee5 Merge pull request #11 from mysensors/update-ir-lib-feature
Update IR lib/sensor to use the latest IR_Remote fork by Chris Young
2014-04-02 06:13:33 -07:00
Henrik Ekblad e8e3ddd74b Change back the faulty pin assignement in previous pull request. 2014-04-02 09:10:55 +02:00
TMRh20 2f7e4489ba Fix: Ext. timeout hang, examples, board support
- Initial support for Due and ATTiny boards
- Fix for 0 timeout period causing hang
- Remove unnecessary delays from startWrite
- Cleaned up/Updated example files
- Optimization is nearing completion
2014-04-01 23:47:19 -06:00
Henrik Ekblad 3a2cfbcf13 Update IR lib/sensor to use the latest IR_Remote fork by Chris Young (IRLib)
https://github.com/cyborg5/IRLib
2014-04-01 22:16:22 +02:00
Henrik Ekblad e2cbbaea96 Update Sensor.cpp
Change to MySensor
2014-03-30 23:48:31 +02:00
Henrik Ekblad 8c9b23807b Create README.md 2014-03-30 23:43:22 +02:00
TMRh20 6263bccd02 Extended timeouts, txStandBy changes
- For use in noisy or low signal scenarios
- Allows user specified timeout period of extended duration
- Modified txStandBy() and writeBlocking() functions to rely on a user
defined timeout period, automatic retries and payload reUse
2014-03-29 05:29:29 -06:00
Henrik Ekblad b27735a94a Forgot to take ce(LOW). 2014-03-26 06:41:54 +01:00
Bruce Lacey 5f22ea3661 Merge pull request #9 from mysensors/ethernet-improvement-feature
Added a-lurkers proposed changes to speed up message porcessing.
2014-03-25 16:27:52 -07:00
Bruce Lacey 75fd62e9fa Merge pull request #8 from mysensors/RF24-fixes
Rf24 fixes - code looks good!
2014-03-25 16:22:51 -07:00
Henrik Ekblad 2e6eb42e5c Ack debug prints cleaned up. 2014-03-25 23:57:20 +01:00
Henrik Ekblad 04b0da5f5a Added a-lurkers proposed changes to speed up message porcessing. 2014-03-25 23:47:14 +01:00
Henrik Ekblad 990bda5990 A-lurker proposed chnage 2014-03-25 23:33:21 +01:00
Henrik Ekblad 01d06cd034 Merge pull request #7 from bblacey/RF24-isValid-patch
Added isValid() method to RF24.h as requested by andreij in http://forum...
2014-03-24 08:45:41 +01:00
Bruce Lacey 586e9c7740 Added isValid() method to RF24.h as requested by andreij in http://forum.mysensors.org/topic/6/update-rf24-library-to-latest-version#12 2014-03-23 21:24:00 -07:00
TMRh20 0ddec52563 Forgot to move startFastWrite to public
for use in wireless audio sketch, needed to move startWrite() to a
public function
2014-03-23 01:05:04 -06:00
TMRh20 1cc7454d97 txStandby() function modified completely
txStandBy() now either works in two modes. The main mode will block
until success or fail. Using txStandBy(1) will block and retry forever
until succesful. Using a while loop with the function is no longer
required. See the updated class reference at
http://tmrh20.github.io/RF24/class_r_f24.html
2014-03-22 20:32:31 -06:00
TMRh20 4340d9339a Lib now passes all tests
Added back original startWrite function for when users want to use
manual methods. The library uses startFastWrite for its internal
functions. Provides compatibility with prev. code while still using the
new methods for everything else.
2014-03-22 18:39:46 -06:00
Bruce Lacey c5661caf17 Increased the ACK_SEND_DELAY from 5 milliseconds to 10 milliseconds to resolve soft ACK timeouts. 2014-03-22 14:41:28 -07:00
Henrik Ekblad a51e025788 Removed powerUp. No longer needed. 2014-03-22 16:48:11 +01:00
Henrik Ekblad 1503004e8c Increased the startup delay after powerup. 2014-03-22 16:26:52 +01:00
Henrik Ekblad 0da770a374 Changed order. 2014-03-22 16:08:19 +01:00
Henrik Ekblad 893fbc6457 Ok, had to introduce a small delay on the ack-sensing side to let ack-recieving side have to to switch to listening mode. 2014-03-22 14:31:01 +01:00
TMRh20 f3b3fb1f44 Fix: txStandBy hang. Updated Transfer example
- txStandBy was hanging if the last of the data timed out. Now clears
the MAX_RT flag if timed out
- Finished updating example file Transfer.ino for demonstrating
half-rate transfers using the FIFO buffers
2014-03-22 01:52:22 -06:00
Bruce Lacey f44098259d A-lurkers changes that attempt to resolve the presentation message sending failures. Creating an experimentation branch for joint investigation. 2014-03-21 22:22:44 -07:00
Henrik Ekblad ef5f00e7ef Merge pull request #6 from bblacey/example-versioning
Sketch reporting of name and versioning added
2014-03-21 23:48:59 +01:00
Bruce Lacey 67b52ec95b Tweaked sketch info formatting in two examples for consistency... 2014-03-21 13:41:21 -07:00
Bruce Lacey f828eec251 Modified all example sketches to report the sketch info to the gateway/controller. 2014-03-21 13:39:02 -07:00
TMRh20 4d8da2f01d Fixed link 2014-03-19 21:16:38 -06:00
TMRh20 bcd48f2f47 Fix: Standby after regular write cmd
Realized that the normal write command should always drop to standby-I
mode immediately since the FIFO cannot be filled using this method, and
TX will be complete.
2014-03-19 20:47:37 -06:00
TMRh20 99571d6530 Updated some examples to show the new lib usage
Updated GettingStarted, pingpair, added medium speed version of transfer
rate test
2014-03-19 20:23:33 -06:00
TMRh20 63ee0ce2c0 Corrected part of the documentation 2014-03-19 19:27:07 -06:00
TMRh20 14187cd1a1 Updated readme and h file for doxygen
See http://tmrh20.github.io/RF24/class_r_f24.html for the class
documenation.
2014-03-19 19:13:26 -06:00
TMRh20 1e2f41c3f8 Inspired idea to change TX standby code
Realised that data would be lost if dropping to standby or power down
mode before the FIFO is empty.
txStandby now returns a boolean value to indicate whether the
transmission is complete. If there is data in the TX FIFO the radio will
not drop out of TX mode. eg: while(  !txStandBy()  ){}
2014-03-19 08:26:59 -06:00
TMRh20 77b1e2c140 - Slight modification to reUseTX cmd
- put the CE HIGH, LOW changes in the cmd for non-internal use
- Put the clearing of MAX_RT in the reUse cmd for non-internal use
- Removed unneeded delay from writeBlocking()
2014-03-19 03:43:13 -06:00
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