Document toolboxDocument toolbox

DF PROFINET IO | Getting Started - Linux Driver Example

This Linux Driver is compatible with 32 Bit and 64 Bit OS.

Instructions

To compile and run the linux driver, simply follow the steps shown in the Readme file.

The following steps shoud be taken for a 64 Bit OS

  1. Open a terminal

  2. Navigate to your extracted Linux Driver filepath

  3. Move to kernelmod
    cd kernelmod

  4. (opt.) You need to reinstall/update c++ compiler
    sudo apt-get update && sudo apt-get install build-essential

  5. Make the compile bash script executable
    chmod +x dfprofinet.sh

  6.  Start the PN card (this step is necessary at reboot)
    sudo ./dfprofinet.sh start

  7. Now the Profinet Card should be shown in the response of dmesg (in bolt letters) with the MAJOR-No. displayed in the last line of the previous step.
    e.g: DFPROFINET IO driver df_profinet found with MAJOR=240

  8. Install Libraries on 64 Bit system from parent directory (this step will differ on a 32 Bit OS - further information in README.txt)
    sudo cp lib/32bit/libdfpnio.so /usr/lib32
    sudo cp lib/64bit/libdfpnio.so /usr/lib

  9. Compile the example from parent directory
    cd example_controller
    make
    ./Basic_Profinet_Example

  10. Please follow the instructions in the application

How to setup a communication between controller and devices:

  1. Open Confiugrator III in Windows.

  2. Create a new configuration regarding to your controller device hardware setup

  3. Download the configuration to your controller

  4. Change to Linux to run the Linux Driver Example

Help

For further help, please check out the

Compatibility

Of course, the driver is not checked for every single new kernel version. That would be very time-consuming and is disproportionate for basic accesses. However, it was tested for kernel versions:

  • 3.xx

  • 4.16.x

  • 5.04.x

  • 5.08.x

  • 5.11.x