<?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>UART API not catching RX data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121925/uart-api-not-catching-rx-data</link><description>Hello, 
 I am having some trouble with the UART API (Async and interrupt). I am connecting the development board (nrf9151 DK) to a 3rd party device (keypad / prox reader) and I cannot seem to &amp;quot;catch&amp;quot; the inbound data. To give a little more context on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Jul 2025 10:24:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121925/uart-api-not-catching-rx-data" /><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/541011?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2025 10:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09eac4c-f6b6-4c8c-87de-6533a8679cd3</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Good stuff!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/540933?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 20:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f468f94-5b8e-480b-a8dc-df78889a4eb8</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;Thank you Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got this figured out. I had the wrong understanding of why the RX pin was being held high.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/540833?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 10:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c8d9a2e-97a0-4365-8b97-3a968140a755</guid><dc:creator>Hakon</dc:creator><description>[quote user="jmerri95"]If there is a way to override the RX line to keep it low all the time, I can test it in the application.&amp;nbsp;[/quote]
&lt;p&gt;You are asking if there is a way to keep the RX line low all the time? Can&amp;#39;t you just set it to GND then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/540407?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 03:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2804835d-a43b-408c-a507-2d4b0a69267a</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wanted to see if you had any idea on this issue. If there is a way to override the RX line to keep it low all the time, I can test it in the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&amp;nbsp;&lt;br /&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/539594?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 16:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec36d80-b927-43ef-8424-6d96cc75645e</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wanted to update this ticket... data is now coming back over the RX line but there is still the issue with RX line being held high for too long. Do you have any suggestion on how to change that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the image below, I trigged the interrupt twice. The first time data does not come back. The second time it does. As you can see the RX line is held high for a set duration. I am trying to change that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Top line: TX&lt;/p&gt;
&lt;p&gt;Mid line: Interrupt pin&lt;/p&gt;
&lt;p&gt;Bottom line: RX&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1750176636921v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for data coming back,&amp;nbsp;The DT config I left out is below. Once I added this back in, the ASYNC API received data (on the second interrupt event)&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;chosen&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;zephyr,osdp-uart&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;uart2&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jack&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/539091?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 15:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a92902-48a6-400e-a0d7-1d819c65f65a</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;I took out the the fields you mentioned and am still seeing the same pattern. This image below is zoomed in on the left side of the total event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749743503028v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/539000?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 10:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673fb1be-6c47-4f2b-8d63-dcf02b2fd7f0</guid><dc:creator>Hakon</dc:creator><description>[quote user="jmerri95"]I am assuming I am either using the wrong driver or have&amp;nbsp;configured things wrong in the device tree.&amp;nbsp;[/quote]
&lt;p&gt;It looks fine, but you can try to remove&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;parity = &amp;quot;none&amp;quot;;
stop-bits = &amp;quot;1&amp;quot;;
data-bits = &amp;lt;8&amp;gt;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From the uart2 node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538871?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 15:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd99858-5a2e-460e-a331-3339e28d2974</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;&lt;span&gt;The line at the top is the TX data, the line in the middle is the interrupt pin (which is the trigger for this sequence), the bottom line is the RX data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The goal is very basic - I have data i need to send to a peripheral device. The interrupt pin starts the communication, TX data is sent from the dev kit, then RX data should be received from the peripheral device.. Sequence complete&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In the image below, I am trying to measure if data is coming back on the RX line, which it is (right side of the image). I do not get data back on the first&lt;span&gt;&amp;nbsp;&lt;/span&gt;interrupt&lt;span&gt;&amp;nbsp;&lt;/span&gt;trigger, only the second. The RX pin is being held high for too long and i don&amp;#39;t know how to change that.&amp;nbsp;The gap between the two points on the middle line is about 0.5 seconds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The RX line has this pattern for Polling, ASYNC, and Interrupt. I am assuming I am either using the wrong driver or have&amp;nbsp;configured things wrong in the device tree.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538845?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 13:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7441b3e-ace3-40dd-b35e-08d2b59fd3ed</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Did you change the order of the pins shown in the logic trace image? I don&amp;#39;t understand what you are measuring. Why is there activity on TX at the same time as RX pin? Are you sending and receiving data at the same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538519?ContentTypeID=1</link><pubDate>Sat, 07 Jun 2025 18:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3443a264-078e-4fba-944e-d302ddd5438e</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;Hi Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got some more data here..&lt;/p&gt;
&lt;p&gt;It looks as if I press the keypad twice in succession I can see the data come through on the logic analyzer (see the image below).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749319746475v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It looks like the RX line is being held high for too long, there for not registering the data. Is there any way to change this? Or remove it at all?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the OSDP portion, i spoke with the author of the OSDP subsys - He mentioned the file was out of date (older version of OSDP communication).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538203?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 12:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881ba218-027d-44e5-b796-52d764257b82</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Have you tried the SDK sample?&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v4.0.99-ncs1/samples/subsys/mgmt/osdp/control_panel"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/v4.0.99-ncs1/samples/subsys/mgmt/osdp/control_panel&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538076?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 13:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30dfe7da-a66e-48c9-9ff6-f943e5600864</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;I am not using my own driver, I am using the ASYNC API with the 2.9.1 toolchain / SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/538040?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 12:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38093904-8284-45e9-9149-03aa68fb9647</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Why is the RX and TX pin active at the same time. This does not look normal. Did you implement your own driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/537904?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 14:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0085ba9b-0514-4ba5-b920-c78ed6434e0c</guid><dc:creator>jmerri95</dc:creator><description>&lt;p&gt;Hi Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have run the logic analyzer (attached the photo below).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Line 0 is TX / Line 1 is RX / Line 2 is the initiation pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I change the timeout setting in the RX enable call, it still does not extend the window for RX data.. the logic pins look the same. My suspicion is that the external device does not have time to receive the data and send a response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any suggestions on extending the RX timeout, given the&amp;nbsp;&amp;nbsp;uart_rx_enable call is not extending it.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2100.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART API not catching RX data</title><link>https://devzone.nordicsemi.com/thread/537705?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 14:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2ac144-da70-49b4-abc2-f79ebe6e004e</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;do you have access to a logic analyzer? Then you can probe the RX pin to check what is going and why the RX interrupt is not triggered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>