| | |
| | | int8_t RssiValue = 0;
|
| | | int8_t SnrValue = 0;
|
| | |
|
| | | KWStates KW_State=KW_PON;
|
| | | //KWStates KW_State=KW_PON;
|
| | |
|
| | | void LedToggle(void)
|
| | | {
|
| | |
| | | memcpy( RX_Buffer, payload, BufferSize );
|
| | | RssiValue = rssi;
|
| | | SnrValue = snr;
|
| | | KMem.DT[40]=rssi; //Radio.Rssi(MODEM_FSK);;
|
| | | KMem.DT[41]=snr;
|
| | | KMem.DT[42]++;
|
| | | KMem.WDT[40]=rssi; //Radio.Rssi(MODEM_FSK);;
|
| | | KMem.WDT[41]=snr;
|
| | | KMem.WDT[42]++;
|
| | |
|
| | | Radio.Standby();
|
| | |
|
| | |
| | |
|
| | | void OnTxTimeout( void )
|
| | | {
|
| | | |
| | | KMem.WDT[43]++;
|
| | | |
| | | }
|
| | |
|
| | | void OnRxTimeout( void )
|
| | | {
|
| | | Radio.Standby();
|
| | | KMem.DT[43]++;
|
| | | KMem.WDT[44]++;
|
| | | KMem.ErrStat=200;
|
| | | if(RadioEnableMaster)
|
| | | {
|
| | |
| | | {
|
| | |
|
| | | Radio.Standby();
|
| | | KMem.DT[44]++;
|
| | | KMem.WDT[45]++;
|
| | | if(RadioEnableMaster)
|
| | | {
|
| | | SendPingMsg();
|