Commit Graph
100 Commits
Author SHA1 Message Date
Marcelo Aquino 330a910f3d RPi: Improve build process
Add option to set an external arduino libraries directory.
All libraries from this folder will be compile and available for use
in the gateway.
Some Arduino libraries can be used on Linux/RPI with minor adjustments,
but there are some that will have to be completely rewritten.

The build process uses a separate folder for objects and binary files
which can be set by the user.

Initialize the bcm2835 inside a class constructor to fix cases where
pin operations are used before hwInit().

Fix SPI pins default values.

Fix activation interrupt functions.

Fix some headers.

Rename gateway binary and services to mysgw.
2016-11-19 11:49:18 -02:00
Thomas Mørch fedf326099 Merge pull request #637 from tekka007/SAMDCoreFunctions
Implement SAMD core functions
2016-11-06 17:52:19 +01:00
Thomas Mørch 15e2770347 Fixes LED prevTime bug reported in forum (#636) 2016-11-06 17:51:53 +01:00
Olivier 30e447782e Implement SAMD core functions: reboot, Vcc, freq 2016-11-06 14:07:21 +01:00
Olivier 6636a97562 Harmonize RF24 definitions (#629) 2016-11-05 09:53:12 +01:00
Olivier c6ff9122b4 Harmonize definition ins core (#628) 2016-11-05 09:50:18 +01:00
frizzy 2321c67ffa MQTT: Removed need for new topic buffer 2016-11-04 19:42:34 +00:00
frizzy e21df64845 MQTT: Add support for slash in subscriber topic 2016-11-03 19:42:05 +00:00
Patrick Fallberg c47a83f1da Make stability improvements in message signing
* Made delay waiting for GW to transmit signing preferences apply
  also if signing is disabled since nodes always sends a signing
  presentation, and GW always replies with it's own presentation.
  This can cause message collition if the node at the same time
  proceed with other presentation messages.

* Made the signing backend "consume" signing presentation
  messages sent by GW when signing is disabled. These messages
  should not be forwarded to the "user".
2016-10-30 12:01:35 +01:00
Marcelo Aquino 76dea1532c RPi: Add support for RS485 transport
Remove serial print from MyTransportRS485.cpp to increase speed.
2016-10-21 09:01:37 -02:00
Marcelo Aquino 95318d05db RPi: Update messages for key generation
This was suggested by the forum user NiklasO.
2016-10-19 15:36:17 -02:00
Henrik Ekblad f31ec4b3ae Merge pull request #618 from marceloaqno/dev-rpi-signing
RPi: Add support for signing messages
2016-10-19 08:02:53 +02:00
Henrik Ekblad cbaa3eda50 Merge pull request #588 from fallberg/gw_signing
Add MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL flag
2016-10-19 08:01:20 +02:00
Marcelo Aquino ec1c209645 RPi: Add support for signing messages 2016-10-18 22:11:47 -02:00
Patrick Fallberg afd7b7abbb Add MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL flag
This flag, when set in a gateway sketch will make the gateway
require all nodes to sign messages sent to it.
2016-10-18 22:02:19 +02:00
Marcelo Aquino 2be804a1ef RPi: Log refactor 2016-10-18 16:55:47 -02:00
Marcelo Aquino 69ac4b759a RPi: Add support for I2C
Add MyHw file for RaspberryPi.

Fix compilation warnings in x86.

Fix some error messages.
2016-10-16 13:40:23 -02:00
Olivier 5e9ae99a34 Fix for latest SAMD board defs 1.6.8 2016-10-16 13:05:19 +02:00
Thomas Mørch 54776a4520 Added {} to control structures for clarity (#600) 2016-10-16 12:46:42 +02:00
Olivier 80659ddb00 HAL for digitalRead/Write() and pinMode() (#607) 2016-10-16 10:12:24 +02:00
Henrik Ekblad ed45ef02d6 Merge pull request #606 from tekka007/FixAVRHAL
Fix HAL inconsistency
2016-10-09 23:04:20 +02:00
Henrik Ekblad 7e32e0884b Merge pull request #605 from tekka007/CoreCosmetics
Code harmonization
2016-10-09 23:01:25 +02:00
Olivier 351845205c Code harmonization 2016-10-09 15:53:51 +02:00
Olivier d05d0dad2a Fix HAL inconsistency 2016-10-09 15:49:26 +02:00
Olivier 54489577a9 Fix RFM69 ACK (#597) 2016-10-09 13:22:20 +02:00
Olivier fe3199ef6b Fix routing table dump (#604) 2016-10-09 12:18:15 +02:00
Embedded Innovation 32596676e5 Fix detach pin interrupt in hwSleep (#599)
Fix issue #598
Pin interrupts used as wakeup source for hwSleep now get detached
correctly, also when the interrupts did not occur.
2016-10-03 20:44:04 +02:00
Henrik Ekblad 6e414eeeeb Merge pull request #596 from tekka007/RFM69Fix
Fix payload length return
2016-10-01 19:45:34 +02:00
tekka007 fc09763c49 Fix payload length return 2016-10-01 19:37:50 +02:00
Henrik Ekblad c6e7e27fd6 Merge pull request #595 from tekka007/wdtResets
Reset wdt during init
2016-10-01 19:33:08 +02:00
Henrik Ekblad 9d128b9850 Merge pull request #593 from tekka007/updateBuildMsg
build(): Remove obsolete parameter (sender)
2016-10-01 19:32:39 +02:00
tekka007 dc6f6e3691 Reset wdt during init 2016-10-01 19:05:09 +02:00
Marcelo Aquino f6f4e6dde4 Fix compilation errors on RPi (#594) 2016-10-01 17:03:14 +02:00
tekka007 3c8ea78f45 Build(): Remove obsolete parameter 2016-10-01 15:50:59 +02:00
tekka007 a31eff112e Merge development branch 2016-10-01 14:04:33 +02:00
Marcelo Aquino 9f798994fe Merge branch 'development' into dev-raspberrypi 2016-09-29 22:40:33 -03:00
Marcelo Aquino 0c11354a2a Fix Client Mode for Ethernet gateway
If MY_GATEWAY_CLIENT_MODE or MY_CONTROLLER_URL_ADDRESS are present, set
MY_GATEWAY_CLIENT_MODE.
MY_USE_UDP requires that MY_GATEWAY_CLIENT_MODE is set.
Add some ifdefs to filter some variables not needed in client mode.
Using global variables to keep the connection to controller open
therefore, no need to reconnect every time we need to send/receive
something.
Add the remaining code to handle incoming messages from controllers.
2016-09-28 15:18:26 -03:00
tekka007 f148a9940b Various MyTransport optimisations p2 2016-09-26 00:00:25 +02:00
tekka007 efc71165c7 Various MyTransport optimisations 2016-09-25 12:46:58 +02:00
Embedded Innovation 8ccb1ca86d Fix gateway RX indication
Added GW RX indication for MQTT and Serial gateway (PR #585).
Only send RX indication when valid message has been received.
2016-09-22 18:21:02 +02:00
Henrik Ekblad 75a100f4e9 Merge pull request #570 from marceloaqno/development-serialmode
Add ESP8266 Serial modes
2016-09-20 09:12:01 +02:00
Henrik Ekblad e89e411571 Merge pull request #558 from tekka007/SleepRework
Redesign sleep() functions
2016-09-19 21:35:54 +02:00
Olivier ec6b6ea2bf Refactor and doxygenize EEPROM address definitions (#582) 2016-09-19 21:31:00 +02:00
tekka007 a6cdec2008 Redesign sleep() functions
- unified sleeping function _sleep(), including smartSleep
- prevent sleeping if transport is not ready
- add debug log messages
2016-09-19 19:17:08 +02:00
Marcelo Aquino fab2112f9b Use mysensors built-in nrf24 library for RPi 2016-09-14 23:26:12 -03:00
Marcelo Aquino 09103e9c04 Add run time options to RPi gateway 2016-09-08 15:56:37 -03:00
Marcelo Aquino b4f4e28545 Add support for PTY to RPi serial gateway 2016-09-03 12:39:37 -03:00
Marcelo Aquino ebdaedb514 Add ESP8266 Serial modes
SERIAL_TX_ONLY allows to use RX (GPIO3) as a general purpose
input/output
SERIAL_RX_ONLY allows to use TX (GPIO1) as a general purpose
input/output
2016-08-28 09:37:31 -03:00
Marcelo Aquino f0c5a993d5 Fix Rpi config file corruption
* Add uninstall to Makefile
2016-08-22 21:26:44 -03:00
Marcelo Aquino 48e90983ac Add random number initialization to MyHw layer 2016-08-21 23:42:44 -03:00