Home/Support/Support Forum/handle all received packets from at command

handle all received packets from at command

0 votes
hi, using and reworking the examples of CodeWarrior are able to send a command NI and receive the name of the coordinator on the network with the handler at_command_handle .. sending the same request with a broadcast message there are problems.
the problem is that as the answer comes only read the first, losing its responses with "xbee_cmd_send (at_cmd_handler);"
I tried to send the broadcast packet correspondent XCTU and I get three answers immediately. I have all nodes set with APIs enable.
How can I do? I tried to change the handle for receiving a vector of answers but I get the timeout flag.
asked Mar 29, 2016 in RF Solutions and XBee by xbeeElisa New to the Community (5 points)

Please log in or register to answer this question.

2 Answers

0 votes
What you are most likely going to need to do is to use a larger buffer and put the data into an array.
answered Mar 29, 2016 by mvut Veteran of the Digi Community (11,298 points)
Try using the xbee_cmd_set_callback() command or xbee_cmd_set_callback(), xbee_cmd_response_t command.
but for the callback set, which i must use? because i try to implement one function ...but it brings only one response , and not all from broadcast at command send
I did some more checking and there is no function to do what you want.  You see the issue is that you simply don't know when the responses are going to come in so you have no way to know when to poll the data from the port.
0 votes
I see also that in the implementation of the library it is writes ( xbee_atcmd.c) : “ - Add flag for "multiple responses expected" -- taken care of by callback returning 1?”
maybe is this the problem? how can i fix it?
is there another way to capture all frames received from an at command just send?
answered Mar 31, 2016 by xbeeElisa New to the Community (5 points)
...