Logic Machine Forum
Communication with LM using raw data - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: Communication with LM using raw data (/showthread.php?tid=951)



Communication with LM using raw data - AlexLV - 22.08.2017

Hello,

can we communicate with LM using IP address, protocol type (UDP or TCP), port and send directly HEX data?? As example such variant:

LM IP: 192.168.20.20 (example)
Protocol: TCP (example)
Port:63002 (example)

Send raw data: (to switch something??)

Send= 0x02 0x01 0x00 0x00 0x03

I propose to use variant with http strings ( http://remotelogin:remotepass@192.168.20.20/scada-remote?m=json&r=grp&fn=write&alias=0/0/1&value=1).

But I was asked to use communication as above. (May be other device have no possibilities to communicate by using http strings?)
Can we do it such way to send commands to LM from other devices in network or it is not possible??


Alex


RE: Communication with LM using raw data - admin - 22.08.2017

You can use built-in copas library in a resident script to create raw TCP or UDP server:
http://keplerproject.github.io/copas/manual.html