Henrik Ekblad
b9c43029af
Merge pull request #33 from Yveaux/master
...
Force parent node search for all transmits when parent node is not set or communication failed a number of times
2014-09-10 21:17:03 +02:00
Yveaux
10e43f6aa8
Support parent search without node ID
...
To not break existing functionality parent search can be started when
node ID is still unknown. In this case node ID is set to broadcast ID,
which can cause funky stuff to happen...
2014-09-10 12:04:35 +02:00
Yveaux
0f34bb33be
Improved parent node search
...
Retry parent node search with each transmit when parent has not been
found.
Transmit does not block on transmit when no parent has been found as
this depletes batteries on battery powered nodes.
Fix nRF24 configuration for dynamic ACK's. This bug caused broadcasts to
be sent with auto-ACK's.
2014-09-09 19:43:08 +02:00
Henrik Ekblad
9192da3a7d
Fix another problem related to config from controller (reading wrong position at startup!). Bugfix. Only strip carriage return on serial data from controller (at gateway)
2014-09-08 19:56:09 +02:00
Henrik Ekblad
bf341ab49c
Node id is a string and must be parsed. The getByte does not parse any more.
2014-09-08 07:32:16 +02:00
Henrik Ekblad
6f86b8fcc7
Rename example to follw same pattern as the rest.
2014-09-07 21:31:49 +02:00
Henrik Ekblad
60f0a262f6
Many people is reporting powering problems when using amplified version of the NRF-chip on the gateway. The radio needs to be feeded separately with a stable 3v3. The Nanos 3v3 output is not sufficient for PA_MAX. Defaulting this to LOW now. If you are using a vanilla radio on gateway you can switch to MAX again.
2014-09-07 21:13:41 +02:00
Henrik Ekblad
229af25378
Merge branch 'development'
...
Conflicts:
libraries/MySensors/MySensor.cpp
2014-09-07 20:51:10 +02:00
Henrik Ekblad
cfbceadea9
Fix bug making gateway sending all payloads with newline character included. Fix bug related to receiving Mertic/Imperial setting in sensor nodes (getByte was implemented wrong).
2014-09-07 20:39:28 +02:00
Henrik Ekblad
ae9332b486
Merge pull request #31 from fallberg/development
...
Development
2014-09-07 19:44:36 +02:00
Patrick Fallberg
c13425d15e
Updated BinarySwitchSensorInt to handle two sensors
...
The new sleep() constructor allows for two interrupt sources
to wake device from sleep. This example is now updated to
illustrate this.
2014-09-07 17:43:51 +02:00
Patrick Fallberg
35788d6d94
Added constructor to sleep() for monitoring two interrupts
...
The new constructor allows two separate interrupts with two
separate trigger policies to wake up device.
2014-09-07 15:53:57 +02:00
Patrick Fallberg
ae35b9a058
Minor refactoring of delay variables
...
This is a preparation for handling multiple interrupts in delay().
It also reduces the size of the interrupt-related variables and
arguments to int8_t as that should be ample enough for any Arduino
implementation.
2014-09-07 15:22:58 +02:00
Henrik Ekblad
dd50aa9cc2
Merge pull request #30 from fallberg/development
...
Implementation of interrupt driven binary switch
2014-09-04 07:19:02 +02:00
Patrick Fallberg
4ffb53b091
Implementation of interrupt driven binary switch
...
The difference between the interrupt driven binary switch example and
the normal binary switch example is the following:
* Interrupt example does not use debouncer because it rely on loop()
iterating over time (but it sleeps between iterations)
* Interrupt example is more power conservative because it sleeps as soon
as it has sent updated data and no activity happens on the pin
* Interrupt example is limited to only two IO pins for the sensor, due
to limitations in the Arduino HW. The example uses the preprocessor to
ensure that this is not misconfigured or sleep function can not be
expected to behave as intended.
2014-09-03 23:59:36 +02:00
Henrik Ekblad
612ab5ea59
Add SimpleTimer library used for Retry-example
2014-09-01 10:39:45 +02:00
Henrik Ekblad
1d9477229b
Remove getinternalTemp
2014-08-29 20:48:39 +02:00
Henrik Ekblad
7651987f9b
Merge branch 'development'
...
Conflicts:
libraries/MySensors/Config.h
libraries/MySensors/Version.h
2014-08-29 20:48:20 +02:00
Henrik Ekblad
76cd614c15
Merge pull request #29 from Damme/MQTTGateway
...
Include more debug text in MINIMAL definition, and enable MINIMAL as default
2014-08-28 14:37:57 +02:00
Daniel Wiegert
bfb8eff826
Include more debug text in MINIMAL definition, and enable MINIMAL as default, saves 432bytes
2014-08-28 14:30:42 +02:00
Henrik Ekblad
9d42ac4c77
Fix compiler error.
2014-08-27 22:55:52 +02:00
Henrik Ekblad
1290c68c4a
Classify method.
2014-08-27 21:53:57 +02:00
Henrik Ekblad
0022e9fd16
Merge branch 'development' of https://github.com/mysensors/Arduino into development
2014-08-27 21:24:20 +02:00
Henrik Ekblad
fdcbbbac95
Need to include MySensor.h for gateway examples to work in codebender.
2014-08-27 21:24:00 +02:00
Henrik Ekblad
4510e5c386
Merge pull request #28 from Damme/MQTTGateway
...
Bugfixes and rewrite parts of code
2014-08-27 21:00:29 +02:00
Daniel Wiegert
5e5b756160
Bugfixes and rewrite parts of code
2014-08-27 15:24:04 +02:00
Henrik Ekblad
5da8d052c3
Merge pull request #27 from ToSa27/development
...
Improved documentation and usage of codebender for auto sketch compilation
2014-08-25 20:36:23 +02:00
ToSa27
0036c5f52a
Added technical details for controller developers regarding OTA bootloader
2014-08-25 18:34:51 +02:00
ToSa27
42c82fd3c7
use codebender to compile sketches
...
I had codebender username/password included originally but compiling
works without. Codebender usage guidelines allow "usage via API".
2014-08-25 17:38:25 +02:00
ToSa27
b5ba0f72ef
Improved documentation and minor fixes
...
removed examples compiled with outdated MySensors protocol and instead
included documentation how to add self-compiled sketches
2014-08-23 23:59:49 +02:00
ToSa27
0c5911ce59
Merge pull request #2 from mysensors/development
...
get latest from mysensord/development
2014-08-23 22:09:36 +02:00
Bruce Lacey
04cdd4bc32
Merge pull request #26 from ToSa27/development
...
Installation Instructions and RPi init script and fixes for use of serial gateway
2014-08-23 12:01:06 -07:00
ToSa27
961828a6e5
installation instructions
2014-08-23 18:42:24 +02:00
Henrik Ekblad
f34e592a35
Remove AVR library (not working in 1.4)
2014-08-22 20:44:43 +02:00
Henrik Ekblad
10041114cf
Clean up unused libraries
2014-08-22 20:43:29 +02:00
Henrik Ekblad
e01dc2eccc
Fix a few warnings in MQTTGateway.
...
Move all gateway examples to "examples" to work better with codebender and Arduino IDE.
Ledmode is always enabled for gateway. Still optional to connect the wires though ;)
Move MsTimer to local utility folder (no external dependencies).
2014-08-22 20:35:22 +02:00
ToSa27
c8c56078b1
Renamed files (init requires file names < 15 characters) and added initial version of readme for e2e setup
2014-08-21 16:45:24 +02:00
Henrik Ekblad
85d6daf0fa
Merge branch 'development' of https://github.com/mysensors/Arduino into development
2014-08-21 10:05:25 +02:00
Henrik Ekblad
dfcd3d44d3
Simplify gateway code (handles interrupts internally) and remove external dependencies. Ledmode is now always "enabled".
...
Remove unused libraries.
Add default CS/CE pin to Config.h
Add new variebles for voltage and current.
Add new internal command sent to controller when gateway is ready and online
2014-08-21 09:59:30 +02:00
ToSa27
b936e0aebe
RPi init script to run NodeJsController at boot time
...
execute the following to install:
chmod 755 *.sh
sudo cp NodeJsControllerInitScript.sh /etc/init.d/mysensors
sudo update-rc.d mysensors defaults
sudo mkdir -p /usr/local/var/run
sudo chmod -R 777 /usr/local/var/run
2014-08-21 00:50:57 +02:00
ToSa27
ec5a9c0597
Merge pull request #1 from JohanEkblad/development
...
Fixed appending of commands + a serial initialization what worked better
2014-08-21 00:41:48 +02:00
Mr Skrivning
9dd396b89b
Fixed appending of commands + a serial initialization what worked better (only tested Serial, not ethernet)
2014-08-21 00:11:24 +02:00
Henrik Ekblad
2da481f64e
Merge pull request #24 from ToSa27/development
...
Update bootloader and nodejs connector to adjusted message and serial protocol
2014-08-20 12:31:41 +02:00
ToSa27
3c1820ca93
NodeJsController adjust to ack in serial message protocol
2014-08-20 09:51:54 +02:00
ToSa27
a3a401c1c7
OTA Bootloader FIND_PARENT and include binary
...
- move from PING to FIND_PARENT
- include compiled hex of bootloader
2014-08-20 09:44:18 +02:00
Henrik Ekblad
8a6b092db8
We only need one constructor for the gateway sketch.
2014-08-18 21:35:50 +02:00
Henrik Ekblad
9f3ec7f4f4
clean up among libraries
2014-08-18 21:28:48 +02:00
Henrik Ekblad
4c1ce4d45a
Fix:Debug messages now uses the new serial formal.
2014-08-18 19:45:51 +02:00
Henrik Ekblad
84d39a238f
Add scene controller device
2014-08-18 15:46:47 +02:00
Henrik Ekblad
a4b1afb9f2
Merge branch 'development' of https://github.com/mysensors/Arduino into development
2014-08-17 23:57:15 +02:00