Industrial IoT Gateway · Rev 2.1

HBQ CM5IoT Gateway

Raspberry Pi CM5-powered industrial carrier board with built-in 4G LTE (Quectel EC25-E), dual LoRa options (LoRaWAN via Mini-PCIe + onboard LR62E Node), Zigbee (Silicon Labs MGM210P), RS485, and M.2 expansion. The ultimate multi-protocol IoT edge gateway.

4GLTE Cat 4
3IoT Protocols
1GEthernet
MITOpen Source
HBQ CM5 IoT Gateway Board

HBQ CM5 vs Competitors

See why the HBQ Industrial Gateway delivers more capabilities for demanding IoT deployments than comparable carrier boards.

HBQ Industrial CM5 Gateway
4G LTE Cat 4 (Quectel EC25-E)Built-in cellular, no external modem needed
Dual LoRa OptionsLoRaWAN via Mini-PCIe + LR62E Node onboard (optional)
Zigbee MGM210P / MGM12PSilicon Labs, enterprise-grade mesh networking
RS485 Industrial BusNative Modbus/RTU for industrial sensors
M.2 B-Key + M-Key (Optional)Dual M.2 expansion for NVMe or AI modules
Dual MIPI CSI (Camera)Vision AI capabilities out of the box
Hailo-8 AI Accelerator ReadyPlug-in M.2 NPU for edge inference
Open Source Hardware (MIT)Full schematics + code on GitHub
Vietnam-based supportZalo/Phone support (+84) 035 719 1643
VS
Waveshare CM5 Dual ETH 4G/5G
4G/5G OptionVia M.2 slot (module sold separately)
No LoRaNo onboard LoRaWAN capability
No ZigbeeZigbee mesh not supported
No RS485Industrial bus not included
⚠️
Single M.2 KeyLess expansion flexibility
Dual ETHTwo Gigabit Ethernet ports
⚠️
AI via M.2 onlyNo dedicated AI slot layout
⚠️
Closed DesignLimited public schematic access
⚠️
China-based support onlyNo local SEA region support

Everything You Need

The HBQ CM5 Gateway integrates the most critical IoT communication protocols on a single industrial-grade carrier board.

📡
4G LTE Cat 4

Quectel EC25-E module soldered directly on board. Supports download speeds up to 150 Mbps / upload 50 Mbps. SIM card slot included. AT command interface via USB/UART.

EC25-E · Cat 4 · 150Mbps
📡
Dual LoRa Options

Option 1 — LoRaWAN Gateway: Mini-PCIe slot supports full LoRaWAN gateway modules (RAK5146, WM1302...). Option 2 — LoRa Node (Optional): Onboard LR62E (Wio-SX1262) for direct LoRa node communication via SPI1. Up to 15 km range.

Mini-PCIe LoRaWAN · LR62E Node · SX1262
🔷
Zigbee Mesh Network

Silicon Labs MGM210P / MGM12P NCP module. Full Zigbee 3.0 support via CPC protocol. Control hundreds of smart home and industrial Zigbee devices.

MGM210P · Zigbee 3.0 · CPC
🏭
RS485 Industrial Bus

Native RS485 interface for Modbus RTU/ASCII protocols. Connect PLCs, inverters, energy meters, and industrial sensors directly — no external converter required.

RS485 · Modbus · Industrial
🧠
AI-Ready (Hailo-8)

M.2 slot supports Hailo-8 AI accelerator. Run real-time object detection, facial recognition, and anomaly detection at the edge with 26 TOPS performance.

Hailo-8 · 26 TOPS · Edge AI
📷
Dual MIPI CSI Camera

Two MIPI CSI/DSI interfaces for simultaneous dual-camera operation. Perfect for stereo vision, multi-angle surveillance, and AI vision applications.

2x MIPI CSI · Vision AI
🌐
Gigabit Ethernet

1000Base-T Ethernet port (Trxcom TRJG052GHENL) for reliable wired connectivity. Stable network backbone for gateway applications with high data throughput.

1000M · RJ45 · Trxcom
🔌
Rich I/O Interfaces

SPI, UART, I2C, 2× USB, USB Type-C, HDMI, SD Card, FAN connector, and DC power jack. Everything you need for peripheral expansion and system integration.

SPI · I2C · UART · HDMI
📂
Open Source (MIT)

Full schematics, Python examples, and firmware on GitHub. MIT licensed — use freely in your commercial products. Active community and manufacturer support.

MIT · GitHub · Open HW

Full Specifications

Complete hardware specifications for the HBQ Industrial Base Board for Raspberry Pi CM5 Rev 2.1.

