• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Gateway setup for MCv2 using MySensors

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 486 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wint0178
      last edited by

      This question demonstrated just how much I don't know, but I am not able to get a gateway setup for MC Server on RPi. I don't think I even understand the basics, but I will explain what I have tried and see if it makes sense.

      I have installed Arduino IDE on my pi and have added the MySensor library. Then, I opened the GatewaySerial example and looked it over. I prefer to use 115200 baud so I changed that, but otherwise made no changes and compiled the sketch to my Arduino nano. The serial output is as follows:

      0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
      0;255;3;0;9;5 TSM:INIT
      0;255;3;0;9;7 TSF:WUR:MS=0
      0;255;3;0;9;15 TSM:INIT:TSP OK
      0;255;3;0;9;18 TSM:INIT:GW MODE
      0;255;3;0;9;21 TSM:READY:ID=0,PAR=0,DIS=0
      0;255;3;0;9;24 MCO:REG:NOT NEEDED
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.3.2
      0;255;3;0;9;28 MCO:BGN:STP
      0;255;3;0;9;35 MCO:BGN:INIT OK,TSP=1
      0;255;3;0;9;38 TSM:READY:NWD REQ
      0;255;3;0;9;45 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:

      This leads me to believe that Arduino IDE believes the gateway is working.

      At that point, I go over to MyController on the same machine and attempt to add a serial gateway. I have named it "Serial02" simply because it is the second attempt.
      Description - empty
      it is enabled
      reconnect delay is 30s
      Queue Failed Messages is off
      Labels, if I understand them, are used to help organize my devices so I have named the room under key "analytical" and the Value refers to the server "pi1". I'd guess these might need to be changed, but I don't know what makes sense for them even after looking over the documentation on the power of labels.
      Type is set to MySensor V2
      Internal Message Ack is off
      Stream Message Ack is off
      Retry count is 3
      Timeout is 500 ms
      Protocal Type is Serial
      Transmit Pre Delay is 10 ms
      Port Name, which is confirmed in terminal and Arduino IDE is /dev/ttyUSB0
      baud rate is 115200, which matches the arduino sketch
      and message logger is set to none.

      Please help me figure this out, I'm not sure what questions to even ask at this point. I'll keep working on it, but any insights would be greatly appreciated.

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @wint0178
        last edited by

        @wint0178 what is the labels do you use in mycontroller.yaml under gateway? you have to use that label in your gateway settings label section.

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          wint0178 @jkandasa
          last edited by

          @jkandasa my labels are not changed from the default "location: server". Do you recommend making a change to those? I do not anticipate using more than one server. Also, I notice that the disabled line in gateway is followed by "false" should I change that to "true" to activate gateways or does that set this RPi up as a gateway?

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • J Offline
            JeeLet
            last edited by JeeLet

            Arduino IDE must be closed before launching MyController , the IDE keeps the USB port for itself?

            1 Reply Last reply Reply Quote 1
            • jkandasaJ Offline
              jkandasa @wint0178
              last edited by

              @wint0178 No, keep default labels. as @JeeLet mentioned can you check any other service is consuming the serial port? Do you see any error on the gateway?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              0

              Online

              587

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization