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. General Discussion
  3. several nodes gatewayserial it's possible??(problem).

several nodes gatewayserial it's possible??(problem).

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 1.3k Views 4 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.
  • A Offline
    A Offline
    adrian_kbb73
    wrote on last edited by
    #1

    good day
    I have this problem
    I have a couple of nodes connected to the serial gateway (without a controller)
    And the problem is that they cross the transmissions that they send me
    (I need to have the measurements of the nodes separately)
    the question is
    It is possible to avoid the crossings of transmissions so that I get the data of node N first and then the next and so on.

    I hope you can help me with this doubt
    It's for a school project
    Thank you.

    Boots33B 1 Reply Last reply
    0
    • A adrian_kbb73

      good day
      I have this problem
      I have a couple of nodes connected to the serial gateway (without a controller)
      And the problem is that they cross the transmissions that they send me
      (I need to have the measurements of the nodes separately)
      the question is
      It is possible to avoid the crossings of transmissions so that I get the data of node N first and then the next and so on.

      I hope you can help me with this doubt
      It's for a school project
      Thank you.

      Boots33B Offline
      Boots33B Offline
      Boots33
      Hero Member
      wrote on last edited by
      #2

      @adrian_kbb73

      If i understand correctly you want your nodes to send in the data sequentially and not whenever they like ?

      One way that i can think of would be to use a node to node message from the gateway to trigger the data send on the nodes. The only thing I am not sure of is if this is possible from a gateway but it will be easy enough for you to test and see.

      1 Reply Last reply
      0
      • Boots33B Offline
        Boots33B Offline
        Boots33
        Hero Member
        wrote on last edited by
        #3

        The basic format for a node to node message looks like this

        0_1490134966573_node.jpg

        You would need to place a message send to each of your nodes in your gateways loop part of the sketch. then use a non blocking timer to control when the messages are sent.

        on the nodes you will need to have code to respond to the message, it could be quite basic depending on what sensors etc you have on the node.

        void receive(const MyMessage &message) {
          if (message.type == V_STATUS ) {
        
            // put code here to send data
        
          }
        }
        
        A 1 Reply Last reply
        0
        • Boots33B Boots33

          The basic format for a node to node message looks like this

          0_1490134966573_node.jpg

          You would need to place a message send to each of your nodes in your gateways loop part of the sketch. then use a non blocking timer to control when the messages are sent.

          on the nodes you will need to have code to respond to the message, it could be quite basic depending on what sensors etc you have on the node.

          void receive(const MyMessage &message) {
            if (message.type == V_STATUS ) {
          
              // put code here to send data
          
            }
          }
          
          A Offline
          A Offline
          adrian_kbb73
          wrote on last edited by
          #4

          @Boots33
          Yes, thanks, that's what I want to do.
          I'll prove it.

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #5

            If you parse the received message on the gateway, you can have the node ID an thus you will have which sensor sent the data without too much effort, if I understood what you were saying

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


            15

            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