<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to codesyscontrol running listening on port 22000, how to communicate with it?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/</id><updated>2022-01-12T00:14:10.605000Z</updated><subtitle>Recent posts to codesyscontrol running listening on port 22000, how to communicate with it?</subtitle><entry><title>codesyscontrol running listening on port 22000, how to communicate with it?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/?limit=25#7256" rel="alternate"/><published>2022-01-12T00:14:10.605000Z</published><updated>2022-01-12T00:14:10.605000Z</updated><author><name>brunobronosky</name><uri>https://forge.codesys.com/u/brunobronosky/</uri></author><id>https://forge.codesys.coma14f63e1bd6af69ad7463323b9da38463155816c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I was told by the manufacturer that it is port 6000 that handlesModBus. I have captured it with a MITM Proxy but I cannot make any sense of it. I'm hoping that the modbus interface is mounted as a serial device somewhere.&lt;/p&gt;
&lt;p&gt;The  file has:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;SysCom&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="n"&gt;Linux&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Devicefile&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ttymxc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And the filesystem has:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;/dev/ttymxc&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc0&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc1&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc2&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc3&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc4&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I have tried to pipe &lt;code&gt;printf $status&lt;/code&gt; (all those vars) to those devices, but I get either nothing, or it hangs when I then try to &lt;code&gt;cat&lt;/code&gt; the device.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesyscontrol running listening on port 22000, how to communicate with it?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/?limit=25#1384" rel="alternate"/><published>2022-01-12T00:14:08.860000Z</published><updated>2022-01-12T00:14:08.860000Z</updated><author><name>brunobronosky</name><uri>https://forge.codesys.com/u/brunobronosky/</uri></author><id>https://forge.codesys.com1184155eb7e62613f3d1fce283e50f4b0435d3f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I was told by the manufacturer that it is port 6000 that handlesModBus. I have captured it with a MITM Proxy but I cannot make any sense of it. I'm hoping that the modbus interface is mounted as a serial device somewhere.&lt;/p&gt;
&lt;p&gt;The  file has:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;SysCom&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="n"&gt;Linux&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Devicefile&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ttymxc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And the filesystem has:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;/dev/ttymxc&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc0&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc1&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc2&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc3&lt;/span&gt;
&lt;span class="err"&gt;/dev/ttymxc4&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I have tried to pipe &lt;code&gt;printf $status&lt;/code&gt; (all those vars) to those devices, but I get either nothing, or it hangs when I then try to &lt;code&gt;cat&lt;/code&gt; the device.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesyscontrol running listening on port 22000, how to communicate with it?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3896f1c14/?limit=25#41d6" rel="alternate"/><published>2022-01-10T23:55:06.033000Z</published><updated>2022-01-10T23:55:06.033000Z</updated><author><name>brunobronosky</name><uri>https://forge.codesys.com/u/brunobronosky/</uri></author><id>https://forge.codesys.coma609c8b85964d133ad0df378186610e6c64cef0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have purchased a piece of hardware that has a RS-485/ModBus interface in it which is used by codesys. I know nothing about codesys, I only heard of it when I ssh'd into the piece of hardware. I'm very limited in my ability to investigate the environment because it is running busybox Linux and the tools are scant.&lt;/p&gt;
&lt;p&gt;I know that a GUI the manufacturer provided is connecting on port 22000 and they are sending these commands on ModBus:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;activation="\x09\x10\x03\xE8\x00\x03\x06\x00\x00\x00\x00\x00\x00\x73\x30";&lt;/span&gt;
&lt;span class="err"&gt;status="\x09\x03\x07\xD0\x00\x01\x85\xCF";&lt;/span&gt;
&lt;span class="err"&gt;open="\x09\x10\x03\xE8\x00\x03\x06\x09\x00\x00\x00\xFF\xFF\x72\x19";&lt;/span&gt;
&lt;span class="err"&gt;close="\x09\x10\x03\xE8\x00\x03\x06\x09\x00\x00\xFF\xFF\xFF\x42\x29";&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But I don't know how to read or write to the ModBus using anything other than their GUI. Any hints would be appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>