Core Platform
Processor ModuleRaspberry Pi CM5 (sold separately)
CPUCortex-A76 Quad-core 2.4 GHz
RAM2GB / 4GB / 8GB LPDDR4X
eMMC0GB / 16GB / 32GB / 64GB
Board RevisionRev 2.1
OSRaspberry Pi OS (64-bit)
Wireless Connectivity
4G LTEQuectel EC25-E Cat 4
LTE DL/UL150 Mbps / 50 Mbps
LoRaWAN (Mini-PCIe)1× Mini-PCIe slot (RAK5146, WM1302...)
LoRa Node (Optional)LR62E / Wio-SX1262 onboard, SPI1
ZigbeeMGM210PA22JIA2R / MGM12P
Zigbee StandardZigbee 3.0 / IEEE 802.15.4
SIMNano SIM (push-pull tray)
Wired Interfaces
Ethernet1× Gigabit (1000Base-T)
USB2× USB Type-A + 1× USB Type-C
HDMI1× HDMI (micro)
RS4851× RS485 (industrial 2-wire)
SPISPI1 (configurable via DT overlay)
UART / I2C1× UART, 1× I2C header
Expansion & Storage
M.2 B-KeyM.2 2230/2242/2280
M.2 M-KeyOptional (NVMe / AI accelerator)
Mini-PCIe1× LoRaWAN gateway module slot
SD CardMicroSD (UHS-I)
Camera2× MIPI CSI / DSI
AI ModuleHailo-8 via M.2 (26 TOPS)
Power & Mechanical
Power InputDC Jack (12V recommended)
FAN5V PWM Fan header
IndicatorsSystem status LEDs
Zigbee ResetDedicated hardware reset button
Zigbee Prog PortProgramming header (JTAG/SWD)
Software & License
LicenseMIT Open Source
SchematicPublic PDF on GitHub
ExamplesPython (4G, LoRa), C (Zigbee CPC)
CertificationsEC25-E: FCC / CE / UKCA
SupportGitHub + Email + Zalo

Modular by Design

Each communication module is purpose-built for its protocol. Swap, upgrade, or combine to match your exact deployment needs.

4G LTE Module
4G LTE Module
QUECTEL EC25-E

LTE Cat 4 with 150/50 Mbps. FCC/CE/UKCA certified. Supports global LTE bands. Control via AT commands on USB/UART.

LoRa Module
Dual LoRa Options
Mini-PCIe LoRaWAN · LR62E Node (Optional)

Gateway: Mini-PCIe slot for full LoRaWAN modules (RAK5146, WM1302). Node: Onboard LR62E (SX1262) for LoRa node via SPI1, up to 15 km LoS.

Zigbee Module
Zigbee Module
SILICON LABS MGM210P

Bottom-side mounted. Zigbee 3.0 NCP via CPC. Build full mesh coordinator with cpcd daemon. Dedicated reset + programming port.

Hailo AI Module
Hailo-8 AI Accelerator
HAILO · 26 TOPS · M.2

Drop-in M.2 AI NPU. Enables real-time object detection, face recognition, and anomaly detection at the edge without cloud dependency.


Board Function Block

The CM5 module sits at the heart of the gateway, managing all communication modules and I/O peripherals.

CM5 Gateway Function Block

Up & Running in Minutes

From unboxing to a live 4G connection with LoRa and Zigbee active — follow these steps.

// STEP 01
Flash OS & Boot

Flash Raspberry Pi OS (64-bit) to CM5 eMMC or SD card using rpiboot + Imager.

sudo rpiboot
rpi-imager
// STEP 02
Enable Overlays

Enable SPI1 for LoRa and configure GPIO for 4G power control in /boot/config.txt.

dtoverlay=spi1-3cs
dtparam=spi=on
// STEP 03
Power On 4G

Run the EC25 power-on script and bring up the wwan0 interface for cellular data.

python3 turn_on_EC25.py
sudo dhclient wwan0
// STEP 04
Deploy Gateway

Start cpcd for Zigbee, run LoRa Python examples, and configure your cloud endpoint.

sudo cpcd --config ...
python3 lora_send.py

Wiki & Reference

Comprehensive documentation for all modules, interfaces, and configuration options.

Contents
Overview
HBQ Industrial Base Board for Raspberry Pi CM5 · Rev 2.1

The HBQ CM5 Industrial IoT Gateway is a carrier board designed for the Raspberry Pi Compute Module 5 (CM5). It provides a comprehensive set of industrial communication interfaces—4G LTE, LoRaWAN, Zigbee, RS485—on a single compact board suitable for industrial IoT deployments, smart building automation, agriculture, and edge AI applications.

