Commit Graph
1949 Commits
Author SHA1 Message Date
matzman b37cd045d5 Added XTEA and Pearson Hashing.
Improved message encryption for RF24.
2018-09-22 22:05:53 +02:00
Patrick Fallberg 15351cdd5b MySensors 2.3.0 release 2018-06-18 16:15:50 +02:00
Marcelo Aquino b84cd6ac4e Linux: Add rfm95 configure options (#1135) 2018-06-16 19:19:32 +02:00
Patrick Fallberg 88a0d70e4d Pre-register PR build statuses on GitHub (#1145)
This enables GitHub to show all statuses planned for execution.
2018-06-16 16:41:37 +02:00
seeers a28b7036ca Avoid data array overflow (#1142)
Occurs through packet collisions. Sometimes a wrong length is received.
2018-06-16 13:32:10 +02:00
tekka f934d7c46f Jenkins: Update CI scripts + Arduino IDE 1.8.5 (#1144) 2018-06-10 13:05:47 +02:00
tekka fc99db60e0 Jenkins: Update ESP8266 board defs 2.4.1 (#1143) 2018-06-10 10:59:48 +02:00
per1234 9f987a98f9 Remove redundant keyword identifiers (#1140)
The third field of keywords.txt is used to provide Arduino Language
Reference links, which are accessed from the Arduino IDE by
highlighting the keyword and then selecting "Find in Reference"
from the Help or right click menu. Adding values to this field that
do not match any existing reference pages results in a "Could not
open the URL" error.
2018-06-08 10:29:06 +02:00
Patrick Fallberg bbaa9399d6 Add software AES encryption to RFM95 transport HAL (#1054)
Also clean up capabilities flags a bit and fix test-sketch
for rfm95 to use proper encryption flag.
2018-05-30 00:09:24 +02:00
Mikael Falkvidd 59b15f5824 Fix syntax error in MyGatewayTransportEthernet (#1132)
Code doesn't compile very well if statements are missing
a semicolon at the end.

This error snuck in in
https://github.com/mysensors/MySensors/pull/1110
2018-05-18 15:46:12 +02:00
Patrick Fallberg 4e1d69dbb2 Refine cppcheck analysis (#1133)
- Details link on github for cppcheck now goes straight to the report
- Removed umatched suppression from the cppcheck suppression file
2018-05-18 08:35:43 +02:00
Avamander ba7027ce1d Add error message when HAL is undefined (#1131) 2018-05-16 10:34:14 +02:00
Mikael Falkvidd 0b9af6d713 Update cast in msg.set (#1130)
A while ago, MySensors changed to use int32_t
instead of long int (and similar for other data
types). This change was not applied to all examples,
causing some examples to fail compilation for
ESP8266 with the following message:

call of overloaded 'set(long int)' is ambiguous

This update changes the casts to match the new style.
This fixes
https://github.com/mysensors/MySensors/issues/1129
Thanks to https://github.com/henfri for reporting.
2018-05-14 21:32:11 +02:00
Marco Bakera f5ed26c778 Fixed some minor typos in comments (#1082)
* Fixed typo in the username
2018-05-06 20:22:56 +02:00
Martin Hjelmare c08b80cb90 Remove use of titles by CI Butler (#1125) 2018-05-04 18:35:00 +02:00
Patrick Fallberg d9e05eb39c Kill Gitler and make way for The Butler (#1124)
The Butler is a more polite and helpful replacement to the
grumpy old Gitler.
The Butler will do his utmost to assist new (and old)
contributors to the MySensors cause.
2018-05-04 09:38:24 +02:00
tekka 153850de80 Add transport sanity check before entering loop() (#1116) 2018-05-01 22:33:26 +02:00
tekka 3c07390323 Fix RFMxx deadlock and minor optimization (#1099) 2018-05-01 22:31:16 +02:00
Tombula 1c5853ce79 Add sleep forever by sleep(0); (#1113)
For battery powered sensors which wake up by the RST Pin its useful
to sleep the cpu forever. When using this command:
sleep(INTERRUPT_NOT_DEFINED, MODE_NOT_DEFINED, 0, false);
the code will be stripped down to hwSleep(0);.
But this will not sleep the cpu forever.
2018-05-01 16:59:04 +02:00
flopp999 6c9be97fa3 Word corrections (#1114)
* Word corrections
* Removed an enter
Thanks @flopp999 !
2018-05-01 16:57:37 +02:00
tekka bb7766197c Consolidate WiFi defines (#1110)
Great work @tekka007
2018-05-01 16:54:43 +02:00
Mikael Falkvidd e0988e6d9e Add more missing keywords (#1111)
This fixes
https://github.com/mysensors/MySensors/issues/1089
and also adds Doxygen and syntax highlighting
for the following keywords:
MY_GATEWAY_MQTT_CLIENT
MY_GATEWAY_SERIAL
MY_IP_GATEWAY_ADDRESS
MY_IP_SUBNET_ADDRESS
MY_MQTT_CLIENT_ID
MY_MQTT_PUBLISH_TOPIC_PREFIX
MY_MQTT_SUBSCRIBE_TOPIC_PREFIX
2018-04-10 20:22:39 +02:00
Mikael Falkvidd a8429868e7 Clarify default defines (#1106)
Moved example values after the @brief portion of Doxygen,
so the default (empty/undefined) values are visible
in Doxygen.
2018-04-10 14:58:11 +02:00
Mikael Falkvidd df1bb7fcc5 Add Doxygen for MQTT_USER and MQTT_PASSWORD (#1105)
This fixes
https://github.com/mysensors/MySensors/issues/1088
2018-04-10 07:56:17 +02:00
Mikael Falkvidd f2d9f72cf4 Fix spelling mistakes (#1104) 2018-04-09 23:31:50 +02:00
Mikael Falkvidd bb80732ead Add keywords that already have Doxygen (#1108)
Found some keywords that already have Doxygen comments
but were not present in keywords.txt
2018-04-09 23:27:19 +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
Mikael Falkvidd d1aa419efe Remove faulty wiring instructions from ESP gateways (#1100)
This fixes
https://github.com/mysensors/MySensors/issues/1096

https://www.mysensors.org/build/connect_radio
has been updated to include GPIOn instructions
(in addition to the existing Dn instructions).

Thanks to RWoerz for reporting this discrepancy.

Also, the "barebone" boot wiring has been moved to
http://bit.do/stupidurl
2018-04-07 10:42:52 +02:00
Mikael Falkvidd 9809eb6270 Add missing keywords 2 (#1087)
* Add missing keywords and blacklist

These keywords already exist in Doxygen and should be highlighted
in the Arduino IDE.

Some keywords should not be highlighed and are therefore added
to the blacklists at end of keywords.txt

* Sort keywords in each section

* Add blacklist of MY_MQTT_TOPIC_PREFIX
2018-04-05 22:25:05 +02:00
tekka 2994d83e53 RF24: Minor power optimization (#1069) 2018-04-04 20:48:36 +02:00
Marcelo Aquino 3c0b2727a5 Linux: Support keys in config file (#1093)
- Signing and encryption keys are set through the configuration file.
- SoftEeprom update.
2018-04-04 20:43:13 +02:00
thucar 4d90c00f98 MY_GATEWAY_TINYGSM support. GSM gateway using a modem module (#1097)
Added TinyGSM driver and GatewayGSMMQTTClient example
2018-04-04 16:40:11 +02:00
Marcelo Aquino b5a2fc226f Linux: RF24 interrupt trigger workaround (#1094)
Fix #870
2018-03-27 23:07:57 +02:00
Marcelo Aquino fb95a84e6f Linux: Minor log fix (#1092)
Use colored log messages only on the terminal.
2018-03-25 15:51:41 -03:00
Marcelo Aquino ea6d07cb79 Linux: Fix stability problem with ethernet (#1091)
- Fix a problem where mysgw stops working and consumes a lot of cpu.
- Fix bug with tcp sockets where socket descriptor wasn't being
  freed.
2018-03-24 08:16:44 +01:00
Marcelo Aquino 2175c993ef Linux: Use config file for gateway settings (#1061)
- The following settings can be use on the config file:
  - verbose=[debug,info,notice,warn,err] - Logging verbosity.
  - log_file[0|1] - Enable logging to a file.
  - log_filepath=(FILE) - Log file path.
  - log_pipe=[0|1] - Enable logging to a named pipe(aka fifo).
    Use this option to view your gateway's log messages from the
    log_pipe_file (defined below).
    To do so, run the following command on another terminal:
    - $ cat "log_pipe_file"
  - log_pipe_file=(FILE)
  - syslog=[0|1] - Enable logging to syslog.
  - eeprom_file=[/etc/mysensors.eeprom]
  - eeprom_size=[1024]
- Change some mysgw parameters:
  - Added:
    - -q, --quiet:  for quiet mode, disable log messages written to the
    terminal.
  - Removed:
    - -d, --debug: removed, log messages are now enabled by default.
  - Replaced:
    - -b, --background: replaced by --daemon
- isatty() is no longer used, log messages by default are printed to
  stderr unless the gateway is started with --quiet (#1022)
- MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
  but to the configuration file
2018-03-23 11:00:34 +01:00
Mikael Falkvidd 06f8d2b7e5 Add detection of missing keywords to gitler (#1085) 2018-03-22 08:26:27 +01:00
Mikael Falkvidd c9c461846a Add missing keywords (#1084)
A blacklist is available at the end of keywords.txt

I decided to blacklist all the LINUX keywords. I guess people
could use the Arduino IDE to edit the sketch for the raspberry
pi gateway, but I'm not sure we should encourage that.

I'll add gitler support for auto-detecting missing keywords
in a separate PR.
2018-03-21 15:08:02 +01:00
Mikael Falkvidd 7a33082eaf Simplify doxygen for ./configure (#1080)
No need to grep when we have a command that outputs
exactly what we want.
2018-03-12 11:47:39 +01:00
kvoit 3d093e6bed Fix default IRQ pins on ESP8266 that prevent MCU from boot (#1076)
* Derive default interrupt from configured instead of default pin

Derive DEFAULT_RFM69_IRQ_NUM from MY_RFM69_IRQ_PIN instead of
DEFAULT_RFM69_IRQ_PIN so that _NUM does not have to be defined
if _PIN is redefined

* Change default IRQ pin for RFM69/95 on ESP8266 to GPIO5=D1

The originally defined pin GPIO2 prevent ESP8266 from booting,
since it has to be pulled high for booting and DIO0 from the
RFM69 is defaul low.
For this reason, it is improbably that anyone is using the default
and would be affected by this change.
2018-03-08 17:56:22 +01:00
Patrick Fallberg 3f2d292142 Add git commit message hook to the mystools bundle (#1067)
The message hook validates that the c ommit message follows
the MySensors requirements.
More specifically, it checks that
- Commit message does not exceed a line length of 72 characters
- Commit title start with an uppercase character
- Commit title does not end with a period ('.')

Fixes #672
2018-03-06 08:32:54 -08:00
Patrick Fallberg eb839464b8 Development version 2.3.0-alpha (#1073) 2018-03-04 17:49:51 +01:00
tekka c805f77f20 AVR: Fix OTA logging (#1074) 2018-03-01 20:27:07 +01:00
d00616 fe42dbdcca Nvm fota (#1018)
* New Firmware OTA for NVM/mcuboot (nRF5)

- Support for mcuboot (nRF5)
- Support for run length encoded data
- Support for smaller FIRMWARE_BLOCK_SIZE, if required

* Update NVM

* New MY_LOCK_MCU for NRF5

* Test with Sensebender GW + Sensebender Micro was successful
2018-02-28 20:03:34 +01:00
Mikael Falkvidd 599c0bada6 ESP8266 Gateway examples: clarify inclusion pin (#1065)
The comment for inclusion mode pin and the definition of
MY_INCLUSION_MODE_BUTTON_PIN did not match.

GPIO5 should be safe to use, while GPIO3 is used for the
UART which might result in conflict.

This fixes
https://github.com/mysensors/MySensors/issues/993
2018-02-22 12:04:03 +01:00
tekka 57eca4f4af Transport code harmonization (#1072) 2018-02-20 12:32:17 +01:00
tekka b51981ab3d Fix MY_CORE_ONLY: Initialize HW (#1070) 2018-02-20 12:32:03 +01:00
tekka 345d6d7d11 Fix variable names, minor updates (#1071) 2018-02-19 13:26:14 +01:00
tekka a0af38a0d8 RFM69: Updates and optimizations (#1049)
* RFM69: Updates and optimizations

* RFM69: Updates and optimizations
2018-02-18 21:06:28 +01:00
tekka 0bc3ac9cb3 RFM95: Updates and optimizations (#1063) 2018-02-18 21:05:25 +01:00