@@ -871,6 +871,18 @@ static void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth,
871
871
#if (RADIO_SIGFOX_ENABLE == 1 )
872
872
uint8_t modReg ;
873
873
#endif
874
+ //Disabled, too much influence on RX timing
875
+ /*
876
+ MW_LOG( TS_ON, VLEVEL_M,
877
+ "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",
878
+ modem == MODEM_FSK ? "MODEM_FSK" : (modem == MODEM_LORA ? "MODEM_LORA" : "?"),
879
+ (unsigned)bandwidth, (unsigned)datarate, (unsigned)coderate,
880
+ (unsigned)bandwidthAfc, (unsigned)preambleLen,
881
+ (unsigned)symbTimeout, (unsigned)fixLen, (unsigned)payloadLen,
882
+ (unsigned)crcOn, (unsigned)freqHopOn, (unsigned)hopPeriod,
883
+ (unsigned)iqInverted, (unsigned)rxContinuous
884
+ );
885
+ */
874
886
SubgRf .RxContinuous = rxContinuous ;
875
887
RFW_DeInit ();
876
888
if ( rxContinuous == true )
@@ -1060,6 +1072,15 @@ static void RadioSetTxConfig( RadioModems_t modem, int8_t power, uint32_t fdev,
1060
1072
SubgRf .lr_fhss .is_lr_fhss_on = false;
1061
1073
#endif /* RADIO_LR_FHSS_IS_ON == 1 */
1062
1074
RFW_DeInit ();
1075
+ MW_LOG ( TS_ON , VLEVEL_M ,
1076
+ "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" ,
1077
+ modem == MODEM_FSK ? "MODEM_FSK" : (modem == MODEM_LORA ? "MODEM_LORA" : "?" ),
1078
+ (int )power , (unsigned )fdev , (unsigned )bandwidth ,
1079
+ (unsigned )datarate , (unsigned )coderate , (unsigned )preambleLen ,
1080
+ (unsigned )fixLen , (unsigned )crcOn , (unsigned )freqHopOn ,
1081
+ (unsigned )hopPeriod , (unsigned )iqInverted , (unsigned )timeout
1082
+ );
1083
+
1063
1084
switch ( modem )
1064
1085
{
1065
1086
case MODEM_FSK :
@@ -1318,6 +1339,11 @@ static radio_status_t RadioSend( uint8_t *buffer, uint8_t size )
1318
1339
IRQ_RADIO_NONE ,
1319
1340
IRQ_RADIO_NONE );
1320
1341
1342
+ MW_LOG ( TS_ON , VLEVEL_M , "TX:" );
1343
+ for (size_t i = 0 ; i < size ; ++ i )
1344
+ MW_LOG ( TS_ON , VLEVEL_M , " %02x" , buffer [i ]);
1345
+ MW_LOG ( TS_ON , VLEVEL_M , "\r\n" );
1346
+
1321
1347
/* Set DBG pin */
1322
1348
DBG_GPIO_RADIO_TX ( SET );
1323
1349
0 commit comments