<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[ANSWERED] Retrieving Hex values from a TCP in]]></title><description><![CDATA[<p>Hello,</p>
<p>if I use TCP In Watcher -Text to retrieve a TCP message from a camera I cannot obtain the Hex data, but the Ascii.</p>
<p>I see in monitor the Hex string but I cannot have it as text in TCP Watcher.</p>
<p>I'm using parsing command msg:string={ 00-FF }</p>
<p>Any suggestion?</p>
<p>Thank you</p>
<p>Stefano</p>]]></description><link>https://community.troikatronix.com/topic/7096/answered-retrieving-hex-values-from-a-tcp-in</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 08:48:22 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/7096.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Jan 2021 01:41:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [ANSWERED] Retrieving Hex values from a TCP in on Wed, 20 Jan 2021 20:10:43 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/219">@madido</a></p><p>Please try running the <a href="/assets/uploads/files/1611173377864-parsebytestohex.izz">attached file</a>.</p><p>This file works for me.. and I don't see why the incoming data would be managed any differently in your case.<br /></p><p>let me know if this file works for you</p>]]></description><link>https://community.troikatronix.com/post/44364</link><guid isPermaLink="true">https://community.troikatronix.com/post/44364</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Wed, 20 Jan 2021 20:10:43 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Retrieving Hex values from a TCP in on Tue, 19 Jan 2021 08:33:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a></p><p>That syntax in TCP In Watcher (val1:int=1 bytes...) doesn't work for me the msg rcv doesn't react and all parameters remain 0...</p><p>Sorry, but I'm not very good with this...</p><p>Thank you</p><p>Stefano</p>]]></description><link>https://community.troikatronix.com/post/44326</link><guid isPermaLink="true">https://community.troikatronix.com/post/44326</guid><dc:creator><![CDATA[madido]]></dc:creator><pubDate>Tue, 19 Jan 2021 08:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Retrieving Hex values from a TCP in on Mon, 18 Jan 2021 20:13:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/219">@madido</a></p>
<p>This is a little tricky.. I am not well versed in the Serial parsing syntax.<br />The best I could come up with is:<br /></p>
<pre>
val1:int=1 bytes
val2:int=1 bytes
val3:int=1 bytes
val4:int=1 bytes
val5:int=1 bytes
val6:int=1 bytes
val7:int=1 bytes
val8:int=1 bytes</pre>
<p>This will give you a decimal output for the first 8 hex values.</p>
<p>Then you can feed the Decimal into a Javascript actor and convert it to HEX.<br /><br /></p>
<pre>
function main()
{
hex = arguments[0].toString(16);
if (hex.length &gt; 1) {
val = hex;
}else{
val = "0" + hex;
}
return [val,hex.length];
}
</pre>
<p>The output didn't include the leading zero by default, so I added the quick IF test to insert a '0'.</p>
<p><img src="/assets/uploads/files/1611000245203-image_2021-01-18_150403.png" style="cursor:pointer" /></p>]]></description><link>https://community.troikatronix.com/post/44320</link><guid isPermaLink="true">https://community.troikatronix.com/post/44320</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Mon, 18 Jan 2021 20:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Retrieving Hex values from a TCP in on Mon, 18 Jan 2021 17:20:07 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a></p><p>Hi,</p><p>here it is, I would like to parse the hex command (in this case 90 50 0000 00 0C FF), I will use this to obtain parameters from a PTZ camera. (Visca protocol)</p><p>Thank you</p><p>Stefano</p><img src="/assets/uploads/files/1610990384459-isadora-tcp-in.jpg" />]]></description><link>https://community.troikatronix.com/post/44317</link><guid isPermaLink="true">https://community.troikatronix.com/post/44317</guid><dc:creator><![CDATA[madido]]></dc:creator><pubDate>Mon, 18 Jan 2021 17:20:07 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Retrieving Hex values from a TCP in on Sun, 17 Jan 2021 22:59:29 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/219">@madido</a></p><p>Can you please stake a screen capture of your Montior window, showing the incoming values?</p>]]></description><link>https://community.troikatronix.com/post/44303</link><guid isPermaLink="true">https://community.troikatronix.com/post/44303</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Sun, 17 Jan 2021 22:59:29 GMT</pubDate></item></channel></rss>