Navigation

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

    Gumers

    @Gumers

    1
    Reputation
    7
    Posts
    272
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Poland

    Gumers Follow

    Best posts made by Gumers

    • RE: Node without radio

      OMG, thats it.
      Downgrade to 1.6.11 solved problem.
      Thanks for your time. Y'r great!

      posted in Troubleshooting
      Gumers
      Gumers

    Latest posts made by Gumers

    • RE: Node without radio

      OMG, thats it.
      Downgrade to 1.6.11 solved problem.
      Thanks for your time. Y'r great!

      posted in Troubleshooting
      Gumers
      Gumers
    • RE: Node without radio

      This node is controled by Domoticz. I saw this hardware in controler without presentation name and childrens. When I turnoff this hardware in Domoticz, node doesen' reset. Log in Domo with hardware up:
      2017-08-19 23:38:37.109 TCP: Reconnecting...
      2017-08-19 23:38:38.109 MySensors: connected to: 192.168.0.172:5003
      2017-08-19 23:38:46.940 (ethGet1) Humidity (SOL 2 Hum)
      2017-08-19 23:38:47.037 (ethGet1) General/Voltage (SOL 2 Vcc )
      2017-08-19 23:38:47.110 MySensors: Connection reset!
      2017-08-19 23:38:47.110 TCP: Reconnecting in 30 seconds...
      2017-08-19 23:38:54.939 (ethGet1) Temp (STA Temp)

      IMHO connection reset concerning presentation problem.
      But still I don't understand why node doesn't present name and relay childs in Domo.
      Version of motherboard 1.6.19. powered by ac adapter.
      At the end of before() serial printed text to debuger - befor() is ok.
      I commented all lines. Save only presentation sketch name.
      Setup and loop are empty.
      Still the same. I'm going creazy...
      All of source:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enable gateway ethernet module type
      #define MY_GATEWAY_W5100
      
      // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal)
      //#define MY_W5100_SPI_EN 4
      
      // Renewal period if using DHCP
      //#define MY_IP_RENEWAL_INTERVAL 60000
      // The port to keep open on node server mode / or port to contact in client mode
      #define MY_PORT 5003
      #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEE, 0xEE, 0xED // zarezerwowane na 192.168.0.172
      
      // Enable inclusion mode
      //#define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      // Set inclusion mode duration (in seconds)
      //#define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      //#define MY_INCLUSION_MODE_BUTTON_PIN  3
      
      // Set blinking period
      //#define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      
      #include <Ethernet.h>
      #include <MySensors.h>
      #include <SPI.h>
      
      
      
      #define RELAY_1  22 
      #define NUMBER_OF_RELAYS 8 // Total number of attached relays
      #define RELAY_ON 1  // GPIO value to write to turn on attached relay
      #define RELAY_OFF 0// GPIO value to write to turn off attached relay
      /*
      void before()
      {
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Then set relay pins in output mode
          pinMode(pin, OUTPUT);
          digitalWrite(pin, RELAY_OFF);
          // Set relay to last known state (using eeprom storage)
          //digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
        }
      }
      */
      void presentation()
      {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Mega_eth", "1.0");
      
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Register all sensors to gw (they will be created as child devices)
          present(sensor, S_BINARY);
        }
      }
      
      void setup()
      {
      }
      
      void loop()
      {
      }```
      posted in Troubleshooting
      Gumers
      Gumers
    • RE: Node without radio

      Sure
      Part of relay code, same I use now with NRF:

      
      #define RELAY_1  22 
      #define NUMBER_OF_RELAYS 8 // Total number of attached relays
      #define RELAY_ON 1  // GPIO value to write to turn on attached relay
      #define RELAY_OFF 0// GPIO value to write to turn off attached relay
      
      void before()
      {
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Then set relay pins in output mode
          pinMode(pin, OUTPUT);
          digitalWrite(pin, RELAY_OFF);
          // Set relay to last known state (using eeprom storage)
          //digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
        }
      }
      
      void presentation()
      {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Mega_eth", "1.0");
      
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Register all sensors to gw (they will be created as child devices)
          present(sensor, S_BINARY);
        }
      }```
      posted in Troubleshooting
      Gumers
      Gumers
    • RE: Node without radio

      I try to prepare GW sketch for node with relays.
      I'v got problems with NRF (a lot of transmission problems) but I can use LAN for communications.
      All log from node:
      0;255;3;0;9;MCO:BGN:INIT GW,CP=R-NGA--,VER=2.1.1
      0;255;3;0;9;MCO:BGN:BFR
      IP: 192.168.0.172
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:INIT OK,TSP=NA
      0;255;3;0;9;Eth: connect
      0;255;3;0;9;MCO:BGN:INIT GW,CP=R-NGA--,VER=2.1.1
      0;255;3;0;9;MCO:BGN:BFR
      IP: 192.168.0.172
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:INIT OK,TSP=NA

      IMHO it's a problem with initialize radio and sketch halted before Presentation procedure.
      But why?

      posted in Troubleshooting
      Gumers
      Gumers
    • Node without radio

      HI, I'd like to prepare node on mega+ethShield5100 without radio. Arduino 1.6.9; mysensor 2.1.1.
      So I commented in the sketch line #define MY_RADIO_NRF24.
      At the moment system startup with IP, but halted o the:
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:INIT OK,TSP=NA
      After that system restart startup procedure.
      What I should change?

      posted in Troubleshooting
      Gumers
      Gumers
    • RE: HLD problems

      THX for your response. You save me a lot of evenings. So i try to create central gwEth on mega+eth5100+NRF with relays set.
      HLD=High Level Design 🙂
      Thanks a lot.

      posted in Troubleshooting
      Gumers
      Gumers
    • HLD problems

      That's my first post, so Wlecome!
      I'v got problems with my home automation project. I try to prepare HLD for it.
      Please help me with my head of terms:
      Domoticz serwer is runnig on Synology NAS (done)
      GW eth<>nrf to connect with some nodes outside the home (soil, rain, wind) - gw is working fine (Promini+nrf)
      Problems:

      1. Is it possible to create gwEthernet on Mega2560?
      2. Is it possible to use gwEthernet to connect some sensors, relays or rs485 modem?
        THX for all
      posted in Troubleshooting
      Gumers
      Gumers