Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. #define MY_DISABLED_SERIAL not stopping all serial data

#define MY_DISABLED_SERIAL not stopping all serial data

Scheduled Pinned Locked Moved Bug Reports
8 Posts 3 Posters 2.0k Views 3 Watching
  • 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.
  • delinendD Offline
    delinendD Offline
    delinend
    wrote on last edited by delinend
    #1

    It looks like, that the #define MY_DISABLED_SERIAL not is stoping all serial data, from showing up on the serial port, on my GatewaySerial.ino.

    I have used:
    //#define MY_DEBUG
    #define MY_DISABLED_SERIAL
    .
    .
    void setup() {
    Serial.begin(115200);
    }

    But I have a temperatur sensor, that is sending data, to my GW, and it still show data on my GW serial port.

    Ex. temperatur from NODE 6:
    6;0;1;0;0,24.5
    6;0;1;0;0,24.6
    6;0;1;0;0,24.5
    6;0;1;0;0,24.4
    6;0;1;0;0,24.5

    How do I stop this, so that I can use my serial port, on the GatewaySerial, to other things.
    Btw. I only want to "grab" data, via the "void receive()" function.

    My setup:
    Last Mysensor 2.0.1-beta
    2 Arduino Mini Pro (8Mhz) 3.3V version
    2 NRF24l01+ with 47uF caps
    Use a 3.6V LiPo battery on both setup's.
    IDE 1.6.12

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      The whole purpose of the serial gateways is to output incoming messages on the serial line.

      Why not create a none-gateway node?

      delinendD mfalkviddM 3 Replies Last reply
      1
      • hekH hek

        The whole purpose of the serial gateways is to output incoming messages on the serial line.

        Why not create a none-gateway node?

        delinendD Offline
        delinendD Offline
        delinend
        wrote on last edited by
        #3

        @hek
        I was thinking of the same. Can you put me in a direction of an sketch, that I can use for that ?

        1 Reply Last reply
        0
        • hekH hek

          The whole purpose of the serial gateways is to output incoming messages on the serial line.

          Why not create a none-gateway node?

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          Why not create a none-gateway node?

          Or at least a non-serial gateway. Like ethernet gateway or mqtt gateway.

          delinendD 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            Why not create a none-gateway node?

            Or at least a non-serial gateway. Like ethernet gateway or mqtt gateway.

            delinendD Offline
            delinendD Offline
            delinend
            wrote on last edited by
            #5

            @mfalkvidd
            Dose it has to be a Gateway to "grab" the incomming data, from my sensor, or just a RepeaterNode ? Like a Sensor->Repeater only setup ? Have tryed this, but can't get it to work.

            mfalkviddM 1 Reply Last reply
            0
            • delinendD delinend

              @mfalkvidd
              Dose it has to be a Gateway to "grab" the incomming data, from my sensor, or just a RepeaterNode ? Like a Sensor->Repeater only setup ? Have tryed this, but can't get it to work.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @delinend a gateway sees all messages in a MySensors network. A repeater sees all messages passing through it. A node sees all messages sent to that node.

              delinendD 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @delinend a gateway sees all messages in a MySensors network. A repeater sees all messages passing through it. A node sees all messages sent to that node.

                delinendD Offline
                delinendD Offline
                delinend
                wrote on last edited by
                #7

                @mfalkvidd
                So before 2 NODE's only setup, can talk together, I have to remove the REGISTRATION_FEATURE ?

                1 Reply Last reply
                0
                • hekH hek

                  The whole purpose of the serial gateways is to output incoming messages on the serial line.

                  Why not create a none-gateway node?

                  delinendD Offline
                  delinendD Offline
                  delinend
                  wrote on last edited by
                  #8

                  @hek
                  Can 2 NODE's talk together, without a Repeater or a Gateway ? I have tryed many things, but I can't get any data in the void receive() :-( I use the #defined MY_TRANSPORT_DONT_CARE_MODE, and the MY_PARENT_NODE_ID and MY_PARENT_NODE_IS_STATIC command setup (NODE ID 6 and 7).

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  12

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular