BeagleBone Demo

The latest version of libIEC61850 contains a demo project for the BeagleBone and the BeagleBone Black boards. The BeagleBone is a low cost embedded Linux board featuring a Cortex-A8 processor from Texas Instruments (see http://beagleboard.org/Products/BeagleBone+Black). The BeagleBone Black can be purchased from various vendors for approximately 45 EUR.

The demo consists of an IEC61850/MMS server providing access to the four LEDs of the Beaglebone. Also included is a simple client application that performs some actions with the LEDs. Access to the LEDs is modeled with GGIO logical nodes. It should be easy to extend the demo to control GPIOs and port it to other embedded linux boards like the Raspberry Pi or the Carambola 2 board.

At the moment the demo is primarily intended to illustrate the usage of IEC 61850 control models with libIEC61850. The first three LED are modeled as a single point control (SPC) whilst the last LED is modeled as a double point control (a flashing LED represent the intermediate state).

To run the demo on the BeagleBone you need a cross-compile GCC toolchain installed on your development system. E.g. on a current Ubuntu system (tested with Ubuntu 13.04) you can easily install such a tool chain by typing

apt-get install gcc-4.7-arm-linux-gnueabi

on the command line.

Then go to the demo/beaglebone folder and enter

make TARGET=LINUX-ARM

Depending on the OS installed on the BeagleBone you may require a different tool chain. The instructions have been tested with the stock firmware installed on the BeagleBone Black.

If you have successfully compiled the demo you can copy the created binary to the BeagleBone and execute it. Then you can use a generic client to trigger the LEDs by performing operate requests on the data objects representing the LEDs. Or you can modify the provided demo client to trigger the LEDs.

Depending on the version/firmware of the BeagleBone you may have to adjust the file paths for LED control in the file demos/beaglebone/beaglebone_leds.h.

The demo will be extended with future versions of libIEC61850 to illustrate the usage of new features.

9 thoughts on “BeagleBone Demo

  1. Matteo

    Hello! I need a little help; I am trying installing on linux Ubuntu 15.04 the demo;

    the command apt-get install gcc-4.7-arm-linux-gnueabi it’s working.

    But I am not able to find : demo/beaglebone_demo

    Any suggestions ?

    Thanks for your attention

    Reply
  2. Sandheep

    Hi Michael Zillgith
    Thanks for your response
    I’m using BBB running with Ubuntu 14.04.2 LTS (GNU/Linux 3.14.4.1-bone-armhf.com armv7l)

    When i Type apt-get install gcc-4.7-arm-linux-gnueabi
    My result is
    ubuntu@ubuntu-armhf:~$ sudo apt-get install gcc-4.7-arm-linux-gnueabi
    [sudo] password for ubuntu:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Note, selecting ‘gcc-4.7-arm-linux-gnueabihf-base’ for regex ‘gcc-4.7-arm-linux-gnueabi’
    Note, selecting ‘gcc-4.7-arm-linux-gnueabi-base’ for regex ‘gcc-4.7-arm-linux-gnueabi’
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Thanks in advance

    Reply
    1. Michael Zillgith Post author

      The instructions in this article are for cross-compilation. If you have ubuntu installed on the beaglebone you just have to follow the normal build instructions for linux. Though I would recommend to cross-compile the demo on a separate PC based development system and then copy the resulting binary to the beaglebone. This is much faster then compiling on the beaglebone.

      Reply
  3. Sandheep

    Ok
    My aim to convert the data from UART to IEC61850 as out put in BBB using Ubuntu.
    Can support with any documents so that i can follow up and do the above application ?

    Thanks

    Reply
    1. Michael Zillgith Post author

      The only documents available are those you can find online. You should also have a look at the various examples.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>