XBeeInternetGateway / XIG

XBee Internet Gateway for the Digi ConnectPort and Digi XBee
11 stars 12 forks source link

SCI Python Callback <send_data> returns OK even if modem is not contacted #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  XIG 1.4.2 installed on a ConnectPort X2 and configured to connect to iDigi.
2.  Sent the following SCI Python callback to a known-working XBee connected to 
that ConnectPort:
<sci_request version="1.0">
  <send_message>
    <targets>
      <device id="[CONNECTPORT DEVICE ID HERE]"/>
    </targets>
    <rci_request version="1.1">
      <do_command target="xig">
        <send_data hw_address="[XBEE HW ADDRESS HERE]!">Test Data</send_data>
      </do_command>
    </rci_request>
  </send_message>
</sci_request>
3. The response is "OK"
4. Disconnect power from that XBee.
5. Resend the SCI callback.

What is the expected output? What do you see instead?
Expected response "error"
Actual response: "ok"

Please provide any additional information below.
-Disconnecting the ConnectPort returns error "Device not found"
-using <at> *does* return "error" when XBee radio is offline

Original issue reported on code.google.com by mrichard...@gmail.com on 8 Apr 2012 at 10:58