Commit Graph
53 Commits
Author SHA1 Message Date
Yveaux f748d15adb Introduce MY_DEBUG_VERBOSE to reduce binary size
Define MY_DEBUG_VERBOSE to have verbose debugging output (dumping NRF24
registers on startup).
2015-10-04 12:12:00 +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
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 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
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
Patrick Fallberg fca0d4b544 Dummy signing driver backend
The dummy signing driver implements the most rudimentary form of
signing. No pre-shared key is used, nonce is simply incremeted
each turn and signature is only calculated on the fist byte using
data XOR nonce.
This driver is intended for library debugging and sensor network
integrity verification (signed messages will force the radio to
transmit all 32 bytes of data).
It does check SIGNING_IDENTIFIER byte to avoid illegal mixing of
signing backends in the network (as seen by this node) and it does
verify proper execution order on the API.
The dummy driver rejects all other signing backend protocols.

Signing backend is selected in MyConfig.h
2015-02-17 23:25:16 +01:00
Marcelo Aquino 60d6c4fc3c add MYSENSORS_MQTT_GATEWAY definition 2015-02-17 17:24:51 -02:00
Henrik Ekblad b238a2e61e Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-10 23:38:05 +01: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 0dd6687488 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
	libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino
2014-11-25 16:52:07 +01:00
Frank Olaf Sem-Jacobsen db73e3c788 switched to low-power library 2014-11-03 19:21:40 +01:00
Frank Olaf Sem-Jacobsen 26138b7972 RF69 2014-10-31 20:27:20 +01:00
Henrik Ekblad b0057cc152 Merge branch 'tosa' of https://github.com/ToSa27/Arduino into
ToSa27-tosa

Conflicts:
	libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino
2014-10-23 00:30:01 +02:00
ToSa27 2647345c4d Adding defines for different board layouts in MyConfig
Adjusted all Gateway examples but only one sensor example so far
(DallasTemperature). Other sensor examples should get the same three
lines added (not mandatory but helps avoiding unnecessary debugging when
selecting the wrong setup)
2014-09-29 10:33:16 +02:00
ToSa27 39bab3dfba Split Application and Driver Layer 2014-09-29 00:24:57 +02:00
Henrik Ekblad f71ed97aaa Made Time, LiquidCrystal and RealTimeClockDisplaySensor example work in Arduino IDE 1.5.7. 2014-09-20 13:04:01 +02:00
Henrik Ekblad 5bb8c9b40c Bugfixes and cleanup 2014-09-09 22:33:49 +02:00
Henrik Ekblad 60f0a262f6 Many people is reporting powering problems when using amplified version of the NRF-chip on the gateway. The radio needs to be feeded separately with a stable 3v3. The Nanos 3v3 output is not sufficient for PA_MAX. Defaulting this to LOW now. If you are using a vanilla radio on gateway you can switch to MAX again. 2014-09-07 21:13:41 +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 61122532ad Float values sent in binary format over the air
Move base radio id to MyConfig.h
2014-08-13 09:39:45 +02:00
Henrik Ekblad 9cf6c03c5d Fix commend and wrong default pa level for gateway 2014-06-30 23:45:18 +02:00
Henrik Ekblad f3bd9e9b30 Change default transfer speed to 250kbps.
Set default value for config.
Return wakeup trigger after sleep.
2014-06-26 00:26:45 +02:00
Henrik Ekblad 8e07382d74 Gateway.cpp now compiles,
Ethernet gateway fits in memory with debug enabled. :)
2014-05-16 15:13:56 +02:00