Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 12 months ago.
Node 5 doesn't receive from the Beacon the DISTANCES_FRAME so can't printout distances summary
Once the Beacon (node 0) receives all the distances from each anchor I believe it should send the results to a monitoring node (node 5) which then displays the results on its console. I can’t see how the Beacon transfers the distances to node 5?
MM2WayRanging.h defines five frame types (PING, ANCHOR_RESPONSE, BEACON_RESPONSE, TRANSFER_FRAME and DISTANCES_FRAME). The last frame type (DISTANCES_FRAME) should be the one the Beacon uses to transfer the distances to node 5 but the code (MM2WayRanging.cpp) doesn’t take care of this frame type. I can see a callback in main.cpp (altCallbackRX) but I don’t think node 5 ever gets sent a DISTANCES_FRAME. Instead in main.cpp in function rangeAndDisplayAll() the Beacon just prints out to the console the received node.distances[i]. Unless I’m missing something?