<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf7002-DK - Proprietary protocol - UART RTU framing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123939/nrf7002-dk---proprietary-protocol---uart-rtu-framing</link><description>Hello, 
 I need to detect the end of messages coming through UART. nRF7002 asks requests and the device connected via UART responds. Baudrate is set to: 921600. 
 It is a proprietary protocol similar to MODBUS, where 2 bytes are be used to determine the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Aug 2025 21:58:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123939/nrf7002-dk---proprietary-protocol---uart-rtu-framing" /><item><title>RE: nrf7002-DK - Proprietary protocol - UART RTU framing</title><link>https://devzone.nordicsemi.com/thread/546983?ContentTypeID=1</link><pubDate>Wed, 27 Aug 2025 21:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdc509f9-cb09-418b-846e-eb3d951da4a9</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi iotdeveloper,&lt;/p&gt;
&lt;p&gt;The nRF7002 doesn&amp;#39;t provide UART capability, so you would be&amp;nbsp;actually using a different&amp;nbsp;Nordic SoC here. On the nRF7002-DK, that would be the nRF5340.&lt;/p&gt;
&lt;p&gt;There is a Modbus implementation in Zephyr that you can reference. It looks like their strategy for baud rate higher than 38400 is to simply delay for more than 3.5 character times. Refer:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/subsys/modbus/modbus_serial.c#L585-L590"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/subsys/modbus/modbus_serial.c#L585-L590&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;At the&amp;nbsp;baud rate as high as 921600, if you want&amp;nbsp;to optimize performance, you will have to use &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/dppi.html"&gt;DPPI&lt;/a&gt; to connect UARTE and &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/timer.html"&gt;TIMER&lt;/a&gt; tasks and events.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>