Commit Graph
72 Commits
Author SHA1 Message Date
Henrik Ekblad 10a971fa90 Detect if initialization fails for RFM69 radio
Correct problem with define HW-variant
Clean up GatewayESP8266 comments
Change the debug message at startup (include version)
2015-11-11 23:33:46 +01:00
Henrik Ekblad 06f1596ed9 Merge pull request #239 from mysensors/fix-inclusion-feature
Fix inclusion button problem.
2015-11-02 22:42:29 +01:00
Henrik Ekblad 6baf605b0d Fix inclusion button problem.
Add option when having external pullup for inclusion button.
MY_INCLUSION_BUTTON_EXTERNAL_PULLUP.

Change the default led pins for serial gateway that was wrong.
2015-11-02 20:50:22 +01:00
Patrick Fallberg e75e735a10 Signing related fixes
* Secure actuator example now require signed messages by default
* Whitelisting config example in MyConfig.h now uses correct keywords
* keywords.txt updated with the actual whitelisting keyword
* Signing backends have improved debug output
  - The type of backend is presented in Get and Put nonce functions
  - The resulting signature is printed for both sender and receiver
* Fixed bug in soft signer (the untransmitted part of the nonce buffer was
  not the same in both ends)
* The ATSHA personalizer is updated to use acceptable syntax for user provided
  HMAC key
2015-10-26 22:15:42 +01:00
Henrik Ekblad cf232b1baa RS485 transport layer
Note this is still untested as I haven't got any RS485 modules.
2015-10-12 18:48:28 +02:00
Yveaux a0589fa38b Introduce MY_DEBUG_VERBOSE to reduce binary size
Define MY_DEBUG_VERBOSE to have verbose debugging output (dumping NRF24
registers on startup).
Fixed warnings.
2015-10-04 14:57:43 +02:00
Henrik Ekblad ca8ebdb3a4 ESPGateway work ongoing 2015-10-01 20:38:41 +02:00
Henrik Ekblad adc3f664fc SerialGateway fixed and verified 2015-09-30 22:30:32 +02:00
Henrik Ekblad 96f702fa4f Update examples 2015-09-19 23:54:35 +02:00
Henrik Ekblad 5c39f022c0 Add: NRF24L01 AES Encryption
Thanks @fleinze.
Source:
https://github.com/fleinze/MySensors/tree/Encryption/libraries/MySensors
2015-09-17 22:04:38 +02:00
Henrik Ekblad ada872f30f Fixed: Software signing 2015-09-16 00:18:26 +02:00
Henrik Ekblad 4f4f0605c0 Split out some more components to make core class cleaner 2015-09-15 00:28:47 +02:00
Henrik Ekblad ba92885064 Document MyConfig.h 2015-09-14 15:52:43 +02:00
Henrik Ekblad f8ee376230 C:ifying continues.. 2015-09-13 11:59:09 +02:00
Henrik Ekblad bdae50886b MotionSensor working 2015-09-12 00:34:44 +02:00
Henrik Ekblad 15918b3d3d Merge remote-tracking branch 'upstream/development' into
gateway-refactoring

# Conflicts:
#	libraries/MySensors/MyConfig.h
#	libraries/MySensors/MySensor.cpp
2015-09-11 10:56:19 +02:00
Henrik Ekblad d4df198250 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/utility/RFM69.h
2015-09-05 22:58:56 +02:00
Jeeva Kandasamy d7459ae050 modified comment for ENABLED_SERIAL 2015-08-24 12:48:30 +05:30
Jeeva Kandasamy 3df1227147 Fix to enable Tx/Rx as IO pin 2015-08-24 12:46:08 +05:30
Patrick Fallberg b7e4d23902 Merge master into development 2015-08-15 18:28:22 +02:00
Henrik Ekblad ce1f354a56 Merge branch 'development' into gateway-refactoring
Conflicts:
	libraries/MySensors/MyConfig.h
	libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino
2015-08-11 23:39:34 +02:00
Patrick Fallberg af6e5d3019 Resolved various compiler warnings
This should make Jenkins happy.
2015-08-09 10:06:09 +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
Henrik Ekblad cb83bfbdb3 Inverse the default rx/tx/err led behaviour and introduce
WITH_LEDS_BLINKING_INVERSE option in MyConfig.

