<?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[Serial input data filter]]></title><description><![CDATA[<p dir="auto">Is it possible to filter received serial data so we only see certan packets?  For example we only want to see data starting with a certain string.  What would be good is a filter string like this.</p>
<p dir="auto">02??0A</p>
<p dir="auto">When this filter is run it would only show packets that start with hex 02, any thing in the second byte, and 0A in the third byte..  I just purchased the TX/RX filter thinking it would do this.</p>
]]></description><link>http://64.23.185.212/forum/topic/39/serial-input-data-filter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 21:50:07 GMT</lastBuildDate><atom:link href="http://64.23.185.212/forum/topic/39.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Oct 2022 12:57:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Serial input data filter on Sun, 09 Oct 2022 07:27:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">The TX/RX filter allows you to exclude TX or RX streams from the log completely. Actually, individual layers are free; what you purchased was probably the "Layers" capability that allows you to attach any filter/conversion/analyzer layers to the log. The problem at hand can be solved with conversion layers, yes.</p>
<p dir="auto">However! Before I show how to exclude everything except for the packets starting with <code>02??0A</code> -- did you consider <em>highlighting</em>  your prefix with the regex colorizer instead of excluding everything else? It's a much simpler approach, and it might be just enough to make finding your packets in the log easy. The result will look something like this:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1665298928639-75d419da-a1f3-4a25-b7ff-07560522c617-image.png" alt="75d419da-a1f3-4a25-b7ff-07560522c617-image.png" class=" img-responsive img-markdown" width="1015" height="870" /></p>
<p dir="auto">For the screenshot above, I used <code>\x02.\x0a</code> as the regex.</p>
<p dir="auto">If you insist on excluding all the packets that do not start with <code>02 ?? 0A</code> -- this can be done with a conversion layer. Please provide some more information about the structure of packets in your protocol (the conversion layer would need to find the beginning and ending of each packets in the stream in order to decide whether to keep it or exclude it). Then I can help with writing a skeleton of the conversion layer that would do what you want.</p>
]]></description><link>http://64.23.185.212/forum/post/142</link><guid isPermaLink="true">http://64.23.185.212/forum/post/142</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Sun, 09 Oct 2022 07:27:02 GMT</pubDate></item></channel></rss>