...
Download the current driver via the link requested from support@kunbus.com.
Extract the package df_profi_II_linux_kmod to your preferred direction.
Open a terminal and navigate to the extracted file.
Compile the driver to your current Kernel by running
make
.Load the driver to kernel →
sudo insmod dfprpci.ko
.Mount Kunbus.iso to your pc.
Extract the file
Kunbus.iso/DF_PROFI_II/Linux/dfpr_II_pci.rpm
to your preferred location.Navigate to the extracted package.
Run the script DFPROFI_II-PCI-INSTALL.sh →
sudo bash ./DFPROFI_II-PCI-INSTALL.sh
.The Board should be detected like shown in this screenshot.
In case the driver will not start by the script, close the script with
CTRL+C
.Start the driver manually.
Navigate to
/etc/init.d/
and runsudo ./DFPROFI_II start
.Now you should find a file named “dfpr” located in
/dev/
.
In case the driver denied with “invalid major device number”
please go back to step 4
Now the Profibus board should be shown in the response of
dmesg
(in bolt letters) with the MAJOR-No. displayed in the last line of the previous step.In case of using an 64 Bit OS, get the folders
loados_x64
andload_x64
. Else continue with next step.opt. delete or rename existing executables in loados_x64 and load_x64.
Compile the code by running the makefiles in both folders.
Make the compiled outputfiles executable by typing for example
chmod +x loados
in your terminalCopy the executables loados and load out of this path to your extracted package path. Place it there in
/<extracted package>/usr/local/dfprpci/
and replace the existing ones.
Navigate to
/<extracted package>/usr/local/dfprpci/C_Sample_Program/
and compile the example by running the makefile.Run the example in your terminal with
./DFProfi_2_PCI_DEMO
.Initialize the board by typing
I
.Now the os dependencies should be load within “loados”.
The application “load” loads the driver packages to the example application.
A successfull initialization will shown as
I Initialize hardware : OK!
in our application.
...