Commit Graph

143 Commits

Author SHA1 Message Date
lyuboasenov
8d45e7bad7 Add support for ATtiny 3224/7 (#1535)
* Add hal for megaAvrs

* Add mcu selector setting

* Register hal

* Pull up pins to save power

* Remove dead code

* Add before/after sleep delegates

* Remove pin turn stable state setting

* Make hardware messages mysensors alike

* Enable route size reduction for devices with smaller eeprom

* Add macro for routes size to keywords

* Fix keyworkds.txt - using tabs instead of spaces

* Remove tinyAVR hardware debugging

* Remove unused macros

* Remove .history folder

* Fix formatting according to astyle

* Remove unused count variable

* Update MyTransportHAL.cpp

---------

Co-authored-by: Olivier <tekka007@users.noreply.github.com>
2023-10-12 08:47:53 +02:00
Olivier
d88506fbc6 Update PubSubClient 2.8 (#1438)
Co-authored-by: Olivier <Olivier@nowhere.org>
2020-08-22 10:07:35 +02:00
Olivier
15f5c5e793 CI: Update CppCheck 2.1 (#1440) 2020-08-21 19:41:32 +02:00
Olivier
40ba986240 Cumulative update (#1347) 2019-09-24 10:24:53 +02:00
Olivier
40f4deb18c Code maintenance (#1309)
* Fix issues after CPPcheck 1.88 update

* Code maintenance
2019-07-20 14:08:33 +02:00
Olivier
36ec4f8624 Fix issues after CPPcheck 1.88 update (#1308) 2019-07-14 21:17:24 +02:00
Olivier
1fa4728f61 Transport and crypto HAL update (#1282) 2019-04-28 14:22:25 +02:00
tekka
71b06987ab Code maintenance (#1261) 2019-01-27 20:58:06 +01:00
tekka
4b14f5a740 Update PubSubClient 2.7 (#1224) 2018-11-11 15:06:37 +01:00
tekka
8e8f44b402 Code updates & harmonization (#1201) 2018-10-21 16:55:24 +02:00
Marcelo Aquino
1c33609556 Fix SPIDEV on Armbian Stretch (#1200)
Fix #1195
2018-09-04 07:59:32 +01:00
tekka
7214b0d457 RF24: Add delay after power-up (#1193) 2018-08-30 20:14:29 +01:00
Embedded Innovation
966c5d70e1 Nrf24 lowlevel (#1192)
* Implemented nRF24 constant carrier wave

For testing purposes only! Not used by regular MySensors stack.

* Please Jenkins for unused functions

* Add RPD retrieval
2018-08-30 20:14:10 +01:00
Embedded Innovation
5051d516dc Add lowlevel nRF24 functions (#1190)
* Implemented nRF24 constant carrier wave

For testing purposes only! Not used by regular MySensors stack.

* Please Jenkins for unused functions
2018-08-26 17:38:46 +02:00
tekka
46568ba14a RF24: Fix TX issue regarding PA+LNA modules (#1189) 2018-08-26 14:46:16 +02:00
tekka
6ffe29cb5f Code maintenance (#1186) 2018-08-22 20:50:16 +02:00
Jeeva Kandasamy
c8d951d3df Update #1184, RFM69 frequency band support for India (#1185) 2018-08-21 19:31:10 +02:00
tekka
2e406f5135 Introduce CryptoHAL, optimize crypto functions (#1178) 2018-08-21 19:30:11 +02:00
tekka
2badd59a71 ESP8266: Updates to support 2.4.2 board defs (#1169) 2018-08-04 20:40:54 +02:00
Embedded Innovation
c6a970be8b Prevent toggle ACTIVATE (#1164)
Fix issue #1163. Prevent toggling advanced features on nRF24L01 non-plus versions.
2018-07-30 13:14:36 +02:00
tekka
3c07390323 Fix RFMxx deadlock and minor optimization (#1099) 2018-05-01 22:31:16 +02:00
Mikael Falkvidd
f2d9f72cf4 Fix spelling mistakes (#1104) 2018-04-09 23:31:50 +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
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
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
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
tekka
57eca4f4af Transport code harmonization (#1072) 2018-02-20 12:32:17 +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
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
292dc849cc RFM69: Fix compiler warnings (#1020) 2017-12-28 13:07:09 +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
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
tekka
d44ecd95dd RF24: Fix logical operator (#990) 2017-11-12 11:12:06 +01:00
tekka
3830c5dde0 RFM69: Add missing SPI namespace (#987) 2017-11-11 18:26:14 +01:00
tekka
4f0a4ee021 Use dedicated namespace for radio SPI (#985) 2017-11-11 15:59:54 +01:00
tekka
d43c755508 Fix RFM95 reset (#982)
I've verified that the datasheet says to go low, and checked that the commit history does not indicate a reason for doing otherwise.
2017-11-10 18:23:36 +01:00
d00616
0042cd4bee NVM: consideration of SoftDevice memory layout (#977) 2017-11-07 21:54:00 +01:00
Patrick Fallberg
2d5404de97 CppCheck cleanup (#975)
* Add support for inline cppcheck suppressions
* Clean out all known cppcheck issues
* Terminate toll-gate on found cppcheck issues
2017-11-07 20:37:36 +01:00
tekka
e2ac85afbb Reshuffle arch files (#974) 2017-11-06 21:24:38 +01:00