Using Digi Remote Manager to send data to Remote XBee modules

Using the API explorer and the Post function, the following example SCI request allows you to send multiple messages using different network topologies.  The first line shows how to send data to a single node where by the second send_serial request shows how to send data in a Broadcast connection to multiple modules within the network. 


Using the API explorer and the Post function:

<sci_request version="1.0">
  <send_message cache="false">
    <targets>
      <device id="00000000-00000000-Enter the ID of your Gateway"/>
    </targets>
    <rci_request version="1.1">
      <do_command target="xbgw">
        <send_serial addr="00:13:a2:00:40:dd:e3:50" encoding="base64">SGVsbG8gRGlnaQ==></send_serial>
        <send_serial addr="00:00:00:00:00:00:FF:FF" encoding="base64">SGVsbG8gWEJlZSBXb3JsZCA=></send_serial>
      </do_command>
     </rci_request>
  </send_message>
</sci_request>

The line: <send_serial addr="00:13:a2:00:40:dd:e3:50" encoding="base64">SGVsbG8gRGlnaQ==></send_serial>
    sends the data "Hello Digi" as a Unicast packet to the module with the matching MAC address of "00:13:a2:00:40:dd:e3:50".

The line  <send_serial addr="00:00:00:00:00:00:FF:FF" encoding="base64">SGVsbG8gWEJlZSBXb3JsZCA=></send_serial> Sends the data "Hello XBee World " to the Broadcast address of 0xFFFF which in turn tells the XBee modules to send to all nodes within the BH, NH and TO hops.

Note that the data being sent is posted in the SCI request as Base64 characters.

The window where you can enter this SCI request in the Remote Manager is under the API Explorer:


 

Last updated: Apr 02, 2019

Filed Under

Embedded

Recently Viewed

No recently viewed articles

Did you find this article helpful?