
Over the past two weeks I have been working on LinHT and on a packet radio protocol for the 70 cm amateur band with Andreas OE3ANC and Wojciech SP5WWP. We call it FART (Fast Amateur Radio Transport). We wanted to see how much Internet Protocol (IP) traffic the handhelds could carry over a shared radio channel. The LinHT runs Linux, so we can work on the modem and the network on the same radio. In my LinHT Rev C update earlier this month I wrote about the current board and what we could already do with it.
I wrote about our first long link in TCP/IP over the air with LinHT on the M17 Project blog. This time I want to explain how the radio sends a frame, how stations share the channel and what the Brno and Mokrá tests showed.
Profiles and constellations
The physical layer (PHY) turns a frame into a short radio signal called a burst. We can send the same bytes on air in several ways because the signal that works on a weak link costs more airtime on a good one. A PHY profile sets the modulation, the symbol rate and the forward error correction (FEC) rate. At a rate of 3/4, for example, three bits before coding take roughly four coded bits on the air. We have 13 profiles in three groups. P1 uses Gaussian minimum shift keying (GMSK) at 20.8 kBd (thousand symbols per second). The narrow linear profiles P2 to P6 use the same symbol rate and, like P1, fit in a 25 kHz channel. The wide profiles P7 to P13 run at 100 kBd and occupy about 110 kHz. Occupied bandwidth here is the part of the spectrum that contains 99% of the signal power.

A constellation plots the in-phase (I) and quadrature (Q) components on its horizontal and vertical axes. Together the I/Q components describe the amplitude and phase of the signal at baseband. In the linear profiles the dots are equalised data symbols and the crosses mark their ideal positions. I have left the pilots, which are known symbols the receiver uses to follow changes in phase, out of the scatter plots. With quadrature phase-shift keying (QPSK) the receiver decides among four points, which gives two bits per symbol. With 16-point quadrature amplitude modulation (16-QAM) the receiver has 16 points to choose from and gets four bits per symbol. With 64-QAM and 256-QAM it gets six and eight bits respectively. At the same power the points sit closer together as we add more, so noise, a phase error or distortion in the amplifier makes the decision harder.

I made those recordings with two LinHT units about 15 m apart in a flat. Rev C transmitted, Rev B received and both used short whip antennas. The points show what the demodulator gets from a real signal under good conditions. In the GMSK plot the phase changes continuously, so the line follows the samples between decisions and stays close to a circle because the envelope is nearly constant.

Once we have chosen a modulation, we can still change the symbol rate or the amount of redundancy. P4 and P10 both use 16-QAM with a code rate of 3/4, and P10 sends 100 thousand symbols per second to P4’s 20.8 thousand. P7 and P8 both run QPSK at 100 kBd, and what changes is the code rate. P7 uses a rate of 1/2 to gain some margin when the signal is weak. P8 uses a rate of 3/4, so it gets more data through in the same time if the receiver can resolve the symbols reliably.

