Commit Graph

80 Commits

Author SHA1 Message Date
Olivier
253109d3ff Upate CI and HW defs (#1530) 2022-07-24 10:55:35 +02:00
Sinisha Djukic
3308df3a13 Add sleep handler to optimize low-power sleep (#1418)
* Add sleep handler to optimize low-power sleep

* Add sleep handler to optimize low-power sleep

Committer: Sinisha Djukic <s.djukic@gmail.com>

Author:    Sinisha Djukic <s.djukic@gmail.com>
Date:      Wed May 13 08:51:48 2020 +0300
Committer: Sinisha Djukic <s.djukic@gmail.com>
	modified:   MyConfig.h
	modified:   core/MySensorsCore.cpp
	modified:   core/MySensorsCore.h
	modified:   keywords.txt

* Whitespace fixed

* Fixed compiler warning

Committer: Sinisha Djukic <s.djukic@gmail.com>
Author: Sinisha Djukic <s.djukic@gmail.com>

Co-authored-by: Djukic Sinisha (INST/RBR2-BG INST/ESU) <djs1wa3@bosch.com>
2020-05-13 22:49:38 +02:00
Olivier
dd91aeb9c3 Library & CI maintenance (#1394) 2020-02-26 12:28:37 +01:00
Olivier
40f4deb18c Code maintenance (#1309)
* Fix issues after CPPcheck 1.88 update

* Code maintenance
2019-07-20 14:08:33 +02:00
Mikael Falkvidd
f36c4ae130 Rename "soft ack" to echo (#1292)
* Rename "soft ack" to echo

The ack parameter is often confused with what might be called
"hardware ack"
(see https://forum.mysensors.org/post/34263 for one of many
lengthy discussions)

This change should make it harder to confuse echo with the
hardware ack, and reflects more accurately what will actually
happen.

This fixes https://github.com/mysensors/MySensors/issues/1103

I hope I have found all places where the naming needs to be
changed, and that I haven't inadvertently renamed any of the
*real* ack stuff.

Thanks to @tekka007 for reviewing the changes
and catching my mistakes.
2019-06-06 09:00:14 +02:00
Olivier
1fa4728f61 Transport and crypto HAL update (#1282) 2019-04-28 14:22:25 +02:00
Yveaux
e1d22d5d3a Added getSleepRemaining to core (#1286) 2019-04-26 08:52:29 +02:00
Olivier
932d4fae9b Fix GW transport (#1281) 2019-04-22 18:54:04 +02:00
Olivier
a1282f358a Code maintenance (#1279)
* Code maintenance

* Code maintenance
2019-04-20 16:22:12 +02:00
Olivier
7d907d17cd Add CPU frequency to core debug info (#1275) 2019-04-10 16:04:52 +02:00
Olivier
e1259b76fc Enable heartbeat for GW-only mode (#1273) 2019-04-10 14:41:59 +02:00
tekka
71b06987ab Code maintenance (#1261) 2019-01-27 20:58:06 +01:00
tekka
449bb4f3c9 Update recursive wait() call warning (#1252) 2019-01-10 11:16:26 +01:00
tekka
3664229437 Debug: Recursive wait() calls (#1249) 2019-01-04 15:50:17 +01:00
tekka
06bdb991b6 Display release number (#1217) 2018-11-03 10:04:32 +01:00
tekka
8e8f44b402 Code updates & harmonization (#1201) 2018-10-21 16:55:24 +02:00
tekka
b346214b19 Allow flash strings in present() to save RAM (#1198) 2018-09-04 08:00:38 +01:00
tekka
6d24ab1bb5 Improve transport function & debug messages (#1191) 2018-08-29 14:52:01 +02:00
tekka
6ffe29cb5f Code maintenance (#1186) 2018-08-22 20:50:16 +02:00
tekka
153850de80 Add transport sanity check before entering loop() (#1116) 2018-05-01 22:33:26 +02:00
tekka
eaf1b9452b ESP32: Support HW (#865)
This fixes https://github.com/mysensors/MySensors/issues/968
2018-04-07 14:46:01 +02:00
tekka
b51981ab3d Fix MY_CORE_ONLY: Initialize HW (#1070) 2018-02-20 12:32:03 +01:00
tekka
dea0fd50ca Fix smartSleep() (#1060) 2018-02-10 18:49:31 +01:00
tekka
af3452f91c Correct misspells (#1028) 2018-01-11 22:26:08 +01:00
tekka
a80879e056 Fix FOTA updates with smart sleep (#999) 2017-12-06 23:02:57 +01:00
tekka
9663d4c6b7 Harmonize type definitions (#970) 2017-11-04 14:38:33 +01:00
tekka
a00857a8c2 Update Debug message tables (#962) 2017-10-29 10:19:09 +01:00
Olivier
f5dce5b61b Disable splash screen on GW (#931) 2017-09-19 14:33:55 +02:00
Olivier
0ed558f1d0 Make debug prints portable (#929) 2017-09-17 20:54:20 +02:00
Olivier
b10cf85eb0 Revert VER removal from CP string (#905) 2017-08-01 08:13:06 +02:00
Olivier
10ef62307b MySensors splash screen (#889) 2017-07-24 21:42:44 +02:00
Patrick Fallberg
3e75b52c33 Fixed indentations using astyle (#890) 2017-07-07 14:36:14 +02:00
Rainer Clasen
ff0953dd05 Add progmem support for String messages (#875)
added variant of MyMessage::set and sendSketchInfo that accept a
string that's stored in PROGMEM.

This avoids the need to (temporarily) store strings in memory to get
them into a message.
2017-06-21 23:41:48 +02:00
Marcelo Aquino
28c4f3f19e Signing improvements package (#871)
* Signing support with MAX_PAYLOAD>32

Support in the signing backends to handle configurations
where MAX_PAYLOAD is more than 32 bytes.

Fixes #748

* Support big message signatures

Support for signing messages larger than 32 bytes.
This is not fully testable with the current version of
the library but the change would add theoretical support
for signing any sized messages.

Fixes #749

* Have gw properly indicate whitelisting preferences

If the gateway hold a signing whitelist, inform all
nodes of this requirement and not just nodes that hold
whitelists themselves.

Fixes #806

* Harden security

The flag MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL
has been removed. Gateway will now request signatures
from everyone by default.
In addition to this, no nodes in the network will allow
clearing of signing/whitelisting preferences by OTA
commands by default.
If the old behaviour is needed (suitable for gradual
signing roll out and development purposes) a new flag,
MY_SIGNING_WEAK_SECURITY can be set.

Fixes #807

* Signing debug messages rewritten

All signing related debug has been rewritten to
better match other core debug printouts.
Also, backends are updated to have a smaller
implementation delta.

* Simplified signing option implemented

Enable by MY_SIGNING_SIMPLE_PASSWD. Signing, and signing requirements
will be enabled, as will encryption. Whitelisting is optional.
The value provided to MY_SIGNING_SIMPLE_PASSWD is used as HMAC and AES
key. Whitelists use the first 8 bytes of the password and the ninth
byte from the node ID as serial.
Password is required to be at least 8 characters wide. It is zero
padded if it is not long enough to cover the AES (16 bytes) and HMAC
(32 bytes) keys. It is not recommended to have a password shorter than
32 bytes, and there is no need for a password longer than 32 bytes.

* Add documentation section for signing debug

* Add nRF5 encryption to simple signing option

* Restructure MySigning documentation

* Minor fixes for Linux
2017-05-31 17:13:29 +02:00
Patrick Fallberg
7e6db413c7 Security personalizer rewritten (#794)
* Removed ability to lock data section
* Introduced "guided mode" to simplify process
* Refactored the sketch to be less monolithic
* Print details and instructions in tables
* Use device unique ID as serial when
* Calculate and store personalization checksum
* Print serial in a copy+paste friendly manner (fixes #804)
* Clarify meaning of UART confirmation (fixes #805)
2017-04-02 15:37:21 +02:00
Olivier
b132a8a81e Transport update (#722)
* Major transport rework

* Adjust signal report calculations

* Minor driver optimizations

* Implement sanity check in legacy RFM69 driver

* Additional RFM69 rework

* RFM95 encryption

* Polishing
2017-03-28 20:31:08 +02:00
Olivier
61a415c422 Code cleanup (#787)
* Cleanup Core

* SAMD adjustments
2017-03-15 19:05:17 +01:00
Olivier
9041c8ba3d Fix getControllerConfig() (#737) 2017-01-15 16:27:49 +01:00
Olivier
dd9dff77ed Minor optimizations & code harmonization (#708) 2016-12-28 22:47:41 +01:00
Olivier
61e6cecb3f Fix regression, adjust parameters, typos (#699) 2016-12-20 23:15:11 +01:00
Olivier
38013ce5ac Fix bug preventing msgs from GW-attached sensors (#698) 2016-12-19 22:31:33 +01:00
Olivier
37881d56ba Fix Cppcheck warnings (#684) 2016-12-10 12:46:52 -08:00
Patrick Fallberg
8e1ef13804 Repo restyled using astyle (#683)
The rules are in .tools/astyle/config/style.cfg
and can also be reviewed at
https://www.mysensors.org/view/260#coding-guidelines-core-library
2016-12-07 23:44:29 +01:00
Olivier
d4c4ab82ea Fix debug message, add test sketch (#682) 2016-12-07 21:48:37 +01:00
Olivier
37b7885c7e Merge development & additional optimizations 2016-11-20 21:09:00 +01:00
Olivier
399734502d Harmonize OTA code, reboot when flash is idle 2016-11-16 18:48:19 +01:00
Olivier
d5039de270 Merge development & Fix variable 2016-11-15 22:38:38 +01:00
tekka007
ba80a7e7b1 Core optimizations 2016-11-14 22:53:30 +01:00
tekka007
9ec97a6eaf Fix IO/HAL calls 2016-11-14 15:26:58 +01:00
Olivier
58e9d5864f Merge development 2016-11-14 12:34:31 +01:00