Skip to main content

RevPi Connect 5

Product Description

The RevPi Connect 5 is a robust 24 V industrial PC for IIoT and automation projects based on the Raspberry Pi Compute Module 5. The RevPi is a basic module from the Revolution Pi family. All devices in the Revolution Pi family are developed in accordance with EN 61131-2.

Components

revpi-connect-5-aufbau

PositionComponentApplication
1X2 RS4851Serial Devices (RS485)
X2 CAN1CAN Interfaces
26 × status LEDLEDs
32 × RJ45 EthernetEthernet Interfaces (RJ45)
42 × USB A 3.2 Gen 1USB Interfaces
5RP-SMA socket1WLAN and BT
6USB-CSaving the Image / Reinstalling the Image
7X3 CAN1CAN Interfaces
8X4 PWRConnecting the Power Supply
92 × locking clipMounting the Device on a DIN Rail
10Ventilation SlotsMounting the Device on a DIN Rail
112 × PiBridgeConnecting Expansion Modules
12X1 HDMISet up Desktop Mode

1 Depending on the device variant.

Compatible RevPi Image
  • RevPi Bookworm Image

See: RevPi Images

Variants

Item No.:RAMeMMC MemoryWLAN + BTRS485CAN
1004124 GB32 GB-×-
1004134 GB32 GB××-
1004144 GB32 GB-×1 ×
1004154 GB32 GB××1 ×
1004168 GB32 GB-×-
1004178 GB32 GB××-
1004188 GB32 GB-×1 ×
1004198 GB32 GB××1 ×
1004208 GB32 GB×-2 ×

For available variants see Revolution Pi Shop.

Extension Modules

The RevPi Connect 5 base module can be expanded by up to 10 expansion modules to create a Revolution Pi system:

Left sideBase moduleRight side
5 × RevPi I/O module, of which 1 × RevPi GatewayRevPi Connect 55 × RevPi I/O module, of which 1 × RevPi Gateway
Compatible I/O Modules
Compatible Gateways

RevPi Gateways may only be included PiBridge connector the far right or far left of the system.

  • RevPi Gate PROFINET
  • RevPi Gate EtherNet/IP
  • RevPi Gate EtherCAT
  • RevPi Gate PROFIBUS

See RevPi Gateways

Virtual Devices

The Virtual Devices are delivered with the RevPi image as components in PiCtory included:

Scope of Delivery

The scope of delivery includes

  • RevPi Connect 5 (basic module)
  • X2 connector RS485 or CAN, see Variants
  • X3 connector CAN, see Variants
  • X4 connector PWR
  • 2 × termination plug for PiBridge
  • Supplement

Mounting and Connecting

The RevPi was developed for use in a control cabinet. Observe the specifications for the Intended Use and all Safety Instructions. Intended UseSafety Instructions

warning

Danger to life due to electric shock

There is a risk of fatal electric shock when working on devices in the switch cabinet with 230 V mains voltage.

▷ Work in the switch cabinet may only be carried out by qualified electricians.

▷ Before carrying out any work in the switch cabinet, switch off the power supply properly.

Carry out the installation and connection in the following order from:

  1. Mount the RevPi base module and all expansion modules on a DIN rail.

  2. Connect all extension modules via PiBridge connector.

  3. Connect all other devices such as sensors and actuators. The interfaces available to you for this can be found in the section Components.

  4. Connect a monitor and a keyboard if you want to use the RevPi in the Desktop Mode want to operate. This is not necessary if you have a network connection to access the RevPi.

  5. Finally, close the power supply.

Access to the Device

The RevPi is accessed in two steps:

  1. Establishing a Network Connection.

  2. Login on the device.

Install all available Updates as soon as the RevPi is connected to the internet, so that the system is always up to date with security-relevant features.

Alternatively, access is possible without a network, see Desktop Mode.

See also:

Configuration

Basic Configuration

From the RevPi Bookworm image (10/2024) onwards, the basic configuration of the RevPi devices is carried out via the Cockpit web application.

System Configuration

The Revolution Pi system, i.e. a RevPi base module with expansion modules, is configured via the PiCtory web application.

Configuring the Base Module in PiCtory

▷ Start PiCtory.

▷ Select the RevPi base module from the Device Catalog and drag and drop it onto the empty slot with position number 0.

     ❯ The configurable values appear in the Value Editor.

▷ Save the configuration as the start configuration with File > Safe as Start-Config.

❯❯ The start configuration is called up directly after each boot process.

ValueFunction
INP RevPiStatusStatus of the piControl driver
INP RevPiIOCycleCycle time of piBridge communication between base module and expansion modules in ms
INP RS485ErrorCntError counter for piBridge communication
INP Core_TemperatureCPU temperature
INP Core_FrequencyCPU frequency
OUT RevPiLEDStatus byte for LEDs
OUT RS485ErrorLimit1First limit value for error counter > Message in kern.log
OUT RS485ErrorLimit2Second limit value for error counter > piBridge communication is stopped

Serial Devices (RS485)

Serial devices such as sensors can be connected to the RevPi via the potential-free RS485 interface on the X2 connector. The socket has differential data line terminals for P (positive) and N (negative), which may also be designated as D+/D- or A/B.

The RS485 interface is not available for the product variant with X2 CAN, see Variants.

revpi-connect-5-x2-rs485-pinout

RS485 Connection via X2 Connector

▷ Make sure that all devices are disconnected from their respective power supplies.

▷ Connect the positive data line to pin P of the X2 connector.

▷ Connect the negative data line to pin N of the X2 connector.

▷ Connect the ⫠ pins to the RS485 ground.

▷ Close the power supply.

Configuring the RS485 Interface

Under Linux, the interface can be addressed via the device driver node with:

  • /dev/ttyRS485-0

  • to RevPi Bullseye Image (4/2024): /dev/ttyRS485

▷ Log in via terminal on the RevPi.

▷ Use the following command to check whether the RS485 interface is available:
ls /dev/ttyRS485-0

The RS485 interface has an integrated 120 Ω terminating resistor. This termination is switched off after booting. It can be switched via software.

See also:

CAN Interfaces

Depending on the Variant, the RevPi has potential-free CAN interfaces on the X3 and X2 connectors. MCP251863 is used as CAN transceiver.

revpi-connect-5-x3-can-pinout

CAN Connection via X3 or X2 Connector

▷ Make sure that all devices are disconnected from their respective power supplies.

▷ Connect the CAN H bus to pin H (High) of the connector.

▷ Connect the CAN L bus to pin L (Low) of the connector.

▷ Connect the ⫠ pins to the CAN ground.

▷ Close the power supply.

Configuring CAN Interfaces

Under Linux, the interfaces can be addressed with:

  • X3 CAN: can0

  • X2 CAN: can1

▷ Log in via terminal on the RevPi.

▷ Enter the following command to query the status of the interfaces:
ip link show

▷ Activate e.g. can0 and sets the bit rate to 500,000 baud (500 kbit/s) with the command:
sudo ip link set can0 up type can bitrate 500000

▷ Activate the 120 ohm termination with the command:
sudo ip link set dev can0 type can termination 120

These two possible operating modes are supported:

Mixed CAN 2.0B and CAN FD modeCAN 2.0B mode
Simultaneous operation of classic CAN messages (CAN 2.0B) and CAN FD messages (Flexible Data Rate) on the same busCommunication exclusively via classic CAN protocol (CAN 2.0B)
User data of up to 64 bytes and higher bit rates for the data part (up to approx. 8 Mbit/s)Messages only with 11-bit or 29-bit IDs. Data rates and user data lengths limited to CAN 2.0B
Compatible for networks with mixed requirementsGreater interoperability and stability with older control units

Ethernet Interfaces (RJ45)

The RevPi can be connected to a network via the RJ45 interface.

Two Gbit Ethernet connections are available on the RevPi, which are independent of each other. This allows the RevPi to be integrated into two different networks. The MAC addresses are printed on the front of the housing. Under Linux, the interfaces can be addressed via:

  • Socket A: eth0

  • Socket B: eth1

WLAN and BT

Prerequisites
  • RevPi base module with WLAN interface

  • DHCP-capable WLAN router

  • Optional: external RP-SMA WLAN antenna

Under Linux, you can address the WLAN interface with , provided no other WLAN devices are used:

  • wlan0
Activate WLAN via Cockpit

▷ Start Cockpit.

▷ Click on RevPi Configuration in the menu to open the RevPi dashboard.

▷ Enable the WLAN option in the WLAN and BT section.

▷ Select an option for the antenna: External (SMA) or Internal.

▷ Select the appropriate WLAN country code under WLAN country.

Reboot the RevPi.

❯❯ The WLAN interface is activated.

Set up WLAN Connection via nmtui

The WLAN connection is set up via the NetworkManager nmtui. The NetworkManager is a terminal-based user interface for managing network connections under Linux. It can be started directly via the integrated terminal under Cockpit.

▷ Start Cockpit.

▷ Click on Terminal in the menu to open the integrated terminal.

▷ Start nmtui with the command
sudo nmtui

❯❯ The nmtui user interface appears.

Use the arrow and ENTER buttons to navigate within nmtui.

▷ Select Edit a connection.

▷ Select the appropriate Wi-Fi network.

▷ Enter the WLAN password under Password and configure any other WLAN settings.

▷ Save the settings with OK and return to the home screen with Back.

▷ Select Activate a connection.

▷ Select the Wi-Fi network and activate the connection with the ENTER button.

     ❯ The status message Connecting ... appears.

     ❯ The WLAN connection is established.

▷ Click on Networking in the Cockpit menu to check the connection.

BT Interface

A BT interface of standard 5.0 is also available via the same SMA socket as for the WLAN interface.

▷ Start Cockpit.

▷ Click on RevPi Configuration in the menu to open the RevPi dashboard.

▷ Activate the BT option in the WLAN and BT section.

Reboot the RevPi.

     ❯ The BT interface is activated.

See also:

USB Interfaces

The RevPi has two USB 3.2 Gen 1 interfaces. The maximum output current per USB interface is 900 mA and is only guaranteed if the RevPi is supplied with 24 V DC -15 % / +20 %.

In the event of an overload, the power is switched off at the corresponding USB interface.

LEDs

LED PWR

The PWR (Power) LED indicates the device status.

SignalFunction
GreenPower supply is connected.
RedThere is a communication fault between connected modules.
LED A1 – A5

LEDs A1 to A5 are customizable.

The LEDs can be used for user-specific requirements such as indicating a network connection, indicating that a memory limit has been exceeded, monitoring a process and indicating faults.

The LEDs can be switched in the command line application piTest with the variable RevPiLED.

The RevPiLED output has a defined byte length and therefore has a certain number of bits that are read from right to left. Certain bit positions are each assigned to an LED. The LED is switched by setting the respective bits to 0 or 1.

LEDAssigned bit position
A10 to  2
A23 to  5
A36 to  8
A49 to  11
A512 to  15

An LED signal is set in the command line with the command piTest -w RevPiLED,x where x corresponds to the decimal value calculated from the respective bit pattern.