The horizontal axis uses Eₛ/N₀, the ratio of the energy in a symbol to the noise power per hertz. A higher value means that the receiver needs more energy per symbol at the same noise level. For 1% frame loss the LinHT model gives 2.9 dB for P7 and 24.3 dB for P13. Both profiles have the same symbol rate, so the difference comes mainly from the denser constellation and the smaller share of redundancy.
The rate of a single burst follows from the frame length and the airtime. On P13 it comes to about 524 kbit/s for a 1500-byte frame. In the lab we measured 400 kbit/s of delivered data on this profile with two LinHT units connected by coaxial cable. The difference includes channel access, the gaps between bursts and the replies. I use the term goodput for the amount of useful data actually delivered per second over the whole measurement interval. P1 uses a convolutional code, and the linear profiles use low-density parity-check (LDPC) codes by default.
| Profile | Modulation | FEC | Net rate (kbit/s) | Modelled goodput (kbit/s) | Cable goodput (kbit/s) | Eₛ/N₀ at 1% loss (dB) |
|---|---|---|---|---|---|---|
| P1 | GMSK | Conv. 3/4 | 15.4 | 14.1 | — | 4.1 |
| P2 | QPSK | LDPC 3/4 | 28.8 | 25.1 | — | 5.0 |
| P3 | 16-QAM | LDPC 1/2 | 38.2 | 32.1 | — | 8.8 |
| P4 | 16-QAM | LDPC 3/4 | 56.5 | 44.4 | 44 | 11.5 |
| P5 | 64-QAM | LDPC 3/4 | 83.2 | 59.8 | 60 | 17.5 |
| P6 | 256-QAM | LDPC 3/4 | 109.1 | 86.7 | 88 | 23.9 |
| P7 | QPSK | LDPC 1/2 | 92.7 | 66.8 | — | 2.9 |
| P8 | QPSK | LDPC 3/4 | 138.1 | 107.0 | — | 5.0 |
| P9 | 16-QAM | LDPC 1/2 | 183.1 | 145.3 | 142 | 8.8 |
| P10 | 16-QAM | LDPC 3/4 | 271.3 | 219.0 | — | 11.5 |
| P11 | 64-QAM | LDPC 3/4 | 399.5 | 324.4 | 314 | 17.7 |
| P12 | 64-QAM | LDPC 5/6 | 441.4 | 351.6 | 349 | 18.7 |
| P13 | 256-QAM | LDPC 3/4 | 523.5 | 418.4 | 400 | 24.3 |
Net rate is calculated from the airtime of a single 1500-byte frame. The goodput model allows aggregation and includes the channel access and replies. The cable column gives the best goodput measured for the listed profiles in the 1500-byte coax test. A dash means the cable run gives us no comparable result for that profile. The last column is the Eₛ/N₀ at 1% frame loss in the LinHT model.
Anatomy of a burst
To see how a receiver finds a burst, we can start with the default GMSK profile, P1. The receiver first looks for a known sequence of phase changes between successive symbols. When it finds a candidate, it compares the samples with the known waveform to refine the start of the burst and estimate its frequency offset and phase. It can then read the PHY header, which includes the profile number, the length of the frame and the code used for the data. The header has its own 8-bit cyclic redundancy check (CRC-8) and a rate-1/2 convolutional code, because an error there would spoil the rest of the burst.

The transmitter adds a 32-bit CRC to the link-layer frame and encodes both with the profile’s FEC code. A rate of 1/2 adds more redundancy than 3/4, so the frame takes longer to send and the receiver has more information to work with.
The receiver withholds any frame that fails the CRC after decoding. With the optional hybrid automatic repeat request (HARQ), the receiver can keep its estimates of the bits and combine them with estimates from the retransmitted burst. Each estimate includes how confident the receiver was, so even a burst that failed on its own can contribute to decoding the frame.
Linear profiles use the same arrangement of synchronisation, header and coded data. They send synchronisation and the header using π/2-BPSK (binary phase-shift keying with a quarter turn between symbol positions), then switch to the profile’s modulation for the data. We also insert known symbols called pilots in the data section, which let the receiver follow changes in phase as the burst goes on. These parts take time on the air even when the frame carries only a few bytes.
A receiver can decode the profiles in its group. A receiver set to a wide profile can read both P7 and P13, because they share the sampling and burst format and the header gives the profile number. P1 has its own synchronisation and waveform, so a receiver set to one of the narrow linear profiles cannot decode it even on the same frequency. By default each station sends data on a fixed profile.
I am testing an optional rate selection rule called snr-v. The receiver reports the signal-to-noise ratio in its reply, so the sender learns how well its last transmission arrived. It uses the profile’s loss curve and how much the recent reports have varied to estimate how likely each candidate is to get through. It then picks the profile in the same group that should take the least time per delivered frame, including the time lost to retries. When an exchange goes unanswered, the sender estimates a weaker link for its next choice. If the reports go stale, the sender falls back to the profile that needs the least signal in the group. This is still early work, so for most of the tests here I set the profile myself.
Channel access
The medium access control layer (MAC) keeps track of which neighbours the station hears and decides when it may transmit. It addresses frames, tracks their sequence numbers and retries data when no acknowledgement arrives.
We expected several stations to share one frequency in the 70 cm amateur band, so we borrowed the idea of listening before sending and acknowledging frames from Wi-Fi. The LinHT either transmits or receives at any given time. When the receiver is due to acknowledge a data frame, both radios must switch directions and Linux has some processing to do as well. In the LinHT turnaround test we measured about 3.5 ms from the decision to switch from receive to transmit to the start of the burst at the other radio, including the software and its buffers. With short datagrams this time is already a fair share of the exchange.
If stations sent each frame as soon as Linux gave them a datagram, two of them would often start at the same time. The radio therefore checks for energy on the channel and the MAC also reads the duration that a frame advertises for the rest of its exchange. Other stations can reserve that time for the data and its reply, even though the channel goes quiet between the two bursts. The timer for that reservation is called the network allocation vector (NAV). Sensing energy also lets a station defer to a signal that the FART demodulator cannot read.
The first version waited for a random interval once the channel was free. We used this version on the link from Mokrá to the Reisalpe. It worked for longer transfers, but a stream of small datagrams paid for that wait every time we sent one. The queue grew as soon as we started Quake (the game handed us packets faster than we could send them). The current default is ordered access. After an exchange, the active stations wait through a short common gap and then take slots in the order of the node addresses they know.
The order starts after the station that initiated the last exchange, so it comes round again after the other active stations have had a turn. A separate open slot gives a newly active station a chance to transmit. Random access is still an option.

