Can't add sensor to gateway - problems with two-way communication



  • Hi,

    I am at the end of my rope here and I have no ideas where to go anymore.

    The story is as follows.

    I had a working MySensors setup with a serial gateway hooked up to Domoticz. It worked like a charm (I had temp, humidity, light, battery meter).

    I wanted to add a motion sensor - and this worked just fine too... until I noticed I made a mistake and my motion sensor got registered under the temperature ID (only on one of the nodes though).

    I tried rolling back the changes, but this effectively broke everything.

    Now, both my sensors won't communicate with the gateway at all.
    I tried erasing the eeprom, reflashing multiple versions of MySensors. Nothing.

    Communication between the gateway and sensors works just fine (using GettingStarted from RF24_master) and a simple rx/tx sketch.

    I see that my sensor keeps pinging the gateway, the gateway notices it but does not respond. At this point, I've no clue anymore what to do.

    The funny thing is - adding a sensor to the gateway has always been painful. I had to first make the communication work using GettingStarted (RF24) and only then, communication between the gateway and sensors would work. Here - it didn't.

    Please help!

    Gateway is an Arduino Nano, sensors work off a Pro Mini 3.3V.

    Logs from gateway each time a sensor pings it:

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
    0;255;3;0;9;write register, reg=0, value=14
    0;255;3;0;9;write register, reg=3, value=3
    0;255;3;0;9;write register, reg=4, value=95
    0;255;3;0;9;write register, reg=5, value=76
    0;255;3;0;9;write register, reg=6, value=35
    0;255;3;0;9;read register, reg=6, value=35
    0;255;3;0;9;write register, reg=16, value=115
    0;255;3;0;9;write register, reg=29, value=6
    0;255;3;0;9;write register, reg=2, value=2
    0;255;3;0;9;write register, reg=1, value=0
    0;255;3;0;9;write register, reg=28, value=3
    0;255;3;0;9;RF24_flushRX
    0;255;3;0;9;RF24_flushTX
    0;255;3;0;9;write register, reg=7, value=112
    0;255;3;0;9;Radio init successful.
    0;255;3;0;14;Gateway startup complete.
    0;255;3;0;9;write register, reg=2, value=3
    0;255;3;0;9;write register, reg=1, value=1
    0;255;3;0;9;start listening
    0;255;3;0;9;write register, reg=0, value=15
    0;255;3;0;9;write register, reg=10, value=0
    0;255;0;0;18;2.0.0-beta
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0
    0;255;3;0;9;Data available on pipe 0
    0;255;3;0;9;read message, len=7
    0;255;3;0;9;write register, reg=7, value=64
    0;255;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;255;3;0;9;Data available on pipe 0
    0;255;3;0;9;read message, len=7
    0;255;3;0;9;write register, reg=7, value=64
    0;255;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;255;3;0;9;Data available on pipe 0
    0;255;3;0;9;read message, len=7
    0;255;3;0;9;write register, reg=7, value=64
    0;255;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;255;3;0;9;Data available on pipe 0
    0;255;3;0;9;read message, len=7
    0;255;3;0;9;write register, reg=7, value=64
    0;255;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;255;3;0;9;Data available on pipe 0
    0;255;3;0;9;read message, len=7
    0;255;3;0;9;write register, reg=7, value=64
    0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    

    Logs from sensor:

    req id
    start listening
    write register, reg=0, value=15
    stop listening
    write register, reg=0, value=14
    open writing pipe, recipient=0
    write register, reg=10, value=0
    write register, reg=16, value=0
    send message to 0, len=7
    RF24_flushTX
    write register, reg=7, value=48
    start listening
    write register, reg=0, value=15
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    


  • I forgot to add (just in case).

    My radios do have capacitors soldered onto them (but communication works flawlessly with sketches that do not use MySensors libs at all).

    My old version of MySensors was the release version, but I also tried the very latest beta - to no avail.

    Again, this worked just fine, before I started playing around with sketches.


  • Hero Member

    @George-Laynes Just an idea.. are you sure Domoticz is responding? You can try if a different (fixed) node-id works. Sometimes Domoticz messes up the database. Just add: #define MY_NODE_ID 250 where you replace 250 with the node id of your choice



  • Domoticz doesn't matter here at this point.

    The logs I posted are from Arduino IDE Serial Monitor.

    However, this can be closed without me yet again understanding what happened.

    I made a mistake of changing two things at the same time.

    I disconnected everything and left it for an hour or so.
    I reconnected and launched MYSController - and the damned thing just started working at one. I didn't have to change any settings, include, click anything. It just worked.

    Now, Domoticz works too, of course. All that's left is to start soldering on a proper board instead of the bread board I was using.

    Thanks for trying @AWI :)


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.