Here is the driver for EMBIR-JX.
Hope it's easy to use, at the moment only from Linux command prompt.
Goal was to hide the complicated stuff, but use the mechanism for secure data exchange
between Raspberry and EMBIR-JX. It works without kernel modifications.
Load the attached tar file into /home/pi
then unpack the tar file:
tar -xvzf EMBIR_JX_Driver_1.0.tgz
Now you have a new directory tree, change working directory to the driver files.
Here you have the examples and some directories containing the driver.
The driver is based on the Broadcom BCM 2835 library, with a little patch.
What do we have now?
pi@raspberrypi ~/EMBIR_JX/Driver/1.0 $ ls -als
4 drwxrwxr-x 6 pi root 4096 Aug 1 14:35 .
4 drwxrwxr-x 5 pi root 4096 Aug 1 14:33 ..
4 drwxrwxr-x 2 pi root 4096 Jul 18 19:40 Get_Status
4 drwxrwxr-x 2 pi root 4096 Aug 1 15:55 lib
20 -rw-r--r-- 1 pi root 18009 Aug 1 14:30 Read.me
8 -rwxr-xr-x 1 pi root 7388 Aug 1 12:03 run_test_1
4 -rwxr-xr-x 1 pi root 3568 Aug 1 14:35 run_test_2
4 drwxrwxr-x 2 pi root 4096 Jul 18 19:45 Set_Config
4 drwxrwxr-x 2 piroot 4096 Jul 18 19:44 Set_Port
pi@raspberrypi ~/EMBIR_JX/Driver/1.0 $
Let's start with the Read.me
This file is also attached.
It's a description what EMBIR-JX can, how to put it together,
and how to use.
I recommend to have also a hard copy of the iC-JX data sheet http://www.ichaus.de/JX_datasheet_en
on the desk, start with page 13,
programming. Then it's more easy to understand.
And we have 2 files called
Both are bash script files, you can open with a text editor.
It makes only sense to execute in case the EMBIR-JX board is connected.
Otherwise you get only an error message.
is an example how to use output ports,
initialize as outputs, write pattern to the outputs, enable the hardware blink functionality.
is an example of an binary up and down counter .... one 4 bit up counter and one 4 bit down counter.
Both are made to demonstrate possibilities how to set outputs.
to see what happens ( remember, works only with connected EMBIR-JX board )
We have some sub directories, here you can find the driver stuff ( C language ) and Makefiles to compile.
here is a copy of the Broadcom BCM 2835 library with a little patch
, the driver for EMBIR-JX. You can open with a text editor.
here is a simple C program to read the registers of the iC-JX chips on the EMBIR-JX board.
It's called get_status.c
. The compiled executable is called EMBIR_get_status
here is a simple C program to change the configuration of the iC-JX chips on the EMBIR-JX board.
You can define what are the outputs, what are the analog inputs, start analog measurement, blink
and diagnostic stuff. Hard copy of the data sheet will definitely help.
It's called set_config.c
. The compiled executable is called EMBIR_set_config
here is a simple C program to write pattern to the output ports.
It's called set_port.c
. The compiled executable is called EMBIR_set_port
are Makefiles to recompile ( if you made changes in the .c files ). Just cd
to the directory and type make
I was using ddd
for debug, It's a easy to use UI around gdb, you can single step, watch variables, change variable values etc. It's not installed by default, if you need it, execute
sudo apt-get install ddd
There is a lot of room for enhancements. This is a starting point to make things work in
a very short time.
PS die Beschreibung gibt es auch auf Deutsch