Document toolboxDocument toolbox

Revolution Pi Questions And Answers

Obsolete knowledge is moved to the Legacy knowledge base

 

Application

I would like to update my application to a newer system, how can I do this?

  • First transfer the PiCtory configuration.

  • On a RevPi OS Bullseye system, the PiCtory configuration is located here

  • pi@RevPi123834:~ $ ls -al /var/www/revpi/pictory/projects/_config.rsc
  • Here is a guide for copying files:

https://kunbus-gmbh.atlassian.net/wiki/spaces/KS/pages/350683137
  • Then adjust all other things until the system behaves as desired.

Would it be possible to simulate a RevPi IO Module? How can I do this?

  • It is possible via RevPiPyLoad, take a look here:

Is there an easy way to exchange data between a RevPi device and a Raspberry Pi?

Yes, use SSH keys and execute the commands on the remote device over the network.

 

How do I write/run a custom C-program that runs as the main control program?

I want to create a gateway application that exchanges data between HTTP and Modbus TCP slave, how does it work?

Is there a simple example of how I can control the LEDs of a Revolution Pi device directly from a Python program?

I would like to use a python program to read all inputs and write the read values from inputs back on the 8 analog outputs. Is there sample code on it?

I want to write a code by using a keyboard input to control an output using a variable “LM”, how do I do that?

You may need to save your PiCtory change and perform a driver reset, then you should be able to access the variable “LM” like so:

piTest -w LM,1

Or via Python and the popular Revolution PiModIO2 library. See the “BitMirror” forum for examples:

https://revolution.kunbus.de/forum/viewtopic.php?f=6&t=2535&p=9196&hilit=bitmirror#p9196

Can I access the process image with .NET?

Yes, but this application is beyond the reach of KUNBUS.

https://github.com/FrankPfattheicher/RevolutionPi

Boot

How can I automatically boot into the graphical desktop without having to log in?

  • There is the command “sudo raspi-config” see here:

Would it be possible to use the Revolution Pi in kiosk mode?

  • Or here is a discussion

eMMC

There was an abort when creating an image. Can I still log in again?

  • Yes, when you create an image, aborting is not a problem.

Would it be possible to enhance security to prevent my data from being stolen from the storage, i.e., by encrypting the eMMC storage?

Cron Jobs

I would like to define a cronjob. What is the best way to do this?

Take a look here

Desktop

I log in via SSH and want to start the graphical user interface with "startx", but I get a cryptic error message. What am I doing wrong?

Please use an HDMI monitor and a USB keyboard instead of SSH. It is not possible to start the graphical user interface with an SSH connection.

Logging

I am having an issue, a flood of "piControl: piControlI/O:missed x cycles" in the journalctl and dmesg logs, what can I do?

Fieldbus

I am using RevPi Connect 4. Can I use PROFINET on the controller with the existing 2x network ports without gateways?

  • Yes, the 2 Ethernet ports of the RevPi Connect 4 can be used with CODESYS to implement different field buses like PROFINET, EtherNet/IP, EtherCAT.

I am using the Bullseye image, and my Modular Gateway is no longer recognized, what can I do?

Update your system, i.e. via “sudo apt update && sudo apt upgrade”

I would like to use the Revolution Pi Con CAN module without CODESYS, is this also possible?

Fetch repository fails, what can I do?

Have a look at the follwing link: https://revolutionpi.com/forum/viewtopic.php?t=4107

I want to use Controller Area Network (CAN) what device(s) can I use?

I need an EtherCAT master for our test field setup. I wonder if we should take a Revolution Pi as a speedy solution for this?

To receive data from a PLC via EtherCAT, do I need the EtherCAT extension module in addition to the Revolution Pi Connect + or can the whole thing be set up without the EtherCAT module?

Would it be possible to use the Revolution Pi Connect as an Ethernet/IP Master?

Yes, thanks to a soft PLC this is possible, e.g., with CODESYS:

I use a Modbus RTU with the uModbus library. Now there are communication errors at irregular intervals. What can I do?

  • Only low-level debugging can help. Please create, e.g., with an oscilloscope or a logic analyzer traces for the analysis of the signals on the RS485 interface. Are there cyclic or sporadic disturbances, etc.? What does the image on the RS485 interface actually look like?

  • https://revolutionpi.de/forum/viewtopic.php?f=14&t=2697#p9813

Can I operate several Modbus RTU masters, simultaneously?

  • Yes, it works with various USB-RS485 interfaces. These are then addressable via “/dev/ttyRS485” and “/dev/ttyUSB2” for example.

There are Modbus registers which can be read but not written. What am I doing wrong?

If it is about Holing Register, the behavior is correct.

How can I transfer PROFIBUS data with a Modular Gateway PROFIBUS?

