Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Nigel31
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Nigel31

    • Nigel31

      Sudden Dead node, and consequent !TSM:FPAR:NO REPLY
      Troubleshooting • • Nigel31  

      3
      1
      Votes
      3
      Posts
      30
      Views

      Nigel31

      @GardenShedDev Hi, Yes cheap clones for me too. Vcc remains at 3.282v (external egulator) after having been away from it for 10 days, lipo battery is still at 4.08v, with it constantly trying to find a parent. Decent explanation though, I'm going to have to build another I think. Many thanks, Nigel
    • Nigel31

      Is it possible to extract child ID from a just sent message?
      General Discussion • • Nigel31  

      3
      0
      Votes
      3
      Posts
      43
      Views

      Nca78

      @Nigel31 Hello, if you have a message variable (msgSPFlag I guess ?) then you have the child ID in it in the destination property of the message.
    • Nigel31

      Problem with Recursive calls on signed node (Solved)
      Troubleshooting • • Nigel31  

      7
      1
      Votes
      7
      Posts
      78
      Views

      TheoL

      @Nigel31 Maybe it's best to use the wait outside a while loop. With this I mean. Right now you're calling a function that does the resends within the same while loop - so basically it blocks the main loop. The only thing I can think of, is that MySensors doesn't get time to execute all it needs to do before you call the next request. So if you'd rewrite the code a little bit so it does all the requests in different execution of the main loop() method. It might work much better. As I do it in a MessageQueue I've written and don't have the problems you have. Also sometimes it takes a while before a node starts using the repeater. If it's close enough to the gateway to get some responses. Than - if understand correctly - it will not start using the repeater until the repeater sees x-time of failures.
    • Nigel31

      Is there an inbuilt way to tell that a node is "off network" from the nodes perspective?
      General Discussion • • Nigel31  

      10
      0
      Votes
      10
      Posts
      75
      Views

      Nigel31

      @TheoL Are you willing / is it in a state where you can share your code? regards Nigel
    • Nigel31

      Is there a timing issue with "faster" platforms?
      Troubleshooting • • Nigel31  

      8
      0
      Votes
      8
      Posts
      77
      Views

      Yveaux

      @Njwyborn sorry, I don't know. If the stack is called recursively, something is seriously wrong and behavior is undefined I guess.
    • Nigel31

      Help or advice on getting node to RECEIVE data for text child objects
      Troubleshooting • • Nigel31  

      4
      0
      Votes
      4
      Posts
      26
      Views

      Nigel31

      Upgrading to 2.3.2 has helped somewhat
    • Nigel31

      Question about security signing, and when it is "applied"
      Development • • Nigel31  

      1
      0
      Votes
      1
      Posts
      30
      Views

      No one has replied

    • Nigel31

      Is there a "standard" way to terminate a sleep time, after waking by an interrupt?
      Troubleshooting • • Nigel31  

      15
      0
      Votes
      15
      Posts
      116
      Views

      Nigel31

      @Yveaux Yes, that is what the sencebender gateway was for, so I could start with an easily swappable item, and the core of the network, however you might remember that I am having issues with sencebender gateway.. with no solution in sight. link text
    • Nigel31

      Sensebender. Still same problems with NEW board and radio
      Troubleshooting • • Nigel31  

      7
      0
      Votes
      7
      Posts
      57
      Views

      Nigel31

      Question. Would using the "ClearEepromConfig" sketch, do anything nasty to the sencebender gateway eeprom?
    • Nigel31

      Cannot find parent when USB plugged in, Works when NOT plugged in!
      Troubleshooting • • Nigel31  

      11
      0
      Votes
      11
      Posts
      70
      Views

      Nigel31

      Update: The issue seems to be with the Mega Mini board. I managed to remove the Adafruit RFM69HW daughter board from the verroboard, and wired this to a Nano, and a Teensy 3.2. Both worked with the same PSU. The USB converter however is still giving garbage , no matter which of the three sources above. So I am in the belated process of porting code to the teensy as the target. Many thanks for the help to you all. Now, if I can only sort out my sensebender gateway problem....
    • Nigel31

      requesting data from controller (Domoticz)
      Troubleshooting • • Nigel31  

      1
      0
      Votes
      1
      Posts
      20
      Views

      No one has replied

    • Nigel31

      Teensy 3.2 and RFM69HW not working
      Hardware • • Nigel31  

      9
      0
      Votes
      9
      Posts
      63
      Views

      Nigel31

      Hi, Well progress, and questions ! When I started this with the Teensy3.2, I used a RFM69CW (smaller pcb) device, and ran into the problems as detailed above. As part of the troubleshooting, I part assembled a "EASY PCB" which I have, to enable, hopefully proving a different radio module (RFM69HW) which is my normal radio module, and attempt to "tight fit" a Pro mini to header pins on the board, to "prove" the radio. This was sucessful, as mentioned above. Using this proven radio / assembly, I removed the Pro Mini, and jumpered to the Teensy with dupont cables, which got the radio "working" in the sense that the transport succeeded, it just couldn't find the parent / gateway. I mentioned above the possibility of connecting the reset pin, as I had the origional bare RFM69CW already to go, I soldered another wire to the reset pad, and utilised this at the radio, commenting out the #define MY_IS_RFM69HW . and adding the #define MY_RFM69_RST_PIN 9 . I uploaded this, and it found, and presented to the GW / Controller. BUT subsequent messages were met with "!MCO:SND:NODE NOT REG" as in the log below 300 MCO:BGN:INIT NODE,CP=RRNNT---,VER=2.2.0 300 TSM:INIT 300 TSF:WUR:MS=0 301 TSM:INIT:TSP OK 301 TSM:INIT:STATID=44 301 TSF:SID:OK,ID=44 301 TSM:FPAR 1529 TSF:MSG:SEND,44-44-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 1547 TSF:MSG:READ,0-0-44,s=255,c=3,t=8,pt=1,l=1,sg=0:0 1547 TSF:MSG:FPAR OK,ID=0,D=1 3530 TSM:FPAR:OK 3530 TSM:ID 3530 TSM:ID:OK 3530 TSM:UPL 3536 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 3747 TSF:MSG:READ,0-0-44,s=255,c=3,t=25,pt=1,l=1,sg=0:1 3747 TSF:MSG:PONG RECV,HP=1 3747 TSM:UPL:OK 3747 TSM:READY:ID=44,PAR=0,DIS=1 4774 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 4985 TSF:MSG:READ,0-0-44,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 6218 !TSF:MSG:SEND,44-44-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=NACK:2.2.0 6234 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=OK:0 6459 TSF:MSG:READ,0-0-44,s=255,c=3,t=6,pt=0,l=1,sg=0:M 7492 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=OK:test Node 7502 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=12,pt=0,l=5,sg=0,ft=0,st=OK:1.0.0 7515 TSF:MSG:SEND,44-44-0-0,s=5,c=0,t=33,pt=0,l=14,sg=0,ft=0,st=OK:Motion RX RSSI 7729 TSF:MSG:READ,0-0-44,s=5,c=0,t=33,pt=0,l=14,sg=0:Motion RX RSS 7729 TSF:MSG:ACK +Ack FMGW *InMsgty :33 MsgComd:0 childID:5 Switch:0.00 7936 TSF:MSG:READ,0-0-44,s=5,c=0,t=33,pt=0,l=14,sg=0:Motion RX RSS 7936 TSF:MSG:ACK +Ack FMGW *InMsgty :33 MsgComd:0 childID:5 Switch:0.00 8141 TSF:MSG:READ,0-0-44,s=5,c=0,t=33,pt=0,l=14,sg=0:Motion RX RSS 8141 TSF:MSG:ACK +Ack FMGW *InMsgty :33 MsgComd:0 childID:5 Switch:0.00 8344 TSF:MSG:READ,0-0-44,s=5,c=0,t=33,pt=0,l=14,sg=0:Motion RX RSS 8345 TSF:MSG:ACK +Ack FMGW *InMsgty :33 MsgComd:0 childID:5 Switch:0.00 8937 TSF:MSG:SEND,44-44-0-0,s=4,c=0,t=1,pt=0,l=9,sg=0,ft=0,st=OK:Prescence 9149 TSF:MSG:READ,0-0-44,s=4,c=0,t=1,pt=0,l=9,sg=0:Prescenc 9149 TSF:MSG:ACK +Ack FMGW *InMsgty :1 MsgComd:0 childID:4 Switch:0.00 10225 TSF:MSG:SEND,44-44-0-0,s=6,c=0,t=30,pt=0,l=16,sg=0,ft=0,st=OK:Motion Battery V 10226 MCO:REG:REQ 10234 TSF:MSG:SEND,44-44-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 10444 TSF:MSG:READ,0-0-44,s=255,c=3,t=27,pt=1,l=1,sg=0:0 10444 MCO:PIM:NODE REG=0 10445 MCO:BGN:STP 10445 MCO:BGN:INIT OK,TSP=1 Motion 0 10495 !MCO:SND:NODE NOT REG 10647 TSF:MSG:READ,0-0-44,s=255,c=3,t=27,pt=1,l=1,sg=0:0 10647 MCO:PIM:NODE REG=0 RAWbatcount :179 batV :0.74 batP :0 10850 TSF:MSG:READ,0-0-44,s=255,c=3,t=27,pt=1,l=1,sg=0:0 10850 MCO:PIM:NODE REG=0 10857 !MCO:SND:NODE NOT REG 10857 !MCO:SND:NODE NOT REG wait 10000 11258 TSF:MSG:READ,0-0-44,s=255,c=3,t=27,pt=1,l=1,sg=0:0 11258 MCO:PIM:NODE REG=0 Progress of a sort. I noticed however that in the Controller, each child presentation, including the MYSENSORS version was missing the last character. I have seen this sort of thing in entirely different situations with serial coms, baud rates mismatching slightly (due to processor speed dividing ratios), and I knew that out of the box, the teensy runs overclocked at 96Mhz, so I changed the speed of the processor, to 72Mhz, and uploaded, had the same results, Then I selected 48Mhz, and uploaded again, and Eureka, it all works. So in summary, I have wired in the Reset Pad to (in my case) Pin 9, and slowed the Processor to 48Mhz, and all is working. AFTER this, I have simplified the sketch, to be a incrementing count, in a txt field. Sketch as is NOW, but AFTER it was working // Enable debug prints #define MY_DEBUG #define MY_DEBUG_VERBOSE_RFM69 //#define MY_DEBUG_VERBOSE_SIGNING //#define MY_SIGNING_SOFT //#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 //#define MY_SIGNING_REQUEST_SIGNATURES #define MY_SPLASH_SCREEN_DISABLED //#define MY_DISABLE_RAM_ROUTING_TABLE_FEATURE //#define MY_TRANSPORT_WAIT_READY_MS 5000 // Enable and select radio type attached //#define MY_REPEATER_FEATURE #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here #define MY_RFM69_MAX_POWER_LEVEL_DBM (14) // max. TX power 10dBm = 10mW #define MY_RFM69_TX_POWER_DBM (14) //#define MY_IS_RFM69HW // Omit if your RFM is not "H" #define MY_RFM69_IRQ_PIN 2 #define MY_RFM69_IRQ_NUM digitalPinToInterrupt(MY_RFM69_IRQ_PIN) #define MY_RFM69_CS_PIN 10 // NSS. Use MY_RF69_SPI_CS for older versions (before 2.2.0) #define MY_RFM69_RST_PIN 9 // try reset pin //#define MY_RFM69_ENABLE_ENCRYPTION //#define MY_RFM69_NETWORKID 100 // Default is 100 in lib. Uncomment it and set your preferred network id if needed #define MY_NODE_ID 45 //#include <MyConfig.h> #include <MySensors.h> long counter = 0; #define CHILD_ID_RX_RSSI 5 #define CHILD_ID_TEXT1 7 // Initialize message MyMessage msgRxRSSI(CHILD_ID_RX_RSSI, V_LEVEL); MyMessage msgText(CHILD_ID_TEXT1, V_TEXT); void setup() { // put your setup code here, to run once: analogReference(INTERNAL); }//end setup void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("test Node", "1.0.1"); present(CHILD_ID_RX_RSSI, S_SOUND, "Motion RX RSSI",true); wait(250); present(CHILD_ID_TEXT1, S_INFO,"UpdateTxt",false); }//end presentation void loop() { // put your main code here, to run repeatedly: counter++; send(msgText.set(counter), false); wait(10000);// wait a bit, then read in level, avoid spurious noise as PIR holds high state for 27sec RX_SEND(); wait(10000); }// end loop void RX_SEND() { send(msgRxRSSI.set(transportGetSignalReport(SR_RX_RSSI))); } Log NOW 300 MCO:BGN:INIT NODE,CP=RRNNT---,VER=2.2.0 300 TSM:INIT 300 TSF:WUR:MS=0 300 TSM:INIT:TSP OK 300 TSM:INIT:STATID=45 300 TSF:SID:OK,ID=45 300 TSM:FPAR 1520 TSF:MSG:SEND,45-45-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 1604 TSF:MSG:READ,0-0-45,s=255,c=3,t=8,pt=1,l=1,sg=0:0 1604 TSF:MSG:FPAR OK,ID=0,D=1 3521 TSM:FPAR:OK 3521 TSM:ID 3521 TSM:ID:OK 3521 TSM:UPL 3527 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 3739 TSF:MSG:READ,0-0-45,s=255,c=3,t=25,pt=1,l=1,sg=0:1 3739 TSF:MSG:PONG RECV,HP=1 3739 TSM:UPL:OK 3739 TSM:READY:ID=45,PAR=0,DIS=1 3759 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 3968 TSF:MSG:READ,0-0-45,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 3983 TSF:MSG:SEND,45-45-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.2.0 3994 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 4024 TSF:MSG:READ,0-0-45,s=255,c=3,t=6,pt=0,l=1,sg=0:M 4050 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=OK:test Node 4066 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=12,pt=0,l=5,sg=0,ft=0,st=OK:1.0.1 4081 TSF:MSG:SEND,45-45-0-0,s=5,c=0,t=33,pt=0,l=14,sg=0,ft=0,st=OK:Motion RX RSSI 4294 TSF:MSG:READ,0-0-45,s=5,c=0,t=33,pt=0,l=14,sg=0:Motion RX RSSI 4295 TSF:MSG:ACK 4338 TSF:MSG:SEND,45-45-0-0,s=7,c=0,t=36,pt=0,l=9,sg=0,ft=0,st=OK:UpdateTxt 4338 MCO:REG:REQ 4346 TSF:MSG:SEND,45-45-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 4555 TSF:MSG:READ,0-0-45,s=255,c=3,t=27,pt=1,l=1,sg=0:1 4555 MCO:PIM:NODE REG=1 4555 MCO:BGN:STP 4555 MCO:BGN:INIT OK,TSP=1 4577 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:1 14583 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 24589 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:2 34595 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 44601 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:3 54607 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 64613 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:4 74619 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 84625 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:5 94631 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 106058 !TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=NACK:6 115278 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 115278 TSF:MSG:BC 115482 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 115482 TSF:MSG:BC 115685 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 115686 TSF:MSG:BC 115889 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 115889 TSF:MSG:BC 116673 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=1,st=OK:0 118528 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 118528 TSF:MSG:BC 118731 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 118731 TSF:MSG:BC 118934 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 118934 TSF:MSG:BC 119138 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 119139 TSF:MSG:BC 119342 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 119342 TSF:MSG:BC 119545 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 119545 TSF:MSG:BC 126679 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:7 136690 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 147104 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:8 157111 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 167117 TSF:MSG:SEND,45-45-0-0,s=7,c=1,t=47,pt=4,l=4,sg=0,ft=0,st=OK:9 177123 TSF:MSG:SEND,45-45-0-0,s=5,c=1,t=37,pt=2,l=2,sg=0,ft=0,st=OK:0 Has anyone had to reduce the Processor speed to make Teensy 3.2 Work previously? Any thoughts gratefully received.
    • Nigel31

      Trouble with Sensebender gateway initialisation
      Troubleshooting • • Nigel31  

      11
      0
      Votes
      11
      Posts
      100
      Views

      evb

      Sorry, but I'm afraid I can't help you any further. If the tests in the sketch do not go any further, there is something wrong with the board itself...
    • Nigel31

      is there a list of supported MCU platforms?
      Hardware • • Nigel31  

      5
      0
      Votes
      5
      Posts
      44
      Views

      Nigel31

      Thank you all, the last offering is ideal. As it happens, it also covers the device I wish to use, for physical size and program storage capacity. Teensy' 3.2 Many thanks, look as I might I couldn't find it.
    • Nigel31

      Signing 2.3.1 no longer allowing upload of new data?
      Troubleshooting • • Nigel31  

      16
      0
      Votes
      16
      Posts
      1133
      Views

      Nigel31

      GW Sketch, built under 2.3.1. I have not tried any more recent versions. Regards /** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * DESCRIPTION * The ArduinoGateway prints data received from sensors on the serial link. * The gateway accepts input on seral which will be sent out on radio network. * * The GW code is designed for Arduino Nano 328p / 16MHz * * Wire connections (OPTIONAL): * - Inclusion button should be connected between digital pin 3 and GND * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series * * LEDs (OPTIONAL): * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or recieve crc error * */ // Enable debug prints to serial monitor //#define MY_DEBUG #define MY_SIGNING_SOFT #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 //#define MY_SIGNING_WEAK_SECURITY // only for debug // Enable and select radio type attached #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here //#define MY_RFM69_TX_POWER_DBM (13) //#define MY_RFM69_MAX_POWER_LEVEL_DBM (13) // max. TX power 10dBm = 10mW //#define MY_IS_RFM69HW // Omit if your RFM is not "H" //#define MY_RF69_IRQ_PIN 2 //#define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #define MY_RFM69_CS_PIN 10 // NSS. Use MY_RF69_SPI_CS for older versions (before 2.2.0) //#define MY_RFM69_ENABLE_ENCRYPTION //#define MY_RFM69_NETWORKID 100 // Default is 100 in lib. Uncomment it and set your preferred network id if needed #define MY_SPLASH_SCREEN_DISABLED // Set LOW transmit power level as default, if you have an amplified NRF-module and // power your radio separately with a good regulator you can turn up PA level. //#define MY_RF24_PA_LEVEL RF24_PA_MAX // Enable serial gateway #define MY_GATEWAY_SERIAL // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway #define MY_INCLUSION_BUTTON_FEATURE // Inverses behavior of inclusion button (if using external pullup) //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP // Set inclusion mode duration (in seconds) #define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button #define MY_INCLUSION_MODE_BUTTON_PIN 3 // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Inverses the behavior of leds //#define MY_WITH_LEDS_BLINKING_INVERSE // Flash leds on rx/tx/err // Uncomment to override default HW configurations #define MY_DEFAULT_ERR_LED_PIN 4 // Error led pin #define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin #define MY_DEFAULT_TX_LED_PIN 7 // tx #include <MySensors.h> void setup() { // Setup locally attached sensors } void presentation() { // Present locally attached sensors } void loop() { // Send locally attached sensor data here }```
    • Nigel31

      What is the correct way to implement a WDT, for reset on a Sleeping node?
      Troubleshooting • • Nigel31  

      19
      0
      Votes
      19
      Posts
      1473
      Views

      Nigel31

      Hi. Power side switching.