Commit Graph
1821 Commits
Author SHA1 Message Date
Patrick Fallberg 901258f165 Implement Jenkins pipelines as code (#948)
Jenkins has been updated with new jobs that scan and execute
Jenkinsfiles. These Jenkinsfiles encapsulates all logic for building
and validating the commits in both pull requests and merged pull
requests.

Filestructure is as follows:
  .ci/Jenkinsfile - This is the main Jenkinsfile that handles normal
                    pull request builds as well as merged pull request
                    post-validation.
		    Any repository in the MySensors GitHub organization
		    can implement this file and Jenkins will pick up
		    and execute it automatically.
  .ci/Jenkinsfile-nightly - This perform merged pull request
                            post-validation using the nightly builds of
			    the Arduino IDE to provide early compliancy
			    status of the MySensors library for
			    upcoming releases of the Arduino IDE
  .ci/ - This folder contain all the auxiliary scripts executed by the
         Jenkinsfiles as well

Fixes #934
2017-10-13 20:55:02 +02:00
d00616 8cb9b26920 NRF24 disable DYN_ACK support (#940) 2017-10-01 22:39:09 +02:00
d00616 f8e132fdb8 NRF5 fix 8 bit inttype handling (#943) 2017-10-01 20:40:32 +02:00
d00616 3ca9b56380 Fix uninitialized state handling (#939) 2017-10-01 09:41:36 +02:00
d00616 1b1cf8ff9c Nrf5 improvements (#938)
* Fix NRF5_ESB_readMessage, allways enable radio

* NRF5: fixes and improvements

- Compiles with arduino core for nRF52 (primo)
  MY_RADIO_NRF5_ESB stays unsupported with primo!

- Split ACK negation flag into
    MY_NRF5_ESB_REVERSE_ACK_TX
    MY_NRF5_ESB_REVERSE_ACK_RX

- MY_RADIO_NRF5_ESB changes to act more than NRF24

- MY_RADIO_NRF5_ESB better support for powerdown/standby

- Moved initialization from MyMainNRF5 to hwInit()
2017-09-30 22:55:55 +02:00
Olivier 9ee837199e MyCapabilities: Add missing arch identifiers (#936) 2017-09-22 10:55:25 +02:00
Olivier 5164af7edc ESP8266: Fix example compilation error (#932) 2017-09-19 22:48:54 +02:00
Olivier f5dce5b61b Disable splash screen on GW (#931) 2017-09-19 14:33:55 +02:00
d00616 8412a3d360 New OTA debugging and logging feature (#913) (#913) 2017-09-18 20:58:44 +02:00
Olivier 0ed558f1d0 Make debug prints portable (#929) 2017-09-17 20:54:20 +02:00
Patrick Fallberg 9e5a1e32cb Correct NRF24 PA levels docs (#924)
Fixes #907
2017-09-14 10:49:58 +02:00
Olivier 067519c500 Fix sanity check option (#923) 2017-09-07 18:10:55 +02:00
Olivier 973b4b8423 Fix compiler warning (#922) 2017-09-05 19:35:13 +02:00
Olivier a9ef29fa67 Update hwUniqueID() function (#921) 2017-09-04 23:37:11 +02:00
Olivier d74e9bd212 Autogenerate release versions (#920) 2017-09-04 22:37:50 +02:00
d00616 e0412f8c98 Merge pull request #917 from d00616/nrf5_fix_sleep_caluclation
NRF5: Fix sleep() (#917)
2017-08-29 19:38:22 +02:00
Frank Holtz 46557d129e NRF5: Fix sleep()
Fixes commit 5776d2b650
      NRF5: Fix and improve sleep(0) (#909)
2017-08-29 18:43:49 +02:00
Patrick Fallberg df34c00118 Skip check personalization with simple passwd flag (#915)
Personalization does not need validation if the simple password
security flag is set.

Fixes #914
2017-08-29 09:32:23 +02:00
d00616 5776d2b650 NRF5: Fix and improve sleep(0) (#909) 2017-08-29 09:29:03 +02:00
Olivier 463358209d Update STM32 support (#908) 2017-08-13 08:11:14 +02:00
Marcelo Aquino d291a3661b RPi: Fix GPIO Layout detection (#895) (#906) 2017-08-12 08:58:02 -03:00
bilbolodz d17b9dd6f1 Added posibility to use non standard SPI Flash (#899)
Added possibility to tune flash commands and parameters
in case off use non standard SPI flash for OTA
2017-08-03 09:01:05 +02:00
Olivier b10cf85eb0 Revert VER removal from CP string (#905) 2017-08-01 08:13:06 +02:00
Patrick Fallberg f3ab329ad3 Refactor the Doxygen structure (#880) 2017-07-31 18:42:26 +02:00
d00616 1cd2c6df05 Update radio defines in examples (#901) 2017-07-31 18:37:01 +02:00
Olivier 10ef62307b MySensors splash screen (#889) 2017-07-24 21:42:44 +02:00
Marcelo Aquino 90793e734c Prepend debug message only on serial gateway (#882) 2017-07-24 21:40:46 +02:00
Rainer Clasen 6f10745f0a Keep Serial from being linked when disabled (#877)
Even with MY_DISABLED_SERIAL defined, the linker is still adding the
Serial object to the binary.

That's because a) the MySensors *.cpp files are actually included
into the sketch and compiled as part of it (and not compiled
separately and then linked) and b) due the the default(?) behavior of
the linker (https://github.com/arduino/Arduino/issues/4579).
2017-07-24 21:33:46 +02:00
Krister W 8f58b18e1a I2C EEPROM support for OTA using dual Optiboot #802 (#834)
* Added support for I2C EEPROM OTA

* EEPROM OTA now uses extEEPROM as driver

* Compiler warning fix

* Style check fixes

* Fix doxygen warnings of I2CEeprom

* Use bool instead of boolean in I2CEeprom shim

* Fix re-merged style problem
2017-07-24 21:32:47 +02:00
Mikael Falkvidd git@mjo.se b85c11c383 Move pubsubclient files to PubSubClient (case sensitive) 2017-07-24 15:01:20 +02:00
Patrick Fallberg 3e75b52c33 Fixed indentations using astyle (#890) 2017-07-07 14:36:14 +02:00
Mikael Falkvidd a941827157 Use bool instead of boolean in drivers (#888)
In the Arduino IDE, boolean is an alias for bool.
The Arduino IDE might deprecate boolean in the future. See
https://github.com/arduino/Arduino/issues/4673 for details.

Command:
find drivers -type f | xargs sed -i 's/boolean/bool/g'
2017-07-05 16:23:27 +02:00
Patrick Fallberg 4ea0c88ac8 Rewrite security personalization data validation (#885)
* Data is not validated on Linux systems
* If encryption is enabled, data is also validated even if signing
  is disabled.
2017-07-04 15:49:57 +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 e5221689af Fix keywords.txt (#883)
Replace spaces with tabs.
2017-06-21 20:04:12 +02:00
Marcelo Aquino 95d7c003cb Fix UDP on Ethernet gateway (#858)
- Fix UDP send
- Add a default value for MY_IP_GATEWAY_ADDRESS and
  MY_IP_SUBNET_ADDRESS, making them optional when using MY_IP_ADDRESS
- Add support for MY_IP_GATEWAY_ADDRESS and MY_IP_SUBNET_ADDRESS to
  W5100
2017-06-13 22:59:01 +02:00
Olivier 4820475e5c NRF5: Enable critical section (#879) 2017-06-13 18:49:14 +02:00
Rainer Clasen 59337b19fe Memory optimizations in signing (#874)
* Sha256 driver cosmetics

cosmetic cleanups:
- use actual define that was used to allocate the array
- remove unused file globals

* Save memory by eliminating sha256_hash array

eliminated sha256_hash array to save memory. Instead pass the
Sha256Class result pointer.

There seems to be no use for the extra sha256_hash array as it was
zeroed exactly at the same time, the Sha256Class result was invalidated
(by calling signerSha256Init)

If the result needs to stay around while another sha is calculated,
it's better to have the user taking care of this.

* Moved hmac methods and buffers to separate class

This allows saving the buffer memory if no hmac is needed ... eg. with
the public Signing API.
2017-06-07 08:25:56 +02:00
Patrick Fallberg 29fd6d6345 Let signing backend validate personalization (#873)
For soft signing, let backend handle checksum verification of
personalization data. This ensures that the backends sha256 library is
used and avoids an unnecessary instanitation of the public library.
For atsha204 signing, no checksum verification is made, just chip
locking flags.

Fixes #872
2017-06-06 09:51:37 +02:00
d00616 e6925f69e8 Update more usage of hwGetentropy() (#869)
* Update more usage of hwGetentropy()

* Add hwGetentropy() to Teensy 3.5/3.6
2017-06-03 21:58:40 +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
d00616 4c0661e410 Fix NRF5 radio encryption (#868) 2017-05-29 22:25:43 +02:00
Olivier 60aab1b87b Fix ext. EEPROM update() (#866) 2017-05-27 21:13:30 +02:00
Marcelo Aquino 53d485828c Linux: Fix hwRandomNumberInit() (#861)
Fix #860.
Makes hwRandomNumberInit() independent of hwInit().
2017-05-23 20:34:59 -03:00
d00616 aeceb0b683 Fix rasperry pi hwGetentropy() (#856) 2017-05-23 16:41:46 -03:00
Olivier 97ed21ef3b Teensy3.5/3.6: Use TRNG for random seed (#859) 2017-05-23 20:37:12 +02:00
Olivier b5595e870d Teensy3: Define default radio pins (#857) 2017-05-21 22:22:01 +02:00
Olivier b74805251e Fix RFM69 driver (#855) 2017-05-21 21:39:44 +02:00
Olivier 00a4deddd6 Teensy: Update hwCPUVoltage() (#853) 2017-05-21 16:12:36 +02:00
Marcelo Aquino fb3d936d4c Linux: Binds to MY_IP_ADDRESS in client mode (#849) 2017-05-21 14:27:22 +02:00