---
title: "pocsagGW"
url: "https://maker.wiznet.io/viktor/projects/pocsaggw/"
markdown_url: "https://maker.wiznet.io/viktor/projects/pocsaggw/md"
type: "UCC: User Created Content"
author: "Erik Dorstel"
author_url: "https://github.com/ErikDorstel/pocsagGW"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Erik Dorstel"
original_url: "https://github.com/ErikDorstel/pocsagGW"
published: "2024-03-08"
language: "en"
hardware: ["WIZnet W5500"]
likes: 0
views: 379
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# pocsagGW

> SX1278 and ESP32 based POCSAG gateway

Original author: Erik Dorstel (source: https://github.com/ErikDorstel/pocsagGW)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

## pocsagGW

<https://github.com/ErikDorstel/pocsagGW#pocsaggw>

SX1278 and ESP32 based POCSAG gateway

##### Features

<https://github.com/ErikDorstel/pocsagGW#features>

- uses Semtech SX1278 as FSK receiver

- also works with Semtech SX1276

- uses W5500 Ethernet transceiver

- receives 1200 bps, 4500 Hz shift POCSAG messages

- serial console logging of received messages

- serial console Command Line Interface for configuration and debugging

- telnet server Command Line Interface for configuration and debugging

- 3 levels of debugging

- write/read configuration to/from flash

- german BOS mode and DAU filter

- german ASCII codes

- decoding of ROT1 encoded messages

- Ethernet based http gateway to forwarding the messages

- error correction by BCH decoding

##### GPIO SX1278 (SPI)

<https://github.com/ErikDorstel/pocsagGW#gpio-sx1278-spi>

- GPIO 12 - MISO

- GPIO 13 - MOSI

- GPIO 14 - SCLK

- GPIO 15 - CS

##### other SX1278 connections

<https://github.com/ErikDorstel/pocsagGW#other-sx1278-connections>

- GPIO 25 - RESET

- GPIO 26 - DIO0

- GPIO 27 - DIO1

- GPIO 32 - DIO2

- GPIO 33 - DIO3 (for future development)

##### GPIO W5500 (SPI)

<https://github.com/ErikDorstel/pocsagGW#gpio-w5500-spi>

- GPIO 23 - MOSI

- GPIO 19 - MISO

- GPIO 18 - CLK

- GPIO 5 - CS

##### Development Hardware

<https://github.com/ErikDorstel/pocsagGW#development-hardware>

[![IMAGE ALT TEXT HERE](https://github.com/ErikDorstel/pocsagGW/raw/main/documentation/pocsagGW.png)](https://github.com/ErikDorstel/pocsagGW/blob/main/documentation/pocsagGW.png)

##### Console Screenshot (DAPNET DB0HBO)

<https://github.com/ErikDorstel/pocsagGW#console-screenshot-dapnet-db0hbo>

[![IMAGE ALT TEXT HERE](https://github.com/ErikDorstel/pocsagGW/raw/main/documentation/console.png)](https://github.com/ErikDorstel/pocsagGW/blob/main/documentation/console.png)

##### Receiver Configuration

<https://github.com/ErikDorstel/pocsagGW#receiver-configuration>

- center frequency in MHz and Rx error offset frequency in kHz
  - the Rx error offset is the measured AFC value when Rx error offset is set to 0

- bitrate in kbps (e.g. 1.2 for 1200 bps)

- frequency shift in kHz
  - this means the single sided shift (e.g. 4.5 for +/- 4500 Hz)

- Rx bandwidth in kHz (choose the next larger value from table in SX1278.h)
  - this means the single sided bandwidth
  - calculation: RXbandwidth >= Fshift+(bitrate/2)
  - the auto function uses the above formula

- AFC bandwidth in kHz (choose the next larger value from table in SX1278.h)
  - calculation: AFCbandwidth >= 2*(Fshift+(bitrate/2))+Ferror
  - Ferror means the maximum center frequency offset error of the SX1278 module
  - the auto function uses the above formula

---

Source: https://maker.wiznet.io/viktor/projects/pocsaggw/
