Sensor connected to Gateway but sending no data



  • Hello there,
    last weekend i started working with MySensors because it seems very interesting to me. My plan is to build a wireless solar panel data logger with RPI openHAB, and some sensors.
    So i started on sunday and connected a bunch of Arduino Pro Minis with some nrf2401+ (Capacitor for stable power already soldered) for testing.
    The Gateway is the SerialGateway example sketch from the library. Without any changes! (The next step would be The MQTT Ethernet Gateway with an Arduino Uno R3 and Ethernet shield)
    The first node is the EnergyMeterPulseSensor sketch, also without any changes.
    If i interpret the debug log right the sensor connects to the gateway.... But i dont get any data. Maybe you have some tipps for me, how to get started or what i did wrong 🙂 Thank you for Helping

    Gateway Debug Log:
    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    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:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.1.1
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-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=255
    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-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;255;3;0;9;TSF:MSG:READ,255-255-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=255
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,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,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;

    Sensor Debug Log:
    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:FPAR
    15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    608 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    613 TSF:MSG:FPAR OK,ID=0,D=1
    2022 TSM:FPAR:OK
    2023 TSM:ID
    2024 TSM:ID:REQ
    2027 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    4034 TSM:ID
    4035 TSM:ID:REQ
    4037 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    6045 TSM:ID
    6046 TSM:ID:REQ
    6048 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    8056 TSM:ID
    8057 TSM:ID:REQ
    8059 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    10068 !TSM:ID:FAIL
    10070 TSM:FAIL:CNT=1
    10072 TSM:FAIL:PDT
    20075 TSM:FAIL:RE-INIT
    20077 TSM:INIT
    20084 TSM:INIT:TSP OK
    20086 TSM:FPAR
    20088 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20292 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    20297 TSF:MSG:FPAR OK,ID=0,D=1
    22097 TSM:FPAR:OK
    22098 TSM:ID
    22100 TSM:ID:REQ
    22103 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    24111 TSM:ID
    24112 TSM:ID:REQ
    24115 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    26122 TSM:ID
    26123 TSM:ID:REQ
    26126 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    28133 TSM:ID
    28134 TSM:ID:REQ
    28137 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    30144 !TSM:ID:FAIL
    30145 TSM:FAIL:CNT=2
    30147 TSM:FAIL:PDT


  • Mod

    Welcome to the MySensors community @x20011

    The node is requesting a node id from your controller but is not getting a reply. Which controller are you using?

    If you are not using a controller the node needs to use a fixed node id. This is done by adding

    #define MY_NODE_ID 7 // Change 7 to the node id you want to use
    

    at the beginning of the sketch. Details on MY_NODE_ID is documented at https://www.mysensors.org/download/sensor_api_20



  • Hello mfalkvidd,
    I use an Arduino Pro mini as controller with the default example sketch for Gateway and Sensor.
    I just added #define MY_NODE_ID 0 for my Gateway....
    and #define MY_NODE_ID 1 for my Sensor.
    It seems the EnergyMeterSensors registers at the Gateway and sends some data. Like what kind of sensor it is and the Firmware version.
    In my oppinion the sensor should now start sending some data like energy ticks/kw?

    With #define MY_NODE_ID i will have to name every additional sensor by hand?

    Now my Gateway Log looks like this:
    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    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:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.1.1
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;TSF:MSG:READ,1-1-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=1
    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-1-1,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,1-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSF:MSG:PINGED,ID=1,HP=1
    0;255;3;0;9;TSF:MSG:SEND,0-0-1-1,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=255,c=3,t=15,pt=6,l=2,sg=0:0100
    0;255;3;0;9;TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
    1;255;0;0;17;2.1.1
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
    1;255;3;0;6;0
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=255,c=3,t=11,pt=0,l=12,sg=0:Energy Meter
    1;255;3;0;11;Energy Meter
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    1;255;3;0;12;1.0
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=1,c=0,t=13,pt=0,l=0,sg=0:
    1;1;0;0;13;
    0;255;3;0;9;TSF:MSG:READ,1-1-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=27,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=2,t=24,pt=0,l=0,sg=0:
    1;1;2;0;24;


  • Mod

    An Arduino Pro Mini can not be a controller. See https://www.mysensors.org/about/network for information on the different parts of a MySensors network and https://www.mysensors.org/controller for more information about what a controller is.

    If you haven't already, follow the getting started guide at https://www.mysensors.org/about to learn how MySensors works.

    To use the auto node id feature, you must have a controller that supports node ID generation. If you do not want to use a controller, all sensor nodes must be assigned node id by hand.

    The power meter example sketch requires a controller to store the pulse count. It requests the last known value from the controller but since no controller is connected, the sensor node doesn't get a reply. Therefore it doesn't proceed.



  • Hello there,
    so i made a huge step forward i think! 🙂

    1. Raspberri Pi with the current version of openhabian and mqtt is up and running.
    2. Mysensors Ethernet MQTT Gateway is also working
    3. Just flashed the DHT11 example on my Arduino Pro mini.

    What is the next step to show the temperature and humidity in openHAB? The manual is just confusing ;(

    EDIT 13.08.2017 16:20
    IP of my Arduino MQTT Gatewas is 192.168.178.28
    IP Openhabian Raspberry3 is 192.168.178.27
    Thus is used "sudo nano /etc/openhab2/services/mqtt.cfg" to change "broker.url=tcp://192.168.178.27:1883"
    Or is my arduino the Broker? 😞

    EDIT 13.08.2017 22:12
    OK MQTT was succesfully linked on my Raspberry
    I can toggle a switch item in openHAB sending MQTT Commands from my PC using MQTTFX
    Next Step would be Linking MQTT Packages from mysensors MQTT Gateway to openHAB Items

    EDIT 14.08.2017 21:30
    HORAY! OpenHAB is showing temperature and humidity! SO HAPPY 🙂

    Thank you!

    LOG of my Mysersors MQTT Ethernet Gateway:
    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    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:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    IP: 192.168.178.28
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    IP: 192.168.178.28
    0;2/18
    ;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255F:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3,l=0,sg=0:
    0;255;3K
    ;9;TSF:MSG:BC
    0;255;3;0;9;TSF:MSG:FPAR REQ,ID=2
    0;255;3;0;9;TSF:PNG:SEND,TO=0
    0;255;3;0;9;TSF:CKU:OK
    0;255;3;0;9;TSF:MSG:GWL OK
    0;255;3;0;9;TSF:MSG:SEND,0-0-2-2,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,2-2-0,s=2t=0,st=OK:1
    pt=1,l=1,sg=0:1
    0;255;3;0;9;TSF:MSG:PINGED,ID=2,HP=1
    0,sg=0:0100
    0;255;3;0;9;TSF:MSG:SEND,0-0-2-2,s=255,c,l=1,sg=0,ft=l=2,sg=0,ft=0,st=OK:0100
    0;255;3;0;9;TSF:MSG:READ,2-2-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
    0;255;3;0;9;Sening message on topic: mygateway1-out/2/255/0/0/17
    0;255;3;0;9;TSF:MSG:READ,2-2-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
    0;255;3;0;9;Sending message on topic: mygateway1-out/2/255/3/0/6
    7
    0;255;3;0;9;TSF:MSG:READ,2-2-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
    0;255;3;0;9;Sending message on topic: mygateway1-out/2/255/3/0/6
    0;255;3;0;9;TSF:MSG:READ,2-2-0,s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity
    0;25555;3;0;9;Sending message onopic: mygateway1-out/2/255/3/0/11
    0;2;255;3;0;9;TSF:MSG:READ,2-2-0,s=0,c=0,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9g message on tge on topic: mygateway1-out/2/0/0/0/7
    0;255;3;0;9;:READ,2-2-0,s=255,c=3,t=26,pt=1,l=0,l=0,:2
    0;255;3;0;9;TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
    ;9;TSF:MSG:READ,2-2-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
    ;9;TSF:MSG:READ,2-2-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
    0;255;3;0;9;TSF:MSG:READ,20,s=0,c=1,t=1,pt=7,l=5,sg=0g=0:26.0
    0;255;3;0;9;Sending message topic: mygateway1-out/2/0/1/0/1
    /0
    0;255;3;0;9;TSF:MSG:READ,2-2-0,s=0,c=1,t=1,pt=7,l=5,sg=0:63.0
    0;255;3;0;9;Sending message on topic: mygateway1-out/2/0/1/0/1

    Mosquiti shows following on the raspberry:
    [16:19:05] openhabian@openHABianPi:~$ mosquitto_sub -v -t 'mygateway1-out/#'
    mygateway1-out/2/0/1/0/1 60.0
    mygateway1-out/2/1/1/0/0 24.0
    mygateway1-out/2/0/1/0/1 62.0
    mygateway1-out/2/1/1/0/0 25.0


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 1
  • 5
  • 1

36
Online

11.4k
Users

11.1k
Topics

112.6k
Posts