View Full Version : Adding Analogue and Digital I/O with the Velleman K8055 board
Hi all,
A wish that I had for some time now is fulfilled, I have been able
to add Digital and Analogue Input/Output to the Asus wl500g!
This is done with the K8055 Experimental USB board from Velleman (a board which can be bought as a kit or completely built and tested).
Please find attached the compiled version of the program Cueib (thanks to my colleaugue Stefan who managed to compile it) to control the board (see also: http://linuxk8055.free.fr/). Copy the binary to your wl500g and call it with ./cueib --help to see the opions.
Have fun!
Best regards,
Peter
tommytamsen
06-06-2005, 11:04
Great job palbeda/Peter, just some few questions.
When I run cueib it outputs:
Disconnect OS driver: could not detach kernel driver from interface 0: No data available
Analog input: 75 225
Digital input: 0:0:1:0:0
Digital counter: 001 003
It seems to be working ok, but whats the "Disconnect OS driver: could not..." output line?
And is there an easier way to set output? When I want to output binary %01001001 (decimal 73) I write:
./cueib -do:1 1 -do:4 1 -do:7 1
This works ok apart from the "Disconnect..." output, but why cant I write:
./cueib -do 73
to do the same job? Whenever I try ./cueib -do xxx (xxx=anything but zero) all output lines turn on. But -do 0 works by turning all off...
But thats some minor quirks - it works great!!! Thanx!
Hi Tommy,
Sorry I did not responded earlier, only now I saw your message.
Yes, the program gives some error messages as it seems to try
to disable Linux drivers that may lock the k8055.
I agree that it is a pitty you need to know the state of the outputs
to set them without resetting the other inputs. I do not think the
board supports a "read outputs" type of command.
I am sure that it must be possible to create better software to
control the K8055 with the examples on the website, I specified
but for me this software does the trick.
Have fun,
Peter
May I ask you to recompile the binary with commented line where the program tells the error message "Disconnect OS driver: could not detach kernel driver from interface 0: No data available"?
I do not have the environment ready (I fail everytime I try to compile the binary).
Thanx in advance.
Hi all,
A wish that I had for some time now is fulfilled, I have been able
to add Digital and Analogue Input/Output to the Asus wl500g!
This is done with the K8055 Experimental USB board from Velleman (a board which can be bought as a kit or completely built and tested).
Please find attached the compiled version of the program Cueib (thanks to my colleaugue Stefan who managed to compile it) to control the board (see also: http://linuxk8055.free.fr/). Copy the binary to your wl500g and call it with ./cueib --help to see the opions.
Have fun!
Best regards,
Peter
I made a simple script that makes a "running light" on the wellman board.
I let it run for cca. 3 minutes and the router went down.
I was even unable to trace the syslog - it was completly frozen.
Only reset button helped.
When I use commands by normal manner - one in a minute, or just use a read command, everything is OK, the router works correctly for days.
As soon as I run the running light script, I get into problems.
The script is realy only a sequence of ./cueib ... commands.
Anyone have some idea, where a problem could be?
Hi Sancho,
It might be a bug in the program. The program is not debugged that well. It is very well possible that the program has a "memory leak" or so, eating your resources until the server crashes. I have a simular problem with the program on my ASUS that checks for e-mail and shouts "New e-mail!!!" through USB audio. After a few weeks, it freezes my ASUS and a reboot fixes it.
By the way, I have not written the program, you can find it at http://linuxk8055.free.fr . You can find the sources there. Unfortunately, I do not have the environment running at the moment to recompile it, so even if I knew what was wrong, I cannot fix it momentarely. I think the user interface could be better anyway....
Sorry I cannot help you at the moment, great that you have the 8055 running on the ASUS as well!
Best regards,
Peter