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

    Send raw message

    scheduled pinned locked moved Action board
    send raw messagaction board
    10 posts 3 posters 6.3k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • jkandasaJ offline
      jkandasa
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • T offline
        Tetnobic @jkandasa
        global: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 one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa @Tetnobic
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • T offline
            Tetnobic @jkandasa
            global:last-edited-by,

            @jkandasa Perfect ! Nice Job !

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

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

                T one-reply-to-this-post last-reply-time reply quote 0
                • T offline
                  Tetnobic @jkandasa
                  global: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 one-reply-to-this-post last-reply-time reply quote 0
                  • jkandasaJ offline
                    jkandasa @Tetnobic
                    global: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)

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

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

                        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