Navigation

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

    Posts made by Mark Swift

    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      @dustin-thurston Mine are certainly plus models, as they connect at 250kbps without issue (nor do they need debug turned on).

      posted in Hardware
      Mark Swift
      Mark Swift
    • RE: Auto resend on NACK

      @mfalkvidd said in Auto resend on NACK:

      https://forum.mysensors.org/post/33832

      Would someone be kind enough to point me in the direction of a good software acknowledgement example? I've been building MySensors for 4 years and still have sensors that don't send reliable messages. While most have been replaced with ESP's - these sensors are extremely remote and battery powered (MySensors wins here!).

      Currently I use:

      void resend(MyMessage &msg, int repeats) {
              int repeat = 1;
              const int repeatDelay = 100;
              boolean sendOK = false;
              while ((sendOK == false) and (repeat <= repeats)) {
                      if (send(msg) == true) {
                              sendOK = true;
                      } else {
                              sendOK = false;
                              #ifdef MY_DEBUG
                              Serial.print(F("Send error: "));
                              Serial.println(repeat);
                              #endif
                              repeat++;
                              wait(repeatDelay);
                      }
              }
      }
      

      But this doesn't seem to ensure reliable delivery (some nodes send 10 msgs before sleeping). Often I get multiple messages arriving (I assume this is the burst), but some (often vital) never make it.

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: mysgw.service fails with SEGV if ontroller connects

      @tekka I also see this, issue posted on GitHub.

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      @fruijs I bought them here: https://www.aliexpress.com/item/32980796969.html?spm=a2g0s.9042311.0.0.61584c4dSzvgS3

      posted in Hardware
      Mark Swift
      Mark Swift
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      Just got 4 of these, happy to say they're all '+' models and connect without issues, bingo!

      posted in Hardware
      Mark Swift
      Mark Swift
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      Is there any indication how the deep sleep performs on these?

      posted in Hardware
      Mark Swift
      Mark Swift
    • Use battery_level to create an entity with a dynamic icon (avoid templates and save airspace noise!)

      Hi,

      Thanks for this excellent HA component.

      Currently I create children for the voltage and percentage and display them in the HA frontend (lovelace).

      It would be nice however if we can utilise the battery_level attribute already present and create a new entity using the dynamic battery icon option. This would prevent unrequired children (less transmissions and data, I have over 25 sensors), and also make it easy to identify sensor battery level. I realise this can be done via a value template, but that's not an ideal solution...

      Many thanks in advance.

      posted in Home Assistant
      Mark Swift
      Mark Swift
    • RE: πŸ’¬ Building a Raspberry Pi Gateway

      Hi Guys,

      Is anyone here using the Pi with OTA updates? I'm finding them painfully slow (1-2 stream messages every few seconds). It's taking 1 hour per OTA update compared with 2-3 minutes when using the Arduino gateway!

      posted in Announcements
      Mark Swift
      Mark Swift
    • RE: How to enable OTA debug on Pi gateway?

      Trying it with the extra config command:

      --extra-cxxflags="-DMY_OTA_LOG_RECEIVER_FEATURE"

      posted in General Discussion
      Mark Swift
      Mark Swift
    • How to enable OTA debug on Pi gateway?

      Hello,

      How can I enable 'MY_OTA_LOG_RECEIVER_FEATURE' on the Pi gateway?

      posted in General Discussion
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka said in MYSBootloader 1.3.0-beta.3:

      @Mark-Swift said in MYSBootloader 1.3.0-beta.3:

      @tekka said in MYSBootloader 1.3.0-beta.3:

      @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

      @tekka, just tried again, perhaps I'm missing something obvious?

      I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

      Did you try with 1.3.0-beta.4? https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

      @tekka that did it, it's now working... now to figure out what the returned signal report numbers mean πŸ™‚

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka said in MYSBootloader 1.3.0-beta.3:

      @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

      @tekka, just tried again, perhaps I'm missing something obvious?

      I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka said in MYSBootloader 1.3.0-beta.3:

      @Mark-Swift This feature only works on MySensors >=2.2.0

      @tekka I'm using the latest dev branch on all my nodes and gateway...

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka try as I might, I can't get the nodes to respond to the new 'signal report' option in MYS Controller, any ideas why?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      I'd also love to use the signal report features, I thought it was enabled by default in MS, seems not to work here when I request an item from MYS?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      @tekka it's been some time since I flashed the bootloader, I notice I currently have a lot of different hex files (which I believe I compiled myself), do I no longer need different files for different speeds, i.e 16 / 8 /1Mhz?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: OTA firmware updating is too slow..

      If I recall I tried that, I seem to remember it only works for the sensebender board? Perhaps I'm mistaken though, it was over 1 year ago. @tekka, can you confirm?

      posted in Bug Reports
      Mark Swift
      Mark Swift
    • RE: OTA firmware updating is too slow..

      @manutremo please share your method so we can all benefit πŸ™‚

      posted in Bug Reports
      Mark Swift
      Mark Swift
    • RE: ESP8266 WiFi gateway port for MySensors

      @Yveaux said in ESP8266 WiFi gateway port for MySensors:

      @Mark-Swift that issue apparently addressed an issue in the vs1053 library, which surfaced because the esp8266 doesn't support interrupts on spi transfers.
      The issue was closed because the vs1053 library was modified to support esp8266, unfortunately not because esp interrupt support for spi was implemented...

      @Yveaux You're right, should have read more before jumping to conclusions 😞

      Damn, I thought I could finally dump my serial gateway!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: ESP8266 WiFi gateway port for MySensors

      @hek @Yveaux I see the blocking issue on the ESP side has been closed... Does this mean we can now use the ESP in high traffic environments? How can we test it, I assume we also need to activate IRQ for the NRF in the ESP gateway code?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Discussion: Reliable delivery

      I have to chime in and share my agreement. This seems like a fundamental piece of information, I mean, we all want reliable delivery right? For now I've copied a resend function I found on the forums (with some tweaks), but in my opinion, such code should at least me in the core - with the appropriate explanation.

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Rain sensor

      Is there a chance you can post the code? I'd be interested to see the time to midnight function.

      posted in My Project
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      I use these adaptor boards, I presumed they worked okay, what is missing @gohan, are the capacitors present on other adapter boards do you know? BTW the robotdyn stuff seems very well made but I've actually found their NRF's to perform very poorly.

      posted in Development
      Mark Swift
      Mark Swift
    • RE: v0.2.0

      Awesome work Erik!

      posted in Homey
      Mark Swift
      Mark Swift
    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      I'm amazed this hasn't got more attention. A superb contribution to the community and one which I'm sure has taken many hours... Thank you!

      posted in NodeManager
      Mark Swift
      Mark Swift
    • Incoming readings become 'corrupt' after sometime

      Good morning all,

      I'm experiencing a strange issue that's got me banging my head against the wall. Running the latest version of MySensors and the latest MYS bootloader, nodes start to send in corrupt readings after a period of time.

      The node subtypes report incorrectly, for example v_gust instead of v_status, the sketch name reports all kinds of crazy characters - it's almost like they're possessed πŸ˜„

      Restarting / rebooting the nodes doesn't help, only a restart of the gateway seems to resolve the issue.

      0_1486455814113_Screen Shot 2017-02-07 at 08.22.40.png

      Can anyone help?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka

      I've never used the clear EEPROM feature but would like to.

      I've added:

      #define MY_SPECIAL_DEBUG
      

      To my sketches. Using the latest MYSController, will the menu option 'Clear EEPROM' still do the trick, or does the application need some updates?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka I'd like to put my gateway in quite an isolated place and update the sketches OTA, but I presume that's not possible as without the gateway live, there's nothing to action the OTA 😞

      I've tried the ESP as it allows OTA updates, but the ESP still has blocking code and it can't handle all my nodes without dropping messages.

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka is it okay to use the bootloader on the gateway?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Looking for detailed description for hacking a sonoff

      I have a standard ethernet gateway (NRF) and my controller is the home automation system 'Homey'. I presume I cannot connect these directly to my controller?

      posted in Hardware
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      I @tekka, I thought as much, so basically I just need a bootloader with the right Mhz and then set fuses in the Arduino IDE boards.txt.

      I used the fuse settings from the original boards.txt included with the Arduino IDE, but adjusted the extended one to 0x06 (Adjust BOD).

      I noticed you used slightly different fuses to the Arduino IDE, you're using fuses that indicate a floating crystal or something?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka It seems to work? I guess if there was an issue it wouldn't work at all?

      Please can you conform my fuses look okay in the boards.txt I posted above? Also, do I need to change the fuses in the makefile and make a file for each device, or just 1 x 16Mhz and 1 x 8Mhz for example?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka None that I'm aware of? 😞

      I just changed the fuses in the makefile to match the ones in my boards.txt, not sure if that's required, can you take a look at my questions above, I really want to be sure I'm doing all of this right before deploying.

      To recap with regards the bootloader.

      1. Installed Windows 7
      2. Installed mingw (core and c++ compiler)
      3. Installed Arduino IDE and MySensors library (Installed at the same location as you, at c drive root)
      4. Downloaded bootloader from github
      5. Edited the fuses and clock speed at the top of the makefile to match my boards.txt
      6. Ran makefile from cmd
      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka Just wanted to check if the above log looks okay, currently rolling the bootloader out to 14 nodes (painful process!) and wanted to check if it looks okay before I do.

      I'm also using this board.txt, I made a separate entry for my Uno's, do they all look okay? I basically used the fuses from the standard Arduino boards.txt with the change of 0x05 to 0x06 for the BOD? I noticed in the makefile that you can specify the fuses, do I need to compile a bootloader for each device with the exact fuses, or will one bootloader for 16 / 8 / 1Mhz suffice?

      Thank you very much in advance, the bootloader is amazing work.

      menu.cpu=Processor
      
      ##############################################################
      
      pro.name=MySensors Bootloader for Pro Mini
      
      pro.upload.tool=arduino:avrdude
      pro.upload.protocol=arduino
      pro.upload.maximum_size=30720
      pro.upload.maximum_data_size=2048
      
      pro.bootloader.tool=arduino:avrdude
      pro.bootloader.unlock_bits=0x3F
      pro.bootloader.lock_bits=0x0F
      
      pro.build.mcu=atmega328p
      pro.build.board=AVR_PRO
      pro.build.core=arduino:arduino
      pro.build.variant=arduino:standard
      
      ## Arduino with MYSBootloader Beta 2
      ## -------------------------------------------------
      
      ## pro.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 2
      ## pro.menu.cpu.16MHzatmega328.upload.speed=115200
      ## pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
      ## pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
      ## pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
      ## pro.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_16Mhz.hex
      ## pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
      
      ## pro.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8) 1.3 Beta 2
      ## pro.menu.cpu.8MHzatmega328.upload.speed=38400
      ## pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2
      ## pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
      ## pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
      ## pro.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_8Mhz.hex
      ## pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
      
      ## pro.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8) 1.3 Beta 2
      ## pro.menu.cpu.1MHzatmega328.upload.speed=9600
      ## pro.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
      ## pro.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
      ## pro.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
      ## pro.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_1Mhz.hex
      ## pro.menu.cpu.1MHzatmega328.build.f_cpu=1000000L
      
      ## Arduino with MYSBootloader Beta 3
      ## -------------------------------------------------
      
      pro.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 3
      pro.menu.cpu.16MHzatmega328.upload.speed=115200
      pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
      pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
      pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
      pro.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_16Mhz.hex
      pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
      
      pro.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8) 1.3 Beta 3
      pro.menu.cpu.8MHzatmega328.upload.speed=38400
      pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF
      pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
      pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
      pro.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_8Mhz.hex
      pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
      
      pro.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8) 1.3 Beta 3
      pro.menu.cpu.1MHzatmega328.upload.speed=9600
      pro.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
      pro.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
      pro.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
      pro.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_1Mhz.hex
      pro.menu.cpu.1MHzatmega328.build.f_cpu=1000000L
      
      ##############################################################
      ##############################################################
      ##############################################################
      ##############################################################
      ##############################################################
      
      menu.cpu=Processor
      
      ##############################################################
      
      uno.name=MySensors Bootloader for Uno
      
      uno.upload.tool=arduino:avrdude
      uno.upload.protocol=arduino
      uno.upload.maximum_size=32256
      uno.upload.maximum_data_size=2048
      
      uno.bootloader.tool=arduino:avrdude
      uno.bootloader.unlock_bits=0x3F
      uno.bootloader.lock_bits=0x0F
      
      uno.build.mcu=atmega328p
      uno.build.board=AVR_UNO
      uno.build.core=arduino:arduino
      uno.build.variant=arduino:standard
      
      ## Arduino with MYSBootloader Beta 2
      ## -------------------------------------------------
      
      ## uno.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 2
      ## uno.menu.cpu.16MHzatmega328.upload.speed=115200
      ## uno.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
      ## uno.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
      ## uno.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
      ## uno.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_16Mhz.hex
      ## uno.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
      
      ## Arduino with MYSBootloader Beta 3
      ## -------------------------------------------------
      
      uno.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 3
      uno.menu.cpu.16MHzatmega328.upload.speed=115200
      uno.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
      uno.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
      uno.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
      uno.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_16Mhz.hex
      uno.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
      
      posted in Development
      Mark Swift
      Mark Swift
    • RE: 'getConfig' was not declared in this scope (V2.1.1) - FIXED

      Fixed, seems in V2.1.1 it changed to "getControllerConfig".

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • 'getConfig' was not declared in this scope (V2.1.1) - FIXED

      Hi Guys,

      After upgrading to version 2.1.1 from 2.0.0 I'm getting this error... It worked fine before?

      I guess something has changed?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: nRF24L01+PA+LNA hangs my software but transmits when PA is touched

      @MarcoE I think I do have units with the issue, my hope was you could share it here for all to see, it might help solve a number of issues for the community...

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka, started a windows VM, run via MinGW and got this when running makefile, does it look okay?

      C:\MySensorsBootloaderRF24-development>mingw32-make.exe
      rm *.o
      process_begin: CreateProcess(NULL, rm *.o, ...) failed.
      make (e=2): The system cannot find the file specified.
      Makefile:40: recipe for target 'clean' failed
      mingw32-make.exe: [clean] Error 2 (ignored)
      rm *.elf
      process_begin: CreateProcess(NULL, rm *.elf, ...) failed.
      make (e=2): The system cannot find the file specified.
      Makefile:40: recipe for target 'clean' failed
      mingw32-make.exe: [clean] Error 2 (ignored)
      rm *.hex
      process_begin: CreateProcess(NULL, rm *.hex, ...) failed.
      make (e=2): The system cannot find the file specified.
      Makefile:40: recipe for target 'clean' failed
      mingw32-make.exe: [clean] Error 2 (ignored)
      "C:/Arduino/hardware/tools/avr/bin/avr-gcc" -funsigned-char -funsigned-bitfields
       -DF_CPU=16000000L -Os -ffunction-sections -fdata-sections -fpack-struct -fshort
      -enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -M
      D -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o"  -IC:/Ardu
      ino/hardware/tools/avr/avr/include/avr MYSBootloader.c -o MYSBootloader.o
      In file included from Core.h:40:0,
                       from MYSBootloader.c:69:
      HW.h:51:2: warning: #warning is a GCC extension
       #warning BAUD_RATE error greater than 2%
        ^
      HW.h:51:2: warning: #warning BAUD_RATE error greater than 2% [-Wcpp]
      In file included from Core.h:42:0,
                       from MYSBootloader.c:69:
      MyMessage.h:292:3: warning: ISO C99 doesn't support unnamed structs/unions [-Wpe
      dantic]
        };
         ^
      "C:/Arduino/hardware/tools/avr/bin/avr-gcc" -nostartfiles -Wl,-s -Wl,-static -Wl
      ,-Map=".map" -Wl,--start-group -Wl,--end-group -Wl,--gc-sections -mrelax -Wl,-se
      ction-start=.text=0x7800 -mmcu=atmega328p   -o MYSBootloader.elf MYSBootloader.o
       -lm
      "C:/Arduino/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom MYSBootloader
      .elf MYSBootloader.hex
      "C:/Arduino/hardware/tools/avr/bin/avr-size" MYSBootloader.elf
         text    data     bss     dec     hex filename
         2036       6      72    2114     842 MYSBootloader.elf
      
      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka, I'm trying to compile the HEX using OSX. I have installed avr-gcc with homebrew but I get

      rm *.o
      rm: *.o: No such file or directory
      make: [clean] Error 1 (ignored)
      rm *.elf
      rm: *.elf: No such file or directory
      make: [clean] Error 1 (ignored)
      rm *.hex
      rm: *.hex: No such file or directory
      make: [clean] Error 1 (ignored)
      "avr-gcc" -funsigned-char -funsigned-bitfields -DF_CPU=16000000L -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I MYSBootloader.c -o MYSBootloader.o
      avr-gcc: fatal error: no input files
      compilation terminated.
      make: *** [MYSBootloader.o] Error 1

      When issueing the Make command, can you help, any suggestions?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      @tekka thank you, so if I

      #define MY_TRANSPORT_WAIT_READY_MS 60000
      

      Am I right in thinking that my node will enter the loop after it tries to connect to a parent for 60 seconds and fails? (In my case it'd then sleep until the next interrupt, when I guess it would then try again for 60 seconds...).

      I really appreciate your help getting my head around this πŸ™‚

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: ESP8266 gateway + WebServer = Awesome!

      Is this still under development?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka I've noticed some odd things with my nodes when running the bootloader.

      To test I uploaded a simple count time sketch. When running the MYS bootloader the timer resets every 10 seconds, see:

      Time: 999
      Time: 2000
      Time: 3000
      Time: 4001
      Time: 5001
      Time: 6002
      Time: 7004
      Time: 8003
      Time: 9005
      Time: 0
      Time: 999
      Time: 2000
      Time: 3000
      Time: 4001
      Time: 5001
      Time: 6002
      Time: 7004
      Time: 8003
      Time: 9005
      Time: 0
      

      Using the stock Pro Mim 8Mhz 3.3v bootloader it works fine, any ideas?
      Perhaps this is because I'm testing using a non-MySensors sketch?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      @tekka I guessed that, I thought however that you'd mentioned it would timeout, and try again later? As it stands it appears it'll keep trying until the battery is dead?

      If nothing else I just want to clear up the behaviour so I fully understand it.

      Thanks,

      Mark

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      Debug:

      0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
      4 TSM:INIT
      6 TSF:WUR:MS=0
      14 TSM:INIT:TSP OK
      16 TSM:INIT:STATID=4
      18 TSF:SID:OK,ID=4
      20 TSM:FPAR
      22 TSM:FPAR:STATP=1
      24 TSM:ID
      24 TSM:ID:OK
      26 TSM:UPL
      63 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      2072 TSM:UPL
      2109 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      4118 TSM:UPL
      4155 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      6164 TSM:UPL
      6201 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      8210 !TSM:UPL:FAIL
      8212 TSM:FPAR
      8212 TSM:FPAR:STATP=1
      8214 TSM:ID
      8216 TSM:ID:OK
      8218 TSM:UPL
      8255 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      10264 TSM:UPL
      10301 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      12310 TSM:UPL
      12347 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      14356 TSM:UPL
      14393 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      16402 !TSM:UPL:FAIL
      16404 TSM:FPAR
      16404 TSM:FPAR:STATP=1
      16408 TSM:ID
      16410 TSM:ID:OK
      16410 TSM:UPL
      16449 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      18458 TSM:UPL
      18495 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      20504 TSM:UPL
      20541 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      22550 TSM:UPL
      22587 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      24596 !TSM:UPL:FAIL
      24598 TSM:FPAR
      24598 TSM:FPAR:STATP=1
      24602 TSM:ID
      24604 TSM:ID:OK
      24604 TSM:UPL
      24643 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      26652 TSM:UPL
      26689 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      28698 TSM:UPL
      28735 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      30744 TSM:UPL
      30781 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      32790 !TSM:UPL:FAIL
      32792 TSM:FPAR
      32792 TSM:FPAR:STATP=1
      32796 TSM:ID
      32798 TSM:ID:OK
      32798 TSM:UPL
      32837 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      34846 TSM:UPL
      34883 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      36892 TSM:UPL
      36929 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      38938 TSM:UPL
      38975 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      40984 !TSM:UPL:FAIL
      40986 TSM:FPAR
      40986 TSM:FPAR:STATP=1
      40990 TSM:ID
      40992 TSM:ID:OK
      40992 TSM:UPL
      41031 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      43040 TSM:UPL
      43077 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      45086 TSM:UPL
      45123 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      47132 TSM:UPL
      47169 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      49178 !TSM:UPL:FAIL
      49180 TSM:FPAR
      49180 TSM:FPAR:STATP=1
      49184 TSM:ID
      49186 TSM:ID:OK
      49186 TSM:UPL
      49225 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      51234 TSM:UPL
      51271 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      53280 TSM:UPL
      53317 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      55326 TSM:UPL
      55363 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      57372 !TSM:UPL:FAIL
      57374 TSM:FPAR
      57374 TSM:FPAR:STATP=1
      57378 TSM:ID
      57380 TSM:ID:OK
      57380 TSM:UPL
      57419 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      59428 TSM:UPL
      59465 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      61474 TSM:UPL
      61511 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      63520 TSM:UPL
      63557 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      65566 !TSM:UPL:FAIL
      65568 TSM:FPAR
      65568 TSM:FPAR:STATP=1
      65572 TSM:ID
      65574 TSM:ID:OK
      65574 TSM:UPL
      65613 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      67624 TSM:UPL
      67661 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      69672 TSM:UPL
      69709 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      71720 TSM:UPL
      71757 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      73768 !TSM:UPL:FAIL
      73771 TSM:FPAR
      73771 TSM:FPAR:STATP=1
      73775 TSM:ID
      73777 TSM:ID:OK
      73777 TSM:UPL
      73816 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      75825 TSM:UPL
      75862 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      77871 TSM:UPL
      77907 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      79917 TSM:UPL
      79953 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      81963 !TSM:UPL:FAIL
      81965 TSM:FPAR
      81965 TSM:FPAR:STATP=1
      81969 TSM:ID
      81971 TSM:ID:OK
      81971 TSM:UPL
      82010 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      84019 TSM:UPL
      84056 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      86065 TSM:UPL
      86102 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      88111 TSM:UPL
      88147 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      90157 !TSM:UPL:FAIL
      90159 TSM:FPAR
      90159 TSM:FPAR:STATP=1
      90163 TSM:ID
      90165 TSM:ID:OK
      90165 TSM:UPL
      90204 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      92213 TSM:UPL
      92250 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      94259 TSM:UPL
      94296 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      96305 TSM:UPL
      96342 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      98351 !TSM:UPL:FAIL
      98353 TSM:FPAR
      98353 TSM:FPAR:STATP=1
      98357 TSM:ID
      98359 TSM:ID:OK
      98359 TSM:UPL
      98398 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      100407 TSM:UPL
      100444 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      102453 TSM:UPL
      102490 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      104499 TSM:UPL
      104536 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      106545 !TSM:UPL:FAIL
      106547 TSM:FPAR
      106549 TSM:FPAR:STATP=1
      106551 TSM:ID
      106553 TSM:ID:OK
      106555 TSM:UPL
      106592 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      108601 TSM:UPL
      108638 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      110647 TSM:UPL
      110684 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      112693 TSM:UPL
      112730 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      114739 !TSM:UPL:FAIL
      114741 TSM:FPAR
      114743 TSM:FPAR:STATP=1
      114745 TSM:ID
      114747 TSM:ID:OK
      114749 TSM:UPL
      114786 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      116795 TSM:UPL
      116832 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      118841 TSM:UPL
      118878 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      120887 TSM:UPL
      120924 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      122933 !TSM:UPL:FAIL
      122935 TSM:FPAR
      122937 TSM:FPAR:STATP=1
      122939 TSM:ID
      122941 TSM:ID:OK
      122943 TSM:UPL
      122980 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      124989 TSM:UPL
      125026 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      127035 TSM:UPL
      127072 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      129081 TSM:UPL
      129118 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      131127 !TSM:UPL:FAIL
      131129 TSM:FPAR
      131131 TSM:FPAR:STATP=1
      131133 TSM:ID
      131135 TSM:ID:OK
      131137 TSM:UPL
      131174 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      133183 TSM:UPL
      133220 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      135229 TSM:UPL
      135266 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      137275 TSM:UPL
      137312 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      139321 !TSM:UPL:FAIL
      139323 TSM:FPAR
      139325 TSM:FPAR:STATP=1
      139327 TSM:ID
      139329 TSM:ID:OK
      139331 TSM:UPL
      139368 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      141377 TSM:UPL
      141414 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      143423 TSM:UPL
      143460 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      145469 TSM:UPL
      145506 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      147515 !TSM:UPL:FAIL
      147517 TSM:FPAR
      147519 TSM:FPAR:STATP=1
      147521 TSM:ID
      147523 TSM:ID:OK
      147525 TSM:UPL
      147562 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      149571 TSM:UPL
      149608 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      151617 TSM:UPL
      151654 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      153663 TSM:UPL
      153700 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      155709 !TSM:UPL:FAIL
      155711 TSM:FPAR
      155713 TSM:FPAR:STATP=1
      155715 TSM:ID
      155717 TSM:ID:OK
      155719 TSM:UPL
      155756 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      157765 TSM:UPL
      157802 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      159811 TSM:UPL
      159848 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      161857 TSM:UPL
      161894 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      163903 !TSM:UPL:FAIL
      163905 TSM:FPAR
      163907 TSM:FPAR:STATP=1
      163909 TSM:ID
      163911 TSM:ID:OK
      163913 TSM:UPL
      163950 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      165959 TSM:UPL
      165996 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      168005 TSM:UPL
      168042 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      170051 TSM:UPL
      170088 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      172097 !TSM:UPL:FAIL
      172099 TSM:FPAR
      172101 TSM:FPAR:STATP=1
      172103 TSM:ID
      172105 TSM:ID:OK
      172107 TSM:UPL
      172144 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      174153 TSM:UPL
      174190 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      176199 TSM:UPL
      176236 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      178245 TSM:UPL
      178282 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      180291 !TSM:UPL:FAIL
      180293 TSM:FPAR
      180295 TSM:FPAR:STATP=1
      180297 TSM:ID
      180299 TSM:ID:OK
      180301 TSM:UPL
      180338 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      182347 TSM:UPL
      182384 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      184393 TSM:UPL
      184430 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      186439 TSM:UPL
      186476 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      188485 !TSM:UPL:FAIL
      188487 TSM:FPAR
      188489 TSM:FPAR:STATP=1
      188491 TSM:ID
      188493 TSM:ID:OK
      188495 TSM:UPL
      188532 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      190541 TSM:UPL
      190578 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      192587 TSM:UPL
      192624 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      194633 TSM:UPL
      194670 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      196679 !TSM:UPL:FAIL
      196681 TSM:FPAR
      196683 TSM:FPAR:STATP=1
      196685 TSM:ID
      196687 TSM:ID:OK
      196689 TSM:UPL
      196726 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      198735 TSM:UPL
      198772 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      200781 TSM:UPL
      200818 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      202827 TSM:UPL
      202864 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      204873 !TSM:UPL:FAIL
      204875 TSM:FPAR
      204877 TSM:FPAR:STATP=1
      204879 TSM:ID
      204881 TSM:ID:OK
      204883 TSM:UPL
      204920 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      206931 TSM:UPL
      206968 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      208979 TSM:UPL
      209016 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      211027 TSM:UPL
      211064 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      213075 !TSM:UPL:FAIL
      213078 TSM:FPAR
      213080 TSM:FPAR:STATP=1
      213082 TSM:ID
      213084 TSM:ID:OK
      213086 TSM:UPL
      213123 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      215132 TSM:UPL
      215169 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      217178 TSM:UPL
      217214 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      219224 TSM:UPL
      219260 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      221270 !TSM:UPL:FAIL
      221272 TSM:FPAR
      221274 TSM:FPAR:STATP=1
      221276 TSM:ID
      221278 TSM:ID:OK
      221280 TSM:UPL
      221317 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      223326 TSM:UPL
      223363 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      225372 TSM:UPL
      225409 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      225689 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
      225695 TSF:MSG:BC
      226275 TSF:MSG:READ,0-3-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
      226281 TSF:MSG:BC
      227418 TSM:UPL
      227454 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      229464 !TSM:UPL:FAIL
      229466 TSM:FPAR
      229468 TSM:FPAR:STATP=1
      229470 TSM:ID
      229472 TSM:ID:OK
      229474 TSM:UPL
      229511 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      231520 TSM:UPL
      231557 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      233566 TSM:UPL
      233603 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      235612 TSM:UPL
      235649 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      237658 !TSM:UPL:FAIL
      237660 TSM:FPAR
      237662 TSM:FPAR:STATP=1
      237664 TSM:ID
      237666 TSM:ID:OK
      237668 TSM:UPL
      237705 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      239714 TSM:UPL
      239751 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      241760 TSM:UPL
      241797 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      243806 TSM:UPL
      243843 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      245852 !TSM:UPL:FAIL
      245854 TSM:FPAR
      245856 TSM:FPAR:STATP=1
      245858 TSM:ID
      245860 TSM:ID:OK
      245862 TSM:UPL
      245899 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      247908 TSM:UPL
      247945 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      249954 TSM:UPL
      249991 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      252000 TSM:UPL
      252037 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      254046 !TSM:UPL:FAIL
      254048 TSM:FPAR
      254050 TSM:FPAR:STATP=1
      254052 TSM:ID
      254054 TSM:ID:OK
      254056 TSM:UPL
      254093 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      256102 TSM:UPL
      256139 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      258148 TSM:UPL
      258185 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      260194 TSM:UPL
      260231 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      262240 !TSM:UPL:FAIL
      262242 TSM:FPAR
      262244 TSM:FPAR:STATP=1
      262246 TSM:ID
      262248 TSM:ID:OK
      262250 TSM:UPL
      262287 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      264296 TSM:UPL
      264333 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      266342 TSM:UPL
      266379 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      268388 TSM:UPL
      268425 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      270434 !TSM:UPL:FAIL
      270436 TSM:FPAR
      270438 TSM:FPAR:STATP=1
      270440 TSM:ID
      270442 TSM:ID:OK
      270444 TSM:UPL
      270481 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      272490 TSM:UPL
      272527 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      274536 TSM:UPL
      274573 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      276582 TSM:UPL
      276619 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      278628 !TSM:UPL:FAIL
      278630 TSM:FPAR
      278632 TSM:FPAR:STATP=1
      278634 TSM:ID
      278636 TSM:ID:OK
      278638 TSM:UPL
      278675 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      280684 TSM:UPL
      280721 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      282730 TSM:UPL
      282767 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      284776 TSM:UPL
      284813 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      286822 !TSM:UPL:FAIL
      286824 TSM:FPAR
      286826 TSM:FPAR:STATP=1
      286828 TSM:ID
      286830 TSM:ID:OK
      286832 TSM:UPL
      286869 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      288878 TSM:UPL
      288915 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      290924 TSM:UPL
      290961 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      292970 TSM:UPL
      293007 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      295016 !TSM:UPL:FAIL
      295018 TSM:FPAR
      295020 TSM:FPAR:STATP=1
      295022 TSM:ID
      295024 TSM:ID:OK
      295026 TSM:UPL
      295063 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      297072 TSM:UPL
      297109 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      299118 TSM:UPL
      299155 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      301164 TSM:UPL
      301201 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      303210 !TSM:UPL:FAIL
      303212 TSM:FPAR
      303214 TSM:FPAR:STATP=1
      303216 TSM:ID
      303218 TSM:ID:OK
      303220 TSM:UPL
      303257 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      305266 TSM:UPL
      305303 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      307312 TSM:UPL
      307349 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      309358 TSM:UPL
      309395 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      311404 !TSM:UPL:FAIL
      311406 TSM:FPAR
      311408 TSM:FPAR:STATP=1
      311410 TSM:ID
      311412 TSM:ID:OK
      311414 TSM:UPL
      311451 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      313460 TSM:UPL
      313497 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      315506 TSM:UPL
      315543 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      317552 TSM:UPL
      317589 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      319598 !TSM:UPL:FAIL
      319600 TSM:FPAR
      319602 TSM:FPAR:STATP=1
      319604 TSM:ID
      319606 TSM:ID:OK
      319608 TSM:UPL
      319645 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      321654 TSM:UPL
      321691 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      323700 TSM:UPL
      323737 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      325746 TSM:UPL
      325783 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      327792 !TSM:UPL:FAIL
      327794 TSM:FPAR
      327796 TSM:FPAR:STATP=1
      327798 TSM:ID
      327800 TSM:ID:OK
      327802 TSM:UPL
      327839 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      329848 TSM:UPL
      329885 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      331894 TSM:UPL
      331931 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      333940 TSM:UPL
      333977 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      335986 !TSM:UPL:FAIL
      335988 TSM:FPAR
      335990 TSM:FPAR:STATP=1
      335992 TSM:ID
      335994 TSM:ID:OK
      335996 TSM:UPL
      336033 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      338042 TSM:UPL
      338079 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      340088 TSM:UPL
      340125 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      342134 TSM:UPL
      342171 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      344180 !TSM:UPL:FAIL
      344182 TSM:FPAR
      344184 TSM:FPAR:STATP=1
      344186 TSM:ID
      344188 TSM:ID:OK
      344190 TSM:UPL
      344227 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      346238 TSM:UPL
      346275 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      348286 TSM:UPL
      348323 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      350334 TSM:UPL
      350371 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      352382 !TSM:UPL:FAIL
      352385 TSM:FPAR
      352387 TSM:FPAR:STATP=1
      352389 TSM:ID
      352391 TSM:ID:OK
      352393 TSM:UPL
      352430 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      354439 TSM:UPL
      354476 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      356485 TSM:UPL
      356521 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      358531 TSM:UPL
      358567 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      360577 !TSM:UPL:FAIL
      360579 TSM:FPAR
      360581 TSM:FPAR:STATP=1
      360583 TSM:ID
      360585 TSM:ID:OK
      360587 TSM:UPL
      360624 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      362633 TSM:UPL
      362670 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      364679 TSM:UPL
      364716 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      366725 TSM:UPL
      366761 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      368771 !TSM:UPL:FAIL
      368773 TSM:FPAR
      368775 TSM:FPAR:STATP=1
      368777 TSM:ID
      368779 TSM:ID:OK
      368781 TSM:UPL
      368818 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      370827 TSM:UPL
      370864 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      372873 TSM:UPL
      372910 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      374919 TSM:UPL
      374956 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      376965 !TSM:UPL:FAIL
      376967 TSM:FPAR
      376969 TSM:FPAR:STATP=1
      376971 TSM:ID
      376973 TSM:ID:OK
      376975 TSM:UPL
      377012 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      379021 TSM:UPL
      379058 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=9,st=NACK:1
      381067 TSM:UPL
      381104 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=10,st=NACK:1
      383113 TSM:UPL
      383150 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=11,st=NACK:1
      385159 !TSM:UPL:FAIL
      385161 TSM:FPAR
      385163 TSM:FPAR:STATP=1
      385165 TSM:ID
      385167 TSM:ID:OK
      385169 TSM:UPL
      385206 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=12,st=NACK:1
      387215 TSM:UPL
      387252 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=13,st=NACK:1
      389261 TSM:UPL
      389298 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=14,st=NACK:1
      391307 TSM:UPL
      391344 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=15,st=NACK:1
      393353 !TSM:UPL:FAIL
      393355 TSM:FPAR
      393357 TSM:FPAR:STATP=1
      393359 TSM:ID
      393361 TSM:ID:OK
      393363 TSM:UPL
      393400 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      395409 TSM:UPL
      395446 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
      397455 TSM:UPL
      397492 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
      399501 TSM:UPL
      399538 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
      401547 !TSM:UPL:FAIL
      401549 TSM:FPAR
      401551 TSM:FPAR:STATP=1
      401553 TSM:ID
      401555 TSM:ID:OK
      401557 TSM:UPL
      401594 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
      403603 TSM:UPL
      403640 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
      405649 TSM:UPL
      405686 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
      407695 TSM:UPL
      407732 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=7,st=NACK:1
      409741 !TSM:UPL:FAIL
      409743 TSM:FPAR
      409745 TSM:FPAR:STATP=1
      409747 TSM:ID
      409749 TSM:ID:OK
      409751 TSM:UPL
      409788 !TSF:MSG:SEND,4-4-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=8,st=NACK:1
      
      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      @tekka it's been a while but I never resolved this... If I test by changing the parent node ID to a fake one, it just tried to connect forever, thus draining the battery...

      Sketch:

      /*
        REVISION HISTORY
        Created by Mark Swift
        V1.2 - Added sleep time to force daily update
        V1.3 - Deactivate pullup on setup and added old_value logic
        V1.4 - Added daily wakeup to sleep
        V1.5 - Code cleanup
      */
      
      //*** EXTERNAL LIBRARIES **********************************
      
      #include <Vcc.h>
      
      //*** MYSENSORS *******************************************
      
      // Enable debug prints
      #define MY_DEBUG
      
      // Lower serial speed if using 1Mhz clock
      // #define MY_BAUD_RATE 9600
      
      #define MY_NODE_ID 4
      #define MY_PARENT_NODE_ID 1 // AUTO
      #define MY_PARENT_NODE_IS_STATIC
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      // #define MY_RADIO_RFM69
      
      // Override RF24L01 channel number
      // #define MY_RF24_CHANNEL 125
      
      // Override RF24L01 module PA level
      // #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Override RF24L01 datarate
      // #define MY_RF24_DATARATE RF24_250KBPS
      
      // Enabled repeater feature for this node
      // #define MY_REPEATER_FEATURE
      
      #include <MySensors.h>
      
      // *** SKETCH CONFIG **************************************
      
      #define SKETCH_NAME "Door Sensor"
      #define SKETCH_MAJOR_VER "1"
      #define SKETCH_MINOR_VER "5"
      
      // Define the sensor child IDs
      #define CHILD_ID1 1 // Switch
      #define CHILD_ID2 2 // Battery voltage
      #define CHILD_ID3 3 // Battery percent
      
      // Define the message formats
      MyMessage msg(CHILD_ID1, V_TRIPPED);
      MyMessage msg2(CHILD_ID2, V_CUSTOM);
      MyMessage msg3(CHILD_ID3, V_CUSTOM);
      
      // *** SENSORS CONFIG *************************************
      
      // Digital I/O pin for button or reed switch
      #define PRIMARY_BUTTON_PIN 3
      
      // Debounce using a small sleep
      #define DEBOUNCE_SLEEP 5
      
      // Sleep timer in milliseconds
      #define SLEEP_IN_MS 86400000
      
      // Store the old value for comparison
      int old_value = -1;
      
      // Minimum expected vcc level, in volts (2xAA alkaline)
      const float vcc_min = 2.0 * 0.9;
      // Maximum expected vcc level, in volts (2xAA alkaline)
      const float vcc_max = 2.0 * 1.5;
      // Measured vcc by multimeter divided by reported vcc
      const float vcc_correction = 2.88 / 2.82;
      Vcc vcc(vcc_correction);
      
      // *** BEGIN **********************************************
      
      void setup()
      {
        // Setup the contact sensor
        pinMode(PRIMARY_BUTTON_PIN, INPUT);
        // Activate or deactivate the internal pull-up - high if using internal resistor or low if using external
        digitalWrite(PRIMARY_BUTTON_PIN, LOW);
      }
      
      void presentation()
      {
        // Send the sketch version information to the gateway and controller
        sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
        // Register all sensors to the gateway
        present(CHILD_ID1, S_DOOR);
        present(CHILD_ID2, S_CUSTOM);
        present(CHILD_ID3, S_CUSTOM);
      }
      
      void loop()
      {
        // Debouce using sleep
        sleep(DEBOUNCE_SLEEP);
        int value = digitalRead(PRIMARY_BUTTON_PIN);
        // If value has changed send the updated value
        if (value != old_value) {
          send(msg.set(value == HIGH ? 0 : 1));
          old_value = value;
        }
        // Read battery voltage
        float battery_voltage = vcc.Read_Volts();
        // Calculate battery percentage
        float battery_percent = vcc.Read_Perc(vcc_min, vcc_max);
      #ifdef MY_DEBUG
        Serial.print("Battery = ");
        Serial.print(battery_voltage);
        Serial.println(" Volts");
        Serial.print("Battery = ");
        Serial.print(battery_percent);
        Serial.println("%");
      #endif
        // Send battery readings
        send(msg2.set(battery_voltage, 2));
        send(msg3.set(battery_percent, 1));
        sendBatteryLevel(battery_percent);
        // Sleep until either interupt change or timer reaches zero
        smartSleep(PRIMARY_BUTTON_PIN - 2, CHANGE, SLEEP_IN_MS);
      }
      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      I guess not... The old hex for 8Mhz works, but the one from this thread does not... 😞

      I'm trying to upload this to my Pro Mini, does anyone have an 8Mhz that works?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka am I correct in thinking the HEX found on Github can be used with all Arduino's? I noticed my old folder has one hex for 16, 8 and 1Mhz?

      I'm using this board.txt

      menu.cpu=Processor
      
      ##############################################################
      
      MYSBL13.name=MYS Bootloader - atmega328p
      
      MYSBL13.upload.tool=arduino:avrdude
      MYSBL13.upload.protocol=arduino
      MYSBL13.upload.maximum_size=30720
      MYSBL13.upload.maximum_data_size=2048
      
      MYSBL13.bootloader.tool=arduino:avrdude
      MYSBL13.bootloader.unlock_bits=0x3F
      MYSBL13.bootloader.lock_bits=0x0F
      
      MYSBL13.build.mcu=atmega328p
      MYSBL13.build.board=AVR_PRO
      MYSBL13.build.core=arduino:arduino
      MYSBL13.build.variant=arduino:standard
      
      ## -------------------------------------------------
      
      MYSBL13.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8)
      MYSBL13.menu.cpu.16MHzatmega328.upload.speed=115200
      MYSBL13.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
      MYSBL13.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
      MYSBL13.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
      MYSBL13.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
      MYSBL13.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
      
      MYSBL13.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8)
      MYSBL13.menu.cpu.8MHzatmega328.upload.speed=38400
      MYSBL13.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2
      MYSBL13.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
      MYSBL13.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
      MYSBL13.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
      MYSBL13.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
      
      MYSBL13.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8)
      MYSBL13.menu.cpu.1MHzatmega328.upload.speed=9600
      MYSBL13.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
      MYSBL13.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
      MYSBL13.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
      MYSBL13.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
      MYSBL13.menu.cpu.1MHzatmega328.build.f_cpu=1000000L```
      posted in Development
      Mark Swift
      Mark Swift
    • RE: Discussion: Reliable delivery

      Any news on this, guys? Do we have some good examples?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: nRF24L01+PA+LNA hangs my software but transmits when PA is touched

      Interesting post, do you have a link to instructions?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: MYSBootloader 1.3pre2 testing

      It's been asked that the source is uploaded multiple times over the last year +, I guess it will not happen anytime soon... 😞

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Can the NodeMCU (ESP8266) be used as a node without an NRF24L01?

      @mfalkvidd any suggestions?

      posted in General Discussion
      Mark Swift
      Mark Swift
    • RE: Can the NodeMCU (ESP8266) be used as a node without an NRF24L01?

      My controller only allows one gateway, I was hoping I could keep my current W5100 gateway and through some magic add some remote ESP's as nodes.

      posted in General Discussion
      Mark Swift
      Mark Swift
    • RE: Looking for detailed description for hacking a sonoff

      Thanks for the great replies.

      I'm not currently using MQTT, I'm running the Ethernet gateway via a W5100. Can I use the ESP boards, i.e this or the nodemcu without the need for an NRF24?

      posted in Hardware
      Mark Swift
      Mark Swift
    • Can the NodeMCU (ESP8266) be used as a node without an NRF24L01?

      I have 6 of these I'd like to deploy (already embedded in nice devices).

      Can this be done?

      posted in General Discussion
      Mark Swift
      Mark Swift
    • RE: Looking for detailed description for hacking a sonoff

      How could we make this a MySensors node?

      posted in Hardware
      Mark Swift
      Mark Swift
    • RE: nRf24L01+ connection quality meter

      Hi @karl261 I'm using the latest 2.0 snapshot, and did change the network specific settings. I'll grab a debug output and post it up next time I get access to the gateway...

      posted in My Project
      Mark Swift
      Mark Swift
    • RE: nRf24L01+ connection quality meter

      @karl261 I tried your code and it pretty much just gives me failures? I don't have any issues with nodes and tried it out of curiosity, any ideas? It seems to send pretty fast, perhaps its spamming my gateway too much?

      posted in My Project
      Mark Swift
      Mark Swift
    • RE: How to find out if message was successfully delivered?

      @arraWX Can you given an example of a sketch you run with the LED logic in?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Discussion: Reliable delivery

      I'd love to see some examples of how we can implement a reliable delivery method into critical nodes, especially now 2.0.0 is out in the wild.

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Which Arduino IDE version?

      @petewill I will need to check the connections, but it works once I roll back, so doubt it's connections? Just one controller, I disable the second one while testing. MAC address is unique, and the same in each sketch. It's baffling!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Which Arduino IDE version?

      An example of what my gateway does with 1.6.14

      )<οΏ½aοΏ½οΏ½οΏ½dv)οΏ½0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:BC
      0;255;3;0;9;TSF:MSG:FPAR REQ,ID=3
      0;255;3;0;9;TSF:CKU:OK,FCTRL
      0;255;3;0;9;TSF:MSG:GWL OK
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:PINGED,ID=3,HP=1
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:20.9
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=1,c=1,t=16,pt=2,l=2,sg=0:1
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=16,pt=2,l=2,sg=0:1
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=10,c=1,t=16,pt=1,l=1,sg=0:0
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:20.9
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=0,l=1,sg=0:0
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.1.43
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      
      posted in Development
      Mark Swift
      Mark Swift
    • RE: Which Arduino IDE version?

      @petewill same! 😞

      I will try it again when I find a moment, I was using DCHP, are you?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Which Arduino IDE version?

      My W5100 will not start with 1.6.14, it just reboots after getting an IP...

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      @tekka I don't think there's an issue.

      I'm simply asking what the logic is behind the reconnection logic on sleeping sensors, how long is the timeout for example (I'm conscious of battery drain for nodes having issues connecting).

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Which Arduino IDE version?

      Crash still happens using the latest version, downgraded to 1.6.11 😞

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Battery door sensor doesn't wake for the 1st time after approx 12 hours of sleep...

      Well, after 16 hours, I tried the sensor this morning and it worked.

      I've a suspicion that the issue is related to either an environmental factor, or perhaps the node searching for a new parent (it's currently very close to the gateway and a repeater, so I'm not sure that's the issue).

      Is there a way for me to log the debug when its in situ?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Battery sensor and re-connecting to gateway

      @tekka I'm using the latest snapshot on one of my battery sensors and can see if it can't connect, it doesn't sleep and the debug shows a rapid number of connection attempts. I'd like to know if the sensor will eventually sleep if it cannot successfully connect, and what the default timeout is?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Battery door sensor doesn't wake for the 1st time after approx 12 hours of sleep...

      That's a possibility, it's outside in a sealed box.

      I've brought it inside and will test it in the morning....

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Battery door sensor doesn't wake for the 1st time after approx 12 hours of sleep...

      I've tried adding a short sleep, sadly it doesn't make any difference.

      Like I say, if the gate is opened and closed every few hours, or even every 12, it's okay. After a full night however it failed to detect the interrupt again this morning - in fact I had to open 2-3 times before it started to work.

      I'm out of ideas 😞

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: Internet of Poultry - Fully automated chicken shed

      May I ask, how do you get debug remotely? I also presume you're using the MYS bootloader?

      Great project!

      posted in My Project
      Mark Swift
      Mark Swift
    • Battery door sensor doesn't wake for the 1st time after approx 12 hours of sleep...

      Hello guys,

      I've built a battery sensor to use on an external gate.

      I'm using the same hardware setup as here.

      http://iot-playground.com/blog/2-uncategorised/10-low-power-door-window-sensor

      I've soldered the 1M resistor from pin 3 to VCC under the Pro Mini and also have radio IRQ going to Pin 2.

      The issue I have is that if the gates used frequently every few hours it's perfect. If however it's not used for a longer period of time (for example, overnight) it doesn't seem to wake on the very first opening - all subsequent opening or closings work fine!

      Any ideas, I'm thinking it's related to my code, resistors, pull-ups?

      Code

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      #define MY_NODE_ID 4
      #define MY_PARENT_NODE_ID AUTO // 1 / AUTO
      // #define MY_BAUD_RATE 9600 // For us with 1Mhz modules
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #include <SPI.h>
      #include <MySensors.h>
      #include <Vcc.h>
      
      #define SKETCH_NAME "Door Sensor"
      #define SKETCH_MAJOR_VER "1"
      #define SKETCH_MINOR_VER "0"
      
      #define CHILD_ID1 1
      #define CHILD_ID2 2
      #define CHILD_ID3 3
      
      #define PRIMARY_BUTTON_PIN 3   // Arduino Digital I/O pin for button / reed switch
      
      MyMessage msg(CHILD_ID1, V_TRIPPED);
      MyMessage msg2(CHILD_ID2, V_CUSTOM);
      MyMessage msg3(CHILD_ID3, V_CUSTOM);
      
      const float VccMin        = 2.0 * 0.9; // Minimum expected Vcc level, in Volts. Example for 2xAA Alkaline.
      const float VccMax        = 2.0 * 1.5; // Maximum expected Vcc level, in Volts. Example for 2xAA Alkaline.
      const float VccCorrection = 2.88 / 2.82; // Measured Vcc by multimeter divided by reported Vcc
      Vcc vcc(VccCorrection);
      
      uint8_t value;
      
      void setup()
      {
        // Setup the contact sensor
        pinMode(PRIMARY_BUTTON_PIN, INPUT);
      
        // Activate internal pull-ups
        // digitalWrite(PRIMARY_BUTTON_PIN, HIGH);
      }
      
      void presentation() {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
      
        // Register binary input sensor to sensor_node (they will be created as child devices)
        // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
        // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
        present(CHILD_ID1, S_DOOR);
        present(CHILD_ID2, S_CUSTOM);
        present(CHILD_ID3, S_CUSTOM);
      }
      
      // Loop will iterate on changes on the BUTTON_PINs
      void loop()
      {
      #ifdef MY_DEBUG
        Serial.print("Waking");
      #endif
        // uint8_t value;
        // static uint8_t sentValue = 2;
      
        // Short delay to allow buttons to properly settle
        // sleep(5);
      
        value = digitalRead(PRIMARY_BUTTON_PIN);
      
        // if (value != sentValue) {
        // Value has changed from last transmission, send the updated value
        send(msg.set(value == HIGH ? 0 : 1 ));
        // sentValue = value;
        //}
      
        float v = vcc.Read_Volts();
      #ifdef MY_DEBUG
        Serial.print("VCC = ");
        Serial.print(v);
        Serial.println(" Volts");
      #endif
      
        float p = vcc.Read_Perc(VccMin, VccMax);
      #ifdef MY_DEBUG
        Serial.print("VCC = ");
        Serial.print(p);
        Serial.println("%");
      #endif
      
        send(msg2.set(v, 2));
        send(msg3.set(p, 1));
      
        // Sleep until something happens with the sensor
      
      #ifdef MY_DEBUG
        Serial.print("Sleeping");
      #endif
        sleep(PRIMARY_BUTTON_PIN - 2, CHANGE, 0);
      }
      
      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)

      Thread revival.

      I have a sensor powered by 2 AA batteries, does this still stand as a simple way to obtain their status? It was super easy to implement!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: ESP8266 WiFi gateway port for MySensors

      Was the blocking code issue ever resolved @Yveaux ?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: ESP8266 gateway + WebServer = Awesome!

      Love this, subscribed. It's s such a shame I always has issues with my ESP gateway and had to revert to standard ethernet. The ESP always used to fail upon large amounts of traffic 😞

      I believe this was down to blocking code, is this resolved? (off topic).

      BTW, is it possible to somehow record any failures?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Multisensor PIR based on IKEA Molgan

      Guys,

      This is fantastic. Can someone summarise the best practises for using an Arduino Pro mini, to benefit from maximum battery life and voltage monitoring?

      Thank you!

      posted in My Project
      Mark Swift
      Mark Swift
    • RE: Force re-routing

      Force the right parent...

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: BBQ Temp Controller - Any Interest?

      I've been using 'Heatermeter' for years, it's awesome!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: GatewayW5100 - unable to get working w/ v2.0.0

      I've also just experienced this... Rolling back to 1.6.7 now to test.

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: MySensors 2.0.0 Released

      @hek said:

      Yes, this in the new normal... we moved all the examples using external library dependencies into https://github.com/mysensors/MySensorsArduinoExamples until we can figure out which ones work with auto-dependency-download using the IDE Library Manager.

      We would really appreciate some help doing the verification.

      How does the auto download work @hek

      posted in Announcements
      Mark Swift
      Mark Swift
    • RE: Battery powered PIR and temp/humid sensor

      Hi @tomkxy

      I'm going to add one of these sensors myself, looks like you've done the hard work...

      Could I ask what board you are using, perhaps a simple schematic too if you find a moment? I have a bunch of Nano's, some light sensors (BH1750) and temperature sensors (DS18B20's) - I presume I can swap over the code as required. Thankfully I also have a number of those exact step ups!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @Oitzu The shielded modules appear to have the shield well grounded?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @hek amazing, I never knew that.

      So all I would do is define this line in my sketch and connect up the IRQ line?

      I presume I can use this on both my gateway (ESP8266) and my nodes (Nano / Uno)?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      I saw this on Hackaday, could we make this change in MySensors?

      "Don’t use polling over SPI to check if there is a received packet like most of the libs out there do. This increases the noise. Use the IRQ pin"

      @hek

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @AWI Ground is connected from the baseboard back to the Uno, along with the VCC. That's how I'm currently powering it, 5V from uno into the adaptor plate. All other control lines directly into the Uno.

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @parachutesj said:

      @Mark-Swift
      no 3.3V.
      However as said, it is an original Uno. I have clones which deliver no clean or reliable signal. I measured it before but don't remember exactly but was quite off.

      The Uno has 5v control lines doesn't it?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @parachutesj

      Strange, how are you driving them, what volt control line, 5v?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @Oitzu I presume the shielded modules from IC station would be spot on with regards shielding?

      Right now I have my base module connected the 5v line of my Uno...?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      I'm using these modules, I presume the base unit is compatible? I was confused when I read above that the PA modules may need a 3v control line.

      http://www.icstation.com/22dbm-100mw-nrf24l01ppalna-wireless-transmission-module-p-4677.html

      I'm really frustrated that none of my modules work unless I physically hold them, even the shielded ones above!

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • RE: NRF24L01+PA+LNA power consumption

      @Oitzu said:

      https://www.squirrel-labs.net/wp/wp-content/uploads/2015/02/nRFa.jpg

      Guys,

      I also use the base module to connect my NRF24 radios, I recently received 2 of the shielded PA+LNB modules but don't see much difference using them. The issue I have is that I need to hold the module for it to be reliable 😞 Once I let go, the transmission slows and becomes unreliable (I experienced the same with the unshielded modules).

      Is the base module okay to use wit the PA+LNB modules, I was concerned that someone said the module cannot use 5v control lines?

      posted in Troubleshooting
      Mark Swift
      Mark Swift
    • Default RF24 PA level and data rate in latest dev branch...

      Hi Guys,

      I've noticed quite a few changes in the latest dev branch and can see the NRF24l01 settings are now defaulted in RF24.h? Can someone confirm the default power level and data rate if it's not specified in the sketch?

      I'm running the PA + LNB modules BTW.

      Thanks,

      Mark

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Node sending same value multiple times, why?

      I'll try a debug when I'm home, but this is a remote node using MYS firmware...

      See MYS screenshots here: http://postimg.org/gallery/8ynl0jw/c4dcd695/

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Node sending same value multiple times, why?

      Yes, always '0', sometimes it sends twice, sometimes 3, and the odd time 4.

      I've tried clearing the node, uploading a new sketch, it's odd!

      posted in Development
      Mark Swift
      Mark Swift
    • RE: Node sending same value multiple times, why?

      Just one sensor...

      posted in Development
      Mark Swift
      Mark Swift
    • Node sending same value multiple times, why?

      Hi guys,

      I'm having an issue with one of my nodes sending the value multiple times (Mostly 3 or 4 times).

      The sketch:

      /*
        REVISION HISTORY
        Created by Mark Swift
        V1.1 - Started code clean up
        V1.2 - Cleaned up
        V1.3 - Changed sleep to smartSleep to allow for future developments // Cancelled for now as doesn't work so well!
      */
      
      #include <SPI.h>
      #include <DallasTemperature.h>
      #include <OneWire.h>
      
      //*** MY SENSORS ******************************************
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      #define MY_NODE_ID 2
      // #define MY_PARENT_NODE_ID 1 // AUTO
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      // #define MY_RADIO_RFM69
      
      // Channel furthest away from Wifi
      // #define MY_RF24_CHANNEL 125
      
      // For crappy PA+LNA module
      // #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Enabled repeater feature for this node
      // #define MY_REPEATER_FEATURE
      
      #include <MySensor.h>
      
      //*** CONFIG **********************************************
      
      // Send temperature only if changed? 1 = Yes 0 = No
      #define COMPARE_TEMP 0
      // Pin where dallas sensor is connected
      #define ONE_WIRE_BUS 3
      // The maximum amount of dallas temperatures connected
      #define MAX_ATTACHED_DS18B20 16
      // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
      OneWire oneWire(ONE_WIRE_BUS);
      // Pass the oneWire reference to Dallas Temperature
      DallasTemperature sensors(&oneWire);
      
      float lastTemperature[MAX_ATTACHED_DS18B20];
      int numSensors = 0;
      
      // Define loop time
      #define LOOP_TIME 60000 // Sleep time between reads (in milliseconds)
      
      // Define sensor children
      #define CHILD_ID1 1 // Dallas temperature sensor
      
      // Initialise messages
      MyMessage msg(CHILD_ID1, V_TEMP);
      
      //*********************************************************
      
      void setup()
      {
        sensors.begin(); // Startup up the OneWire library
        sensors.setWaitForConversion(false); // RequestTemperatures() will not block current thread
      }
      
      void presentation()
      {
        sendSketchInfo("Garage Freezer", "1.3"); // Send the sketch version information to the gateway and Controller
        numSensors = sensors.getDeviceCount(); // Fetch the number of attached temperature sensors
        for (int i = 0; i < numSensors && i < MAX_ATTACHED_DS18B20; i++) // Present all sensors to controller
        {
          present(i, S_TEMP);
        }
      }
      
      void loop()
      {
      
        //*** DS18B20 *******************************************
      
        sensors.requestTemperatures(); // Fetch temperatures from Dallas sensors
        int16_t conversionTime = sensors.millisToWaitForConversion(sensors.getResolution()); // Query conversion time and sleep until conversion completed
        wait(conversionTime); // Sleep() call can be replaced by wait() call if node need to process incoming messages (or if node is repeater)
        for (int i = 0; i < numSensors && i < MAX_ATTACHED_DS18B20; i++) // Read temperatures and send them to controller
        {
          float temperature = static_cast<float>(static_cast<int>((getConfig().isMetric ? sensors.getTempCByIndex(i) : sensors.getTempFByIndex(i)) * 10.)) / 10.; // Fetch and round temperature to one decimal
      #if COMPARE_TEMP == 1 // Only send data if temperature has changed and no error
          if (lastTemperature[i] != temperature && temperature != -127.00 && temperature != 85.00)
          {
      #else
          if (temperature != -127.00 && temperature != 85.00)
          {
      #endif
            send(msg.setSensor(i).set(temperature, 1)); // Send in the new temperature
            wait(500); // If set to sleeping, will still have time to wait for OTA messages...
            lastTemperature[i] = temperature; // Save new temperatures for next compare
          }
        }
      
        sleep(LOOP_TIME); // Sleep or wait (repeater)
      }
      
      posted in Development
      Mark Swift
      Mark Swift
    • RE: Discussion: Reliable delivery

      Has there been any progress on this guys?

      posted in Development
      Mark Swift
      Mark Swift
    • RE: SmartSleep compatible controller?

      I realise this is an old topic, but can anyone confirm if there are any controllers?

      posted in Controllers
      Mark Swift
      Mark Swift
    • RE: Is it possible to use ESP8266's OTA capabilities?

      @NeverDie said:

      @Mark-Swift

      By debugging, do you mean looking at the serial console output over the network, or something else?

      Yes, serial monitor via network within IDE...

      posted in Hardware
      Mark Swift
      Mark Swift