<?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[TCP socket : parsing NMEA string]]></title><description><![CDATA[<p dir="auto">I'm trying out the server TCP example to connect to a MOXA Nport device which provides me a serial string (NMEA) over TCP.</p>
<p dir="auto">Is there an easy way to parse these bytes which I receive now in the buffer (ASCII).</p>
<p dir="auto">I did already a work around in Node-red which is working fine but I think it should be possible by using the REXLANG FB.</p>
<p dir="auto">Any tips and or examples?</p>
<p dir="auto">thx &amp; grtz,</p>
<p dir="auto">Kris</p>
]]></description><link>https://forum.rexygen.com/topic/149/tcp-socket-parsing-nmea-string</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 19:37:38 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/149.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2020 16:17:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TCP socket : parsing NMEA string on Wed, 14 Oct 2020 18:04:58 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the info .... I'll give it a try one of these days. I'll post the solution... at least if I am able to solve it..... <img src="https://forum.rexygen.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6d51e091ff9" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.rexygen.com/post/557</link><guid isPermaLink="true">https://forum.rexygen.com/post/557</guid><dc:creator><![CDATA[Scoobsalamander]]></dc:creator><pubDate>Wed, 14 Oct 2020 18:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to TCP socket : parsing NMEA string on Wed, 14 Oct 2020 11:14:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi Kris,</p>
<p dir="auto">there are no special function blocks to parse comma separated string. However I can imagine simple loop written in REXLANG FB which will do following:</p>
<ol>
<li>find position of "," - long strfind(str,substr)</li>
<li>create substring from beginning to the position of "," and assign it to the i-th output - string strsub(str,idx,len)</li>
<li>create substring of original string starting at position of "," - string strsub(str,idx,len)</li>
<li>repeat until you reach the end of the original string</li>
</ol>
<p dir="auto">If you know exact data frame you can also convert the values.</p>
<p dir="auto">If need any help, let me know.</p>
<p dir="auto">Kind regards,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/555</link><guid isPermaLink="true">https://forum.rexygen.com/post/555</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Wed, 14 Oct 2020 11:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to TCP socket : parsing NMEA string on Fri, 09 Oct 2020 12:43:55 GMT]]></title><description><![CDATA[<p dir="auto">FYI : this is the string on one of the outputs of the REXLANG FB now.</p>
<p dir="auto">$PRRFAZT,1,0,1.4,0,40.1,0,0,-0.6,100,27.1,2.5,1,0,0,0,0,65535,*</p>
<p dir="auto">This data I would like to parse inside the REXLANG FB and assign it to the outputs of the FB.</p>
]]></description><link>https://forum.rexygen.com/post/549</link><guid isPermaLink="true">https://forum.rexygen.com/post/549</guid><dc:creator><![CDATA[Scoobsalamander]]></dc:creator><pubDate>Fri, 09 Oct 2020 12:43:55 GMT</pubDate></item></channel></rss>