[solved] Problem with ioBroker and MySensors 2.0



  • Did any of you manage to make ioBorker run with a Mysensors 2.0 serial gateway ? It doesn't work for me. I see the serial messages in the log, but nothing in the States list. When I activate the "Inclusion" mode, it is deactivated all by itself.
    The few tips I get from the ioBroker forum don't make any difference.


  • Admin

    That's weird. The serial protocol hasn't changed between the 1.5->2.0 version.



  • @hek
    According to the ioBroker people, it's definitely because of 2.0. Here is the link to the forum. http://forum.iobroker.net/viewtopic.php?f=12&t=3577
    Looking at the logs, it seems the adapter has a problem to find the beginning of the MySensors messages. Did something change wrt end-of-line charcters ?


  • Admin

    Hmm. do you have the possibility to compare the serial log on your gateway when running 1.5/2.0? Might help to determine what goes wrong.



  • OK. Will take some time, I'll have to recompiler the 1.5 version. It'll be interesting to see if the 1.5 version works with ioBroker out of the box.



  • Hi, I have iobroker running on a rasPi3 and an instance of mysensors configured. This is working so far. On a nodeMCU, mysensors 2.0 is used. I can pass data between.

    cheers


  • Plugin Developer

    @hek Hello, I am the developer of ioBroker and adapter of mySensors for ioBroker. One of the user has a Problem with the sketch. And I automatically too. Accordingly to log output:

    2;1;1;0;0;23.5
    1;8;1;0;2;0
    1;7;1;0;39;-12.17
    1;255;3;0;0;75
    1;5;1;0;36;1
    1;2;1;0;1;63.38
    1;2;1;0;0;12.87
    1;2;1;0;38;12.56
    1;2;1;0;39;-43.80
    1;1;1;0;23;17.69
    1;255;3;1;0;1475773988
    0;255;0;0;18;2.0.0
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;No registration required
    0;255;0;0;18;2.0.0
    0;255;3;0;14;Gateway startup complete.
    

    (from bottom to top) there is no representation messages about datapoints. And I thought, that this information is required to describe the received information. In my driver I send "'0;0;3;0;19;force presentation'" message to receive the representation information jsut after connection esteblishment.
    Why the sketch do not send representation info? There is no use on data without to know the name and configuration for that.


  • Admin

    Is it from a separate node or sensors attached to the gateway the presentation is missing?

    Do you have the sketch?

    Which version on the node/gateway?


  • Plugin Developer

    Accordingly to http://forum.iobroker.net/viewtopic.php?f=12&t=3577&start=20#p36227 he has 2.0 Serial with
    Seeeduino for the gateway (serial)
    Seeeduino for the chicken shed
    Sensebende for the temperature sensor
    Raspberry pi 2 and 3 for the controller

    BTW, is it not the good idea to print the version out in log? What is this? 0;255;0;0;18;2.0.0


  • Admin

    Might be best to ping @stefaanv here...

    How does the log look on the node where the presentation messages is sent from?
    Do you get failed transmissions?


  • Plugin Developer


  • Admin

    Ok, it sends 9 presentations in a row.... Might be too much depending on how the radio is powered and decoupled.

    Introducing a wait(50) between each presentation message could resolve the problem.


  • Plugin Developer

    I have this one log from him:

    0;255;3;0;9;TSP:MSG:READ 2-2-0 s=2,c=1,t=1,pt=2,l=2,sg=0:0
    2;1;1;0;0;23.5
    0;255;3;0;9;TSP:MSG:READ 2-2-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.5
    1;8;1;0;2;0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=8,c=1,t=2,pt=1,l=1,sg=0:0
    1;7;1;0;39;-12.17
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=7,c=1,t=39,pt=7,l=5,sg=0:-12.17
    1;255;3;0;0;75
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=0,pt=1,l=1,sg=0:75
    1;5;1;0;36;1
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=5,c=1,t=36,pt=2,l=2,sg=0:1
    1;2;1;0;1;63.38
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=2,c=1,t=1,pt=7,l=5,sg=0:63.38
    1;2;1;0;0;12.87
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=2,c=1,t=0,pt=7,l=5,sg=0:12.87
    1;2;1;0;38;12.56
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=2,c=1,t=38,pt=7,l=5,sg=0:12.56
    1;2;1;0;39;-43.80
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=2,c=1,t=39,pt=7,l=5,sg=0:-43.80
    1;1;1;0;23;17.69
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=23,pt=7,l=5,sg=0:17.69
    1;255;3;1;0;1475773988
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=0,pt=0,l=10,sg=0:1475773988
    0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=0,pt=0,l=10,sg=0,ft=0,st=ok:1475773988
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
    0;255;0;0;18;2.0.0
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;No registration required
    0;255;0;0;18;2.0.0
    0;255;3;0;14;Gateway startup complete.
    0;255;3;0;9;TSM:READY
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    

    Is the information you required there?


  • Plugin Developer

    @hek said:

    Ok, it sends 9 presentations in a row....
    Where can you see that?
    It is really strange I have my answer ready and wait for 2 minutes to send it out. In this time you answer on my previous question and my answers looks silly because the it is old.


  • Plugin Developer

    @hek said:

    Introducing a wait(50) between each presentation message could resolve the problem.

    I do not understand, should ioBorker use wait(50) or Sketch? (I guess sketch, but to be sure)


  • Admin

    In the sketch.



  • @hek
    We're making progress. I'm already seeing both nodes in ioBroker Objects tree. The sensebender node also reports temperature and humidity.
    0_1476000444616_upload-383148d2-26ea-402a-a4a9-8258a2fa346b
    Still, none of the measurements from the chicken shed node get through. Underneath is the log from this node, hope you can make any sense of it. I see a lot of FPAR:FAIL's, hope this is something that can be solved.

    Stefaan

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=1)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 0-0-1 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    Kippenhok_4
    Motor stopped at 60735
    application started
    TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=1,pt=0,l=0,sg=0,ft=0,st=ok:
    TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    !TSP:MSG:SEND 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0
    !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=fail:0
    TSP:MSG:READ 0-0-1 s=255,c=3,t=0,pt=0,l=10,sg=0:1476000019
    TSP:MSG:ACK msg
    TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=0,pt=0,l=10,sg=0,ft=2,st=ok:1476000019
    !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=fail:Kippenhok
    !TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=1,st=fail:1.0
    !TSP:MSG:SEND 1-1-0-0 s=1,c=0,t=16,pt=0,l=0,sg=0,ft=2,st=fail:
    !TSP:MSG:SEND 1-1-0-0 s=2,c=0,t=30,pt=0,l=0,sg=0,ft=3,st=fail:
    !TSP:MSG:SEND 1-1-0-0 s=3,c=0,t=6,pt=0,l=0,sg=0,ft=4,st=fail:
    !TSP:MSG:SEND 1-1-0-0 s=4,c=0,t=7,pt=0,l=0,sg=0,ft=5,st=fail:
    !TSM:UPL FAIL, SNP
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    Request registration...
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    Init complete, id=1, parent=255, distance=255, registration=1
      ... loop ...
    !TSP:SEND:TNR
    Door Open, Lux 1407.40, luxState 1, camera off, (-)
    Battery 12.07V, -11.90mA
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    --NO-- Time = 5, 0:0:5
      ... loop ...
    !TSP:SEND:TNR
    Door Open, Lux 1384.85, luxState 1, camera off, (-)
    Battery 12.07V, -11.20mA
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    --NO-- Time = 10, 0:0:10
    
    

  • Admin

    Something is not good. It keeps losing parent because it doesn't hear any ack:s sent by the gateway.

    Did you put decouple capacitors on both gateway and repeater? Do you use none amplified radios?



  • @hek
    Hadn't done any of the decoupling. Will do so next.
    However, by moving the controller closer to the shed, The problem is solved !!
    0_1476001429124_upload-ffaeb96a-bf60-48e0-a44e-e5bca67cb6d4
    Thanks a million for the support !



  • @stefaanv
    Hallo, have the same problem.
    I cannot see my node in IO-Broker. Read all the threads in this forum and in IObroker.
    Same issue with inclusion mode. Don`t know, what else I can do.
    I use the original Ethernet-Gateaway-Sketch from MySensors page, the original Temp-hum-sketch from MYsensors page and installed sometimes MYsensors-adapter in IOBroker.
    I use the gateway as TCP-client.
    What can I do?
    Here the seriell protocol:
    ;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.178.56
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP: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;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1)
    0;255;3;0;9;TSP: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;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    0;255;3;0;9;TSP: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;TSP:MSG:READ 1-1-0 s=255,c=0,t=17,pt=0,l=5,sg=0:2.0.0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;TSP: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;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:20.0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.7
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:19.9
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.6
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5
    The node was switched on all the time. There is a row of "0;255;3;0;9;TSP:SANCHK:OK".
    Then I switched the node of and on again. Now came other infos and I can see the temperatur and the humidity, but not before I switchesd off and on.
    Strange.
    In IObroker there is nothin to be seen.
    Perhaps I use the wrong (chnages wrong?) sketch. Ha sanybody a sketch for the gateaway that runs better?
    Thank You in advance


Log in to reply
 

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