Page 1 of 2 12 LastLast
Results 1 to 15 of 28

Thread: Adding Analogue and Digital I/O with the Velleman K8055 board

  1. #1
    Join Date
    Dec 2004
    Location
    NL CheeseCity (Gouda)
    Posts
    11

    Smile 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
    Attached Files Attached Files

  2. #2

    Velleman K8055 board - Output from cueib

    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!

  3. #3
    Join Date
    Dec 2004
    Location
    NL CheeseCity (Gouda)
    Posts
    11

    K8055

    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

  4. #4
    Join Date
    Aug 2005
    Location
    Bratislava, Slovakia, Europe
    Posts
    21

    Kind request

    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.

    Quote Originally Posted by palbeda
    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

  5. #5
    Join Date
    Aug 2005
    Location
    Bratislava, Slovakia, Europe
    Posts
    21

    Unhappy Problem with the board

    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?

  6. #6
    Join Date
    Aug 2005
    Location
    Bratislava, Slovakia, Europe
    Posts
    21

    Velleman K8055 board, WL500g and home automatisation

    I am working on a project of home automatisation.
    Using the Vellman board I made an output relay board for remote control, that could control almost everything, starting at home alarm, lights, power plugs etc.
    I am working on the web interface for this one.
    The remote can control 256 devices.

    For the remote control I use these products:
    http://www.arctech.com.tw/products/allproud.htm

    It operates on the radio frequency, not by infra, so the range in a real house is aprox. 30 meters (100 feet), which is suitable for most houses.
    Using the WL-500g I am able to log in from work and control my whole house, program commands using time-schedule etc.

    If anyone is interested in this one, I can offer the source codes and work plan as soon as the project will be finished.

    Anyhow, I will try to sell the final product.
    Do you think it will find it's place on the market?

  7. #7
    Join Date
    Dec 2004
    Location
    NL CheeseCity (Gouda)
    Posts
    11

    Re: Running light

    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

  8. #8

    selling the kit

    How much are you thinking about selling the kits for ? I would not mind buying a prototype of you to try if it is at a reasonable price.


    Quote Originally Posted by Sancho
    I am working on a project of home automatisation.
    Using the Vellman board I made an output relay board for remote control, that could control almost everything, starting at home alarm, lights, power plugs etc.
    I am working on the web interface for this one.
    The remote can control 256 devices.

    For the remote control I use these products:
    http://www.arctech.com.tw/products/allproud.htm

    It operates on the radio frequency, not by infra, so the range in a real house is aprox. 30 meters (100 feet), which is suitable for most houses.
    Using the WL-500g I am able to log in from work and control my whole house, program commands using time-schedule etc.

    If anyone is interested in this one, I can offer the source codes and work plan as soon as the project will be finished.

    Anyhow, I will try to sell the final product.
    Do you think it will find it's place on the market?

  9. #9
    Join Date
    Aug 2005
    Location
    Bratislava, Slovakia, Europe
    Posts
    21

    No plan to sell

    Quote Originally Posted by skanker
    How much are you thinking about selling the kits for ? I would not mind buying a prototype of you to try if it is at a reasonable price.
    Right now I am a little busy in work, but I do not plan to sell it, I will publish the sources and HW how-to for free.

  10. #10
    Sure!!! Pulish them!!! I mostly interested in "Howto make an USB device that does something and how to manage it", not in remote.. But please publish all what you can anyway =)
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  11. #11
    Digging up an old post, but I've received the board this weekend, soldered the whole thing together and is running tests on a pc right now.
    going to try this toningt with the premium.
    Thanks!

  12. #12
    Hi,

    I've downloaded the file and extracted it to /opt/cueib

    If I run the following command:
    Code:
    ./cueib --help
    I get the following error:
    Code:
    ./cueib: ./cueib: 1: Syntax error: ")" unexpected
    I'm running on oleg's v.10 firmware on a premium.

    Any ideas what could be wrong?

    Thanks !

  13. #13
    nevermind..

    i found this: http://libk8055.sourceforge.net/
    works 'instantly' can control/read/reset everything.

  14. #14
    Hi,

    Had a PM about the library.

    I've build the library on my asus, but I don't know if it works on other asus machines then..
    However.

    There's one zip file attached. it contains 2 files

    k8055 (this is the compiled library, place this in /opt/velleman/src/)
    scriptK8055 this is a script which uses the library and it assumes its location. otherwise, change the location in the script.. copy this script to your asus and make it executable.. run with ./scriptK8055

    (I haven't had the change to run this script at the moment, but it is taken from a 'huge' script which handles math with the inputs.. I took the math part out, only leaving the reading of the inputs and storing them in variables)
    Attached Files Attached Files

  15. #15

    Please answer my noob question

    Please answer my NOOB question:

    How to copy/download cueib to my WL500G running oleg latest firmware

    USB ?
    Samba ?
    FTP ?
    Telnet ?


    Please help!

    Thanks!
    Last edited by bugmenot; 21-05-2009 at 22:26.

Page 1 of 2 12 LastLast

Similar Threads

  1. Make an expansion board with a serial port(s) for WL-500b/g
    By Technik in forum WL-500g/WL-500gx Tutorials
    Replies: 73
    Last Post: 07-02-2008, 21:29
  2. digital video recorder (dvr) on wl500g/wlhdd ??
    By rexster in forum WL-500g Q&A
    Replies: 0
    Last Post: 19-06-2005, 12:25

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •