Commit Graph
116 Commits
Author SHA1 Message Date
Henrik Ekblad 51d22c6936 Change argument order in presentation 2015-06-10 23:56:40 +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
Henrik Ekblad 50c8c44b08 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MySensor.cpp
2015-02-12 22:42:50 +01:00
Henrik Ekblad 9fecc53dfb Merge pull request #62 from mapnull/hotfix-autoFindParent_response
Accept a new parent only when autoFindParent is 1
2015-02-12 22:23:13 +01:00
Henrik Ekblad 80bd4df230 Merge pull request #61 from mapnull/hotfix-parentId_eeprom
Write parentNodeId to eeprom only when differ
2015-02-12 22:15:37 +01:00
Henrik Ekblad 6f0ea1f943 Merge branch 'master' into development 2015-02-12 22:11:42 +01:00
Henrik Ekblad c8883c61e6 Request parent missing in setup() 2015-02-12 21:58:16 +01:00
Marcelo Aquino d92918c80a Accept a new parent only when autoFindParent is 1
In a gateway, I_FIND_PARENT_RESPONSE messages was returning as true by
process(). With this commit it will return as false, is this the right
expected behavior?
2015-02-11 12:22:27 -02:00
Marcelo Aquino 57e8947218 Write parentNodeId to eeprom only when differ 2015-02-11 11:42:07 -02:00
Marcelo Aquino 652d589fe3 add node to routing table before send an ack 2015-02-11 10:49:05 -02:00
Henrik Ekblad b238a2e61e Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-10 23:38:05 +01:00