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

    Serial2mqtt how to implement?

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 2 Posters 1.9k Views 1 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.
    • T Offline
      Tag MOD
      last edited by Tag

      Hi,

      Using mycontroller for quite some time now, works great!, Now i want to also see the sensors on i.e. my phone using mqttdashboard, or another mqtt tool.

      I have seen that an extention to mycontroller was added some time ago called serial2mqtt. Now i am wondering how to imoplement this in my current setup.

      Software was downloaded from this link

      What are the next steps to add the tool to my current running setup?

      Thx for all the help!!

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

        @tag Thank you for the interest in Serial2mqtt. This tool designed for who does not have MQTT gateway. They have the only serial gateway and they want to use their gateway on MQTT controller, etc.,. For now, it supports only for MySenaors.

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tag MOD
          last edited by Tag

          Seems that if i start serial2mqtt, my original GW (attached to gpio) that gets the data from /dev/ttyMySensorsGateway does not receive anything anymore

          Which steps do i need to take to have both working?

          This is the modified part of ./conf/serial2mqtt.properties

          #========================================================================
          # Serial port settings
          # driver types: AUTO, JSERIALCOMM
          # connection retry next attempt in seconds
          #========================================================================
          serial.driver=AUTO
          serial.port=/dev/ttyMySensorsGateway
          serial.baud.rate=115200
          serial.connection.retry=60
          
          #========================================================================
          # MQTT settings
          # QOS: 0, 1, 2
          # connection retry next attempt in seconds
          #========================================================================
          mqtt.qos=0
          mqtt.broker=tcp://localhost:1883
          mqtt.client.id=serial2mqtt-adapter
          mqtt.topic.publish=mygateway-out
          mqtt.topic.subscribe=mygateway-in
          mqtt.username=
          mqtt.password=
          mqtt.connection.retry=60
          
          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @Tag
            last edited by

            @tag In this case, Actual MyController do not listen serial port, if it is running on the same machine. What is your hardware?

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Tag MOD @jkandasa
              last edited by

              @jkandasa

              Using the OPI-Zero 512Mb version with the radio attached to the gpio header.
              mysgw is compliled and using the tty device file: /dev/ttyMySensorsGateway

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

                @tag no other services not using your serial port, right? When using serial2mqtt, On MyController you should use MQTT(via serial2mqtt) to connect your gateways.

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  Tag MOD @jkandasa
                  last edited by

                  @jkandasa

                  Ah good!, will try and post the details!

                  Thx!

                  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