I’m using the QM35825 python examples and I’ve tried to use the frame type SP0 to debug a possible STS problem.
I’m running the command run_fira_twr --frame sp0 but it fails to start the communications with error ErrorInvalidRFrameConfig. I’m running in a venv with Python 3.10.14 and port correctly setup. Why can’t I use the SP0 frame configuration?
Hi @akash, thank you for your response. I’ve tried changing the number of STS segments to 0 and use frame type SP0 with both TWR and OWR but all give the same error.
Is there any way at all to send SP0 frames with the QM35825? Even if they are data only frames. Without access to the firmware I can’t dig any further.
The TWR ranging script is intended for ranging (distance measurements) and not data transfer.
If you wish to transfer data, you will need to create a new script and set the parameters according to the FiRa specification. I would recommend taking a look at Section 4 in this document as well as referring to the FiRa specification.
I’ve found out that the get_cap script has a section on RFRAME_CONFIG which prints the following:
RFRAME_CONFIG
SP flags:
SP0: Not supported
SP1: Supported
SP2: Not supported
SP3: Supported
So there is no way to make the flag --frame sp0 work with this firmware even if it’s listed as a valid option in the usage/help of the run_fira_twr script.