Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
G

Gad Ofir

@Gad Ofir
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting started issue
    G Gad Ofir

    ordered some new Arduino boards, i will try to go exactly with the guides ...

    not sure why i am getting empty payload, it seems that all is ok on the GW side

    1. i am able to get MQTT msg when it connects
    2. i am able to get MQTT msg from GW when i connect the sensor

    the issue is that i am getting empty payload, and also different IDs for each msg

    also I was not able to set a working controller as i have only MQTT gateway with NodeMCU
    do you know if i can connect to OH? from docs it says you can only connect the serial and the ethernet

    Troubleshooting

  • My Ethernet Gateway Board (W5500)
    G Gad Ofir

    Hi i have the W5500 with pins and board
    this one
    and Arduino Uno R3
    anything i need to change?

    1. i guess i don't need that 3.3 converter right?
    2. i did the change of \Ethernet\src flashed the board
    3. now i will connect the NRF24 just like you did ? same pins?

    anything else I should change?

    Hardware

  • Getting started issue
    G Gad Ofir

    it's late I will give this all a fresh try tomorrow, also i have IDE issues
    not sure if related... I will start from fresh, Compile the gateway and sensor and will see

    1. WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'

    2. Invalid version '1.04' for library in: C:\Users\gadof01\Documents\Arduino\libraries\UIPEthernet1

    3. avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x08

    thanks for all the help!

    Troubleshooting

  • Getting started issue
    G Gad Ofir

    i will give it a try ... Openhab is great!

    so what you are saying i must have a controller in the system to have Nodes IDs assigned to my sensors?
    i am trying to understand the flow here please elaborate

    so i need to have a

    1. working Openhab with binding (this will assign node id to the sensor )
    2. working gateway (with only changes i have done above)
    3. working sensor and not touch anything and the controller will do the work?

    sorry, i am having a little trouble understanding the logic here?
    thanks for your patience really

    Troubleshooting

  • Getting started issue
    G Gad Ofir

    i don't see such def MY_NODE_ID 100 on the gateway sketch or the sensor
    maybe i missed something here?

    1. flash the gateway with ESP8266MQTTGateway.ino (only this?)
      do i need to change the sketch here?
      i put Wifi and MQTT

    2. flash the sensor with some sketch (for example PIR)
      did not do any change

    do i need to modify the sketches more?
    do i have the right gateway sketch? or do i need to add somthing there

    /*
     * 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-2018 Sensnology AB
     * Full contributor list: https://github.com/mysensors/MySensors/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.
     *
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0 - Henrik Ekblad
     *
     * DESCRIPTION
     * The ESP8266 MQTT gateway sends radio network (or locally attached sensors) data to your MQTT broker.
     * The node also listens to MY_MQTT_TOPIC_PREFIX and sends out those messages to the radio network
     *
     * LED purposes:
     * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch
     * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received
     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
     * - ERR (red) - fast blink on error during transmission error or receive crc error
     *
     * See https://www.mysensors.org/build/connect_radio for wiring instructions.
     *
     * If you are using a "barebone" ESP8266, see
     * https://www.mysensors.org/build/esp8266_gateway#wiring-for-barebone-esp8266
     *
     * Inclusion mode button:
     * - Connect GPIO5 (=D1) via switch to GND ('inclusion switch')
     *
     * Hardware SHA204 signing is currently not supported!
     *
     * Make sure to fill in your ssid and WiFi password below for ssid & pass.
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
    #define MY_BAUD_RATE 9600
    
    // Enables and select radio type (if attached)
    #define MY_RADIO_RF24
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    
    #define MY_GATEWAY_MQTT_CLIENT
    #define MY_GATEWAY_ESP8266
    
    // Set this node's subscribe and publish topic prefix
    #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
    #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
    
    // Set MQTT client id
    #define MY_MQTT_CLIENT_ID "mysensors-1"
    
    // Enable these if your MQTT broker requires username/password
    //#define MY_MQTT_USER "username"
    //#define MY_MQTT_PASSWORD "password"
    
    // Set WIFI SSID and password
    #define MY_WIFI_SSID "MySSID"
    #define MY_WIFI_PASSWORD "MyVerySecretPassword"
    
    // Set the hostname for the WiFi Client. This is the hostname
    // it will pass to the DHCP server if not static.
    // #define MY_HOSTNAME "mqtt-sensor-gateway"
    
    // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
    //#define MY_IP_ADDRESS 192,168,178,87
    
    // If using static ip you can define Gateway and Subnet address as well
    //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
    //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
    
    // MQTT broker ip address.
    #define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
    
    //MQTT broker if using URL instead of ip address.
    // #define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"
    
    // The MQTT broker port to to open
    #define MY_PORT 1883
    
    // 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 D1
    
    // Set blinking period
    //#define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Flash leds on rx/tx/err
    //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
    //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
    //#define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
    
    #include <ESP8266WiFi.h>
    #include <MySensors.h>
    
    void setup()
    {
    	// Setup locally attached sensors
    }
    
    void presentation()
    {
    	// Present locally attached sensors here
    }
    
    void loop()
    {
    	// Send locally attached sensors data here
    }
    
    Troubleshooting

  • Getting started issue
    G Gad Ofir

    Thanks, i will try to change this #define MY_NODE_ID 100
    on my gateway

    i am using ESP12 NodeMCU 1.0 rev with nRF24L01 for gateway and sketch ESP + MQTT
    for Sketch i am using ESP8266MQTTGateway

    i am not using any controller , i planed to use MQTT to get the messages , is that ok?

    i have openhab running on my Home but i was planning to use node red only for this

    Troubleshooting

  • Getting started issue
    G Gad Ofir

    msg from one of the sensors

    108525 TSM:ID
    108525 TSM:ID:REQ
    108529 TSF:MSG:SEND,255-255-0-0,s=237,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    110538 !TSM:ID:FAIL
    110540 TSM:FAIL:CNT=6
    110542 TSM:FAIL:DIS
    110544 TSF:TDI:TSL
    

    looks like no good but, when I connect it the gateway responses like something is trying to connect or connected
    also child ID is different so i am not able to understand

    Troubleshooting

  • Getting started issue
    G Gad Ofir

    Hi I have the below setup

    One NodeMCU with Gateway + MQTT

    I think its working can anyone tell me, if all ok?
    • I am able to receive MQTT from the gateway with the version number as payload
    • I can see below logs and then gateway go to some kind of idle mode I think
    • It looks like MQTT is ok but I see no indication for NRF is up and running…

    
    2475 GWT:TPC:CONNECTING...
    3003 GWT:TPC:CONNECTING...
    ip:192.168.1.31,mask:255.255.255.0,gw:192.168.1.1
    3531 GWT:TPC:CONNECTING...
    3559 GWT:TPC:IP=192.168.1.31
    3589 MCO:BGN:STP
    3608 MCO:BGN:INIT OK,TSP=1
    3636 GWT:TPC:IP=192.168.1.31
    3667 GWT:RMQ:MQTT RECONNECT
    3751 GWT:RMQ:MQTT CONNECTED
    3781 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT
    pm open,type:2 0
    
    

    I have many devices that I have tried to configure as senores, but not a lot of luck
    Only good thing I can see that I am getting msgs from new nodes in MQTT (gateway)
    But each msg comes with different chilled ID and at the end 3/0/3
    Also, the msg payload is empty

    can anyone tell me if my gateway is ok?
    so I can move forward

    Troubleshooting

  • MQTT GW issues with sending MQTT msg
    G Gad Ofir

    Hi, Solved!

    for some reason, # did not give me any result...

    this is the topic = mygateway1-out/0/255/0/0/18

    Troubleshooting

  • MQTT GW issues with sending MQTT msg
    G Gad Ofir

    @bgunnarb said in MQTT GW issues with sending MQTT msg:

    MQTT.fx also

    Hi yes i have tried # , i can see all my MQTT status but not this one...
    doing this with node red ... same as MQTT.fx, also tried MQTT lens seems that there is nothing sending to the broker

    but as i can see in the serial output, it says connected, anyway? i can up the debug level to the MQTT connection?

    strange thing is that the code does not say what broker it is connected to

    35921 GWT:RMQ:MQTT CONNECTED
    35951 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT```
    Troubleshooting

  • MQTT GW issues with sending MQTT msg
    G Gad Ofir

    i have set up a MQTT GW on ESP12 for the first time...
    in the serial monitor, all looks cool, right?

    connected with Ofir-grid, channel 11
    dhcp client start...
    1830 GWT:TPC:CONNECTING...
    ip:192.168.1.31,mask:255.255.255.0,gw:192.168.1.1
    4998 GWT:TPC:CONNECTING...
    5026 GWT:TPC:IP=192.168.1.31
    5056 MCO:BGN:STP
    5074 MCO:BGN:INIT OK,TSP=1
    5103 GWT:TPC:IP=192.168.1.31
    5133 GWT:RMQ:MQTT RECONNECT
    pm open,type:2 0
    20474 GWT:TPC:IP=192.168.1.31
    20505 GWT:RMQ:MQTT RECONNECT
    35841 GWT:TPC:IP=192.168.1.31
    35872 GWT:RMQ:MQTT RECONNECT
    35921 GWT:RMQ:MQTT CONNECTED
    35951 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT
    
    1. i am still not testing any sensors
    2. i have RF24 connected but still was not able to test it has i have no sensors yet
    3. i just want MQTT working for now

    i have tested with all MQTT software i can find ,still not able to get MQTT msg from this topic
    mygateway1-out or any of the related above, how can i troubleshot MQTT?

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular