Have a look at this PDF file
View file | ||
---|---|---|
|
If you would like to learn how easy it is to access the processor image via Docker using a simple example, this is the right place to start.
With a Revolution Pi Connect module and a DIO module, an output is controlled via Docker.
Ansible BETA
Info |
---|
Not Support This is a BETA! If you have any suggestions for improvement, please let us know. |
...
You can also run the example with Ansible.
How to install and use Ansible: https://kunbus-gmbh.atlassian.net/servicedesk/customer/portal/1/article/2761523271?src=1748937706
Git Repo: https://github.com/RevolutionPi/revpi-ansible-recipes/tree/docker-io
Currently, only for RevPi Connect (+)!
Preparation
Create a hardware configuration using RevPi Connect Module and DIO Module
Connect a 24V LED to DIO output 1 or output 2
Install Docker
Code Block | ||
---|---|---|
| ||
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
sudo sh /tmp/get-docker.sh
sudo docker run hello-world
sudo usermod -aG docker pi
# restart shell
exit |
Create this file
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Run the example
Note |
---|
the following example could look different depending on the configuration |
Run the command:
Code Block |
---|
piTest -v O_1 |
take the variable offset (70)
Code Block |
---|
variable name: O_1
offset: 70
length: 1
bit: 0 |
Execute the following command – the parameter “70” points to the outputs of the DIO module.
Code Block | ||
---|---|---|
| ||
docker run -i -t --device=/dev/piControl0 -v /home/pi/io.sh:/io.sh debian bash /io.sh 70 |
The 24V LED should blink once.
Page Properties | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|