Does anyone have an example of a remote AT command sent from the Java library? We can't find which function sends the command.
We found the method that constructs the remote AT command, but we don't know which method sends it. And we can't seem to find any examples anywhere.
Posted Mar 8, 2018, 6:15 PM UTC
10
Have you taken a look at the documentation for sending data? https://www.digi.com/resources/documentation/digidocs/90001438/Default.htm#reference/r_xb_java_lib_send_data.htm%3FTocPath%3DUsing%2520the%2520XBee%2520Java%2520Library%7CCommunicating%2520with%2520XBee%2520devices%7CSend%2520data%7C_____0
There are examples of each type of send (sync vs async and unicast vs broadcast.)
it looks like that function takes care of the rest of the frame so that all you need to enter is the data. But that makes it an ordinary 16 or 64 bit Tx request (frame type 0x00 or 0x01), doesn't it?
What we need is a frame type 0x17. If we construct a frame as an array and send it with "sendData(RemoteXBeeDevice, byte[])", the method will wrap the bytes in a transmit frame and treat it like ordinary data.
0x17 is a remote AT command. You want to look at the example code at "examples/configuration/SetAndGetParametersSample"
https://www.digi.com/resources/documentation/digidocs/90001438/Default.htm#reference/r_xb_java_lib_xb_java_samples_config_set_get_par.htm