Commit Graph
34 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
Olivier 6ad18b641e Fixed missing RF24_NOP refactoring (#635) 2016-11-06 10:55:32 +01:00
Olivier 6636a97562 Harmonize RF24 definitions (#629) 2016-11-05 09:53:12 +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
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
Marcelo Aquino ec1c209645 RPi: Add support for signing messages 2016-10-18 22:11:47 -02:00
Marcelo Aquino 2be804a1ef RPi: Log refactor 2016-10-18 16:55:47 -02:00
Henrik Ekblad 75aad5de35 Merge pull request #617 from tekka007/PinModeAddon
Fix INPUT_PULLUP option for hwPinMode()
2016-10-16 21:46:55 +02:00
Olivier 4a4eed295c Fix INPUT_PULLUP option for hwPinMode() 2016-10-16 21:00:52 +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
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
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 412e41967f Add support for serial gateway to Rpi 2016-08-21 21:01:26 -03:00
Marcelo Aquino cb8c98431e Fix compilation errors for MQTT gateway 2016-08-19 13:45:51 -03:00
Marcelo Aquino b8d4a6a943 Improve build process for Linux 2016-08-17 23:42:27 -03:00
Marcelo Aquino 14e5c9bf4c Fix RX message buffering for Rpi 2016-08-16 15:37:51 -03:00
Marcelo Aquino 2713a362fe Merge branch 'development' into dev-raspberrypi 2016-08-16 13:46:29 -03:00
Marcelo Aquino 211afb17c4 Doxygenize Linux drivers 2016-08-16 13:43:24 -03:00
Marcelo Aquino 490037d285 Use non-blocking socket for EthernetServer
* Non-blocking socket

To simplify the class design and better mimics the Arduino version

* Doxygenize EthernetServer class
2016-08-16 13:43:22 -03:00
Marcelo Aquino dad6732f38 Include .h instead of .cpp when possible
* Move implementation code from Arduino.h
2016-08-16 13:43:21 -03:00
Marcelo Aquino 768b70e882 Fix conflicts with arduino macros and stdlib 2016-08-16 13:43:19 -03:00
Konst Kolesnichenko 43e5a7ddf9 Fixed build error 2016-08-16 13:42:53 -03:00
Marcelo Aquino 6b756335d0 Refactor RaspberryPi port 2016-08-16 13:42:51 -03:00
Embedded Innovation b7ae549a04 Merge pull request #557 from tekka007/RF24update
Updates to RF24 driver
2016-08-14 15:51:57 +02:00
Olivier 0a8fbe5816 Remove SPI.h and EEPROM.h includes (#555)
* Remove duplicate includes

* Reorder SPI.h include
2016-08-14 14:46:05 +02:00
tekka007 ce2e2006c6 Minor updates 2016-08-14 12:28:09 +02:00
tekka007 9dcb06cdc5 Reorganize RX message buffering checks
- fix doxygen warning
2016-08-13 13:07:16 +02:00
Embedded Innovation 99973a346e Add nRF24 receive message buffering (#538)
* Add critical section support

Allows defining a code block which is executed as a critical section.
Supports AVR, ESP8266 & SAMD.

* Add receive message buffering

When MY_RF24_IRQ_PIN is defined (and connected), a buffer will be used
to retrieve & store messages received by nRF24 as fast as possible.
This reduces the chance of losing messages due to a busy
microcontroller.
nRF24 SPI rx message transfer is running from interrupt context when
MY_RF24_IRQ_PIN is defined. If this transfer takes too long, serial
characters received will get lost. Therefore serial rx is enabled during
SPI transfer of nRF messages.

Limitations: Only AVR/SAMD & nRF24L01+ combinations can buffer rx
messages.
nRF24L01+ IRQ pin should be connected to AVR.
Tested on W5100- & Serial-gateway.

SAMD has not been tested yet!

* Fix Doxygen warnings

* Fix more Doxygen warnings
2016-08-02 22:20:25 +02:00
Henrik Ekblad 37119b2a3a Present locally attached sensors and node when missing radio (#532)
* Present locally attached sensors and node when missing radio

Fix #524

* Combining gateway and node presentation.
2016-08-01 23:59:31 +02:00
tekka007 26f20b0e3b Fix compatibility issue with nRF clones, update documentation 2016-08-01 14:10:47 +02:00
Thomas Mørch ba6bb915c2 Reorganizing library structure, prep for 2.0.0 2016-07-09 21:17:37 +02:00