Difference between revisions of "Ekey Home"
(Created page with "eKey Home is a finger scanner that can be easily integrated in HSYCO using the ekey home CV UDP RS485 module and the Syslog service. == What to I need? == Hsyco, of course. e...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== What to I need? == | == What to I need? == | ||
− | Hsyco, of course | + | Hsyco, of course, then ekey home CV UDP RS485 and eKey Home finger scanner. |
− | ekey home CV UDP RS485 and eKey Home finger scanner. | + | |
+ | This is a simple scheme of what you need: | ||
+ | |||
+ | [[File:ekey1.png|center|600px]] | ||
+ | |||
+ | == Integration == | ||
+ | |||
+ | In events programming file let's add this lines: | ||
+ | function SysLogEvent(address, log) : { | ||
+ | if (address == "192.168.1.243"){ | ||
+ | idSensor = "sensor1" | ||
+ | split = log.split("_"); | ||
+ | varSet("$"+idSensor+"-"+"userid", split[1]); | ||
+ | varSet("$"+idSensor+"-"+"username", split[2]); | ||
+ | varSet("$"+idSensor+"-"+"userstatus", split[3]); | ||
+ | varSet("$"+idSensor+"-"+"fingerid", split[4]); | ||
+ | varSet("$"+idSensor+"-"+"key", split[5]); | ||
+ | varSet("$"+idSensor+"-"+"serial", split[6]); | ||
+ | varSet("$"+idSensor+"-"+"unitname", split[7]); | ||
+ | varSet("$"+idSensor+"-"+"action", split[8]); | ||
+ | } else if (address == "192.168.1.244"){ | ||
+ | idSensor = "sensor2" | ||
+ | split = log.split("_"); | ||
+ | varSet("$"+idSensor+"-"+"userid", split[1]); | ||
+ | varSet("$"+idSensor+"-"+"username", split[2]); | ||
+ | varSet("$"+idSensor+"-"+"userstatus", split[3]); | ||
+ | varSet("$"+idSensor+"-"+"fingerid", split[4]); | ||
+ | varSet("$"+idSensor+"-"+"key", split[5]); | ||
+ | varSet("$"+idSensor+"-"+"serial", split[6]); | ||
+ | varSet("$"+idSensor+"-"+"unitname", split[7]); | ||
+ | varSet("$"+idSensor+"-"+"action", split[8]); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | This code will generate variables as in this example: | ||
+ | |||
+ | $SENSOR1-ACTION : values, "1" = open, "2" = rejection of unknown finger | ||
+ | |||
+ | $SENSOR1-FINGERID : "1" = left hand little finger, "2" = left hand ring finger ... "0" right hand little finger, "-" = no finger | ||
+ | |||
+ | $SENSOR1-KEY : key id, "-" = undefined | ||
+ | |||
+ | $SENSOR1-SERIAL : serial code of the finger scanner | ||
+ | |||
+ | $SENSOR1-UNITNAME : finger scanner name | ||
+ | |||
+ | $SENSOR1-USERID : user number - "0000" = undefined | ||
+ | |||
+ | $SENSOR1-USERNAME : username | ||
+ | |||
+ | $SENSOR1-USERSTATUS : "0" user is disabled, "1" user is enabled, "-" = undefined |
Latest revision as of 13:22, 28 August 2014
eKey Home is a finger scanner that can be easily integrated in HSYCO using the ekey home CV UDP RS485 module and the Syslog service.
What to I need?
Hsyco, of course, then ekey home CV UDP RS485 and eKey Home finger scanner.
This is a simple scheme of what you need:
Integration
In events programming file let's add this lines:
function SysLogEvent(address, log) : { if (address == "192.168.1.243"){ idSensor = "sensor1" split = log.split("_"); varSet("$"+idSensor+"-"+"userid", split[1]); varSet("$"+idSensor+"-"+"username", split[2]); varSet("$"+idSensor+"-"+"userstatus", split[3]); varSet("$"+idSensor+"-"+"fingerid", split[4]); varSet("$"+idSensor+"-"+"key", split[5]); varSet("$"+idSensor+"-"+"serial", split[6]); varSet("$"+idSensor+"-"+"unitname", split[7]); varSet("$"+idSensor+"-"+"action", split[8]); } else if (address == "192.168.1.244"){ idSensor = "sensor2" split = log.split("_"); varSet("$"+idSensor+"-"+"userid", split[1]); varSet("$"+idSensor+"-"+"username", split[2]); varSet("$"+idSensor+"-"+"userstatus", split[3]); varSet("$"+idSensor+"-"+"fingerid", split[4]); varSet("$"+idSensor+"-"+"key", split[5]); varSet("$"+idSensor+"-"+"serial", split[6]); varSet("$"+idSensor+"-"+"unitname", split[7]); varSet("$"+idSensor+"-"+"action", split[8]); } }
This code will generate variables as in this example:
$SENSOR1-ACTION : values, "1" = open, "2" = rejection of unknown finger
$SENSOR1-FINGERID : "1" = left hand little finger, "2" = left hand ring finger ... "0" right hand little finger, "-" = no finger
$SENSOR1-KEY : key id, "-" = undefined
$SENSOR1-SERIAL : serial code of the finger scanner
$SENSOR1-UNITNAME : finger scanner name
$SENSOR1-USERID : user number - "0000" = undefined
$SENSOR1-USERNAME : username
$SENSOR1-USERSTATUS : "0" user is disabled, "1" user is enabled, "-" = undefined