Commit Graph

1914 Commits

Author SHA1 Message Date
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
Marcelo Aquino
54fb250ab2 Linux: Serial minor update (#1053)
- The symlink name for the PTY device is set using --my-serial-port
  making --my-serial-pty deprecated
- Replace MY_LINUX_IS_SERIAL_PTY with MY_LINUX_SERIAL_IS_PTY
- MY_DEBUGDEVICE can be used to print debug messages from MySensors
  (as it is currently in the other architectures)
- Rename SerialSimulator class to StdInOutStream
- Remove old deprecated option --my-radio
2018-02-13 13:22:27 +01:00
tekka
6794c72ecd Restructure transport HAL (#1062) 2018-02-11 16:48:11 +01:00
Patrick Fallberg
8a1f5f4cf9 Revamp the simple password flag and rPi fixes (#1056)
MY_SIGNING_SIMPLE_PASSWD is now
called MY_SECURITY_SIMPLE_PASSWD.
MY_SIGNING_SIMPLE_PASSWD only affects signing,
and a new flag, MY_ENCRYPTION_SIMPLE_PASSWD
only affects encryption.
MY_SECURITY_SIMPLE_PASSWD enable both these flags.

The rPi port has been improved to support more
security settings and it is now also possible to
enable encryption for RFM69 transport.

Documentation has been improved to provide a
"Security" section under "Library customisation"
which has a table that summarize all security
related configuration flags, and the corresponding
rPi configuration flags.

The signing personalization documentation has been
updated to include the procedure for rPi.

Fixes #1055
2018-02-11 11:22:48 +01:00
Patrick Fallberg
968b2daff7 Various CI-pipeline fixes (#1042)
* Let Gitler produce a changelog for release builds
* Fix bug in publishing release documentation
* Fix bug in labeling documentation
   (now uses tag data for better tracability)
* Update copyright in documentation
2018-02-10 20:43:18 +01:00
tekka
72b71c8fc8 AVR: Harmonize code (#1059) 2018-02-10 18:58:20 +01:00
tekka
dea0fd50ca Fix smartSleep() (#1060) 2018-02-10 18:49:31 +01:00
Miloslav Kazda
7ed54423fb RFM69 - add keyword MY_RFM69_IRQ_PIN (#1052)
* Add MY_RFM69_IRQ_PIN keyword

Add MY_RFM69_IRQ_PIN into keywords.txt
2018-02-02 12:37:53 +01:00
Kartik Arora
14d8accf37 Add URL option for MQTT broker in example sketch (#1033) 2018-01-30 21:04:37 +01:00
Mikael Falkvidd
8fbdca4452 Doxygenize MyMessage / Message manipulation (#1035)
* Fix cppcheck issues

Fixes the following cppcheck issues:
examples/SecretKnockSensor/SecretKnockSensor.ino
305	variableScope	398	style
The scope of the variable 'timeDiff' can be reduced.

examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino
127	variableScope	398	style
The scope of the variable 'led_state' can be reduced.

* Doxygenize MyMessage / Message manipulation

This should replace the static documentation at
http://korturl.nu/stupid

I have enabled existing comments and added new comments where
necessary. Feedback on syntax and contents is welcome.
2018-01-30 20:47:11 +01:00
tekka
eff1136733 RFM69: Fix compiler warning (#1046) 2018-01-28 14:41:03 +01:00
Mikael Falkvidd
06269dd949 Fix cppcheck issues (#1036)
Fixes the following cppcheck issues:
examples/SecretKnockSensor/SecretKnockSensor.ino
305	variableScope	398	style
The scope of the variable 'timeDiff' can be reduced.

examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino
127	variableScope	398	style
The scope of the variable 'led_state' can be reduced.
2018-01-28 09:31:19 +01:00
Patrick Fallberg
52ac498eda Development version 2.2.1-alpha (#1043) 2018-01-25 22:52:57 +01:00
Mikael Falkvidd git@mjo.se
64be32a19a MySensors 2.2.0 release 2.2.0 2018-01-24 20:56:53 +01:00
Patrick Fallberg
8d3d7ae6b8 Update README.md for upcoming release (#994) 2018-01-24 10:11:48 +01:00
Mikael Falkvidd
467b7e000a Add MY_INCLUSION_LED_PIN (#1030)
Thanks to @TokTias for this idea and a starting point for the code.

This PR replaces https://github.com/mysensors/MySensors/pull/1029
2018-01-23 10:26:01 +01:00
Mikael Falkvidd
d9059d7bd5 Relax Gitler on commit headline length (#1031)
The guide we are referring to
( https://chris.beams.io/posts/git-commit/ )
says:
shoot for 50 characters, but consider 72 the hard limit

so let Gitler consider 72 the hard limit (instead of 50).
2018-01-19 17:52:07 +01:00
tekka
af3452f91c Correct misspells (#1028) 2018-01-11 22:26:08 +01:00
tekka
1feae06d7f SignalReport disabled by default (#1027) 2018-01-11 07:46:43 +01:00
Mikael Falkvidd
ca73ae20d6 Linux/SerialPort: Log success message (#1021)
This log message makes the Serial gateway print the serial port path,
similar to how the Ethernet gateway prints IP and port.

Example log output:
mysgw: Serial port /dev/MyCoolTTY (115200 baud) created
2018-01-07 14:52:08 +01:00
tekka
6434d2fa99 Linux: Fix null ptr exception (#1025) 2018-01-07 14:51:28 +01:00
tekka
b51c77b2bf Update doxygen (#1024) 2018-01-01 12:55:06 +01:00
tekka
d557cb3d34 Doxygenize MyGatewayTransport (#1023) 2018-01-01 12:13:18 +01:00
tekka
292dc849cc RFM69: Fix compiler warnings (#1020) 2017-12-28 13:07:09 +01:00
rejoe2
b148d828ad Add MY_RS485_SOH_COUNT option (#1014) 2017-12-18 16:57:53 +01:00
Mikael Falkvidd
27b0177d26 Update reference to Code Contribution Guidelines (#1011)
As mentioned by per1234 in
https://github.com/mysensors/MySensors/pull/1008
we should make it easier to find the full code contribution
guidelines.

Since we have multiple git repos, we don't want to duplicate the
guidelines in each repo. Instead, we link to the canonical source
on mysensors.org.
2017-12-09 10:08:43 +01:00
tekka
26232da4d8 MySensors 2.2.0-rc.2 (#1000) 2017-12-06 23:04:22 +01:00
per1234
6337b8bf71 Use correct separator in keywords.txt (#1008)
The Arduino IDE currently requires the use of a tab separator between
the name and identifier. Without this tab the keyword is not
highlighted.
2017-12-06 23:03:39 +01:00
tekka
a80879e056 Fix FOTA updates with smart sleep (#999) 2017-12-06 23:02:57 +01:00
tekka
a9c49f0210 Harmonize debug outputs (#1002) 2017-12-05 04:03:39 +01:00
Lee Nelson
bfcb125e72 Add MY_DEBUGDEVICE to redirect debug output (#1006)
* Add MY_DEBUGDEVICE to redirect debug output

MY_DEBUGDEVICE, if defined, will replace MY_SERIALDEVICE
for the purpose of printing debug messages. This only
applies to debugging.
2017-12-03 19:34:58 +01:00
d00616
8d9af98a55 Update board name MyNRF5Board -> MyBoardNRF5 (#997) 2017-11-20 19:55:30 +01:00
d00616
e39b2be7af NRF5 ESB fix two states (#996) 2017-11-19 13:48:29 +01:00
d00616
aabddc841c NRF5 ESB fix Errata #78,#102,#106 (#995) 2017-11-18 17:02:38 +01:00
Mikael Falkvidd
506d23581d Update RelayActuator example (#973)
Based on feedback from skywatch,
https://forum.mysensors.org/post/78896

We'll need to update the wiring instructions on
https://www.mysensors.org/build/relay as well.
2017-11-17 21:18:15 +01:00
Mikael Falkvidd
1e3305959e BCM driver: include inttypes (#983)
This makes it possible to compile the Raspberry Pi gateway on
Raspbian 9 (stretch), even without adding
--extra-cxxflags="-D__STDC_FORMAT_MACROS"
(as was suggested in
https://github.com/mysensors/MySensors/issues/955 but was
insufficient for remediating this problem)

The compile problem was inadvertently introduced in
2d5404de9.

This change fixes the problem discussed in
https://github.com/mysensors/MySensors/issues/980
2017-11-17 21:16:01 +01:00