RS485 communication GW - Node Problem



  • Hello community

    I want to use Mysensors in future to use it in my new house as a wired bus system.
    So i tried it out today with a arduino nano and a arduino pro mini.
    I downloaded the newest mysensors library in the Arduino IDE and upload the RS485 GW scatch to the nano and the rs485 PIR scetch to the arduino pro mini.
    I also downloaded the MYSController App on Windows.
    Than i tried to connect the 2 Arduinos to check, if it all running fine.
    But in MYSController i can only see the GW.

    First i was trying to use the max chips for the communication, but the GW does nothing.
    So i tried to connect directly the Nano and the Pro mini, but the GW does always nothing.

    The pins i used with the max chips is 8, 9, 2 on Nano and on Pro mini.
    In direct connection i connected only 8 and 9. Both arduinos are on the same ground potentional.

    I switched on then de debug in the node, here is the serial output:
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-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

    My GW Log is this:

    0;255;3;0;9;Starting gateway (RSNGA-, 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
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    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;5;1

    Hope, somebody can help me?
    Best regards



  • I solved the issue.
    Could be closed.


  • Admin

    What was your issue?



  • @hek

    Sorry for my Late reply.
    I had an issue with the max485 (ground problem) and the declaration of the node id (was at the wrong position in the sketch).
    I think, it would be better, if this is also in the examples in the ms library.
    It cost me some time to find this solution for the node id. But i wasn't sure, if it was the parent or node id


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 3
  • 2
  • 2
  • 2

22
Online

11.2k
Users

11.1k
Topics

112.5k
Posts