• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • 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.
  • J Offline
    jkandasa
    last edited by 16 Apr 2016, 10:59

    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 25 Nov 2016, 16:19 Reply Quote 0
    • T Offline
      Tetnobic @jkandasa
      last edited by 25 Nov 2016, 16:19

      @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

      J 1 Reply Last reply 25 Nov 2016, 16:40 Reply Quote 0
      • J Offline
        jkandasa @Tetnobic
        last edited by 25 Nov 2016, 16:40

        @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 29 Nov 2016, 13:28 Reply Quote 0
        • T Offline
          Tetnobic @jkandasa
          last edited by 29 Nov 2016, 13:28

          @jkandasa Perfect ! Nice Job !

          1 Reply Last reply Reply Quote 1
          • T Offline
            Tetnobic
            last edited by 13 Dec 2016, 15:43

            @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

            J 1 Reply Last reply 13 Dec 2016, 17:52 Reply Quote 0
            • J Offline
              jkandasa @Tetnobic
              last edited by 13 Dec 2016, 17:52

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

              T 1 Reply Last reply 14 Dec 2016, 10:01 Reply Quote 0
              • T Offline
                Tetnobic @jkandasa
                last edited by 14 Dec 2016, 10:01

                @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 🙂

                J 1 Reply Last reply 14 Dec 2016, 10:39 Reply Quote 0
                • J Offline
                  jkandasa @Tetnobic
                  last edited by 14 Dec 2016, 10:39

                  @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 5 Dec 2017, 18:59

                    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?

                    J 1 Reply Last reply 6 Dec 2017, 02:28 Reply Quote 0
                    • J Offline
                      jkandasa @andyphan
                      last edited by 6 Dec 2017, 02:28

                      @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