This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Ekey app
#1
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?
Reply
#2
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.
Reply
#3
(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
Reply


Forum Jump: