Commit Graph
160 Commits
Author SHA1 Message Date
Embedded Innovation f84960dc28 Fix watchdog sleep calculation (#814)
Round requested sleep time up to next multiple of 16ms, to sleep at
least requested time.
Sleep time of 0 will return immediately.
Fixed watchdog sleep time calculation. AVR libc watchdog time
implementation is inconsistent, and requires larger flash/ram usage.
2017-04-02 19:49:57 +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
Embedded Innovation 3350d79fe6 AVR sleep with external interrupts fixes (#813)
Fixing #812, #811, #809
2017-04-01 15:05:57 +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 cde5d8f7c3 Add STM32F1 HW support (#795) 2017-03-25 20:01:31 +01:00
Dustin ef42b3b534 MQTT Client Retain Feature (#793)
Optionally allow MQTT client to publish specific messages with
the retain flag set.

default/current behavior should not be impacted.
2017-03-21 14:47:07 +01:00
Olivier 61a415c422 Code cleanup (#787)
* Cleanup Core

* SAMD adjustments
2017-03-15 19:05:17 +01:00
Olivier 481bd367f3 Add function to retrieve unique ID (if present) (#780) 2017-03-14 18:54:32 +01:00
Soef e7ae5d144e UDP/TCP client mode repaired (#766) 2017-03-07 18:55:40 +01:00
Olivier 7824e12823 I2C eeprom write fix for SAMD (#786)
* I2C eeprom write fix for samd

* Implement extEEPROM library for SAMD
2017-03-06 16:45:58 +01:00
Olivier 9ecb78598b Calling WiFi.config() before WiFi.begin() (#772) 2017-02-13 07:17:43 +01:00
Thomas Mørch a34f2e518e Added pin setup for RFM69 reset / dio5 (#768) 2017-02-07 15:59:55 +01:00
Olivier fd417b66b2 Update doxygen (#767) 2017-02-03 21:32:53 +01:00
Olivier 4380d6618f Workaround for AVR-specific compiler issue (#759) 2017-02-01 20:45:42 +01:00
Olivier eeb880957c Bump version to 2.2.0-beta (#754) 2017-01-19 19:13:09 +01:00
Olivier c90ff65b53 MySensors 2.1.1 release (#746) 2017-01-17 23:58:02 +01:00
Olivier 7abbfd7b47 Merge Master into Dev (#745)
* Fix spi flash error when compiling in Arduino IDE 1.6.6

* Bump minor version

* Fixed "invalid suffix on literal" warning

* Fix addressing bug in _doSign bitfield

* Make sure nodes not supporting signing informs GW

A node that does not support signing, still needs to inform the
gateway about this to make sure the gateway carries a valid signing
requirement table when a node Id that was requiering signing stops
doing this.
This fixes #286.

* Prevent SecureActuator from accepting ACKs as commands

As ACKs are not currently signed, allowing ACKs as commands
is a considerable security hole for this sketch. This is now resolved.

* Backport of bugfix (#259) in repeaters when forwarding signed messages

* Bumped version to 1.5.2

* Corrected doSign variable name (was _doSign)

* Bumped version to 1.5.3

* Add NULL termination to payloads

Messages addressed to "this" node, will have a null char
appended to the payload after message verification is
done, because some "getters" assume the message being a
string.
2017-01-17 23:23:02 +01:00
Olivier c2dfedc1a9 Revert "Bump version to 2.2.0-beta" (#744) 2017-01-17 22:44:11 +01:00
Olivier e66989138b Fix signing presentation bug (#740) 2017-01-16 19:49:12 +01:00
Olivier 815084b4fa AVR: Restrict fast pin function use (#739) 2017-01-15 20:10:15 +01:00
Olivier 952edf7ed7 Rename MyHwATmega328 to MyHwAVR (#738) 2017-01-15 18:10:15 +01:00
Olivier 9041c8ba3d Fix getControllerConfig() (#737) 2017-01-15 16:27:49 +01:00
Marcelo Aquino 2e0f6b6229 Linux: Add support for SPIDEV (#734)
RPi and Linux refactor.

Add GPIO Sysfs for GPIO operations.

Update configure script.

Fix some cppcheck warnings.

Add serial emulation that prints to stdout.

Fix some file headers.
2017-01-14 23:50:21 +01:00
Olivier aa5cecfca1 OTA: Add incoming FW block check (#718) 2017-01-03 20:19:00 +01:00
Olivier 570b6079b6 Bump version to 2.2.0-beta (#713) 2016-12-31 10:48:38 +01:00
Olivier add3f5febe Add OTA update debug info (#711) 2016-12-30 12:37:42 +01:00
Olivier 8fabae979a Harmonize transport code (#710) 2016-12-29 14:50:12 +01:00
Olivier 01711becd1 Update RFM95 driver (#709) 2016-12-29 14:24:48 +01:00
Olivier dd9dff77ed Minor optimizations & code harmonization (#708) 2016-12-28 22:47:41 +01:00
Patrick Fallberg 1040fbebc5 Refactor signing backend (#690)
Cleaned up the AES driver and removed some cppcheck isues
in the process.
2016-12-25 16:12:40 +01:00
Olivier 61e6cecb3f Fix regression, adjust parameters, typos (#699) 2016-12-20 23:15:11 +01:00
Olivier d204929937 Use RNG for randomSeed(), ADC_MODE() switch (#696) 2016-12-19 23:27:10 +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
Marcelo Aquino 62b74bb88a RPi: Improve board revision detection (#681)
Revision detection is done at runtime, the configure script has been
simplified to reflect this.
2016-12-07 21:17:59 +01:00
Olivier fdbb285dee Fix payload length verification (#680) 2016-12-06 15:45:27 +01:00
Olivier f59be0aa2a ESP8266: remove redundant EEPROM check (#668) 2016-12-03 16:53:36 +01:00
Henrik Ekblad 3570a507a6 Fix regression MY_NODE_ID (#669) 2016-12-03 15:57:23 +01:00
Patrick Fallberg ea65c5b150 Move Doxyfile to repository root (#674)
This makes most tools/plugins for Doxygen work without
much adjustment.
Also resolved some Doxygen warnings.
2016-11-29 11:18:49 +01:00
Henrik Ekblad 505c1facc5 Merge pull request #663 from tekka007/FixRoutingTable
Refine routing table update
2016-11-26 15:31:28 +01:00
Olivier cca055fdae Refine routing table upgrade 2016-11-26 10:05:21 +01:00
Olivier b16839cc5d ESP8266: Reorganize EEPROM handling 2016-11-26 09:30:37 +01:00
tekka007 aff8deb8bf Merge development 2016-11-24 21:01:08 +01:00
Henrik Ekblad 26b485cb0d Merge pull request #651 from tekka007/VersionBump
Bump version to 2.1.0
2016-11-24 16:01:38 +01:00
Olivier 37b7885c7e Merge development & additional optimizations 2016-11-20 21:09:00 +01:00
tekka007 ec09161c42 AVR: Use avr-libc eeprom update functions 2016-11-20 16:27:30 +01:00
tekka007 d8f8ea3418 Bump version to 2.1.0 2016-11-20 13:17:13 +01:00
Henrik Ekblad 3f33d0d4a1 Merge pull request #638 from marceloaqno/rpi-arduino-libs
RPi: Improve build process
2016-11-19 19:32:40 +01:00