Commit Graph
75 Commits
Author SHA1 Message Date
Henrik Ekblad 50c8c44b08 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MySensor.cpp
2015-02-12 22:42:50 +01:00
Henrik Ekblad 9fecc53dfb Merge pull request #62 from mapnull/hotfix-autoFindParent_response
Accept a new parent only when autoFindParent is 1
2015-02-12 22:23:13 +01:00
Henrik Ekblad 80bd4df230 Merge pull request #61 from mapnull/hotfix-parentId_eeprom
Write parentNodeId to eeprom only when differ
2015-02-12 22:15:37 +01:00
Henrik Ekblad 6f0ea1f943 Merge branch 'master' into development 2015-02-12 22:11:42 +01:00
Henrik Ekblad c8883c61e6 Request parent missing in setup() 2015-02-12 21:58:16 +01:00
Marcelo Aquino d92918c80a Accept a new parent only when autoFindParent is 1
In a gateway, I_FIND_PARENT_RESPONSE messages was returning as true by
process(). With this commit it will return as false, is this the right
expected behavior?
2015-02-11 12:22:27 -02:00
Marcelo Aquino 57e8947218 Write parentNodeId to eeprom only when differ 2015-02-11 11:42:07 -02:00
Marcelo Aquino 652d589fe3 add node to routing table before send an ack 2015-02-11 10:49:05 -02:00
Henrik Ekblad b238a2e61e Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-10 23:38:05 +01:00
Henrik Ekblad 7b99a2ef94 Removed waitForReply(). Not needed anymore. 2015-02-10 22:25:13 +01:00
tekka007 08a0bc25ff simply wait() & adding watchdog resets
Simplify wait(), added watchdog reset to wait() and waitForReply().
Substituted all waitForReply() for wait(2000) to reduce code
size/complexity
2015-02-08 01:00:39 +01:00
tekka007 a6301f8521 Fixing endless loop 2015-02-07 21:42:49 +01:00
Marcelo Aquino ace0a38c93 Node set up only after having an id 2015-02-07 10:59:25 -02:00
Henrik Ekblad 576c092fd6 Merge pull request #54 from mapnull/hotfix-r255
Relay messages only after receiving an id
2015-02-07 10:56:12 +01:00
Marcelo Aquino 381d98648f fix clear routing table data
childNodeTable is a pointer, will always return 2
2015-02-06 20:59:57 -02:00
Marcelo Aquino ff1ddc3807 Relay messages only after receiving an id 2015-02-06 19:09:51 -02:00
Henrik Ekblad 97641902c9 Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
2015-02-04 23:03:27 +01:00
Henrik Ekblad 08221e6567 Merge pull request #46 from tekka007/master
Failed transmissions count fixed  & Clear routing table extendend
2015-02-04 22:22:43 +01:00
Henrik Ekblad 09f3ba5862 Save static parent to eeprom (for bootloader) 2015-02-04 22:08:50 +01:00
Henrik Ekblad 8aeaceb35f Merge branch 'master' into development
Conflicts:
	libraries/MySensors/MyGateway.cpp
	libraries/MySensors/MySensor.cpp
	libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino
2015-02-03 22:50:06 +01:00
Henrik Ekblad e1fa3dcd8e Merge pull request #45 from rhooper/wait-helper
Add wait() helper that doesn't sleep.
2015-02-03 22:06:17 +01:00
Marcelo Aquino e8f7cb16a2 Fetch id through repeaters 2015-02-03 13:33:28 -02:00
tekka007 f06e91569c failedTransmissions=1 after findParentNode() 2015-02-03 12:15:31 +01:00
tekka007 6cfafab052 Revert "failedTransmissions=1 after findParentNode()"
This reverts commit 43755e51b8.
2015-02-03 12:08:09 +01:00
tekka007 43755e51b8 failedTransmissions=1 after findParentNode() 2015-02-03 12:04:30 +01:00
tekka007 81b6d3aa30 Clear routing table extendend
I_CHILDREN + "C" clears routing table, parent node and gw distance
followed by findParentNode.
2015-02-02 13:50:06 +01:00
Henrik Ekblad 7fb94546eb Merge pull request #44 from mapnull/hotfix-1.4
fix a possible parent repeater loop
2015-02-01 21:37:54 +01:00
Roy Hooper d45a48d8b7 Add wait() helper that doesn't sleep. Useful for repeaters and sensors that read from the network. 2015-02-01 15:00:45 -05:00
Henrik Ekblad 2d214a1e58 Fix static id problem when using OTA bootloader. Reported by tekka. 2015-02-01 15:29:02 +01:00
Marcelo Aquino 6b76eb3df6 fix a possible parent repeater loop 2015-01-30 18:39:09 -02:00
Marcelo Aquino bf8f5b8164 fix a case where parent distance from repeater get stuck at 255 2015-01-29 17:19:19 -02:00
Patrick Fallberg 7d37cd9aa5 MyDriver structure renamed to MyRFDriver
The MyDriver scheme is radio specific, so it is renamed
accordingly to permit other driver schemes to coexist with it
without confusion.
2015-01-28 23:53:37 +01:00
Henrik Ekblad 0b9178318e Set empty payload when requesting data. 2014-12-30 13:42:10 +01:00
Frank Olaf Sem-Jacobsen db73e3c788 switched to low-power library 2014-11-03 19:21:40 +01:00
Henrik Ekblad abe3956f5e Fixed bug resulting in ACK problems
Even thouh auto ack was enabled we still called
RF24::writeAckPayload(pipe,&pipe, 1 ); after reading a message.
This probably caused radio to misbehave.
2014-10-29 18:00:34 +01:00
ToSa27 39bab3dfba Split Application and Driver Layer 2014-09-29 00:24:57 +02:00
ToSa27 c3dbcd1fea Accept Time Broadcasts
NodeJsController sending Time broadcasts every few minutes.
Sensor accepting not just Time messages addressed to the specific
sensor.
2014-09-28 23:47:22 +02:00
Henrik Ekblad 86b6411280 Merge branch 'hek-gateway-rework' into development
Conflicts:
	libraries/MySensors/MySensor.cpp
	libraries/MySensors/MySensor.h
2014-09-11 09:56:30 +02:00
Henrik Ekblad d8ba222759 Merge branch 'master' into development 2014-09-11 09:51:59 +02:00
Yveaux e5bd891a77 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.
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-11 09:37:42 +02:00
Henrik Ekblad 5bb8c9b40c Bugfixes and cleanup 2014-09-09 22:33:49 +02:00
Henrik Ekblad 7fa54a6e5a Proposal to keep gateways separated. 2014-09-09 16:57:56 +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 229af25378 Merge branch 'development'
Conflicts:
	libraries/MySensors/MySensor.cpp
2014-09-07 20:51:10 +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 1d9477229b Remove getinternalTemp 2014-08-29 20:48:39 +02:00
Henrik Ekblad 4c1ce4d45a Fix:Debug messages now uses the new serial formal. 2014-08-18 19:45:51 +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