Key Features

Quectel EC25-E: LTE Cat 4 modem, onboard, with nano SIM slot
LoRaWAN Gateway: Mini-PCIe slot for LoRaWAN concentrator (RAK5146, WM1302...)
LoRa Node (Optional): Onboard LR62E / Wio-SX1262, SPI1, up to 15 km
MGM210P / MGM12P Zigbee: Silicon Labs NCP CPC on bottom side
RS485: Industrial serial for Modbus RTU/ASCII
M.2 B-Key: Expandable with NVMe or AI accelerator (M-Key optional)
Dual MIPI CSI/DSI: Dual camera / display interfaces
1000M Ethernet: Trxcom TRJG052GHENL GbE controller

✓ Open Source: Full schematics and Python/C examples available at github.com/hbqtechnologycompany. MIT licensed.
Repository Structure
# GitHub: HBQ_Industrial_Base_Board_For_Pi_CM5
├── EC25-E/          # 4G LTE scripts & AT command docs
├── LR62E/           # LoRa Python examples
├── MGM12P.../       # Zigbee NCP CPC build logs
├── MGM210P.../      # Zigbee MG21 docs
├── Schematic/       # Public schematic PDF
└── HW/              # Board photos
4G LTE — EC25-E
Quectel EC25-E · LTE Cat 4 · 150/50 Mbps

The Quectel EC25-E is soldered directly on the HBQ board and connected to the CM5 via USB. A nano SIM card tray is accessible from the top side.

Power On / Reset
# Power on the EC25-E module
python3 EC25-E/turn_on_EC25.py

# Reset if unresponsive
python3 EC25-E/reset_EC25.py
Establish 4G Data Session
# Check modem detected
ls /dev/ttyUSB*

AT+QCRMCALL=1,1      # Start data call
sudo ip link set wwan0 up
sudo dhclient wwan0
ping -I wwan0 8.8.8.8
⚠ Note: The EC25-E requires a short power-on pulse via GPIO before the USB device appears. Always run turn_on_EC25.py first after boot.
LoRa — Dual Options
Option 1: LoRaWAN Gateway via Mini-PCIe · Option 2: LR62E Node onboard (Optional)

The HBQ CM5 board supports two independent LoRa configurations. You can use one or both simultaneously depending on your deployment requirements.

Option 1 — LoRaWAN Gateway (Mini-PCIe)

The onboard Mini-PCIe slot accepts standard LoRaWAN concentrator modules such as the RAK5146 (SX1303-based) or Seeed WM1302. This turns the CM5 Gateway into a full multi-channel LoRaWAN network server capable of serving hundreds of end-nodes simultaneously.

✓ Use case: Deploy as a LoRaWAN network gateway in smart city, agriculture, or industrial sensor networks. Compatible with TTN, ChirpStack, and other LoRaWAN network servers.
# Compatible modules for Mini-PCIe slot:
# - RAK5146 (SX1303, USB/SPI)
# - Seeed WM1302 (SX1302, SPI)
# - Other Mini-PCIe LoRaWAN concentrators

# Install ChirpStack gateway on CM5:
sudo apt install chirpstack-gateway-bridge
Option 2 — LoRa Node onboard (LR62E, Optional)

The LR62E module (Wio-SX1262) can be optionally populated directly on the board. It connects to the CM5 via SPI1 and operates as a single-channel LoRa node — ideal for sending sensor data, testing LoRa links, or acting as a range extender/repeater.

⚠ Note: The LR62E is an optional component — verify whether it is populated on your board variant before use.
Enable SPI1 for LR62E Node
# Add to /boot/firmware/config.txt
dtoverlay=spi1-3cs
dtparam=spi=on

ls /dev/spidev*       # Verify after reboot
LR62E Python Node Example
cd LR62E/
pip3 install RPi.GPIO spidev
python3 lora_send.py
✓ Range: LR62E supports up to 15 km line-of-sight with appropriate antenna. Use 868 MHz (EU) or 915 MHz (US/AS) depending on your region frequency plan.
Zigbee — MGM210P / MGM12P
Silicon Labs · NCP CPC · Zigbee 3.0

The Zigbee module (MGM210PA22JIA2R or MGM12P22F1024GA) is mounted on the bottom side of the board. It runs as a Network Co-Processor (NCP) and communicates with the CM5 via the CPC protocol.

