Commit Graph
429 Commits
Author SHA1 Message Date
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
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
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
Henrik Ekblad 2776e5fca9 Added a new RFID Lock Sensor example. 2014-08-17 23:56:53 +02:00
Henrik Ekblad 5d43706492 Add emon lib for a later non invasive current sensor. 2014-08-17 22:27:08 +02:00
Henrik Ekblad 29b00589ee Merge pull request #23 from Damme/patch-1
moved comment and minor ops
2014-08-17 22:20:02 +02:00
Daniel Wiegert 2ff7c74e99 moved comment and minor ops 2014-08-17 22:04:42 +02:00
Henrik Ekblad f3b7be5271 Merge pull request #22 from Damme/patch-1
Changed from Switch/case to if/elseif to save some runtime ram
2014-08-17 21:50:32 +02:00
Henrik Ekblad 426123333c Serial protocol changed to allowing controller to know if an incoming message is a ack. Outgoing and incoming serial messages now also have the same parameter count.
radioId;childId;messageType;ack;subType;payload\n

Where ack parameter means the following:
outgoing: 0 = unacknoledged message,  1 = request ack from destination node
Incoming:  0= normal message, 1=This is an ack message
2014-08-17 21:39:18 +02:00
Daniel Wiegert 3af3014178 New comments and minor fixes 2014-08-17 21:23:18 +02:00
Daniel Wiegert b0917af27e Changed from Switch/case to if/elseif to save some runtime ram 2014-08-17 20:51:52 +02:00
Henrik Ekblad 1150c4417c Removed a few decimals from pressure value. 2014-08-17 19:58:29 +02:00
Henrik Ekblad dcb0babe63 Dust sensor added. Thanks epierre. 2014-08-17 19:57:58 +02:00
Henrik Ekblad 95467c43a7 Add Custom sensor type that can be used in presentation when no other sensor fits. 2014-08-17 15:03:09 +02:00
Henrik Ekblad 65e61efb75 Fix spelling error 2014-08-17 14:49:44 +02:00
Henrik Ekblad 994d715b4e UV sensor example added 2014-08-17 14:45:38 +02:00
Henrik Ekblad ec53d08e57 Fix indentation. 2014-08-17 14:45:17 +02:00
Henrik Ekblad 0d00e22498 Fix error and add chirp when correct code entered. 2014-08-17 13:58:21 +02:00
Henrik Ekblad c910bfdb9e Move routing message part to the top of message to ease later refactoring of header/payload (encryption etc). 2014-08-17 13:57:51 +02:00
Henrik Ekblad 8da32be652 Comment fixed 2014-08-16 00:43:09 +02:00
Henrik Ekblad 95d899b77e Updated comments 2014-08-16 00:21:33 +02:00
Henrik Ekblad cbd78d68cf Merge branch 'development' of https://github.com/mysensors/Arduino into development 2014-08-16 00:00:33 +02:00
Henrik Ekblad f822f1aa31 New example skecth which controls a lock either from controller or by using a secret knock. 2014-08-15 23:40:45 +02:00
Henrik Ekblad 31813b3712 Merge pull request #21 from Damme/patch-1
Minor changes + Added back LED-blinking code.
2014-08-15 15:32:41 +02:00
Daniel Wiegert 519d652557 Forgot Readme changes 2014-08-15 14:59:41 +02:00
Daniel Wiegert 5ebc1c8129 Minor changes + reinserted led-blinking 2014-08-15 14:56:07 +02:00
Henrik Ekblad 32a47d643e Merge pull request #20 from Damme/patch-1
Little better readme...
2014-08-13 22:56:19 +02:00
Damme 172d58782c Little better readme... 2014-08-13 22:48:06 +02:00
Henrik Ekblad 6670ff340f Merge pull request #19 from Damme/patch-1
Added MQTTGateway version 0.1b
2014-08-13 22:13:10 +02:00
Damme 3a63ae619d Check if incomming message contains anything. 2014-08-13 21:29:18 +02:00