Powerful AFSK modem platform
Go to file
2015-08-05 21:06:18 +02:00
hardware Increased max frame length. Other minor tweaks. 2015-08-05 21:02:16 +02:00
images Just some housekeeping 2015-04-22 10:31:35 +02:00
precompiled Updated precompiled images 2015-04-22 11:29:27 +02:00
protocol Increased max frame length. Other minor tweaks. 2015-08-05 21:02:16 +02:00
util Working build 2014-12-18 23:45:36 +01:00
.gitignore Just some housekeeping 2015-04-22 10:31:35 +02:00
config.h Initial commit 2014-12-03 01:10:06 +01:00
device.h Various fixes 2014-12-19 00:50:14 +01:00
flash Updated readme 2014-12-19 14:43:05 +01:00
LICENSE Updated license notice 2015-04-26 21:24:50 +02:00
main.c Serial stuff 2014-12-19 00:15:56 +01:00
Makefile Fix avr-size "Device: Unknown" message. 2015-07-22 14:01:38 +02:00
README.md Updated readme 2014-12-19 14:43:05 +01:00

MicroAPRS

MicroAPRS is an APRS firmware for MicroModem. It supports both normal KISS mode, and a simple serial protocol for easy communication with an Arduino, or other MCU.

You can buy a complete modem from my shop, or you can build one yourself pretty easily. Take a look at the documentation in the MicroModem repository for information and getting started guides!

Some features

  • Send and receive AX.25 APRS packets
  • Full modulation and demodulation in software
  • Easy configuration of callsign and path settings
  • Flexibility in how received packets are output over serial connection
  • Persistent configuration stored in EEPROM
  • Shorthand functions for sending location updates and messages, so you don't need to manually create the packets
  • Ability to send raw packets
  • Support for settings APRS symbols
  • Support for power/height/gain info in location updates
  • Ability to automatically ACK messages adressed to the modem
  • Can run with open squelch
  • Supports KISS mode for use with programs on a host computer

KISS mode

When the modem is running in KISS mode, there's really not much more to it than connecting the modem to a computer, opening whatever program you want to use with it, and off you go.

Modem control - SimpleSerial

If you want to use the SimpleSerial protocol, here's how to control the APRS modem over a serial connection. The modem accepts a variety of commands for setting options and sending packets. Generally a command starts with one or more characters defining the command, and then whatever data is needed to set the options for that command. Here's a list of the currently available commands:

##Serial commands

Command Description
!<data> Send raw packet
@<cmt> Send location update (cmt = optional comment)
#<msg> Send APRS message
   
c<call> Set your callsign
d<call> Set destination callsign
1<call> Set PATH1 callsign
2<call> Set PATH2 callsign
   
sc<ssid> Set your SSID
sd<ssid> Set destination SSID
s1<ssid> Set PATH1 SSID
s2<ssid> Set PATH2 SSID
   
lla<LAT> Set latitude (NMEA-format, eg 4903.50N)
llo<LON> Set latitude (NMEA-format, eg 07201.75W)
lp<0-9> Set TX power info
lh<0-9> Set antenna height info
lg<0-9> Set antenna gain info
ld<0-9> Set antenna directivity info
ls<sym> Select symbol
lt<s/a> Select symbol table (standard/alternate)
   
mc<call> Set message recipient callsign
ms<ssid> Set message recipient SSID
mr<ssid> Retry last message
ma<1/0> Automatic message ACK on/off
   
ps<1/0> Print SRC on/off
pd<1/0> Print DST on/off
pp<1/0> Print PATH on/off
pm<1/0> Print DATA on/off
pi<1/0> Print INFO on/off
v<1/0> Verbose mode on/off
V<1/0> Silent mode on/off
   
w<XXX> Set preamble in ms
W<XXX> Set TX tail in ms
   
S Save configuration
L Load configuration
C Clear configuration
H Print configuration

Examples

To set your callsign to XX1YYY-5, and then save the configuration, send these three commands:

cXX1YYY
sc5
S

To send an APRS message to ZZ5ABC-1 with the content "Hi there!", send these commands:

mcZZ5ABC
ms1
#Hi there!

To send a location update, with the comment "MicroAPRS", you can do something like this:

lla5230.70N
llo01043.70E
@MicroAPRS

To send an APRS message to ZZ5ABC-1 with the content "Hi there!", using a raw packet, send this command:

!:ZZ5ABC-1 :Hi there!{01

Here's an example of how to send a location update with power, height and gain information, using a raw packet:

!=5230.70N/01043.70E-PHG2410MicroAPRS

EEPROM Settings

When saving the configuration, it is written to EEPROM, so it will persist between poweroffs. If a configuration has been stored, it will automatically be loaded when the modem powers up. The configuration can be cleared by sending the "clear configuration" command (C).

Serial Connection

To connect to the modem use 9600 baud, 8N1 serial. By default, the firmware uses time-sensitive input, which means that it will buffer serial data as it comes in, and when it has received no data for a few milliseconds, it will start interpreting whatever it has received. This means you need to set your serial terminal program to not send data for every keystroke, but only on new-line, or pressing send or whatever. If you do not want this behaviour, you can compile the firmware with the DEBUG flag set, which will make the modem wait for a new-line character before interpreting the received data. I would generally advise against this though, since it means that you cannot have newline characters in whatever data you want to send!

MicroModem

The project has been implemented in your normal C with makefile style, and uses AVR Libc. The firmware is compatible with Arduino-based products, although it was not written in the Arduino IDE.

Visit my site for questions, comments and other details.