Raspberry Pi Logo.svg

Rocrail

Roc-Pi Software

The Rocpi software consists of series of programs, most of which can be run manually for testing or troubleshooting. The programs are:

All of the programs require arguments to run properly.



There are debugging print statements in each program but they have been commented out. Uncomment them as needed. Some programs allow a -d option. Others have to have the debugging flag set manually. This is a work in progress.

Rocrail Configuration

Controller

Please set up your Raspberry to use a fixed IP address or make sure your local DNS server is DHCP aware if using DHCP to assign addresses. I prefer fixed IP addresses. On my LAN I use RFC1918 addresses. Use Ic2 bus 2 for all FB and GA types in the controller setup. If you want to control two or more Roc-Pi computers, add additional srcp controllers as needed in Rocrail.

Switches and Outputs

Setting up a Roc-Pi switch or Output is easy. Use the address of 40 and an appropriate port number. Also select the single gate option. Make a note of the switch port number. That will also be the feedback number.



Rocpro

In the Roc-Pi distribution there is a directory named “Rocrail” In that directory are some XML files for use with Rocpro. Copy them to your Rocrail configuration directory/decspecs

Roc-Pi Installation and Configuration

The Roc-Pi software makes certain assumptions about the hardware connected to the I2C bus. It assumes that the first servo controller is at 0x40 and the first relay controller is at 0x20 and that each subsequent controller is attached in sequence with no “holes”.



Here is an example with one servo controller and 4 relay controllers on the main I2C bus. This one is configured correctly.

--------------------------------------------------------

# i2cdetect -y 1

0 1 2 3 4 5 6 7 8 9 a b c d e f

00: -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: 20 21 22 23 -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --



Below is an example of a Roc-Pi NOT configured correctly.



# i2cdetect -y 0

0 1 2 3 4 5 6 7 8 9 a b c d e f

00: -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- 41 42 43 -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: 70 -- -- -- -- -- -- --









Rocrail is copyright Rocrail.net.

Raspberry Pi is a trademark of the Raspberry Pi Foundation

Roc-Pi© and RocPi© is copyright 2013 A&E Tool LLC