• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Serial2mqtt how to implement?

    scheduled pinned locked moved General Discussion
    7 posts 2 posters 2.3k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • T offline
      Tag MOD
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Tag
        global: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.

        one-reply-to-this-post last-reply-time reply quote 0
        • T offline
          Tag MOD
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @Tag
            global: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 one-reply-to-this-post last-reply-time reply quote 0
            • T offline
              Tag MOD @jkandasa
              global: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 one-reply-to-this-post last-reply-time reply quote 0
              • jkandasaJ offline
                jkandasa @Tag
                global: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 one-reply-to-this-post last-reply-time reply quote 0
                • T offline
                  Tag MOD @jkandasa
                  global:last-edited-by,

                  @jkandasa

                  Ah good!, will try and post the details!

                  Thx!

                  one-reply-to-this-post last-reply-time reply quote 0
                  • first-post
                    last-post

                  0

                  online

                  644

                  users

                  532

                  topics

                  3.4k

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