The numbers above the timeline follow three exchanges on the same channel.
- A finishes an exchange with C, so every station waits through the common gap marked XIFS.
- A started the last exchange, so the order is B, C, A. The open slot comes first this time and passes empty.
- B has data for A and starts at the beginning of its slot, so C hears it and waits.
- B started the last exchange, so the order is now C, A, B. C has nothing queued and A starts in the next slot.
- The open slot comes first again and D uses it to send to A. That makes D an active station with a slot of its own.
Two stations can both hear a hotspot while remaining out of range of each other. These hidden stations can each hear a clear channel, so their signals can overlap at the receiver even when both follow the slot rules. After two failures in its own slot, a sender retries using a random backoff across slots, which makes it less likely that both stations will try again together. For a hotspot with several clients I am also studying polling, where the hotspot gives each client a turn. The simulations and tests will tell us whether the shared access rules need another change.

Acknowledgements and aggregation
When the addressed station receives a standalone data frame successfully, it replies with an acknowledgement (ACK). The short interframe space (SIFS) gives the receiver time to switch to transmit and the sender time to switch back to receive. Other stations wait longer when they want to start a new exchange, so they leave room for the reply. By default the reply uses the profile of the frame it answers. An acknowledgement can go missing even if the data got through, so the receiver uses the sequence number to recognise a repeat of a frame it has already delivered.
When several frames for the same station are in the queue, the MAC can send them together in one access as an aggregate. Each frame has its own error check, so the receiver can accept the first and third even if it misses the second. It sends a block acknowledgement (BLOCK_ACK) that gives the start of its receive window and a bitmap of the frames received beyond a gap. The sender can then retire the frames that got through and send the missing ones again. If the block acknowledgement itself went missing, the sender can ask for the state of the window again.

The default limits are 16 frames and usually 250 ms of airtime per aggregate. On a slower profile a few large frames can fill the time budget before we reach the frame limit. Aggregation saves the repeated wait for channel access and acknowledgement, and it can do that when there are frames in the queue to send together. When the exchange allows it and the receiver has data going back, it can send its own aggregate after the BLOCK_ACK without taking a new turn. This is the reverse direction grant.

We also put datagrams into traffic classes, so short interactive exchanges can go ahead of a file transfer. A ping or a small interactive datagram can then go out in the next aggregate while the file transfer continues in the remaining airtime.
Peer, client and hotspot
A FART station can act as a peer, a client or a hotspot. They differ in how a station finds the other end and where it sends data. All three use the same MAC to share the channel and the same PHY to send and receive a burst.
In peer mode the stations exchange data directly with one another. Two sites with directional antennas pointed at each other could use it for a fast point-to-point link. Three stations can also run as peers and each pair can talk directly if they hear one another. Peers announce their address and capabilities in HELLO frames.
A hotspot suits a different layout. A station at a good site can use an omnidirectional antenna and enough power to cover its clients. The clients can aim directional antennas at the hotspot and use it to reach one another or a backbone such as HAMNET. It is the same sort of last-mile access I explored in my New Packet Radio (NPR) experiments. In the layout shown here, clients send their unicast traffic through the hotspot. Setting the clients to relay = all sends all their unicast traffic for other stations this way.

