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

    Send raw message

    Scheduled Pinned Locked Moved Action board
    send raw messagaction board
    10 Posts 3 Posters 5.7k 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.
    • jkandasaJ Offline
      jkandasa
      last edited by

      Send raw message

      With Send raw message feature we can send any type of message to node/sensors.
      Navigate to Action board -> Send raw message.

      • Select a gateway
      • Enter Node EUI and Sensor id
      • Select Type and Sub type
      • Select Acknowledge type
      • Payload is optional
        image
      T 1 Reply Last reply Reply Quote 0
      • T Offline
        Tetnobic @jkandasa
        last edited by

        @jkandasa Is There a way to send a row message to a sleeping Node that only wake up temporaly occasionally (Battery-Powered Node).
        A sort of trigger that send message when receive data from that node... (like MYSController do)

        Thanks in advance

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

          @Tetnobic Yes, with SNAPSHOT version it supports for sleeping node. Kindly have a look on https://github.com/mycontroller-org/mycontroller/issues/208

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

            @jkandasa Perfect ! Nice Job !

            1 Reply Last reply Reply Quote 1
            • T Offline
              Tetnobic
              last edited by

              @jkandasa The support of sensor sleeping mode works but...
              In my sensor code, I use the smartSleep method when sleeping.
              So my sensor wake up, send heartbeat and go back to sleep and sometimes during this loop mycontroller is not fast enought to send the payload...

              In default mysensors/myconfig.h, the smart sleep wait duration is set to 500ms

              #ifndef MY_SMART_SLEEP_WAIT_DURATION_MS
              #define MY_SMART_SLEEP_WAIT_DURATION_MS (500ul)
              #endif

              Do you think I need to increase this duration ? perhaps 1000ms or more ?

              Thanks in advance

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

                @Tetnobic Yes, I think you have to increase the sleep wait time. Test with 2 seconds (2000ms)

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

                  @jkandasa
                  Finally I found another solution :
                  I used a raspberry pi gateway in ethernet type (so connected mycontroller with ip:port to this gateway)
                  Now I use a raspberry pi gateway in serial type (so connected mycontroller on /dev/ttyMySensorsGateway) and it works with default MY_SMART_SLEEP_WAIT_DURATION_MS
                  I think mycontroller is more reactive with serial gateway 🙂

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

                    @Tetnobic

                    I think mycontroller is more reactive with serial gateway 🙂

                    AFAIK, Mysensors serial gateway is working as real-time. Other gateways has small delay(as it is working with polling mechanism)

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      andyphan
                      last edited by

                      I tried to send a raw message to a node and it's child sensor. The node never received the message.

                      The receiving node has the following sketch

                      //========= Receiving Message from GW======
                      void receive(const MyMessage &message)
                      {
                      Serial.print("received msg type");
                      Serial.println(message.type);
                      Serial.print("Incoming change for sensor:");
                      Serial.println(message.sensor);
                      }
                      Nothing showed on Serial Screen. Can someone point me to the right direction? I'm miss-understood something?

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

                        @andyphan Are you receiving other messages from that node? recheck the node id once again

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

                        0

                        Online

                        586

                        Users

                        529

                        Topics

                        3.4k

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