MySensors meetup Breda
30 juli 2016 - CM Breda
Iedereen maakt.
Locatie
Deelname
Sponsors
Topics of the day
Layout
Plugfest
Presentaties
On display
Domotica, controllers & MySensors
Sándor Incze
Why I started ?
+ =
Keeping Domotica affordable
Keeping Domotica affordable
And then it all started
Keeping Domotica affordable
Keeping Domotica affordable
Personal Goal
Problems
Solutions
Solutions
Solutions
Simple Leakage Detector
Solutions
Watermeter
€ 82,50
Solutions
Watermeter
€ 5,-
Solutions
Watermeter
Solutions
Watermeter
Solutions
You have got mail Detector
Integration with existing Hardware
Sunscreen
Opentherm Gateway
Opentherm Gateway
Reading Solar Inverter values
Monitor your ISP
Thank you for your attention
Questions and Suggestions please ;-)
Connecting it all!
Yveaux
GertSanders
SMS capable sensor node
Why a node with SMS capability when a controller can do better?
How to make it work?
SMS capable sensor node
Hardware (minimum needed to make this work):
Software:
SMS capable sensor node
The SIM800L module and a 2G SIM card:
SMS capable sensor node - connection of SIM800L
Vcc to your 4V power supply
GND to GND
Decouple power with as much capacitors as can fit on your node.�I’m using a minimum of 100uF, but added two more 100uF on my AC capable board just to be sure.
SMS capable sensor node
The setup of the pins is also defined in the sketch, so you can use any three digital pins as long as the two pins used for serial connection are supported by the SoftwareSerial library.
// All includes�#include <SPI.h>�#include <SoftwareSerial.h>�#include <Adafruit_FONA.h>�#include <MySensors.h>
// Pin definitions and other defines�#define FONA_RX 2�#define FONA_TX 3�#define FONA_RST 4
Pin setup is handled by the FONA library, so no need for a pinMode definition in setup().
SMS capable sensor node - Software
SMS capable sensor node - Software
The SMS node has an “owner”. This is any GSM number registered to it via SMS containing a password (is defined as a string in the sketch). Once an owner is defined, no second owner will be accepted until the node is released by the owner. The release string is also defined in the sketch.
The node also sends all received V_TEXT and all received SMS to the controller (as V_TEXT).
An owner can adres a node in the network via the following format:
Nxyz:<some_text>
The character N plus three digits and a colon mark a node address.
SMS capable sensor node - Software
Nxyz:<some_text>
xyz must be a number between 1 and highest node number (255)
<some_text> can be any MySensors V_TEXT payload, so maximum 25 chars.
What you send to a node in the network needs to be treated by that node, the SMS node does NO checking on it.
The receiving node will only get the <some_text>. This means it needs to handle a V_TEXT in the receive() function.
SMS capable sensor node - Software
The simplest receive() function:
char msgbuffer[25 + 1] = "";�MyMessage door1msg(DOORSWITCH1, V_TRIPPED)
void receive(const MyMessage & message)
{
if (message.type == V_TEXT)
{
strcpy(msgbuffer, message.getString());
if (strcmp(msgbuffer, "on") == 0)
{
InvertLED = true;
}
if (strcmp(msgbuffer, "off") == 0)
{
InvertLED = false;
}
send(door1msg.set(InvertLED));
strcpy(msgbuffer, "");
}
Insertable Node and Battery Button combo
Koresh & Yury
Ibeacons
Bas van den Heuvel
What happened and what did you miss
Pictures of the DAY