Req Id



  • Hi,

    I build a gateway and a Humidity Sensor. Unfortunately, I've this message on the Gateway:
    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;

    On the Humidity Sensor, there is this message:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    T: 21.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    H: 60.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    H: 59.00

    Could you please tell me what do I have to do in order to search where issue is coming from? I think Gateway has to communicate the Id number to the Sensor, correct?

    Also, when I plug it into a Raspberry under Domoticz, and declare My Sensors USB Gateway, please find what I see in Domoticz log:
    2015-09-21 21:35:34.116 MySensors: Using serial port: /dev/ttyUSB1
    2015-09-21 21:35:35.596 MySensors: Gateway Ready...
    2015-09-21 21:35:45.405 Hardware Monitor: Fetching data (System sensors)
    2015-09-21 21:36:15.817 Hardware Monitor: Fetching data (System sensors)
    2015-09-21 21:36:46.058 Hardware Monitor: Fetching data (System sensors)
    2015-09-21 21:37:16.306 Hardware Monitor: Fetching data (System sensors)

    Thanks in advance for your support.



  • Hi, some additionnal tests I've done. When I put this script inside a sensor, I have the same message "ReqId", but it has an Id (3), isn't it?
    #include <MySensor.h>
    #include <SPI.h>

    #define ID 3
    #define OPEN 1
    #define CLOSE 0

    MySensor gw;
    MyMessage msg(ID, V_TRIPPED);

    void setup()
    {
    gw.begin();
    gw.present(ID, S_DOOR);
    }

    void loop()
    {
    gw.send(msg.set(OPEN));
    delay(10000); // Wait 10 seconds
    }

    Thanks for your help 🙂


  • Admin

    You need a controller that can assign node Id's to your sensors. That is not done by the GW.

    As an alternative, you can hardwire the firmware to use a specific node Id in your mysensors constructor. Check example sketches etc on jow to do it.



  • Hi,
    Thanks for your feedback;
    I put it on USB on my raspberry with Domoticz, and I was happy (!) to read in Domoticz logs:
    "2015-09-11 08:17:09.306 MySensors: Using serial port: /dev/ttyUSB1
    2015-09-11 08:17:10.786 MySensors: Gateway Ready..."

    but I have the same error message for the humidity sensor, and no visibility in Domoticz:
    "req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    H: 51.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    T: 21.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    H: 50.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    H: 49.00
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    T: 20.00"

    Then I build Car Park Sensors, and it's working well: shown in Domoticz, and no 'req id' in loop.
    Do you know, for my Humidity Sensors what could be wrong please?
    Thanks in advance for your support.
    Regards.



  • Hi,
    I also created a motion, door, and with the humidity sensors, there is the same message: 'Req Id' in loop.
    I understand Domoticz didn't get it, but could you please tell me what should I modify in Domoticz to obtain these Id's please? Which files or configuration? Is there any tutos to follow please?

    Thanks for your support.
    Regards.



  • Hi,

    I erase my arduino with EEPROM_clear script, and It works now.

    Thanks.


Log in to reply
 

Suggested Topics

11
Online

11.4k
Users

11.1k
Topics

112.7k
Posts