cancel
Showing results for 
Search instead for 
Did you mean: 

SPIRIT1 Incorrect packet size on RX

PGoos.1
Associate

Hey everyone,

I've been trying to build a transceiver setup using a Nucleo-STM32L432KC and a SPIRIT1. Currently I have it sending and receiving data but if unit 1 TXs a string of 30 characters unit 2 will only show its packet length as 14. This seems to be the length of the message that unit 2 sent prior to receiving it.

As an interim solution I have set the the payload length to 96 (mostly arbitrary but based off the FIFO size) every time it sends or receives data using:

SpiritPktBasicSetPayloadLength(96);

The data transmits correctly now but of course has garbage after my string ends.

I am leaving the setup as mostly standard and using the basic packet type.

Any ideas on how to allow me to set the packet size (without using flexible packets - those didn't seem to work) in the packet and have it correctly receive would be great. I feel I may be misunderstanding how I'm supposed to send/receive data. If needed I can upload the parts of my code that deal with the SPIRIT.

Thanks in advance

0 REPLIES 0