Logic Machine Forum
Ekey app - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11)
+--- Thread: Ekey app (/showthread.php?tid=3355)



Ekey app - Danny - 10.05.2021

Hello fellow forum users.

i have an ekey fsx up e sc with firmware 06180115
Whit licence.

This one worked well and stoppedĀ at once.
The leds on de scanner blinks red / green


Code:
require('serial')

port1 = serial.open('/dev/RS485-1', { duplex = 'half' })
port2 = serial.open('/dev/RS485-2', { duplex = 'half' })

function test(p1, p2)
errors = 0

p1:flush()
p2:flush()

for i = 1, 100 do
p1:write('1234567890')
res = p2:read(10, 1)
if res and res == '1234567890' then
res = '+'
else
res = '-'
errors = errors + 1
if errors > 5 then
break
end
end

io.write(res)
io.flush()

if i % 50 == 0 then
print()
end
end
end

test(port2, port1)
test(port1, port2)

alert(errors > 0 and 'ERROR' or 'OK')

Quote:Resident script:9: attempt to index local 'p1' (a nil value)
stack traceback:
Resident script:9: in function 'test'


Quote:Ekey installeren 07.05.2021 11:11:43
* string: Ekey installatie gereed


Ekey installeren 07.05.2021 11:11:43
* string: installed scada ipk :


Ekey installeren 07.05.2021 11:11:43
* string: RS485 devices: /dev/RS485


Ekey installeren 07.05.2021 11:11:43
* string: ekey app port: not defined


Ekey installeren 07.05.2021 11:11:43
* string: scada port: not defined


Ekey installeren 07.05.2021 11:27:50
* string: Ekey installatie gereed


Ekey installeren 07.05.2021 11:27:50
* string: installed scada ipk :


Ekey installeren 07.05.2021 11:27:50
* string: RS485 devices: /dev/RS485


Ekey installeren 07.05.2021 11:27:50
* string: ekey app port: not defined


Ekey installeren 07.05.2021 11:27:50
* string: scada port: not defined
anyone an idea what this could be?


RE: Ekey app - agris - 10.05.2021

HI,
If the scanner leds blinks red / green then this can mean that you probably initiated the firmware update of the scanner.
Try to restart the LM (or SE).

Also:
Status LED alternates between flashing red and green.
The sensor of the non-RFID finger scanners issoiled or wet.
Clean and/or dry the sensor.


RE: Ekey app - Danny - 10.05.2021

(10.05.2021, 06:18)agris Wrote: HI,
If the scanner leds blinks red / green then this can mean that you probably initiated the firmware update of the scanner.
Try to restart the LM (or SE).

Also:
Status LED alternates between flashing red and green.
The sensor of the non-RFID finger scanners issoiled or wet.
Clean and/or dry the sensor.

Thanks Agris,

Thats te first thing i do restart de w4knx

the scanner is places in under a canopy