enabling or disabling RTU debug status info, SR9WXL configuration file

pull/2/head^2
Mateusz Lubecki 2021-05-21 12:08:20 +02:00
rodzic a5ccf927c5
commit d63f6d4c0e
4 zmienionych plików z 22 dodań i 15 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
#include "drivers/serial.h"
#define SW_VER "DF16"
#define SW_DATE "18052021"
#define SW_DATE "19052021"
#define SYSTICK_TICKS_PER_SECONDS 100
#define SYSTICK_TICKS_PERIOD 10

Wyświetl plik

@ -70,13 +70,13 @@
// and switch device to "pure" kiss TNC operation. Packets from PC will be transmitted normally.
// Coordines should be in APRS decimal format DDDMM.SS for Longitude and DDMM.SS for latitude
#define _CALL "SP8EBC"
#define _CALL "SR9WXL"
#define _SSID 0
#define _LAT 4948.01
#define _LAT 4947.70
#define _LATNS 'N'
#define _LON 01903.00
#define _LON 01926.80
#define _LONWE 'E'
#define _COMMENT "test"
#define _COMMENT "DigiW1 + WX = TXPower 2W = Stacja GOPR Leskowiec = sp8ebc@interia.pl"
// You can use only one of these below defines to choose symbol. Meteo data are are always transmitted with blue WX symbol
//#define _SYMBOL_DIGI // uncomment if you want digi symbol(green star with D inside)

Wyświetl plik

@ -13,6 +13,8 @@
#include "./umb_master/umb_master.h"
#include "./modbus_rtu/rtu_configuration.h"
#include "main.h"
#include "delay.h"
@ -134,6 +136,8 @@ void packet_tx_handler(void) {
#ifdef _METEO
#ifdef _MODBUS_RTU
#ifdef RTU_ENABLE_DEBUG_STATUS
// send the status packet with raw values of all requested modbus-RTU registers
if (packet_tx_meteo_counter == (packet_tx_meteo_interval - 1) &&
packet_tx_telemetry_descr_counter >= packet_tx_modbus_raw_values)
@ -144,16 +148,17 @@ void packet_tx_handler(void) {
telemetry_send_status_raw_values_modbus();
}
// // trigger the status packet with modbus-rtu state like error counters, timestamps etc.
// if (packet_tx_meteo_counter == (packet_tx_meteo_interval - 1) &&
// packet_tx_telemetry_descr_counter > packet_tx_modbus_status &&
// packet_tx_telemetry_descr_counter <= packet_tx_modbus_status * 2)
// {
//
// packet_tx_multi_per_call_handler();
//
// rte_main_trigger_modbus_status = 1;
// }
// trigger the status packet with modbus-rtu state like error counters, timestamps etc.
if (packet_tx_meteo_counter == (packet_tx_meteo_interval - 1) &&
packet_tx_telemetry_descr_counter > packet_tx_modbus_status &&
packet_tx_telemetry_descr_counter <= packet_tx_modbus_status * 2)
{
packet_tx_multi_per_call_handler();
rte_main_trigger_modbus_status = 1;
}
#endif
#endif
// check if Victron VE.Direct serial protocol client is enabled and it is

Wyświetl plik

@ -37,4 +37,6 @@
#define RTU_MAX_VALID_PRESSURE 1100
#define RTU_MIN_VALID_PRESSURE 900
//#define RTU_ENABLE_DEBUG_STATUS
#endif /* INCLUDE_MODBUS_RTU_RTU_CONFIGURATION_H_ */