LEDSignalBit patternDecimal value
A1 – A5off0000 0000 0000 00000
A1red0000 0000 0000 00011
green0000 0000 0000 00102
blue0000 0000 0000 01004
orange0000 0000 0000 00113
cyan0000 0000 0000 01106
magenta0000 0000 0000 01015
white0000 0000 0000 01117
A2red0000 0000 0000 10008
green0000 0000 0001 000016
blue0000 0000 0010 000032
orange0000 0000 0001 100024
cyan0000 0000 0011 000048
magenta0000 0000 0010 100040
white0000 0000 0011 100056
A3red0000 0000 0100 000064
green0000 0000 1000 0000128
blue0000 0001 0000 0000256
orange0000 0000 1100 0000192
cyan0000 0001 1000 0000384
magenta0000 0001 0100 0000320
white0000 0001 1100 0000448
A4red0000 0010 0000 0000512
green0000 0100 0000 00001024
blue0000 1000 0000 00002048
orange0000 0110 0000 00001536
cyan0000 1100 0000 00003072
magenta0000 1010 0000 00002560
white0000 1110 0000 00003584
A5red0001 0000 0000 00004096
green0010 0000 0000 00008192
blue0100 0000 0000 000016 384
orange0011 0000 0000 000012 288
cyan0110 0000 0000 000024 576
magenta0101 0000 0000 000020 480
white0111 0000 0000 000028 672

To switch several LEDs simultaneously, the respective decimal values have to be added up.

Example: If LED A1 shall flash red and LED A2 green at the same time, the command is piTest -w RevPiLED,17 (bit pattern: 0001 0001 = decimal values 1+16).

note

If a signal is to be added to an existing LED circuit, the value for all required signals must be recalculated and rewritten.

Date and Time / Real Time Clock (RTC)

The RevPi is equipped with the Real Time Clock NPX PCF2131. If no power supply is connected to the RevPi, the RTC is supplied with power via a backup battery. The lithium battery has a service life of approx. 10 years.

The system time and the RTC are synchronized with an NTP server via the systemd-timesyncd service. The synchronization can be disabled in Cockpit. In this case, the system time is specified by the RTC.

Configuring System Time

The command line tool timedatectl can be used to query and change the current system time, the RTC and the configured time zone.

▷ Log in via terminal on the RevPi.

▷ Check the current settings with the command:
sudo timedatectl status

▷ Set the RTC to the coordinated universal time UTC with the command:
sudo timedatectl set-local-rtc 0

▷ Set the RTC to a local time zone (e.g. UTC+01:00) with the command:
sudo timedatectl set-local-rtc 1

▷ To configure your own system time, deactivate NTP synchronization with the command:
timedatectl set-ntp false

▷ Then redefine the system time with the command:
timedatectl set-time "YYYY-MM-DD HH:MM:SS"

Configuring RTC without NTP Synchronization

The RTC can be set directly with the command line tool hwclock. NTP synchronization must be deactivated for this, as otherwise a synchronized system time will overwrite the set RTC again.

▷ Log in via terminal on the RevPi.

▷ Deactivate NTP synchronization with the command:
timedatectl set-ntp false<br></br>Alternatively, you can deactivate the synchronization in Cockpit via the setting Set clock from NTP server.

▷ Check the current settings with the command:
sudo hwclock

▷ Synchronize the system time with the RTC using the command:
sudo hwclock --systohc

▷ Set the RTC to its own time with the command:
sudo hwclock --set --date “dd mmm yyyy HH:MM”

Change Battery

The lithium battery cannot be replaced by the customer. In this case, please contact customer service at support@kunbus.com.

Trusted Platform Module (TPM)

The RevPi is equipped with an Infineon OPTIGA™ TPM SLB 9670 Trusted Platform Module. It fulfills the requirements of TPM 2.0.

Under Linux you can address the module with:

  • /dev/tpm0

Watchdog

A watchdog is a timer that restarts the RevPi after 60 seconds. To prevent this from happening, the watchdog must be reset regularly as long as the system is running without errors. In the event of an error, such as a crash of the application process, there is no reset and the watchdog triggers a restart of the RevPi.

The RevPi has two independent watchdogs. There are several ways to use a watchdog under Linux. The RevPi image and Raspbian rely on systemd.

Integrated Watchdog

The watchdog integrated on the processor behaves like other watchdogs under Linux and can be addressed with:

  • /dev/watchdog0

  • /dev/watchdog (as standard watchdog)

External Watchdog

A second watchdog is available via the RTC module and can be addressed under Linux with:

  • /dev/watchdog1

See also: