fix in kiss communication with host

pull/2/head
Mateusz Lubecki 2018-05-01 16:14:54 +02:00
rodzic 850efeaaa9
commit ef2272a057
7 zmienionych plików z 2593 dodań i 2511 usunięć

Plik binarny nie jest wyświetlany.

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Wyświetl plik

@ -13,7 +13,7 @@
// Uncomment to enable all meteo functionality. TX20 anemometer, dallas termometer, MS5611 pressure sens
//#define _METEO
//#define _DIGI // Comment this do disable WIDE1-1 digipeating
#define _DIGI // Comment this do disable WIDE1-1 digipeating
//#define _MUTE_RF // TODO: Not yet implemented - This will make station RXonly and disable all data transmission
//#define _MUTE_OWN // TODO: Not yet implemented - This will disable all self-generated packets (wx, telemetry, beacon)
@ -51,10 +51,10 @@
#define _BCN_INTERVAL 10 // Own beacon interval in minutes
#define _PTT_PUSHPULL // Uncomment this if you want PTT line to work as Push-pull instead of Open Drain
#define _SERIAL_BAUDRATE 19200
#define _SERIAL_BAUDRATE 9600
// Transmitting delay
#define _DELAY_BASE 12 // * 50ms. For example setting 10 gives 500msec delay. Maximum value is 16
#define _DELAY_BASE 20 // * 50ms. For example setting 10 gives 500msec delay. Maximum value is 20
//#define _RANDOM_DELAY // adds random delay TO fixed time set by _DELAY_BASE. This additional time can be
// from 100ms up to 1 sec in 100ms steps. Values are drawn from samples going from ADC
// so it is better to use Unsquelched output in radio to provide much more randomness

Wyświetl plik

@ -13,8 +13,8 @@
extern volatile int delay_5us;
#if (_DELAY_BASE > 16)
#error "Transmit delay shouldn't be longer that 800msec. Decrease _DELAY_BASE in config below 16"
#if (_DELAY_BASE > 20)
#error "Transmit delay shouldn't be longer that 1000msec. Decrease _DELAY_BASE in config below 20"
#endif
void TIM2Delay(char delay) {

Wyświetl plik

@ -162,8 +162,8 @@ main(int argc, char* argv[])
}
if(new_msg_rx == 1) {
// memset(srlTXData, 0x00, sizeof(srlTXData));
// SrlStartTX(SendKISSToHost(0x00, msg.raw_data, (msg.raw_msg_len - 2), srlTXData));
memset(srlTXData, 0x00, sizeof(srlTXData));
SrlStartTX(SendKISSToHost(0x00, msg.raw_data, (msg.raw_msg_len - 2), srlTXData));
ax25.dcd = false;
#ifdef _DBG_TRACE
trace_printf("APRS-RF:RadioPacketFrom=%.6s-%d,FirstPathEl=%.6s-%d\r\n", msg.src.call, msg.src.ssid, msg.rpt_lst[0].call, msg.rpt_lst[0].ssid);

Wyświetl plik

@ -103,7 +103,7 @@ typedef struct AX25Msg
uint8_t pid; ///< AX25 PID field
const uint8_t *info; ///< Pointer to the info field (payload) of the message
uint16_t len; ///< Payload length
char raw_data[CONFIG_AX25_FRAME_BUF_LEN]; /// Surowa zawarto<74><6F> ramki przekopiowana z Ctx->buff
uint8_t raw_data[CONFIG_AX25_FRAME_BUF_LEN]; /// Surowa zawarto<74><6F> ramki przekopiowana z Ctx->buff
short int raw_msg_len; // wielkosc surowej ramki
} AX25Msg;