That is wonderful Rob! Thanks very much.
As long as you are in the mood, there is one thing that is on my wishlist. Whenever a change is made and SET is clicked, what is displayed is the old value. To see the new value, GET has to be clicked. Could a GET be automatically sent after SET is clicked?
I just created a patch file for the BBB which changes /dev/i2c-0 to /dev/i2c-1. It also changes /dev/i2c-1 to /dev/i2c-2.
I will have to revisit it. Anyway the patch attached is for Rocrail versions 6986 through 7025.
What I did mostly was to change the check for the macro __arm__ to __ARM_ARCH_6__
The Rpi has __ARM_ARCH_6__ defined. The BBB has __ARM_ARCH_7A__ defined.
I also added some #ifdef __ARM_ARCH_6__ here and there.
Since the Rpi GPIO connected LEDS don't translate to the BBB hardware very well, I just disabled them for now. The I2C buses require no setup on the BBB. They are either there or they aren't
Download the Rocrail source package.
Download the patch file and save it to Rocrail/rocnetnode/impl/patchfile
cd to Rocrail/rocnetnode/impl/
run the command
build as normal.
All I checked was the function of the ADC sensors. I assume the rest is OK too.
By default i2c-2 is not enabled on the BBB. To enable it add the line below to rc.local
Code: Select all
echo BB-I2C1 > /sys/devices/bone_capemgr.*/slots
i2c-2 is the preferred bus to use on a BBB. i2c-0 is for internal use only as there are no physical connections for it. I2c-1 has some system devices reserved on it. I2c-2 is completely free.
You do not have the required permissions to view the files attached to this post.