Commit Graph
557 Commits
Author SHA1 Message Date
Henrik Ekblad 17a680f1de Fix broadcast check for RF69 2015-02-11 00:07:19 +01:00
Henrik Ekblad b238a2e61e Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-10 23:38:05 +01:00
Henrik Ekblad 7b99a2ef94 Removed waitForReply(). Not needed anymore. 2015-02-10 22:25:13 +01:00
tekka007 08a0bc25ff simply wait() & adding watchdog resets
Simplify wait(), added watchdog reset to wait() and waitForReply().
Substituted all waitForReply() for wait(2000) to reduce code
size/complexity
2015-02-08 01:00:39 +01:00
tekka007 a6301f8521 Fixing endless loop 2015-02-07 21:42:49 +01:00
Marcelo Aquino ace0a38c93 Node set up only after having an id 2015-02-07 10:59:25 -02:00
Henrik Ekblad 576c092fd6 Merge pull request #54 from mapnull/hotfix-r255
Relay messages only after receiving an id
2015-02-07 10:56:12 +01:00
Henrik Ekblad db3dbadb9e Merge pull request #55 from mapnull/hotfix-rt_size
fix clear routing table data
2015-02-07 00:40:32 +01:00
Marcelo Aquino 381d98648f fix clear routing table data
childNodeTable is a pointer, will always return 2
2015-02-06 20:59:57 -02:00
Marcelo Aquino ff1ddc3807 Relay messages only after receiving an id 2015-02-06 19:09:51 -02:00
Thomas Mørch c3e30662af Added default mysensorMicro sketch 2015-02-05 19:17:44 +01:00
Thomas Mørch e462bc214c Added libraries for SPI flash, BMP180 and Si7021 2015-02-05 19:10:52 +01:00
Henrik Ekblad 97641902c9 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-04 23:03:27 +01:00
Henrik Ekblad 08221e6567 Merge pull request #46 from tekka007/master
Failed transmissions count fixed  & Clear routing table extendend
2015-02-04 22:22:43 +01:00
Henrik Ekblad 42885d456b Merge branch 'master' of https://github.com/mysensors/Arduino.git 2015-02-04 22:09:02 +01:00
Henrik Ekblad 09f3ba5862 Save static parent to eeprom (for bootloader) 2015-02-04 22:08:50 +01:00
Henrik Ekblad 83be24d2be Return length from receive() 2015-02-04 22:04:32 +01:00
Marcelo Aquino 70e457d635 fix convBuf size to print P_CUSTOM payloads 2015-02-03 21:13:53 -02:00
Henrik Ekblad 615da4509c Fix ack problems RF24 2015-02-03 23:58:38 +01:00
Henrik Ekblad 8aeaceb35f Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MySensor.cpp
	libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino
2015-02-03 22:50:06 +01:00
Henrik Ekblad e1fa3dcd8e Merge pull request #45 from rhooper/wait-helper
Add wait() helper that doesn't sleep.
2015-02-03 22:06:17 +01:00
Marcelo Aquino 7f4f76580a get custom string from msg that isn't a stream type 2015-02-03 18:31:03 -02:00
Marcelo Aquino e8f7cb16a2 Fetch id through repeaters 2015-02-03 13:33:28 -02:00
tekka007 f06e91569c failedTransmissions=1 after findParentNode() 2015-02-03 12:15:31 +01:00
tekka007 6cfafab052 Revert "failedTransmissions=1 after findParentNode()"
This reverts commit 43755e51b8.
2015-02-03 12:08:09 +01:00
tekka007 43755e51b8 failedTransmissions=1 after findParentNode() 2015-02-03 12:04:30 +01:00
tekka007 81b6d3aa30 Clear routing table extendend
I_CHILDREN + "C" clears routing table, parent node and gw distance
followed by findParentNode.
2015-02-02 13:50:06 +01:00
Henrik Ekblad 7fb94546eb Merge pull request #44 from mapnull/hotfix-1.4
fix a possible parent repeater loop
2015-02-01 21:37:54 +01:00
Roy Hooper d45a48d8b7 Add wait() helper that doesn't sleep. Useful for repeaters and sensors that read from the network. 2015-02-01 15:00:45 -05:00
Henrik Ekblad dfd38ff3bc Removed arguments from constructor (use default). 2015-02-01 15:31:39 +01:00
Henrik Ekblad 2d214a1e58 Fix static id problem when using OTA bootloader. Reported by tekka. 2015-02-01 15:29:02 +01:00
Marcelo Aquino 6b76eb3df6 fix a possible parent repeater loop 2015-01-30 18:39:09 -02:00
Henrik Ekblad 7a54cacacf Added GizMoCuz DimmableLight example. 2015-01-30 09:06:54 +01:00
Marcelo Aquino bf8f5b8164 fix a case where parent distance from repeater get stuck at 255 2015-01-29 17:19:19 -02:00
Patrick Fallberg 7d37cd9aa5 MyDriver structure renamed to MyRFDriver
The MyDriver scheme is radio specific, so it is renamed
accordingly to permit other driver schemes to coexist with it
without confusion.
2015-01-28 23:53:37 +01:00
Henrik Ekblad 4796487809 Fix string length problem reported by EasyIoT 2015-01-16 12:05:09 +01:00
Henrik Ekblad f1f8aec324 Change order of ethernet/radio intialization to avoid troubles. 2015-01-11 20:29:22 +01:00
Henrik Ekblad 6cb3c98014 Merge branch 'master' of https://github.com/mysensors/Arduino.git 2015-01-11 20:24:13 +01:00
Henrik Ekblad afc1e01cba Changed initialization order of radio/eth to avoid problems. 2015-01-11 20:20:56 +01:00
Patrick Fallberg 6aa370d6f2 Personalization sketch for ATSHA204
This sketch is used to personalize the ATSHA204 crypto
circuit.
This is required in order to use the device for secure
communication.

