10.05.2021, 05:42
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
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:43anyone an idea what this could be?
* 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