Would it be possible to operate a Revolution Pi device as a PROFIBUS master instead of a slave?

  • No, unfortunately this functionality does not exist at the moment.

Can I operate a PROFINET controller with the Revolution Pi Core/Connect/Compact/Flat?

Yes, this is possible. e.g., with CODESYS

Certification

Where can I find the UL certification for the RevPi Core S?

Take a look at the forum entry in the link below:

https://revolutionpi.com/forum/viewtopic.php?t=4012

Cloning

I copied an image and have network issues on both devices, what can I do?

Is there a way to automate the process for producing devices?

I have around 50 Revolution Pi Core 3+ here with me. Is there a way to replicate these settings and software onto all other Revolution Pi's that I have?

CODESYS

Can somebody propose a working solution to access the PLC running CODESYS over the internet?

License

Are licenses to be considered when Revolution Pi products are used in commercial applications outside KUNBUS?

I have purchased a Revolution Pi feat. CODESYS. Now I lost the CODESYS license because I reflashed the image, what can I do?

Please send us the following information to support@kunbus.com

  • Your invoice copy

  • Serial number. You can find this information here:

We’ll restore your CODESYS license.

Commissioning

Are the installation clearances always to be observed, even for individual modules (Core, Connect, etc.)?

Yes, we recommend these minimum clearances to ensure sufficient air flow around the enclosure when the Revolution Pi modules are mounted on a top-hat rail.

Excessive temperatures can damage your module.

Make sure that the ambient temperature in the control cabinet is less than 55 °C.

https://revolutionpi.com/tutorials/din-rail-mounting/?noredirect=en_US

Communication

Would it be possible to implement the DMX protocol on the RS485 interface?

Yes.

(661) DMX-Protokoll an RS485 - The Industrial Raspberry Pi Forum (revolutionpi.com)

Can I configure the cycle time < 1 MS?

No, the cycle time depends on your system configuration by hardware and software.

(661) Pibridge cycle time configuration - The Industrial Raspberry Pi Forum (revolutionpi.com)

I would like to use an HDMI touchscreen monitor. Are there any recommendations?

  • Without conveying a preference, I can say that we offered monitors from Faytech in our online store.

  • However, we have benevolently removed them again, as well as other additional items to focus on the core business.

Can I tap into an existing serial communication?

Demo

I want to start a simple Webcam Stream to monitor a process. It’s works with Raspberry Pi 4 but not with Revolution Pi Core S Module 8 GB. How can I do?

Are there any examples of how to implement interrupts in the Revolution Pi?

Unfortunately, there is no implementation which interest as possible, Our source code is public. The interfaces are documented and freely available in our GitHub repository:

https://github.com/RevolutionPi

https://revolutionpi.com/tutorials/video-tutorials/?noredirect=en_US#VT16

How to read the value come from X2 connector of Revolution Pi Connect with Python?

Is there a C# library available to access the process image?

Distribution

Would it be possible to boot Ubuntu on a RevPi device?

Yes, see here ​RevPi3 on Ubuntu - Revolution Pi Forum

Documentation

Are CAD models of the products available?

  • No, but there are STEP files in the download area.

What is the Export Control Classification Number (ECCN) for the Revolution Pi Connect module (PR100337)?

  • It is "5A992.C".

Are there user manuals?

Does KUNBUS also provide macros for EPLAN P8?

I would like to rebuild the top hat rail setup from Dirk's video tutorials – are there dimensions for this?

Where can I find photos of the Revolution Pi from bottom, top, rear, and right?

Take a look at the online shop, rotate the modules, and you can grab yourself pictures, i.e., via https://getsharex.com/

I/O

Would it be possible to operate negative switching outputs?

Login

What is the default login and password on the default image?

Use "pi/raspberry". Please note that if you want to log in with a keyboard and HDMI screen, the default layout is English (QWERTY).

I can't log on to the shell - what am I doing wrong?

How do you log in to the system? Possibly via HDMI screen and USB keyboard? Then it may be due to the English keyboard layout of the target system. So QWERTZ or QWERTY.

I am unable to login via SSH, but I am able to log in via Web Status, what can I do?

Where to find the credentials for the Revolution Pi Connect module?

It should be printed on the side of the device.

Hardware

Would it be possible to change RevPi model from any command or configuration file after it has been set?

Is there a user-friendly 24V power supply beside DIN rail?

  • Yes, take a look here:

Are the Modular Gateway devices all slaves? How can a PROFINET Master be operated with the Revolution Pi?

Yes, the Modular Gateway modules do not have master/controller functionality. They function as slaves.

Yes, you can run a PROFINET Master not with the Modular Gateways but, e.g., with CODESYS:

Are the devices that are compatible with the Revolution Pi Core also compatible with the Revolution Pi Connect?

I am interested in the M-Bus module, is there any information?

Network

How do I set the hostname?

Please try to set the hostname with:

sudo raspi-config

How can i change the Mac address permanently?

RevPi Core / Core 3(+) / Core S (until Revision 1.0) / RevPi Compact / RevPi Connect (+) / RevPi Connect S / RevPi Connect SE:

The mac address is set during factory reset and can be changed afterwards by modifying the file /boot/config.txt. The dtparams eth0_mac_* (and eth1_mac_* on Connect and compact) are read from the kernel driver.

RevPi Core S (starting with Revision 1.1) / RevPi Core SE / RevPi Connect 4:

The mac address is written into an eeprom, which is attached to the ethernet controller. The mac address can be changed (written into the eeprom) with the tool /usr/sbin/revpi-set-mac (part of package revpi-tools).

NOTE: The mac address for wlan0 and eth0 on Connect 4 are set differently, as the controllers are directly attached to the compute module. These mac addresses are set via an udev rule. See section revpi_connect4 in file /lib/udev/rules.d/50-revpi.rules

How to configure connect 4 to a Wi-Fi Network?

Please refer to this article Revolution Pi Connectivity .

How to set a static IP address under Bullseye?

The dhcpcd is no longer used since the Bullseye release and the NetworkManager is used instead. You can find more details on the changeover in the release notes of the first Bullseye image. The IP must therefore be configured in the NetworkManager. If you activate the dhcpcd, it gets in the way of the NetworkManager.What knowledge can we derive from it?

Network port not available – how can I use it?

How can I configure two different networks on the Revolution Pi?

I have a Revolution Pi Connect and would like to use the two Ethernet sockets on the device as a switch. Is it possible and how?

Yes, it is possible. You can combine the two ports into one bridge. The necessary steps can be found here:

https://github.com/RevolutionPi/revpi-ansible-recipes/blob/master/roles/network-bridge/README.md

Is there a default IP address after booting?

  • No, the Revolution Pi is by default configured using DHCP

  • If you want to set up a static IP address, take a look at Video Tutorial 07 – Static IP Address

  • The RevPi Connect 4 uses mDNS, which makes it easier to locate the device in the network

I am using a Revolution Pi Flat module. How can I check if the Eth0 interface is working or defective?

Node-RED

How can I convert Sensor data in Node-RED?

You can see an Example, how to convert data from a pressure sensor. The sensor has a range from 1V to 5V and a measuring range from 0kPa to 2kPa.

See here: Sensordaten umrechnen - Revolution Pi Forum

OPC

Our PLC can possibly be activated as an OPC server, can the Revolution Pi Connect work as an OPC client?

  • If the Raspberry Pi can do it, so can the Revolution Pi.

  • KUNBUS doesn't have any shares in it, but the possibility is certainly there to run entirely different OPC servers or clients on Revolution Pi devices

Performance

Can I modulate a signal with the maximum cycle time of the Revolution Pi DIO bridge, around ~2.5ms?

  • No, but it would work with the Revolution Pi Compact, where we allow 250 usec cycles for the digital I/Os and analogue outputs.

  • The Revolution Pi DI/DO/DIO modules cannot be used for such applications due to the limitation of the PiBridge communication cycle.

How can the cycle time of the PiBridge be measured?

Would it be possible to read Revolution Pi Analog Input in microvolt?

 

Would it be possible to down clock the CPU frequency of a Revolution Pi Module?

  • We cannot recommend down clocking the CPU. This means that the functionality of PiControl can no longer be guaranteed correctly.

I heard the CM3 module has only one gigabyte of RAM, is that true?

Would it be possible to connect multiple Revolution Pi Core modules with the PiBridge?

Yes, this is technically possible, but without official support. The two network interfaces “pileft” and “piright” are available in the system. Via these two interfaces, a network can be configured between two communication partners that are connected via the PiBridge.

 

Revolution Pi Core #1

Right PiBridge

Left PiBridge

Revolution Pi Core #2

Network Interface

 

piright

pileft

 

Take a look at Tutorial 07 – Static IP Address: https://revolutionpi.com/tutorials/video-tutorials/?noredirect=en_US#VT7

Can Revolution Pi retain the last value state when power rev pi is off?

  • No, the Revolution Pi doesn't retain the last value when power is off (except for the real-time clock, which is buffered for 24 hours).

PiBridge

I have questions about PiBridge communication, where can I find details about this?

Take a look at the PiBridge driver source, it's pretty well commented.

I am curious about the RSC files, is there a documentation?

  • Yes, take a look here

  • There is a fruitful discussion about the documentation of the RSC files and types in it

Real time

The pl011_pio_tx process generates a CPU load of consistently about 20%. Is this behavior plausible?

  • The process “pl011_pio_tx” is a sub process that is responsible for the data exchange between the modules and Revolution Pi. This requires about 20% of the CPU resources.

  • There is nothing you can configure about this behavior.

How can I create a real-time program?

RS485

What is the maximum baud rate for RS485?

  • The standard value of the baud rate is 19200. No threshold is defined for the RS485. You must proceed randomly to define the maximum baud rate threshold that suits you.

Security

I want a Trusted Platform Module (TPM) what device can I use?

  • Revolution Pi Flat Module

Software

When I log in to WebStatus I get an error message after a short time, what am I doing wrong?

If you have upgraded your system, you are probably missing the correct web server configuration:

I cannot log in to WebStatus, error message "ERROR: There is no enough free disk space - click for support". What can I do?

  • You can try logging in via SSH and deleting unnecessary data and applications to free up memory.

  • Original discussion here

How to easily upgrade from Buster to Bullseye?

Are there integrated development environments available?

RPiBoot.exe aborts the installation with a “TrustedPublisher” error, what can I do?

  • Disable the Driver signature verification.

I can't find the link to the rpiboot tool on your website. Where can I download it?

The tool is from the Raspberry Pi Team and can be downloaded on their website.

Website: https://www.raspberrypi.com/documentation/computers/compute-module.html#windows-installer

GitHub Link: https://github.com/raspberrypi/usbboot

How can I install OpenVPN Client?

Can I use TeamViewer, and what happened to TeamViewer-Revolution Pi?

TeamViewer-Revolution Pi has moved to a new product called TeamViewer-IOT. Take a look at Video Tutorial 24.1 – TeamViewer IoT for a brief introduction.

I would like to confirm that we can program G Code on Revolution Pi?

I want to use OpenPLC and I heard that is possible, is this information true?

I would like to use the robotics programming language ROS for a project. How can I implement this with a Revolution Pi product?

Please take a look here, maybe you get your answers for installing ROS

https://revolution.kunbus.de/forum/search.php?keywords=ros&sid=642735a3d64404db2e3586ae95bdd512

Our image is derived from Raspbian, perhaps you get further instructions here http://wiki.ros.org/Installation

Or here https://www.ros.org/support/.

SPI

Can I use the Con CAN SPI interface for my application?

  • Yes, this is possible with a few steps. Take a look here:

Temperature

Would it be possible to read the same PT100 thermistor with two Revolution Pis? How are the internal resistances of the pins for RTD measurement?

The resistance between the pins is 100kOhm. The resistance between the RTD pins of the two Revolution Pis is also 100 kOhm. The PT100 has a maximum of 3kOhm. You can calculate the influence of 100kOhm on 3kOhm with an error calculation.

Time

How can I update the time on the RevPi module?

  • Usually, time is synchronized automatically. You can check the status via

  • The Bullseye image uses UTC as the system timezone. For previous images, you can manually change it by running:

How do I set up my time-server

USB

Is there a way to ensure that the USB devices are always represented with the same device file names?

I have connected several USB serial adapters to a RevPi module, but only one of them is displayed in the /dev/serial/by-id path and only /dev/serial/by-path/ is generated. What can I do so that both devices are displayed?

  • Please update your device so that the UDEV rules are up-to-date.

Watchdog

I am new to the RevPi Connect 4 Module and the watchdog functionality. Do you have an example?

My Revolution Pi device continues to restart, what can I do about it?

Web Status

I can't log into Revolution Pi Web Status, the page continues to reload, what can I do?

We just uploaded a fixed version of RevPi-tools (2.0.1-1). After an update via “sudo apt update && sudo apt upgrade” everything should work as expected.

https://revolutionpi.de/forum/viewtopic.php?t=3732#p13466

Wireless

I can't connect to a Wi-Fi network with the RevPi Connect 4, what can I do?

Please check if the Wi-Fi network is compatible (WPA3 is not compatible).

Is a Revolution Pi module able to send an SMS?

  • No, unfortunately, there is no native SMS functionality. You can use a web-based SMS service which is called from your software on the Revolution Pi module (requires internet access). Another way is to attach a hardware modem that offers that functionality.

  • https://revolutionpi.de/forum/viewtopic.php?f=6&t=3148#p11207

Is there also a wireless connection to integrate a Revolution Pi into our network, e.g., 4G Wi-Fi, UMTS, etc.?

I would like to use a compatible Wi-Fi dongle, do you have recommendations?

Yes, just take a look at these pages

https://www.raspberrypi.org/forums/viewtopic.php?t=62982

The Wi-Fi USB dongle MAC address changes every power cycle, what can I do?

Verwandte Artikel