Envoie une trame Ax25/APRS de façon périodique et affiche les trames reçues sur la liaison série.
#include <avrio/ax25.h>
#include <avrio/afsk.h>
#include <avrio/tc.h>
#include <avrio/task.h>
#include <avrio/mutex.h>
#define BAUDRATE 115200
#define PORT "tty0"
#define TX_PERIOD_MS 5000
#define APRS_DST "tlm100"
#define APRS_SRC "nocall"
#define APRS_MSG ">Test %05u SolarPi APRS http://www.btssn.net"
static void
}
static void
}
int
main(void) {
stdout = serial_port;
stderr = serial_port;
stdin = serial_port;
sei();
for (;;) {
static uint16_t usCount;
char msg[80];
snprintf (msg, sizeof(msg), APRS_MSG, usCount++);
vAx25SendVia (&ax25, path, countof(path), msg, strlen(msg));
}
}
return 0;
}