Build & Flash cpcd
cd MGM12P22F1024GA-V4R/zigbeeNCP_CPC/
cmake -B build -S cpcd
cmake --build build
sudo ./build/cpcd --config cpcd.conf
⚠ Note: Refer to MGM12P22F1024GA-V4R/README.md for full NCP build logs and Gecko SDK 4.4.6 references.
RS485 / Modbus
Industrial 2-Wire · Modbus RTU/ASCII

The onboard RS485 interface enables direct communication with industrial equipment such as PLCs, variable frequency drives, energy meters, flow sensors, and any Modbus RTU/ASCII compatible device.

Python Modbus Example
pip3 install pymodbus

from pymodbus.client import ModbusSerialClient

client = ModbusSerialClient(
  method='rtu', port='/dev/ttyAMA0',
  baudrate=9600, stopbits=1, bytesize=8, parity='N'
)
result = client.read_holding_registers(0, 10, unit=1)
✓ Use Case: Ideal for industrial energy monitoring, BMS, Modbus sensor aggregation, and PLC integration without an external USB-RS485 adapter.
Hailo-8 AI Accelerator
26 TOPS · M.2 · Edge AI

The HBQ CM5 Gateway supports the Hailo-8 AI accelerator module via the M.2 slot. This enables real-time AI inference at the edge without cloud dependency — ideal for computer vision, predictive maintenance, and smart surveillance.

Install HailoRT
wget https://hailo.ai/developer-zone/
sudo dpkg -i hailort_*.deb
hailortcli fw-control identify
AI Use Cases

Object Detection: YOLOv5/v8 at 30+ FPS
Face Recognition: Real-time biometric access control
Anomaly Detection: Industrial predictive maintenance
Smart Counting: People / vehicle / object counting

⚠ Note: Hailo-8 M.2 module is sold separately. Ensure M-Key is populated on your board variant.
GPIO / Pinout Reference
Key GPIO assignments for CM5 carrier
SignalGPIO (BCM)DirectionDescription
EC25 Power KeyGPIO4OUTPulse LOW to power on EC25-E
EC25 ResetGPIO17OUTActive LOW reset for EC25
Zigbee ResetGPIO27OUTHardware reset for Zigbee NCP
SPI1 CLKGPIO21OUTLoRa SPI1 clock
SPI1 MOSIGPIO20OUTLoRa SPI1 MOSI
SPI1 MISOGPIO19INLoRa SPI1 MISO
SPI1 CS0GPIO18OUTLoRa chip select
RS485 DE/REGPIO24OUTRS485 direction control
FAN PWMGPIO12OUT5V fan speed control
3.3V PowerPin 1/17PWR3.3V supply output
5V PowerPin 2/4PWR5V supply output
⚠ Note: Exact GPIO numbers may vary by board revision. Always verify against the public schematic: Schematic/Gateway_CM5_Schematic_public.pdf
Power & Thermal
Power input, consumption, and cooling
Power Input

The board is powered via a DC barrel jack. Recommended input: 12V DC with at least 3A capacity when all modules are active (4G + LoRa + Zigbee + CM5).

Estimated Power Consumption
ConfigurationApprox. Current @ 12V
CM5 idle~0.4A
CM5 + 4G LTE active~1.2A
All modules active~1.8–2.2A
With Hailo-8 inference~2.5–3.0A
Thermal Management

A large passive heatsink is included on the CM5 area. A 5V PWM fan connector is available for active cooling in high-ambient or high-load deployments.

✓ Industrial Tip: For 24/7 operation in enclosures, add a 40mm 5V fan connected to the fan header. Set GPIO12 HIGH to run at full speed or use PWM for temperature-based control.
GitHub & Contributing
Open source under MIT License
Repository
git clone https://github.com/hbqtechnologycompany/
  HBQ_Industrial_Base_Board_For_Pi_CM5.git
How to Contribute

1. Fork the repo and create a branch: feat/..., fix/..., docs/...
2. Make focused changes with clear commit messages
3. Update README or docs if behavior changes
4. Open a Pull Request with description, motivation, and testing steps

Reporting Issues

Use GitHub Issues with: OS version, board revision, module type, full logs, and steps to reproduce. For security issues, email [email protected] privately.

License

This project is MIT licensed. You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies. Copyright (c) 2025 HBQ Technology.


Get Yours

Ready to Deploy?

Order the HBQ CM5 Industrial IoT Gateway with your choice of modules. International shipping available.

🛒 Visit HBQ Store ⭐ Star on GitHub ✉ Contact Sales
📱
Phone / Zalo (Vietnam)
(+84) 035 719 1643
(+84) 094 850 7979
🌐
Official Store