The sketch also supports random key generation.

To personalize a ATSHA204 device, do the following:
1. Ensure the correct pin is used for the ATSHA204.
2. Execute the sketch without other changes to verify
   that it can communicate properly with the device.
3g. For a device used in a gateway:
    Enable LOCK_CONFIGURATION to lock the configuration
    and enable random key generation as well as key storage.
4g. Execute the sketch to lock the configuration and obtain
    a unique key. Be sure to note down the key printed in the
    UART log as it has been stored in the chip and will never
    be accessible again (a new key is calculated on subsequent
    runs).
    The key can still be changed.
5g. Enable SKIP_KEY_STORAGE to prevent generating new random
    keys on sketch re-execution.
3n. For a device used as a node:
    Enable USER_KEY_DATA and enter your private key data
    in user_key_data.
    Then enable LOCK_CONFIGURATION to lock the configuration
4n. Execute the sketch to lock the configuration and store
    the user-supplied key.
5n. Optionally: Enable SKIP_KEY_STORAGE to prevent re-writing
    the user supplied key on sketch re-execution.
6.  Optionally: Enable LOCK_DATA to prevent the key to be
    changed.
2015-01-10 19:57:09 +01:00
Patrick Fallberg 963a756605 sha204 library extended with CRC calculator
Locking operations are recommended to include CRC
and since sha204 library internally carries the proper
algorithm for this, it has now been refactored to support
both static and incremental calculations needed for both
command marchalling and locking.
2015-01-10 18:39:47 +01:00
Patrick Fallberg 1ac6f0a291 Removed examples from sha204 libraries
MySensors will have native support for sha204 and the
source for usage and personalization of sha204 will be
much more elaborate than this example so it does not
provide additional understanding for the chip.
2015-01-10 18:39:46 +01:00
Patrick Fallberg 9fd41b4030 Added sha204 library
Taken from the sha204_library folder in
https://github.com/jimblom/sha204-Breakout
Commit 8e1ac05ef987b1869605ad067db2bdbaec1c109f

ATSHA204 is a crypto cirquit from Atmel that enables
SHA256-based MAC and HMAC calculations as well as
secure key storage and random number generation.

This can be used to sign messages passed between
sensor nodes and prevent both man-in-the-middle and
replay attacking.
2015-01-10 18:37:43 +01:00
Henrik Ekblad afe506f79a Merge pull request #40 from portals12/PressureSensor-example-fix
Fix stupid errors from the last pull request
2015-01-02 12:18:04 +01:00
Piotr 021867784e Fix stupid errors from the last pull request 2015-01-02 11:09:32 +01:00
Henrik Ekblad d6922e7501 Merge branch 'master' of https://github.com/mysensors/Arduino.git 2014-12-30 13:46:21 +01:00
Henrik Ekblad 0b9178318e Set empty payload when requesting data. 2014-12-30 13:42:10 +01:00
Piotr 77d5cfdb09 Limit memory usage of forecast algorithm. Now it's not running out of memory 2014-12-21 12:11:54 +01:00
Piotr 05c07cd0e0 Limit memory usage of forecast algorithm. Now it's not running out of memory 2014-12-21 12:06:03 +01:00
Henrik Ekblad 55c1fe8d01 MAX6875 Temp Sensor example 2014-12-07 10:23:41 +01:00