Hi hamradio
I have been searching for a solution like the one that you are looking for, and have posted two question on the forum, but to no avail!
Realizing that I was not getting any clues from this forum, I made my own solution!
I startet looking for a card with rs232 and drivers to Linux, but I found this USB card:
http://www.velleman.eu/distributor/prod ... ?id=351346
and the drivers are here:
http://k8055utils.sourceforge.net/?site ... 8055m#lbAF
Just compile and install, test with the client program.
But what about a keypad, well I got one her:
http://www.npc.dk/Default.asp?ID=58 Look for "CTR 1b"
I took the output (relay) and used as input 1 on the k8055.
Then make a small program to read status of input one, and call "/usr/local/bin/zmpkg.pl Active" depending on condition.
I made one that starts by reading the status of ZM (haven't been able to dig that info out of ZM itself, but only on status file I made in /var) and setting that status. Just to align status with reality. Then the program goes into a while - do loop, where it reads the status by calling k8055m, and if the input is activated, then change status of ZM from Active to InActive or the other way around. I turn on output 1 when status is Active and change to output 2 when status is InActive. When I make the call to "/usr/local/bin/zmpkg.pl State" I turn on output 8 to indicate activity, and off when status has changed!
You can have that card to do a million other things, but as with me, I had to start somewhere
I hope you and others can use this information!
You can have my script, if you drom me a line!
BR
Lars