Announcement

Collapse
No announcement yet.

Velleman K8055 Plugin V1.0.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    The bees are interesting but I'm interested in the analogue I/O offered by the Velleman. I would like to eventually control my colour LED room lighting.

    Leave a comment:


  • Malarcy
    replied
    on a single board polling (whilst not ideal) isn't a problem really (you can potentially miss an "on" - but you could solve that with some circuit that holds on for a period of time). It is easy to say in the code every .25 seconds - go read the inputs, the problem with multiboard velleman was you had to say every .25 seconds switch board, read inputs, switch board read inputs etc. 1 for each board - and it took about .3 of a second to respond - so every .25 secs you asked for 1.2 secs of work - it spent all it's time polling.

    Malarcy

    Leave a comment:


  • Bestgear
    replied
    Hi Malarcy

    Yes, it seems a good find - I did follow a feew "PC-Bee" devices a while ago, and I think this looks like it came from the same family.

    I spoke to the manufacturer/supplier and they confirmed that there are no known issues with HID device compatibility.

    With regards to the polling of inputs, their reply was:

    "You have to poll the inputs. When you use the ReadInputs() function it
    sends a message to the device to latch the inputs. It then reads the latch
    and returns the 16 bit value."

    So, that kinda excludes them for input duties!

    So, I wonder if Andrew is up for the challenge?

    DJ

    Leave a comment:


  • Malarcy
    replied
    Originally posted by djblack View Post
    ...I wonder how close a relative this device is:

    http://www.pc-control.co.uk/minibee_info.htm

    My ideal is....

    http://www.pc-control.co.uk/maxibee_info.htm

    DJ - you keep finding kit I wanna buy and play with and I know I don;t have the time to do it.

    My instant reaction to this is that something could be written that lived outside of homeseer - so you could call it from a script when you needed to switch an output - not as nice as a plugin but a hell of a lot quicker to write and since it doesn't need any input stuff it's an easier target.

    Don't know if there would be any interactions with HID with this unit - but the board seems like god's gift to us h/a folks - with the appropriate addon circuits you can drive relays and whatever else you like.

    If they had a com object or a .net equivalent (excuse the .net "Blindness" - I code in C - and the last commercial project I did was a device driver for Windows NT 4.......) it would be trivial - as it stands someone has to write the .net or com interface.

    I won't volunteer, but this looks like a good project for someone.

    Malarcy

    Leave a comment:


  • Malarcy
    replied
    Originally posted by djblack View Post
    Malarcy/Andrew

    What would be the position to change the plugin so that it only uses the outputs of the board?

    From memory, I had no co-existance issues until the inputs were used, then bad news.

    Would multi boards be possible if it was used for outputs only?

    What about board 1 used for I/O and boards 2,3,4 for O only?

    Outputs would obviously remove polling...

    DJ
    outputs less of an issue - the board switch time doesn't really matter unless you care if it takes .25 seconds to turn an output "on".

    It wouldn't be hard to do - but time is the issue - I have zero at the moment (updating this via a smartphone sat outside the kids school waiting for one of them to finish doing something.....)


    Malarcy

    Leave a comment:


  • Bestgear
    replied
    ...I wonder how close a relative this device is:

    http://www.pc-control.co.uk/minibee_info.htm

    My ideal is....

    http://www.pc-control.co.uk/maxibee_info.htm

    Its only £35 for 64 outputs!

    Right now, its outputs I need! I have moved over to gamepads for inputs....

    DJ

    Leave a comment:


  • Bestgear
    replied
    Malarcy/Andrew

    What would be the position to change the plugin so that it only uses the outputs of the board?

    From memory, I had no co-existance issues until the inputs were used, then bad news.

    Would multi boards be possible if it was used for outputs only?

    What about board 1 used for I/O and boards 2,3,4 for O only?

    Outputs would obviously remove polling...

    DJ

    Leave a comment:


  • Malarcy
    replied
    Originally posted by WAVI View Post
    The one that came with the board. K8055.dll modified 29-06-2003. Is there a newer one?
    Many versions around - the older ones are the ones I coded against so don't think there should be an issue - it's been so long since I wrote this I have forgottten how most of it works - the plugin works on a polling interval - so you have to wait (i think quarter of a second) before a press is registered - i.e. you have to hold the button down. - if it's one of the inputs with an associated digital counter - does that increment?

    Malarcy

    Leave a comment:


  • Malarcy
    replied
    Originally posted by Andrew View Post
    I have recently bought a K8055. I am contemplating developing a .net plugin for it, I have downloaded the SDK it doesn't look too bad, but I don't know how much time I will get for developing with Christmas coming up.

    I would like to try the malk8055 plugin can anyone tell me which is the best version to use? with which Velleman DLL?

    What circuits have people connected to their K8055s, maybe we could start a new thread for hardware/circuit examples? Has any one made a temperature monitor for it?
    Andrew - if you want to write a .net plugin I am happy to share everything I have - few things from the dll's I found.

    1) It doesn't implement callbacks - you have to poll things - so for things like pressure mats the only useful thing you can get from the board is one of the counter devices - store the last value, store the current - if more then it tripped while you were "away".

    2) polling sucks on multiboard - because it takes so long for the software to switch boards - my plugin polls every quarter of a second - and it can take that long for v1 dll's to switch boards - so - pants

    3) v2 dll's - much faster board switching - but you can trip it up - if you switch boards quickly (like every quarter of a second) the dll gets screwed and you get false reports digital input 1 on board 1 can show up as di 1 on board 4 etc.

    4) v3 dll's - supposed to be good but I haven't been there yet - too much real world interference (like trying to stop my kids (girls) school being merged with a boys school that hasn't been so good recently - shameless plug - http://chapter-sock.blogspot.com ).

    If there is a real .net interface with callbacks, these boards and their bigger cousins are magic, but I think until that happens - multiboard is always going to suck and that's where I left it (single board works for me - in my implementation). And then dj hit the HID problem - that's a vellemen code problem and I kind of lost the faith at that point, seemed to me the board was always going to be hobby if they weren't going to work on the interface - but then v3 went into BETA.

    I gotta be honest and say it's been so long since I touched the code - I am going to have to dig through the ghost images I have around to find the source - it's there - but not "in my face".

    PM me if you want to progress - I am not precious about this - it was always a "project" for me - so if you wanna play..........

    Malarcy

    Leave a comment:


  • Guest's Avatar
    Guest replied
    I assume that your HID problem is because of the Velleman driver not the plugin.

    Do you get this problem if you use the Velleman test program?

    How does this problem manifest itself?

    Leave a comment:


  • Bestgear
    replied
    Wahey!

    Glad to see more interest in this board!

    I have 4 sitting here doing nothing!

    The show stopper for me is that I could not get the device to co-exist with other HID compliant devices... which ment that my 100+ (!) devices via gampad inputs would be mutually exclusive....

    Andrew - I think you should buy Malarcy some beer and pick his brain before you start, as he has spent heaps of time wading through this.

    So, if you do develop, please do try co-existance with a gamepad!

    DJ

    Leave a comment:


  • Guest's Avatar
    Guest replied
    I have recently bought a K8055. I am contemplating developing a .net plugin for it, I have downloaded the SDK it doesn't look too bad, but I don't know how much time I will get for developing with Christmas coming up.

    I would like to try the malk8055 plugin can anyone tell me which is the best version to use? with which Velleman DLL?

    What circuits have people connected to their K8055s, maybe we could start a new thread for hardware/circuit examples? Has any one made a temperature monitor for it?

    Leave a comment:


  • WAVI
    replied
    The one that came with the board. K8055.dll modified 29-06-2003. Is there a newer one?

    Leave a comment:


  • Malarcy
    replied
    what version of the velleman dll are you using.

    Malarcy

    Leave a comment:


  • WAVI
    replied
    Digitial Inputs no responce

    Hello! Just installed the board and plugin, everything works fine, except the digital inputs. I get no responce.
    I already tested the inputs with the tool that came with the board.

    Ideas anyone?

    Leave a comment:

Working...
X