Henrik Ekblad
8d66eb3b14
Merge pull request #141 from mapnull/dev-fix_repeater_loop
...
fix repeater find parent loop
2015-07-28 22:42:57 +02:00
Henrik Ekblad
79c4cee475
Fix signing problem reported by @scalz
...
http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors/103
2015-07-28 19:44:46 +02:00
Marcelo Aquino
a22f712d60
respond to a I_FIND_PARENT after findParentNode()
...
When a repeater receives a I_FIND_PARENT, it first update the
nc.distance if is invalid and then respond the request
2015-07-28 11:32:52 -03:00
tekka007
76493ff6a7
Sensebender OTA fix
...
- fix OTA updates
- update flash driver
2015-07-21 17:39:51 +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
Marcelo Aquino
fcb92436d9
fix repeater loop for I_FIND_PARENT
...
A repeater calls findParentNode() inside process() when receives a
I_FIND_PARENT and nc.distance is invalid, this could cause a loop
2015-07-09 14:19:57 -03: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
Henrik Ekblad
51d22c6936
Change argument order in presentation
2015-06-10 23:56:40 +02:00
Henrik Ekblad
b482a8eb7a
Change argument order for presentation description
2015-06-10 23:43:04 +02:00
Henrik Ekblad
b3bdc52139
Added optionl sensor description on presentation
2015-06-09 23:57:04 +02:00
Henrik Ekblad
e111d64c31
Fix: Default to empty sensor description
2015-06-09 23:47:44 +02:00
Henrik Ekblad
f642ec8bf6
Added optional description when presenting sensors.
2015-06-09 23:05:45 +02:00
Tomas Hozza
24464a6255
Use LED blinking in MySensor where appropriate
...
Signed-off-by: Tomas Hozza <thozza@gmail.com >
2015-05-06 21:45:00 +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
7bd79f598b
Do nothing more after radio initialization fails.
...
Thanks @thozza
2015-04-20 23:15:41 +02:00
Henrik Ekblad
e30dea71ff
Fix sleep problem reported by Gary Stofer.
2015-04-18 20:57:15 +02:00
Tomas Hozza
192ccf9896
Fix logging of error if initialization of the radio fails
...
Signed-off-by: Tomas Hozza <thozza@gmail.com >
2015-04-12 21:33:48 +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
caaadf44cf
Update file headers.
2015-04-08 21:14:52 +02:00
Henrik Ekblad
d2dacd8670
Fix id request problem at startup
2015-04-02 13:46:54 +02:00
Henrik Ekblad
527b2332da
Correct initialization for gateway
2015-03-31 23:44:38 +02:00
Henrik Ekblad
e2b5e8155e
Merge branch 'OTA' into development
2015-03-30 22:24:53 +02:00
Henrik Ekblad
3a59929b8e
Initial untested OTA feature
2015-03-30 10:28:57 +02:00
tekka
6da96e7d40
adding back time handler
...
was missing in dev branch
2015-03-26 14:33:44 +01: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
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
7a2a5dad81
Message signing logic now integrated into sendRoute()
2015-03-16 23:15:54 +01:00
Patrick Fallberg
2d2eb74e0a
Fixed bug with storing signing table in EEPROM
...
eeprom_updated_block() uses a non-string-standardised order of
arguments.
2015-03-16 20:24:43 +01:00
Henrik Ekblad
73024ea4c9
Weird compile error for Patrick
2015-03-16 10:43:09 +01:00
Henrik Ekblad
c5760f72c6
Remove EEPROM buffer for routing information
2015-03-12 23:58:38 +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
7a1cdd06e1
Rename RFDriver to Transport
2015-03-09 23:45:05 +01:00
Patrick Fallberg
79be69b08d
Support for gateways to request signed messages
...
Various fixes and tweaks to permit a gateway to request
signatures from nodes.
The following messages will not be signed (nor verified):
* All signing-related handshake messages
* All ID-related handshake messages
* All ACKs
An important change is that the polarity for the signing request
flags stored in EEPROM has changed. '0' now means signing required.
This ensures that if the "ClearEepromConfig" sketch is executed,
signing requests will be turned off by default.
As a consequence, it is recommended to clear EEPROM if signing will
be used to ensure all nodes default to a non-signing state.
2015-03-08 11:20:33 +01:00
Henrik Ekblad
5aebe80711
Cleanup driver initialization
2015-03-03 00:24:13 +01:00
Henrik Ekblad
afce932cff
Remove the last "new" to reduce size
2015-02-27 22:17:05 +01:00
Henrik Ekblad
bf8102ecad
For discussion
2015-02-26 23:53:37 +01:00
Patrick Fallberg
961366313b
Fixed bug that caused the wrong message to be signed
...
process() altered the message buffer pending signing when
called in sign() causing the wrong message to be sent to the
signing backend. This is resolved by copying the original
message before processing incoming messages to make sure
the original message is kept. After it is successfully signed,
it is copied back to its original location again.
Also, the old 'ack' message buffer is renamed to tmpMsg to
indicate its use as a temporary message buffer for various
purposes.
2015-02-25 22:50:51 +01:00
Henrik Ekblad
1cd84bf0c8
Merge pull request #75 from mapnull/dev-hotfix-begin_requestNodeId
...
check valid parentNodeId before requestNodeId
2015-02-22 23:40:55 +01:00
Patrick Fallberg
2ab9822172
Bugfix for gateway signing requirements
...
Gateway now only indicate signing requirements for sensors
that in turn have indicated signing requirements.
2015-02-22 23:32:45 +01:00
Marcelo Aquino
2d8fddcb05
check valid parentNodeId before requestNodeId
2015-02-22 10:41:29 -03:00
Henrik Ekblad
70b476ede4
Bugfix: setVersion missing in sendWrite
2015-02-19 13:47:45 +01:00
Henrik Ekblad
8274188b43
Use eeprom_update_* when writing to EEPROM
...
Saves a few bytes and minimizes the number of write cycles.
2015-02-19 09:15:50 +01:00
Henrik Ekblad
e25f4974b2
Save some bytes by removing new when initalizing drivers
2015-02-19 09:09:38 +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
Henrik Ekblad
729cf8da5d
Bugifx: GW should not send presentation
2015-02-18 23:40:58 +01:00
Patrick Fallberg
644eac1712
Signing support implemented in the MySensors library
...
The dummy signing driver backend is used. But with this commit all
framework logic for managing signed messages in the MySensors
ecosystem is implemented and enables more sophisticated signing
backends to be added later on.
For a sensor (or gateway) that require a gateway to send signed
messages to it, add 'true' as the fifth argument to 'begin'.
The gateway will automatically inform a node of it's signing
requirements as soon as it receivs the nodes signing preference.
It is important to understand that if the gateway require
signing, it will in this implementation only require signing from
nodes that require signing by the gateway.
If the sensor requires signing from another node on the network
which it communicates directly with, it needs to send 'true' in
an internal message of type I_REQUEST_SIGNING.
2015-02-17 23:25:41 +01:00
Henrik Ekblad
8b6463608a
Fix merge error
2015-02-17 22:28:47 +01:00
Marcelo Aquino
f3c60a068f
process() uses sendRoute() for routing decisions
...
To keep routing decisions in one place, and avoid rewriting the same
code to add failedTransmissions count to process()
2015-02-13 02:01:18 -02:00