iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    API send downlink messages accepted but never received

    iotcreators.com portal & API
    api downlink message not received working
    2
    6
    80
    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.
    • G
      GrandPep last edited by

      Hello,

      I am trying to send downlink messages through the API and get the response:

      {
      “requestId”: “*****************************”,
      “msg”: “Accepted”,
      “code”: 1002
      }

      But at the device, the message is not received. If a downlink message is send through the portal with ‘action’ -> ‘send downlink message’ the message is received correctly.

      I have double-checked the correct IMEI and that the messages are the same. Why can I not receive the messages through the API on my devices?

      1 Reply Last reply Reply Quote 0
      • Roland Baldin
        Roland Baldin iotcreators.com team last edited by

        @GrandPep Did you send an uplink message from the device after you posted a downlink message?

        Downlink messages are not delivered immediately to the device. They are queued in the middleware.

        Queued downlink messages are delivered to the device after the device has sent an uplink message.

        The middleware queues up to 10 messages.

        Regards, Roland

        G 1 Reply Last reply Reply Quote 0
        • G
          GrandPep @Roland Baldin last edited by GrandPep

          @roalnd-baldin Yes indeed, as of normal (like in the same way we do with sending downlinks through the platform) we wait until our Quectel BG95-M3 receives a +QIURC: “recv”,0 after sending an uplink message and receive it with AT+QIRD=0.

          Only when using the API to send downlink messages, the API response that everything was send good, however, no messages are waiting for the device so a +QIURC: “recv”,0 is never responded.

          Roland Baldin 1 Reply Last reply Reply Quote 0
          • Roland Baldin
            Roland Baldin iotcreators.com team @GrandPep last edited by

            @grandpep The API response “Accepted” with code “1002” doesn’t mean that the downlink message has been delivered to the device. It means the the message has been accepted and queued by the protocol specific IoT adapter.

            Can you please send the IMEI of the device for which you try to send a downlink message with the API to our support box support@iotcreators.com?

            Regards, Roland

            G 1 Reply Last reply Reply Quote 0
            • G
              GrandPep @Roland Baldin last edited by

              @roalnd-baldin Thank you and I have send the IMEI to the support mail. And indeed, the code 1002 indeed means that it is queued and ready to be received for the device it is meant to. The following steps were used:

              1. through the Iotcreators platform, send a downlink message to device A.
              2. device A sends an uplink messages and receives a +QIURC: “recv”,0 meaning there is a downlink message waiting.
              3. use AT+QIRD=0 to get the downlink message for device A.
              4. through the API, send a downlink message to device A and receive the API response: accepted, code 1002
              5. device A sends an uplink message, however, device A does not repond with a +QIURC: “recv”,0 : there is no downlink waiting
                (6. still check it with AT+QIRD=0 but really there is no downlink message…)
              1 Reply Last reply Reply Quote 0
              • Roland Baldin
                Roland Baldin iotcreators.com team last edited by

                @GrandPep I had a look to your configurations. I saw that you registered for your API account an application URL but I cannot see any subscriptions. I will verify it and come back to you…

                Regards, Roland

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