@@ -830,6 +830,18 @@ static void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth,
830
830
#if (RADIO_SIGFOX_ENABLE == 1 )
831
831
uint8_t modReg ;
832
832
#endif
833
+ //Disabled, too much influence on RX timing
834
+ /*
835
+ MW_LOG( TS_ON, VLEVEL_M,
836
+ "Setting RX Config: modem=%s, bandwidth=%u, datarate=%u, coderate=%u bandwithAfc=%u, preambleLen=%u, symbTimeout=%u, fixLen=%u, payloadLen=%u, crcOn=%u, freqHopOn=%u, hopPeriod=%u, iqInverted=%u, rxContinuous=%u\r\n",
837
+ modem == MODEM_FSK ? "MODEM_FSK" : (modem == MODEM_LORA ? "MODEM_LORA" : "?"),
838
+ (unsigned)bandwidth, (unsigned)datarate, (unsigned)coderate,
839
+ (unsigned)bandwidthAfc, (unsigned)preambleLen,
840
+ (unsigned)symbTimeout, (unsigned)fixLen, (unsigned)payloadLen,
841
+ (unsigned)crcOn, (unsigned)freqHopOn, (unsigned)hopPeriod,
842
+ (unsigned)iqInverted, (unsigned)rxContinuous
843
+ );
844
+ */
833
845
SubgRf .RxContinuous = rxContinuous ;
834
846
RFW_DeInit (); /* ST_WORKAROUND: Switch Off FwPacketDecoding by default */
835
847
if ( rxContinuous == true )
@@ -1012,6 +1024,15 @@ static void RadioSetTxConfig( RadioModems_t modem, int8_t power, uint32_t fdev,
1012
1024
uint8_t hopPeriod , bool iqInverted , uint32_t timeout )
1013
1025
{
1014
1026
RFW_DeInit (); /* ST_WORKAROUND: Switch Off FwPacketDecoding by default */
1027
+ MW_LOG ( TS_ON , VLEVEL_M ,
1028
+ "Setting TX Config: modem=%s, power=%u, fdev=%u, bandwidth=%u, datarate=%u, coderate=%u preambleLen=%u, fixLen=%u, crcOn=%u, freqHopOn=%u, hopPeriod=%u, iqInverted=%u, timeout=%u\r\n" ,
1029
+ modem == MODEM_FSK ? "MODEM_FSK" : (modem == MODEM_LORA ? "MODEM_LORA" : "?" ),
1030
+ (int )power , (unsigned )fdev , (unsigned )bandwidth ,
1031
+ (unsigned )datarate , (unsigned )coderate , (unsigned )preambleLen ,
1032
+ (unsigned )fixLen , (unsigned )crcOn , (unsigned )freqHopOn ,
1033
+ (unsigned )hopPeriod , (unsigned )iqInverted , (unsigned )timeout
1034
+ );
1035
+
1015
1036
switch ( modem )
1016
1037
{
1017
1038
case MODEM_FSK :
@@ -1272,6 +1293,11 @@ static void RadioSend( uint8_t *buffer, uint8_t size )
1272
1293
IRQ_RADIO_NONE );
1273
1294
/* ST_WORKAROUND_END */
1274
1295
1296
+ MW_LOG ( TS_ON , VLEVEL_M , "TX:" );
1297
+ for (size_t i = 0 ; i < size ; ++ i )
1298
+ MW_LOG ( TS_ON , VLEVEL_M , " %02x" , buffer [i ]);
1299
+ MW_LOG ( TS_ON , VLEVEL_M , "\r\n" );
1300
+
1275
1301
/* ST_WORKAROUND_BEGIN : Set the debug pin and update the radio switch */
1276
1302
/* Set DBG pin */
1277
1303
DBG_GPIO_RADIO_TX ( SET );
0 commit comments