Changing between states

Hello everyone I’m looking for some help on the following:

I’m trying to make a protocol where all devices do ranging between each other and for this I started with two devices, one that serves as the initial initiator (Dev A) and an initial responder (Dev B). They are going to work as follows:

Dev A sends a poll

Dev B responds to poll and changes to polling

Dev A receives response, calculates distance and then changes to responder mode

Then the devices are going to be in this cycle of initiator-responder changes

The problem I’m having is that in this state change where Dev A displays distance calculation and then switches to responder mode it gets stuck and does not receive any frame from Dev B.

Does anyone knows if I need to do something special that will allow for this transition to work?

There is nothing special that you need to do.
In fact my firmware doesn’t even make a distinction between rolls. Any device that isn’t initiating a measurement or waiting for a response at the time will act as a responder.

My guess is that either you are missing some command, make sure you return the device to idle and disable tx and rx before enabling the opposite mode. Or you may have a timing issue and device A hasn’t finished switching modes before device B transmits.

Thanks for your reply.
I found the issue to be a combination of not returning the device to idle properly before changing modes, and that the distance calculation added a little bit of delay when device B was transmitting A was not listening.