GateBerry · Raspberry Pi 4B · 12 to 24 Vdc · Linux
GateBerry: technical features
Complete technical reference of the GateBerry, the industrial gateway with Raspberry Pi from Industrial Shields: versions, power supply, mounting, Ethernet, Wi-Fi, RS-485, I2C, USB, UPS, real-time clock and expansion boards (LoRa, 4G, CAN, M-Bus), with Linux configuration examples.
- Power supply
- 12 to 24 Vdc, 20 W
- Software
- Debian 64-bit, Node-RED, Python, Docker
- Communications
- Gigabit Ethernet, Wi-Fi, BLE, RS-485, 4 x USB
- Extras
- UPS, RTC PCF85263A, expansion slot
GateBerry overview
What is the GateBerry#
The GateBerry is the industrial gateway from Industrial Shields: an original Raspberry Pi 4B with a UPS board, a real-time clock and a heat sink, in a DIN rail enclosure powered at 12 to 24 Vdc. It runs Debian Bookworm 64-bit, so the gateway logic is built with Node-RED, MQTT, Python or Docker.
It connects field devices over RS-485 and Ethernet (Modbus RTU, Modbus TCP, MQTT) with local servers, SCADA or the cloud. It has no local I/O: for I/O, add moduleX remote I/O over Modbus RTU or use a Raspberry PLC.
CORE and FLEX versions#
| Version | Raspberry Pi and RAM | Storage | Expansion board |
|---|---|---|---|
| CORE | Raspberry Pi 4B, 2 GB | 8 GB microSD, Linux preinstalled | None |
| FLEX | Raspberry Pi 4B or Raspberry Pi 5, 2 to 16 GB | Configurable | One board: LoRa, 4G, CAN, M-Bus or RS-232 |
Choose CORE for a Modbus and MQTT gateway on Ethernet and RS-485. Choose FLEX when you need more RAM or a radio or fieldbus board.
Know-How: Choosing a PLC 1: count the I/O and leave spare · Choosing a PLC 2: which communications do you really need
Installation and setup
Getting started: first access#
The GateBerry ships with Linux preinstalled on the microSD card. With the default GateBerry image, connect to it over SSH at 10.10.10.20/24: from Linux with the ssh command, from Windows with an SSH client such as PuTTY.
If you install another operating system image, add the services and scripts for the UPS, the RTC and the expansion board yourself. Without them, the controlled shutdown and the board features do not work.
Know-How: SD card corrupted? 6 habits for Linux in the field
Programming: Node-RED, Python, MQTT and Docker#
The GateBerry is a Linux computer, not a PLC with a fixed runtime. Typical stacks:
- Node-RED: Modbus RTU and TCP polling, MQTT publishing and dashboards.
- Python: custom drivers, data processing and REST clients.
- MQTT: a local Mosquitto broker or a client to a cloud broker.
- Docker: Node-RED, databases and web servers as containers.
Power supply: 12 to 24 Vdc#
Supply 12 to 24 Vdc (rated 24 Vdc) on the power connector. The input has polarity and overvoltage protection. Rated power is 20 W, with 3.5 A maximum current: size the power supply for at least 20 W.
There is no galvanic isolation between the grounds of the different systems. Make sure all connected devices share the same ground reference, or use galvanic isolators.
Mounting, size and environment#
| Parameter | Value |
|---|---|
| Mounting | DIN rail TS35, inside a cabinet |
| Protection | IP20 |
| Size (H x W x D) | 91 x 71 x 62 mm |
| Weight | 221 g without expansion board |
| Operating temperature | 0 to 55 °C, no corrosive gas |
| Storage temperature | 0 to 60 °C |
| Humidity | 10 to 95 %, no condensation |
| Communication connector | Push-in, 20 to 26 AWG |
| Power connector | Screw, 16 to 28 AWG |
Install it in a cabinet with access limited to authorised personnel. The UPS uses supercapacitors: handle the board with care when they are charged.
Communications: Ethernet, Wi-Fi, RS-485, I2C, USB
Ethernet: 1 x Gigabit#
One Gigabit Ethernet port on RJ45, from the Raspberry Pi (eth0). Use it for Modbus TCP, MQTT, OPC UA, web dashboards and remote access.
Know-How: PLC on Ethernet with no ping? 6 checks
Wi-Fi and Bluetooth#
Dual-band Wi-Fi (2.4 and 5 GHz, IEEE 802.11b/g/n/ac) and Bluetooth 5.0 with BLE, from the Raspberry Pi 4B. An external antenna is available on request for installations inside metal cabinets.
RS-485: half-duplex, switchable termination#
| Parameter | Value |
|---|---|
| Type | 2-wire, half-duplex |
| Linux port | /dev/ttyS0 (UART on GPIO14 and GPIO15) |
| Direction control | Manual: GPIO27 (high: transmit, low: receive) |
| Termination | 120 Ω, switched by GPIO17 |
Enable the UART at the end of /boot/firmware/config.txt, after the [all] line, and reboot:
enable_uart=1Set GPIO27 high to transmit and low to receive. Turn the termination on only if the GateBerry is at one end of the bus.
Know-How: RS-485: how to check a bus step by step · Modbus RTU timeout: 6 checks before blaming the wiring · Modbus register 40001 or address 0? 6 checks
I2C#
The I2C bus of the Raspberry Pi is available on the communication connector at 5 V, level-shifted from 3.3 V. Addresses 0x51 (real-time clock) and 0x6B (UPS charger) are already in use.
USB: 2 x USB 2.0 and 2 x USB 3.0#
Four USB-A ports for storage, USB-serial adapters or modems. Keep the total consumption of the connected devices at 500 mA or less.
Reliability: UPS and real-time clock
UPS: controlled shutdown#
The integrated UPS uses two 25 F supercapacitors. When the supply is lost, it keeps the Raspberry Pi powered long enough to shut Linux down cleanly, so the microSD card and the data are not corrupted. Recharge time is less than 1 minute.
To enable the controlled shutdown, add these two lines to /boot/firmware/config.txt and reboot:
dtoverlay=gpio-poweroff,gpiopin=23,active_low
dtoverlay=gpio-shutdown,gpio_pin=24,gpio_pull=upGPIO24 signals the loss of power and GPIO23 tells the UPS that the shutdown is complete. To run your own commands before the power-off, use a pre-poweroff hook; it must finish in about 6 seconds.
Real-time clock (PCF85263A)#
A PCF85263A real-time clock with a coin cell (CR1216 or CR1220) keeps the time without power and without network. To enable it, turn on I2C and the RTC overlay in /boot/firmware/config.txt:
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,pcf85363Expansion boards (FLEX)
Expansion slot#
The FLEX version takes one communication board in the expansion slot. Boards use UART, SPI or I2C of the Raspberry Pi.
| Board | Module | Interface |
|---|---|---|
| LoRa / LoRaWAN | RN2483 (EU, Asia) or RN2903 (USA, AU) | UART3, /dev/ttyAMA3 |
| 4G LTE-M / NB-IoT / GPRS | u-blox SARA-R412M | UART3, /dev/ttyAMA3 |
| 4G LTE Cat 4 | u-blox LARA-L6 | UART3, /dev/ttyAMA3 |
| CAN | MCP2515, CAN 2.0B, up to 1 Mbps | SPI0 |
| M-Bus master or slave | TSS721 | UART |
LoRa and LoRaWAN#
The LoRa board has an integrated LoRaWAN stack and an ASCII command interface. Enable UART3 with dtoverlay=uart3, reboot, reset the module and talk to it on /dev/ttyAMA3:
pinctrl set 26 op dh
stty 57600 -F /dev/ttyAMA3 raw -echo
echo -e "mac pause\r" > /dev/ttyAMA3Know-How: LoRa works on the desk, fails in the field: 6 checks before you install · LoRaWAN node won't join: 6 checks, in order
4G, NB-IoT and GPRS#
Cellular boards also use UART3. The setup script asks for the APN credentials and the radio access technology, and creates a ppp0 interface that comes up 50 to 120 seconds after boot:
ip a show ppp0
ping 8.8.8.8 -c4 -I ppp0Know-How: 4G PLC not connecting: 6 checks before blaming the code
CAN bus#
Enable SPI and the MCP2515 overlay, then bring up the can0 interface and test with can-utils:
sudo ip link set can0 up type can bitrate 125000
candump can0GateBerry projects and resources
Projects#
- GateBerry projects: MQTT concentrator in Node-RED, Fronius SunSpec over Modbus TCP, a central Mosquitto broker and a Docker stack with Node-RED, MySQL and Nginx.
- PLC simulators: try a machine monitor, a solar field or a remote water network that use a GateBerry.
Courses, examples and documents#
- Free courses: First steps with Raspberry Pi, develop your SCADA application based on Node-RED, Know-How
- Tutorials: OPC UA server with Node-RED, introduction to Modbus
- Documents: GateBerry datasheet and user guide
GateBerry FAQ#
What is the GateBerry used for?
To collect data from meters, PLCs and sensors over Modbus RTU, Modbus TCP or MQTT and send it to a SCADA, a database or a cloud platform, often with a Node-RED dashboard.
Does the GateBerry have inputs and outputs?
No. It is a gateway without local I/O. Add moduleX remote I/O over Modbus RTU, or use a Raspberry PLC.
What happens if the power fails?
The UPS keeps the Raspberry Pi running long enough to shut Linux down cleanly, so the microSD card and the data are not corrupted.
Can it connect over LoRa or 4G?
Yes, the FLEX version takes one LoRa, 4G, CAN, M-Bus or RS-232 board. The CORE version ships without an expansion board.
No section matches your search. Try a pin name, a protocol or a component.