A client on the right frequency and with a compatible PHY setting sends a HELLO marked as a discovery request. A silent hotspot hears the request and replies with a BEACON. The client then sends JOIN and the hotspot can answer with ACCEPT or REJECT. On acceptance the client receives settings such as its IPv4 address and lease, and can start using the hotspot.
Silence is the default hotspot behaviour in FART on any hardware. With no clients present, the hotspot listens and sends no periodic BEACON. An ordinary peer HELLO leaves it quiet. A typical Wi-Fi access point announces its network at regular intervals. I wanted an idle FART hotspot to leave the shared amateur channel free, so in this mode a client has to ask before the hotspot announces itself.

The hotspot can forward a datagram between its clients, which takes two separate radio exchanges. With an uplink it can also forward traffic to other networks. I am testing and simulating how several clients share one channel, and we will adjust the protocol where the results call for it.
Control frames such as HELLO and BEACON can carry an Ed25519 signature. A station can check the signature against a known public key, and a closed hotspot uses verified client keys when it decides whom to admit. The traffic remains readable on the air. I will cover signatures and key handling in a separate article.
The Linux interface
On the LinHT, the program fartd opens a virtual network interface called radio0. When Linux routes an IP datagram to that interface, fartd reads it. At the other end it returns the received datagram to Linux through the corresponding interface. You can run ping over that link just as you can send UDP datagrams or open a TCP connection. A laptop plugged into the LinHT over USB sees an ordinary network interface, and the LinHT can route traffic between USB and the radio.
The Linux interface carries both IPv4 and IPv6. The MAC moves bytes with a payload type, so it can carry other traffic as well. I would like to use that for delay-tolerant networking (DTN) with Bundle Protocol version 7, so a station could hold a bundle while the next link is unavailable and forward it when that link comes up.

Field tests
My first field test at about 1 km was in Brno on 20 November. I left one LinHT on a balcony and took the second across the neighbourhood. Both used short omnidirectional whips, and rooftops blocked the line of sight. P1 worked at the 50 mW setting. At the 2 W setting P10 delivered about 156 kbit/s with aggregation and 110 kbit/s without it in the slower direction, and its ping took about 55 ms. The wide 64-QAM profile P11 could not establish a link on that path.


Two days later Andreas and I reached about 142 kbit/s on our 161.7 km link from Mokrá to the Reisalpe, using directional antennas, the 2 W setting and a wide 16-QAM profile. Quake III chat worked, but the game stalled. Its client offered 91 datagrams per second in one direction, while we carried about 4.5 per second with a separate channel access for each one. The Brno run had already shown what aggregation could save on a sustained transfer. The longer link showed how badly the same access cost could hurt a stream of small packets.
Those results come from early builds. We have since changed the default to ordered access. Aggregation and block acknowledgements share the cost of a turn across several frames, and the reverse direction grant gives the receiver a way to send data back in the same exchange. Traffic classes put interactive packets ahead of bulk traffic. I got Quake III running on two wide profiles over coax with the revised code. On a shorter 184 m field run on 26 November, P11 delivered about 158 kbit/s in the slower direction. Later that day, with two handhelds on the desk, P8 delivered 106 kbit/s of UDP from a 150 kbit/s stream. Small pings averaged about 39 ms in each direction in a separate step.
LinHT and other radios
On the LinHT, Linux runs the modem and MAC, and the SX1255 converts between digital I/Q samples and the radio signal. A board-specific helper sets the frequency and gain and switches the transmit and receive paths. Boards that move I/Q samples in the same way can share the sample interface code. We also run the FART core over a simulated channel on one computer, so we can test some changes before we have radios to hand.


We are working on official support for the Raspberry Pi with the SX1255 HAT so that anyone with that setup can try FART. Wojciech SP5WWP is testing a wider-bandwidth profile on a Raspberry Pi Zero 2 with the HAT. With a kernel driver patch he got the sample streams running at 500 thousand samples per second and briefly approached 1 Mbit/s in his tests. I²S, the serial sample interface, moves samples in both directions at once so both streams keep running when the half-duplex radio switches between transmit and receive.
Conclusion
Our first long link appeared on Hackaday and the amateur radio subreddit. I am tuning and testing hotspot mode, cleaning up the code and writing the documentation. Andreas OE3ANC is helping with the Yocto image and device tree and running tests on his own LinHT. Wojciech SP5WWP is experimenting with the wider profiles and higher rates. I plan to make the FART repository public in the next few days, depending on how the documentation and the release preparation go.
If the weather allows, Andreas and I will try another long link in December. I want to use the improved PHY and MAC on that run to see if we can finally play a round of Quake III over it.

