Packet Communications Test Page

From GNU Radio
Revision as of 23:27, 11 March 2023 by Duggabe (talk | contribs)
Jump to navigation Jump to search

NOTE: Changing the selected GNU Radio version will not change the Table of Contents.


This tutorial presents methods to transmit and receive packet data. As was shown in the QPSK and BPSK tutorials, the received bit data stream could be verified by comparing it to the (delayed) transmitted data. However, there was no way to recover the byte alignment of those bits. That is where packet processing comes into play.

Prerequisites

Notes

Version 3.10

The section "Simulating Baseband Packet Using Stream Data (version 3.10)" was created with GNU Radio version 3.10.5.1.

As noted in Porting Existing Flowgraphs to a Newer Version, the PDU-related blocks have been moved from gr-blocks to gr-pdu, which causes a name change of the id.

Also, the Async_CRC32 block has been replaced by CRC_Append and CRC_Check blocks.

Version 3.9+

The current tutorial has been revised and tested with GNU Radio version 3.9.4.0. The 'Polyphase Clock Sync' has been replaced with the Symbol_Sync; and the 'CMA Equalizer' has been replaced with the Linear_Equalizer and Adaptive_Algorithm.

Links to the flowgraphs have been updated to GNU Radio version 3.9.4.0 except where noted.

Version 3.8

  • In the "Simulating Baseband Packet Using Messages" section, items have been added where a small change is needed or a difference occurs.

Header Format Object

The following blocks:

use a "Header Format Object", but there is no block with that name. To create such an object, a Variable block is used. The 'Value' field can be one of several chioces depending on what type of header is needed, such as:

   * digital.header_format_default(access_code, threshold)
   * digital.header_format_crc(len_key, num_key)
   * digital.header_format_counter(access_code, threshold, bps)

See specific examples below.

Simulating Packet Comms Using Messages

Basic Packet Processing

In order to grasp the basics of packet processing, this section presents a transmitter and receiver simulation using standard GNU Radio blocks without any modulation or channel impairments.

Building the flowgraph

Testing

Using BPSK with Hardware Simulation (version 3.9+)

Transmitting a Signal

Receiving a Signal

Testing

Using BPSK with Hardware Simulation (version 3.8)

Transmitting a Signal

Receiving a Signal

Testing

Simulating Packet Comms Using Streams

Using Hardware

If you look at https://github.com/duggabe/gr-control you will see that this tutorial follows the same design. If the user were to build two computer installations with this setup, they could send and receive packets to each other.

Conclusions

Based on this tutorial, there are several things which can be concluded:

  1. BPSK and QPSK are not well suited for burst transmissions due to the need for the receiver to converge on the actual timing and frequency values. The longer the times between bursts of data, the more the receiver will need to reconverge on the timing and frequency values for the new burst.
  2. Since almost all amateur radio communications are half duplex and bursts of data, a more appropriate modulation would be FSK or AFSK. The same packet formatting and recovery would still apply. A proof of concept has been added to https://github.com/duggabe/gr-control with pkt_fsk_xmt.grc and pkt_fsk_rcv.grc.

Further Observations

During the development and testing for this tutorial, the following items were observed:

  • The 'Header/Payload Demux' and 'Protocol Parser' blocks seem to work only with the 'digital.header_format_crc' format.
  • The 'Correlate Access Code - Tag Stream' block requires the Default Header Format Obj. and expects a 32-bit access code.