This allows easy inversing of led blink behavior depending on how the
leds were connected.

Introduce hw-macro for digitalWrite used by the LED blinking.
2015-08-04 21:00:32 +02:00
Henrik Ekblad 656ba2e4ab Codebender adoption
Had to make some chnages to make the code work on codebender (which
seems to run a bit older version of AVR-LIBC. The compiler didn't like
array constructor initializations either..
2015-08-01 00:05:09 +02:00
Bruce B. Lacey 4abaa6ded3 Changed WITH_LEDS_BLINKING option to use the default LED pins as described on http://www.mysensors.org/build/advanced_gateway for consistency and backwards compatibility. Also corrected the LED on/off state to HIGH/LOW from LOW/HIGH respectively. 2015-07-11 09:31:30 -07:00
Tomas Hozza ceb8f5969f Add tested draft of MyGatewayTransportEthernet working as client
Signed-off-by: Tomas Hozza <thozza@gmail.com>
2015-05-23 23:15:03 +02:00
Henrik Ekblad 01d13f0ca4 Serial Gateway in a working state 2015-05-12 23:28:49 +02:00
Henrik Ekblad 9469188e32 Work in progress 2015-05-12 00:36:22 +02:00
Tomas Hozza 58efd872f4 Add LED blinking support into MySensor without any library dependency
Signed-off-by: Tomas Hozza <thozza@gmail.com>
2015-05-06 21:45:00 +02:00
Henrik Ekblad caaadf44cf Update file headers. 2015-04-08 21:14:52 +02:00
Henrik Ekblad 6165834038 RFM69 cleanup
Corrected initialization of radio
Add constructor arguments for driver
Add defaults to MyConfig
Fix ack problems reported on forum.
2015-03-31 23:46:36 +02:00
Henrik Ekblad 44406c2835 Add driver-options to gateways. 2015-03-30 22:44:10 +02:00
Henrik Ekblad 3a59929b8e Initial untested OTA feature 2015-03-30 10:28:57 +02:00
Henrik Ekblad c1a9a53ab9 WIP 2015-03-26 14:30:07 +01:00
Henrik Ekblad adca8b5a4c Temporary OTA commit 2015-03-24 10:58:28 +01:00
Henrik Ekblad b72ac4b277 Fix crash when debug enabled. 2015-03-20 19:45:26 +01:00
Patrick Fallberg 70eac0423d Added config flag MY_SIGNING_FEATURE in MyConfig.h
By disabeling MY_SIGNING_FEATURE all signing logic in the library
will be removed.
2015-03-16 23:15:54 +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
Henrik Ekblad 73024ea4c9 Weird compile error for Patrick 2015-03-16 10:43:09 +01:00
Henrik Ekblad 9e85fac745 Separate the HW specifics from the MySensor library 2015-03-12 22:59:51 +01:00
Henrik Ekblad 6d0ae813c4 Rename MySigningDriver* to MySigning* 2015-03-10 00:07:57 +01:00
Henrik Ekblad 7e6aa8bda8 Add the default constructors to gateway sketches 2015-03-09 22:58:05 +01:00
Patrick Fallberg a21715d415 SHA204 personalizer updated to handle HMAC key better
HMAC key is now configured and printed exactly as it is set
in MyConfig.h. This makes it easier to move the key around.
2015-03-09 00:20:17 +01:00
Henrik Ekblad 5aebe80711 Cleanup driver initialization 2015-03-03 00:24:13 +01:00
Henrik Ekblad bf8102ecad For discussion 2015-02-26 23:53:37 +01:00
Henrik Ekblad 23a8a48f8e Rename "Dummy" signing driver to "None" 2015-02-25 23:18:26 +01:00
Marcelo Aquino c358d8705a add parser class for serial and ethernet gateways 2015-02-19 21:39:46 -02:00
Marcelo Aquino d7474a7b8d fix ifdef for MYSENSORS_ETHERNET_MQTT_GATEWAY 2015-02-18 11:15:54 -02: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