Commit Graph
33 Commits
Author SHA1 Message Date
Henrik Ekblad d4df198250 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/utility/RFM69.h
2015-09-05 22:58:56 +02:00
Yveaux b997861f59 Fix crash at startup 2015-09-03 20:33:34 +02:00
Yveaux 49f880ecf8 Bugfix 2015-09-02 17:46:37 +02:00
Yveaux cb771ab680 Fixes for compiling for Mega
Make more consistent use of architecture #defines.
2015-08-31 19:36:43 +02:00
Yveaux 64e28005b4 Added initial support for ESP8266 as WiFi gateway for MySensors 2015-08-26 12:00:29 +02:00
Patrick Fallberg b7e4d23902 Merge master into development 2015-08-15 18:28:22 +02:00
Patrick Fallberg af6e5d3019 Resolved various compiler warnings
This should make Jenkins happy.
2015-08-09 10:06:09 +02:00
Patrick Fallberg 99cec3bb16 Support Arduino MEGA boards for RFM69 interrupt config 2015-08-07 21:09:23 +02:00
Henrik Ekblad 1652d4b820 Make sure RF69_IRQ_PIN and RF69_IRQ_NUM always is defined
Without this compile breaks on Mega 2560.
2015-08-05 09:26:48 +02:00
tekka007 76493ff6a7 Sensebender OTA fix
- fix OTA updates
- update flash driver
2015-07-21 17:39:51 +02:00
Patrick Fallberg 1049246a88 Make sure SPI backend is initialized in SPIFlash driver
In some cases, SPIFlash driver hangs during initialization
because it reads data from the SPI backend. But if SPI backend
has not been initialized, this fails.
2015-06-20 13:39:30 +02:00
Henrik Ekblad 10e48594d8 Merge branch 'master' into development
Conflicts:
	libraries/LiquidCrystal/LCD.cpp
	libraries/LiquidCrystal/LCD.h
	libraries/MySensors/MySensor.cpp
	libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino
2015-06-11 22:26:33 +02:00
Tomas Hozza 20c2938d3d Remove the executable bit from source files
Signed-off-by: Tomas Hozza <thozza@gmail.com>
2015-04-12 21:24:26 +02:00
Henrik Ekblad adca8b5a4c Temporary OTA commit 2015-03-24 10:58:28 +01:00
Patrick Fallberg 611ba0cf44 Slimmed down memory footprint of signing backends 2015-03-16 20:24:42 +01:00
Patrick Fallberg f295ef2961 Whitelisting support in signing backend
Whitelisting is enabled using MY_SECURE_NODE_WHITELISTING in MyConfig.h.
The whitelist is provided in backend constructors.
See the SecureActuator example for a typical usecase.
2015-03-16 20:21:05 +01:00
Patrick Fallberg a1024cd2cd Added support to read the serial number from ATSHA204
The serial number can be used for whitelisting of nodes
that are considered "trusted".
2015-03-16 20:14:25 +01:00
Patrick Fallberg 4c4c9a8b39 Added SHA command to ATSHA204 backend driver
The SHA command is available in ATSHA204A variants of the chip
and can be used to calculate SHA256 digests of arbitrary data.

This enables us to strengthen the quality of the signatures by
salting signatures with node-specific data and improving the
quality of random data.
2015-03-16 20:14:22 +01:00
Henrik Ekblad c1d5513578 Remove LowPower dependency 2015-03-12 23:59:36 +01:00
Henrik Ekblad 5aebe80711 Cleanup driver initialization 2015-03-03 00:24:13 +01:00
Henrik Ekblad ee6e34b59a Remove global initialization of sha256 2015-02-27 00:25:08 +01:00
Henrik Ekblad 56a16671e5 Added const for PROGMEM declarations (Arduino IDE 1.5.8 compability)
Merge branch 'development' of https://github.com/mysensors/Arduino.git
into development

Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-18 23:52:33 +01:00
Patrick Fallberg 911ae9c9d9 ATSHA204 emulated signing backend
ATSHA204 emulated signing backend. The emulated ATSHA204
implementation offers pseudo random number generation and
HMAC-SHA256 authentication compatible with a "physical"
ATSHA204.

NOTE: Key is stored in clear text in the Arduino firmware.
Therefore, the use of this back-end could compromise the key
used in the signed message infrastructure if device is lost
and its memory dumped.

The seed for the random number generated is sampled from an
analog pin. The pin is set in MyConfig.h using RANDOMSEED_PIN.
The pin should be unconnected.

The key to use for HMAC calculations must match the key used by
other nodes this node will exchange signed messages with. The key
for ATSHA204 emulator is set in MyConfig.h using hmacKey.
2015-02-17 23:25:33 +01:00
Patrick Fallberg ce290e280e ATSHA204 signing backend
Default SDA pin is A3 for single wire communication.
The pin is selected in MyConfig.h.
I2C variant of ATSHA204 is not supported.

Messages are signed using HMAC-SHA256 where some parts of the
message digest are ATSHA204 specific.
2015-02-17 23:25:24 +01:00
Henrik Ekblad f143fcd7a2 Moved RFM69 library to utility 2014-11-03 20:08:56 +01:00
Henrik Ekblad 301296359b Merge branch 'master' into development
Conflicts:
	libraries/UIPEthernet/utility/uipethernet-conf.h
2014-10-22 00:15:56 +02:00
Henrik Ekblad 91e913f854 Update include statement resulting in compile error. 2014-10-17 16:41:58 +02:00
Henrik Ekblad c2acbac2e0 Forgot to enable MINIMAL mode for RF24 in the latest commit. 2014-10-17 00:07:15 +02:00
Henrik Ekblad 2fd948fc66 Add new scene controller with touch display example.
Upgraded RF24 to latest version which supports SoftSPI. 
Added DigitalIO and UTFT libraries to support the new example.
Fix problem reported in RelayWithButtonActuator example.
2014-10-17 00:01:55 +02:00
Henrik Ekblad 7fa54a6e5a Proposal to keep gateways separated. 2014-09-09 16:57:56 +02:00
Daniel Wiegert bfb8eff826 Include more debug text in MINIMAL definition, and enable MINIMAL as default, saves 432bytes 2014-08-28 14:30:42 +02:00
Henrik Ekblad dfcd3d44d3 Simplify gateway code (handles interrupts internally) and remove external dependencies. Ledmode is now always "enabled".
Remove unused libraries.
Add default CS/CE pin to Config.h
Add new variebles for voltage and current.
Add new internal command sent to controller when gateway is ready and online
2014-08-21 09:59:30 +02:00
Henrik Ekblad c332667a8d RF24 moved to utility folder of library. This results in one less include in sketches!
Serial flush in sleep method also means one less code in examples.
Removed set(bool) in message. Not needed. getBool just calls getInt
__attribute__((packed)) for RPI compability
Print more info in send/read debug prints.
Get internalTemp returns full degrees and uses longer Vref delay
Fix debug print gateway prepend (wrong command/type)
Fixed problem in RelayWithButton example. Now working with ack in both directions.
Serial protocol changed (incoming serial message have an new ack-parameter)
2014-06-17 22:16:38 +02:00