Commit Graph
19 Commits
Author SHA1 Message Date
Marcelo Aquino 6b76eb3df6 fix a possible parent repeater loop 2015-01-30 18:39:09 -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 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 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 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
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 cdf4d6ab52 Binary message payload handling 2014-07-24 13:34:44 +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 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 6201d3cd54 IsGateway added 2014-05-19 23:33:36 +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 8e07382d74 Gateway.cpp now compiles,
Ethernet gateway fits in memory with debug enabled. :)
2014-05-16 15:13:56 +02:00
Henrik Ekblad a31d9d1074 Reduce library size 2014-05-15 07:40:07 +02:00
Henrik Ekblad 710d445815 Stripping all sync-functions 2014-05-14 10:15:01 +02:00
Henrik Ekblad 26ef9c81c2 refactoring continues. 2014-05-14 00:26:28 +02:00
Henrik Ekblad 7856dfb209 Compiling. No tests what so ever. 2014-05-12 23:50:44 +02:00