<?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>Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55956/feedback-on-nrf_serial-api---process-for-detecting-transmission-complete</link><description>Hi, I&amp;#39;ve got an application where I need to send a message and then receive a response on a half duplex serial link. 
 I feel like this is a pretty common use case but the way I found of detecting transmission complete is kind of awkward. The serial library</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jan 2020 18:47:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55956/feedback-on-nrf_serial-api---process-for-detecting-transmission-complete" /><item><title>RE: Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/thread/228429?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 18:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f16ce9-f367-4d53-8a4b-c1760d71900f</guid><dc:creator>fkoran</dc:creator><description>&lt;p&gt;My current solution works. I have two goals in posting:&lt;/p&gt;
&lt;p&gt;1. Help other users who are using nrf_serial&lt;/p&gt;
&lt;p&gt;2. Provide feedback that nrf_serial&amp;nbsp;i&lt;span&gt;s missing a&amp;nbsp;basic feature and&amp;nbsp;suggest that this could be included in the documentation&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/thread/228428?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 18:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1aef6e-54fa-46c3-834f-0d2de87d6ca4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am not too familiar with the nrf_serial library and was not able to find a solution, does your current solution work ok, or should I move on with it?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/thread/227771?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 22:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dab63f2-0c4a-4a96-81e4-b963cdc3e660</guid><dc:creator>fkoran</dc:creator><description>&lt;p&gt;The key is that it&amp;#39;s a half duplex serial link, I need to switch the direction as soon as the transmission is complete&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/thread/227522?ContentTypeID=1</link><pubDate>Sat, 04 Jan 2020 15:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48ab4c2e-4daa-4b34-a23c-a44e033febac</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Couldn&amp;#39;t you simply add some logging after the call to&amp;nbsp;&lt;em&gt;nrf_serial_write()?&lt;/em&gt;&amp;nbsp;Then you&amp;nbsp;will know when the transmission is completed. If you provide a &lt;em&gt;size_t&lt;/em&gt; pointer in the fourth position of the function, you can check its content after function return to see how many bytes are transmitted. If all the bytes aren&amp;#39;t transmitted (if size - bytes-written &amp;gt; 0) you may have to increase the timeout.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feedback on nrf_serial API - process for detecting transmission complete</title><link>https://devzone.nordicsemi.com/thread/227043?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2019 09:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef09153e-cd10-4016-8577-24a057d5e45e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;A huge portion of the support team is currently on Christmas vacation and you may experience delayed answers. Most of the staff will be back 6 of January 2020 and you can&amp;nbsp;be sure to get an answer shortly after that.&lt;/p&gt;
&lt;p&gt;However, it may be&amp;nbsp;worth looking&amp;nbsp;into the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fhardware_driver_uart.html&amp;amp;cp=6_1_2_0_19"&gt;UART driver&lt;/a&gt;, due to the reasons mentioned in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55669/serial-library-und"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:103px;top:20px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>