NEW >>> K8090 8-Channel USB Relay Card


#21

can I use the kit without the USB Connection (computer off) only by working with the switch?


#22

You only need the PC to change the behavior of the buttons or to interact with the board with your computer.

It can be used by itself without a computer


#23

Hi,

Can use the VM8090 (or K8090) relay cards with high voltage (A/C 220v-230V) ? Who would have an electric plan for a standard integration please ?

Many Thanks


#24

Can the PIC firmware be modified? Is the PIC source code available or is it a derivation of the Microchip CDC example.


#25

The Microchip CDC example is a good place to start


#26

[quote=“VEL448”]The iPhone application is amazing zachari, very impressive! It’s an added value for the K8090

Thanks for all the work you’ve put into creating the K8090 iPhone application and the server, the whole R&D team has already been looking at the demo video on Youtube :wink:[/quote]

Hi everybody,

I post here but it concern my K8000 interface bord.
Is it possible to make a iphone/ipodtouch application for the K8000 interface bord?
I don’t know how to do that, but I’m very interesting in that possibilities.
Control my velleman K8000 interface bord with my ipod touch at home would be very nice.
Is velleman developpers planned to do this too?

Thanks for answers.

ps: How can I do to contact Zachari?


#27

No such plans at this time. The K8000 is a mature product of reasonable age, so there are no new developments for this item. We encourage customers to move towards more modern USB-driven interfaces.


#28

Yes, I agree.

But is it possible to do that by myself?
What software do I need? I must create a new dll?

If it works by the COM port for the k8056, will it work with LPT port for a K8000?

Because there is so more possibilities with this bord: A/D converters, dimmers, Inputs/Outputs.

Thanks for answers


#29

Apple iPhone Dev Center
developer.apple.com/iphone/index.action

Apple provides extensive information on how to create applications for iPhone and iPad. Follow their information and you’ll be able to write your own software. Since Apple’s operating systems don’t use DLL’s you can’t (re)use anything that we provide, so you’ll have to start from scratch.


#30

Ok, thank you very much for all of your answers.


#31

[quote=“john_lenfr”][quote=“VEL448”]The iPhone application is amazing zachari, very impressive! It’s an added value for the K8090

Thanks for all the work you’ve put into creating the K8090 iPhone application and the server, the whole R&D team has already been looking at the demo video on Youtube :wink:[/quote]

Hi everybody,

I post here but it concern my K8000 interface bord.
Is it possible to make a iphone/ipodtouch application for the K8000 interface bord?
I don’t know how to do that, but I’m very interesting in that possibilities.
Control my velleman K8000 interface bord with my ipod touch at home would be very nice.
Is velleman developpers planned to do this too?

Thanks for answers.

ps: How can I do to contact Zachari?[/quote]

Adapt my app for k8000 is possible , server app just use dll from velleman, it can be done with another dll


#32

Is there already a Delphi example ???

I can’t control the card with the current .dll file.
i can’t find the k8090D.dll descripted in the pdf.

I did but the card because the k8055 was easy to control with delphi
it had i delhi example.

Is it possible to get a Delphi example ?


#33

Well, the demo was written in Delphi 7. I can you the source code for it but it uses the AlphaControls library (alphaskins.com). So it might not compile without some effort, but it’s the best i can give you if you want to experiment over the weekend

Download the K8090 demo source code

K8090D.pas contains the DLL’s functions
MainFrm.pas is the main form for the application, this is where the DLL’s functions are used
SetupApi.pas is an extract of the Windows Setup API, which allows you to enumerate hardware etc
USB.pas uses the Windows Setup API to enumerate all Velbus USB interfaces

K8090D.pas sample

{*******************************************************}
{                                                       }
{    K8090D DLL                                         }
{    Copyright (c) 2010 Velleman nv                     }
{                                                       }
{*******************************************************}
unit K8090D;

interface

uses
  Windows, Messages;

const
{ Event notification message }
  WM_K8090_EVENT = WM_USER + 1;

{ Miscellaneous  }
  K8090_NUM_RELAYS = 8;

{ List of available commands }
  K8090_SWITCH_RELAY_ON        = $11;
  K8090_SWITCH_RELAY_OFF       = $12;
  K8090_TOGGLE_RELAY           = $14;
  K8090_QUERY_RELAY_STATUS     = $18;
  K8090_SET_BUTTON_MODE        = $21;
  K8090_QUERY_BUTTON_MODE      = $22;
  K8090_START_RELAY_TIMER      = $41;
  K8090_SET_RELAY_TIMER_DELAY  = $42;
  K8090_QUERY_TIMER_DELAY      = $44;
  K8090_BUTTON_STATUS          = $50;
  K8090_RELAY_STATUS           = $51;
  K8090_RESET_FACTORY_DEFAULTS = $66;
  K8090_JUMPER_STATUS          = $70;

{ Generic parameter }
  K8090_PARAM_NONE = $00;

type
{ Event notification message parameters }
  TWMK8090Event = packed record
    Msg: Cardinal;
    hDevice: LongInt; // Handle to the device 
    Param2: Byte;
    Param1: Byte;
    Mask: Byte;
    Cmd: Byte;
    Result: Longint;
  end;

{ -------------------------------------------------------------------
  Connects to the device at the specified port and returns a handle
  to the device. Applications should call CloseDevice to free
  memory associated with this handle.
  ------------------------------------------------------------------- }
function OpenDevice(szPort: LPCSTR): THandle; stdcall;

{ -------------------------------------------------------------------
  Send a raw command to the device.
  ------------------------------------------------------------------- }
function SendCommand(hDevice: THandle; bCmd, bMask, bParam1, bParam2: BYTE): BOOL; stdcall;

{ -------------------------------------------------------------------
  Registers a window to receive event notifications. Events include
  button presses, relay changes and other more generic events.
  ------------------------------------------------------------------- }
procedure RegisterListener(hDevice: THandle; hWnd: HWND); stdcall;

{ -------------------------------------------------------------------
  Closes a handle returned by a call to OpenDevice.
  ------------------------------------------------------------------- }
procedure CloseDevice(hDevice: THandle); stdcall;

const
  k8090dll = 'K8090D.dll';

implementation

{ Externals from K8090D.dll }

function OpenDevice; external k8090dll name 'OpenDevice';
function SendCommand; external k8090dll name 'SendCommand';
procedure RegisterListener; external k8090dll name 'RegisterListener';
procedure CloseDevice; external k8090dll name 'CloseDevice';

end.

#34

I’d like to program the K8090 in .net Compact Framework (WinCe)


#35

Did you get the driver to work yet under Windows CE?


#36

Hi,

i have assemply the k8090 card and it work fine with the software (usb) but don’t work with switch button (manual mode) have any idea ?


#37

K8090_ProtocolManual.pdf


#38

Does anyone know how to interface the k8090 with linux?

/Thomas


#39

There’s nothing wrong with the DLL, the compiler is telling you that it can’t find the DLL. So the solution would be to put it somewhere where your compiler can find it. The best choice is putting it in the system32 folder


#40

I have this kit (VM8090) and it also works on the computer. My computers = win 7 or XP My iPhone4 I have a server program but it does not work. Can one help me here in this forum. I have tried to put this program up to handle my iPhone4 at this URL: thyfon@sol.dk