Navigation

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

    Topics created by stevebus

    • stevebus

      [SOLVED] Yet another RFM69HCW / W5100 ethernet gateway thread :-)
      Troubleshooting • • stevebus  

      22
      0
      Votes
      22
      Posts
      6056
      Views

      stevebus

      done! Thanks @mfalkvidd
    • stevebus

      Reasonable radio range for a battery powered SenseBender + radio setup?
      Hardware • • stevebus  

      2
      0
      Votes
      2
      Posts
      847
      Views

      stevebus

      BTW - meant to mention.. The batteries I'm using measure 3.13V on my multimeter
    • stevebus

      Missing "node" device for mysensors on VeraEdge (UI7)
      Vera • • stevebus  

      5
      0
      Votes
      5
      Posts
      1627
      Views

      stevebus

      @hek Thanks - I'll try that too... if I can ever get done writing code for work so I can write code for home
    • stevebus

      My compliments to the team!
      Development • • stevebus  

      1
      9
      Votes
      1
      Posts
      638
      Views

      No one has replied

    • stevebus

      [SOLVED] Trash in serial monitor when battery powering... (trying to troubleshoot a hang)
      Troubleshooting • • stevebus  

      9
      0
      Votes
      9
      Posts
      2833
      Views

      ToniA

      Are you using the 115200 baud rate (I guess you are)? Try lowering the baud rate down to 38400 if you are running on 8 MHz. On 1 MHz you may need to go down to 4800. Well, this doesn't explain why you get total garbage, but at 115200 you get corrupted characters every once and a while, frequently enough to make serial transfer from PC to Arduino a mess. See these tables: http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1 http://wormfood.net/avrbaudcalc.php?postclock=1&hidetables=1 For the same reason you can't use Sensebender or Pro Mini 3.3V as the serial gateway, unless you set the baud rate down to something like 38400.
    • stevebus

      Mysensor hang on gw.send.... (and possibly roasting radios)
      Troubleshooting • • stevebus  

      4
      0
      Votes
      4
      Posts
      1652
      Views

      stevebus

      @BartE - thanks for the tips. are you suggesting these may fix my hanging issue? or just generally good mysensors coding practices and can't hurt? @mfalkvidd - Certainly could be my problem. Pulling power doesn't reset the radio, but I've only tried that after the radio won't re-initialize with the reset. So maybe I should always restart by power cycling? Any way to 'recover' the bad radios, they don't work even after a power cycle. Has anyone added the code to properly re-initialize the radio yet?
    • stevebus

      gw.sleep and debounce?
      Development • • stevebus  

      4
      0
      Votes
      4
      Posts
      2621
      Views

      AWI

      @TheoL a simple capacitor to ground is sufficient in most cases. If you use the Arduino internal pull-up a you only need a capacitor of around 300 nF to 1 uF.( the "100" value in the schematic)
    • stevebus

      Vera - Can't create GW device with UI7 files
      Troubleshooting • • stevebus  

      21
      0
      Votes
      21
      Posts
      9246
      Views

      miro

      @korttoma said: "Can´t Detect Device" This was fixed for me when I changed all three CommFailure. CommFailure = 0 CommFailureTime = 0 CommFailureAlarm= 0 Thanks a lot!
    • stevebus

      WITH_LEDS_BLINKING - for gateways only?
      Development • • stevebus  

      5
      0
      Votes
      5
      Posts
      1817
      Views

      HarryDutch

      MySensors 1.5.1 Controller: Domoticz I'm using a simpel test sensor with the "blinking led's" to find "dead zones" in my house. The "blinking led's" are a big help for this and works flawlessly all the time. /** * 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. * ******************************* */ #include <SPI.h> #include <MySensor.h> #define CHILD_ID_BUTTON 0 //pushbutton attached to interrupt 0 (= pin 2). #define CHILD_ID_LED 1 //LED that is switch on/off by the controller (Domoticz). MySensor gw; MyMessage msg(CHILD_ID_LED, V_LIGHT); MyMessage msg2(CHILD_ID_BUTTON, V_STATUS); byte firstTime = 1; //make sure that the mcu is going to sleep for the first time (no loop) void setup() { gw.begin(incomingMessage); gw.sendSketchInfo("Test sensor","1.0"); gw.present(CHILD_ID_LED, S_LIGHT); gw.present(CHILD_ID_BUTTON, S_BINARY); pinMode(2, INPUT_PULLUP); //interrupt = 0; pinMode(7, OUTPUT); //LED is attached to pin 7 digitalWrite(7, LOW); //make sure that the LED is off } void loop() { if(firstTime == 0) { gw.process(); gw.send(msg2.set(1)); // send to controller a message that the button has been pushed. The controller then swithes the LED on (incomingMessage) gw.wait(2000); if(digitalRead(7) == HIGH) digitalWrite(7, LOW); // switch the LED off after 2 seconds gw.send(msg.set(0)); // let the controller know that the mcu has switched off the LED gw.wait(2000); } firstTime = 0; gw.sleep(0,FALLING); // go to sleep and wait for the next button push } void incomingMessage(const MyMessage &message) { if (message.type == V_LIGHT) { if (message.getInt() == 1) digitalWrite(7, HIGH); } }
    • stevebus

      Ethernet Gateway - unreliable (sort-of)
      Troubleshooting • • stevebus  

      26
      0
      Votes
      26
      Posts
      11967
      Views

      stevebus

      @BulldogLowell - Neither the Uno or the Ethernet shield gets hot. I seem to have the same experience no matter how I power it... @Dan-S - I'm using a ENC28J60 based shield, not Wiznet. I had both. I actually tried to use the Wiznet board first, but it seems to be completely bad (I can't even get any of the built-in Ethernet examples to work with it). I don't have another ENC28J60 board to test with.. However - by way of a small update. I've had the GW running for several days in a row now and have a few updates/observations: communication from sensor to GW to Vera continues to work flawlessly. I finally got around to adding a sensor that requires commands to be sent FROM the Vera (a variation on the relay actuator sample). Communication from the Vera through the GW to the sensor also works very reliably... So, it seems the problem is not the Ethernet stack or listener. So, the problem seems to be isolated to the inclusion mode and Metric/Imperial buttons. inclusion mode now works 'sometimes'. It doesn't work every time, but sometimes setting inclusion mode from the Vera UI works, as opposed to never working previously after the first 30 seconds after a reboot. It seems like it works right as I'm about to get irritated that I have to walk down two flights of stairs to my basement to push the inclusion mode button manually, so maybe the Vera/GW have a 'mood' sensor I don't know (yet) why it works sometimes and not others. Still troubleshooting. But I'm encouraged that the Vera/Mysensors combination is trending towards more reliability.
    • stevebus

      Ethernet Gateway - Radio Init Fail
      Troubleshooting • • stevebus  

      12
      0
      Votes
      12
      Posts
      4637
      Views

      Sparkman

      @stevebus Glad to hear you got it working! Cheers Al