Logic Machine Forum
LM5 and RS-232 problem - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: LM5 and RS-232 problem (/showthread.php?tid=1745)



LM5 and RS-232 problem - Vaggelis - 23.11.2018

I have established successfully a connection with a security alarm but I can’t read the information that it sends as a whole word but in pieces.
Sometimes one by one or two letters and rarely I have the whole word. The command for <<read>> which I use is
respond = port:read(3,0)
log(respond)
I have also used other combinations without any result too. Do you have any idea what is wrong. 
Thanks in advance.


RE: LM5 and RS-232 problem - Daniel - 23.11.2018

Hi
Probably you have to separate the input somehow, check in manual. Look on this
https://forum.logicmachine.net/showthread.php?tid=746&pid=4224#pid4224
BR


RE: LM5 and RS-232 problem - Erwin van der Zwart - 23.11.2018

Hi,

You probably need the function readline, see this topic https://forum.logicmachine.net/showthread.php?tid=392&pid=1978#pid1978

BR,

Erwin


RE: LM5 and RS-232 problem - Vaggelis - 25.11.2018

You guys are the best ! Thank you very much for the fast and correct respond !