Commit Graph
41 Commits
Author SHA1 Message Date
gizmocuz 3b531e77e2 MyMessage.h: Added some comments and presentation types from the web site, fixed a small typo
MockMySensors sketch: Fixed some small issues to conform to the 1.5 API (S_HEATER still needs to done)
2015-08-14 08:31:32 +02:00
Henrik Ekblad 34ace0bad7 Fix spelling error on setpoint cool 2015-07-30 20:58:50 +02:00
Henrik Ekblad 0ee1b85f29 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MyGateway.h
	libraries/MySensors/MyMessage.h
	libraries/MySensors/examples/LightLuxSensor/LightLuxSensor.ino
2015-07-30 14:15:26 +02:00
Henrik Ekblad 8c2e835f92 Added HVAC and some other new device types and variables from the
development branch.
2015-07-30 14:09:11 +02:00
Henrik Ekblad 387aaba46e Fix error in V/S comments 2015-06-08 21:58:40 +02:00
Henrik Ekblad a68350af28 Added a few new sensors 2015-04-12 22:03:09 +02:00
Henrik Ekblad caaadf44cf Update file headers. 2015-04-08 21:14:52 +02:00
Henrik Ekblad 410a8869cb Add V_UNIT_PREFIX and started documenting variable and sensor types. 2015-04-01 00:50:25 +02:00
Henrik Ekblad 663c0386ea Light Lux level data type added 2015-03-24 11:05:48 +01:00
Henrik Ekblad dbe06255fc New data type V_ID used for sensors with id such as DS1820b 2015-03-20 19:47:32 +01:00
Henrik Ekblad 89076d58d1 Fix spelling error. 2015-03-04 20:17:53 +01:00
Henrik Ekblad 7d67ad5c82 Add new sensor type S_MULTIMETER
To be used with V_CURRENT, V_VOLTAGE, V_IMPEDANCE
2015-03-04 19:24:13 +01:00
Patrick Fallberg 9f337e3cae Message header updates for signing support
One bit in the protocol version field is converted to a sign
indicator. '1' means the message carries a signature in the
unused part of the payload data buffer.

Three new internal message types have been defined:

 * I_REQUEST_SIGNING    carries a boolean and is used to exchange
                        signing requirement information between
                        nodes.
                        If the I_REQUEST_SIGNING carries 'true'
                        the receiver is informed that the sender
                        require properly signed messages in order
                        to be able to accept the messages.
 * I_GET_NONCE          is passed from sender to a receiver that
                        require signing tellig it to submit a
                        cryptographic 'nonce' that the sender needs
                        in order to be able to sign the message it
                        intend to send. The I_GET_NONCE carries no
                        payload.
 * I_GET_NONCE_RESPONSE is sent by the receiver of a signed
                        message in response to I_GET_NONCE.
                        The first byte of the payload is a signing
                        identifier informing the sender of the
                        signed message about the type of signature
                        the receiver is expecting.
2015-02-17 23:25:00 +01:00
Henrik Ekblad 93a23442e1 Add V_RGB, V_RGBW payload types and S_COLOR device type. 2015-02-17 14:31:52 +01:00
Marcelo Aquino 7f4f76580a get custom string from msg that isn't a stream type 2015-02-03 18:31:03 -02:00
Henrik Ekblad 27885fad9b Prefix enums to proghibit name clash with other libraries. 2014-09-15 19:29:42 +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
Henrik Ekblad 84d39a238f Add scene controller device 2014-08-18 15:46:47 +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 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 9f48f091e3 Rename PING to the more suitable FIND_PARENT 2014-08-13 20:02:10 +02:00
Henrik Ekblad 61122532ad Float values sent in binary format over the air
Move base radio id to MyConfig.h
2014-08-13 09:39:45 +02:00
Henrik Ekblad ca1c975cc5 TOSAs OTA bootloader, test nodejs gateway and other misc changes.
Merge commit '5968ddf21964dff4043e70df8bd65286c90b5127' into development

* commit '5968ddf21964dff4043e70df8bd65286c90b5127':
  Send reboot msg after message retrieval to deal with sensors going to sleep
  Node JS controller
  OTA Bootloader
  Binary message payload handling
  Remote reboot capability
  Misc fixes

Conflicts:
	EthernetGateway/EthernetGateway.ino
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MyMessage.h
2014-07-27 20:08:55 +02:00
Henrik Ekblad 7fb39d69d4 Fix problems found after verification of local commits. 2014-07-27 16:55:41 +02:00
ToSa27 1c475da8d0 OTA Bootloader
- including adjustments to  library header files to allow usage across C
(bootloader) and C++ (firmware sketches)
- including definition of new message types for firmware config and
firmware code
2014-07-24 13:37:44 +02:00
ToSa27 cdf4d6ab52 Binary message payload handling 2014-07-24 13:34:44 +02:00
ToSa27 6aa321cf2e Remote reboot capability 2014-07-24 13:31:00 +02:00
ToSa27 10e2d31a2f Misc fixes
- changed HEADER_SIZE constant from 8 to 7 to reflect message structure
- removed duplicate utility folder in UIPEthernet that prevented proper
compilation
- removed unnecessary includes in EthernetGateway that prevented proper
compilation
2014-07-24 13:29:35 +02:00
Henrik Ekblad ef91d9b9cc New ack bit in header indicating of message is an actual ack of a message.
Use msg.getAck() to check in incoming message callback.
2014-07-12 23:49:27 +02:00
Henrik Ekblad 7b4bef5be8 Added MQ2 Air quality sensor by epierre (converted to 1.4) 2014-07-02 23:15:49 +02:00
Henrik Ekblad 17e4769770 Remove application layer crc check.
Rearrange of message header to keep non routing information at the end  (preparation for OTA firmware messages)
2014-06-30 23:47:46 +02:00
Henrik Ekblad c332667a8d RF24 moved to utility folder of library. This results in one less include in sketches!
Serial flush in sleep method also means one less code in examples.
Removed set(bool) in message. Not needed. getBool just calls getInt
__attribute__((packed)) for RPI compability
Print more info in send/read debug prints.
Get internalTemp returns full degrees and uses longer Vref delay
Fix debug print gateway prepend (wrong command/type)
Fixed problem in RelayWithButton example. Now working with ack in both directions.
Serial protocol changed (incoming serial message have an new ack-parameter)
2014-06-17 22:16:38 +02:00
Henrik Ekblad 90f79c97cd * Changed library to call by reference instead of using pointers. Makes code much cleaner.
* RelayNodes renamed to RepeaterNode to distiguish this from RelayActuator.
* Ack is now possible to request for all message types. Added ack-flag for some of the exposed internal messages and presentation message.
2014-06-16 00:30:13 +02:00
Henrik Ekblad 67f4ca1fb4 latest test sketches and working request for id 2014-05-19 20:08:12 +02:00
Henrik Ekblad 9e043f3379 Use pointers inernally instead of passing objects to save space. 2014-05-17 00:46:04 +02:00
Henrik Ekblad 891c826a0c * Converted time example. Callback for time request was the only clean solution. Now global callback for incoming messages only needs to care about SET commands coming from other nodes or gateway.
* New api for storing states. RelayActator now stores state in eeprom, making it more standalone.
* Controller config is now fetched in the background without needing any special tratment in sketch. Last received config is stored in eeprom:
2014-05-16 14:48:18 +02:00
Henrik Ekblad 9291a97d45 added some message builder helpers. Optimized libray a bit using inline functions and macros.
Converted Dallas example to use new library api.
2014-05-16 10:35:26 +02:00
Henrik Ekblad 7080520a3f Fix comment. Pseudo random. 2014-05-16 07:24:24 +02:00
Henrik Ekblad a31d9d1074 Reduce library size 2014-05-15 07:40:07 +02:00
Henrik Ekblad 7856dfb209 Compiling. No tests what so ever. 2014-05-12 23:50:44 +02:00