AnsweredAssumed Answered

SPSGRF - Spirit1 configuration

Question asked by Loïc Bouilly on Jan 25, 2016
Hello,

I have bought 2 SPSGRF-868-Nucleo module. I want for beginning sent a packet for see how spirit1 works. But afters some search, I don't know if my packet is really sent or not because I receive anything.

I have configured 1 module for do a TX and other for RX. 
TX seems work, because when I sent a packet the interrupt for TX data sent is SET. 

For RX, I have no interrupt request for RX data available. Only discard.
This discard says that the RX timeout is done.

I have configured my module with this parameter : 
   
// To define :
#define XTAL_FREQUENCY          50e6
#define FREQUENCY_OFFSET        0
#define POWER_DBM               11.6
/* SRadioInit struct */
#define XTAL_OFFSET_PPM         0
#ifndef IF_DEF_RX
#define BASE_FREQUENCY          868000000
#else
#define BASE_FREQUENCY          868480000
#endif
#define CHANNEL_SPACE           20e3
#define CHANNEL_NUMBER          0
#define MODULATION_SELECT       FSK
#define DATARATE                38400
#define FREQ_DEVIATION          20
#define BANDWIDTH               100.5e3
 
 
 
/* PktbasicInit struct */
#define PREAMBLE_LENGTH         PKT_PREAMBLE_LENGTH_01BYTE // Nb de séquence 01010101
#define SYNC_LENGTH             PKT_SYNC_LENGTH_4BYTES // Nombre d'octet pour la synchronisation
#define SYNC_WORD               (uint32_t)0x1212000000001212 // TO DO : get à UID du STM32
#define LENGTH_TYPE             PKT_LENGTH_VAR
#define LENGTH_WIDTH            0
#define CRC_MODE                PKT_NO_CRC
#define CONTROL_LENGTH          PKT_CONTROL_LENGTH_1BYTE
#define EN_FEC                  (SpiritFunctionalState)S_DISABLE
#define EN_WHITENING            (SpiritFunctionalState)S_DISABLE
 
/*PktBasicAddressesInit struct */
#define EN_FILT_MY_ADDRESS          S_DISABLE
#ifndef IF_DEF_RX
#define MY_ADDRESS                  0x21
#else
#define MY_ADDRESS                  0x12
#endif
#define EN_FILT_MULTICAST_ADDRESS   S_DISABLE
#define MULTICAST_ADDRESS           0xFE
#define EN_FILT_BROADCAST_ADDRESS   S_DISABLE
#define BROADCAST_ADDRESS           0xFF

Outcomes