<?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>peripheral uart unstable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93733/peripheral-uart-unstable</link><description>Hi, 
 i am running the peripheral uart exsample on a thingy52. using a usb/ttl converter on my PC and conect it to P0.2 and P0.3. 
 then using Terminal program on pc and nrf tool on my mobile phone. It works fine for a time, it sends a msg over nus after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Dec 2022 06:58:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93733/peripheral-uart-unstable" /><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/401412?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 06:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:861ac248-197b-4d07-abae-3804b19c2d77</guid><dc:creator>runved</dc:creator><description>&lt;p&gt;solved in:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87359/peripheral-uart-rx-timeout-and-notification-size/366255?focus=true"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/87359/peripheral-uart-rx-timeout-and-notification-size/366255?focus=true&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/396205?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 12:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e25f0d24-b984-422b-99a0-c28737172da5</guid><dc:creator>Edvin</dc:creator><description>[quote user="runved"]I am able to get data from nrf91 and i can scope the data on SB8. but none from nrf52 SB7.[/quote]
&lt;p&gt;I am not familiar with the Thingy52 on that level. Is Solder Bridge 7 routed to the P0.21 on the nRF52832?&lt;/p&gt;
[quote user="Edvin Holmseth"]&lt;p&gt;Does the UART_RX_RDY case occur when it doesn&amp;#39;t trigger on \r or \n? Is &amp;quot;disable_req&amp;quot; for some reason set to true?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Did you try to debug this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395771?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 11:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcfbe5ca-e20f-4982-bc9c-a414fa0c27b6</guid><dc:creator>runved</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, my &lt;span&gt;UART_RX_RDY&amp;nbsp;is excactly like yours.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;before i build the the application i selected the &amp;quot;Enable UART async adapter&amp;quot; under &amp;quot;nordic UART BLE GATT service sample&amp;quot; in the Kconfig. at that seems to make it moore stabile,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_ASYNC_API&lt;/span&gt;&lt;span&gt;=y is in the prj.conf so why?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Anyway this is only my first step.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use this Peripheral_uart eksample on THINGY:52 and Central_uart on a Thingy:91_nrf52 and a uart connection to Thingy:91_nrf91.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my proble is now on the Thingy:91 and the uart connection between nrf52 and nrf91 internaly:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem is that the nrf52 does not send anything out on the pin, i got UART_TX_DONE from my debug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am able to get data from nrf91 and i can scope the data on SB8. but none from nrf52 SB7.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is there any pin conflict that i am missing?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf52840dk_nrf52840.overlay&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;amp;uart1 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	/delete-property/ hw-flow-control;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;pinctrl {

	uart1_default: uart1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 21)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
					
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 21)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
			low-power-enable;
		};
	};

};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thingy91_nrf9160_ns.overlay&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	/delete-property/ hw-flow-control;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;pinctrl {

    uart1_default: uart1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 22)&amp;gt;;		
		};
		group2 {
			psels =&amp;lt;NRF_PSEL(UART_RX, 0, 21)&amp;gt;;
			//bias-pull-up;
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 22)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 0, 21)&amp;gt;;
			low-power-enable;
		};
	}; 
};
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tryed all MCU_IF pins with same result&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395560?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51251f65-5c35-48a0-b283-43516a4c3ce1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does this switch case look like this for UART_RX_RDY in your uart_cb() function?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	case UART_RX_RDY:
		LOG_DBG(&amp;quot;UART_RX_RDY&amp;quot;);
		buf = CONTAINER_OF(evt-&amp;gt;data.rx.buf, struct uart_data_t, data);
		buf-&amp;gt;len += evt-&amp;gt;data.rx.len;

		if (disable_req) {
			return;
		}

		if ((evt-&amp;gt;data.rx.buf[buf-&amp;gt;len - 1] == &amp;#39;\n&amp;#39;) ||
		    (evt-&amp;gt;data.rx.buf[buf-&amp;gt;len - 1] == &amp;#39;\r&amp;#39;)) {
			disable_req = true;
			uart_rx_disable(uart);
		}

		break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Does the UART_RX_RDY case occur when it doesn&amp;#39;t trigger on \r or \n? Is &amp;quot;disable_req&amp;quot; for some reason set to true?&lt;/p&gt;
&lt;p&gt;Does the log on the Thingy say anything?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395349?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 14:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8843762a-068e-4e96-b509-86fd8cd76c1e</guid><dc:creator>runved</dc:creator><description>&lt;p&gt;Sorry, short happiness, this version fails also after a while.&lt;/p&gt;
&lt;p&gt;i have tried to debug with no sucsess, I send &amp;quot;Test\r\n&amp;quot; many times and when buffer is full the hole buffer is sendt &amp;quot;&lt;span&gt;Test\r\n&lt;/span&gt;&lt;span&gt;Test\r\n&lt;/span&gt;&lt;span&gt;Test\r\n&lt;/span&gt;&lt;span&gt;Test\r\n&lt;/span&gt;&lt;span&gt;Test\r\n&lt;/span&gt;&lt;span&gt;Test\r\n&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;br&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rune&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395314?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 12:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b54197-ffff-4893-afa6-8c9fee03c9a9</guid><dc:creator>runved</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;reconnect or power toggle.&lt;/p&gt;
&lt;p&gt;i have tested it in&amp;nbsp;&lt;span&gt;&amp;nbsp;sdk2.0.2. and&amp;nbsp;&lt;/span&gt;It seam to work fine&amp;nbsp;in this version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395290?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 11:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef1ee5d-0f89-4275-ad85-845a058863c1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If I understand you correctly, you are saying that after you disconnect and reconnect the bluetooth connection, the data will no longer be sent on cr,lf, but only when the buffer is full? Have you tried to debug to see why it doesn&amp;#39;t trigger when the incoming byte is cr,lf?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart unstable</title><link>https://devzone.nordicsemi.com/thread/395050?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 09:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2462fee0-d7d5-45a5-b5e8-74aaa0fd82a9</guid><dc:creator>runved</dc:creator><description>&lt;p&gt;Comment after moore testing: after repeated power on it start up in 2 different modes(60/40), one all ok, and one where&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;UART_RX_RDY&lt;/span&gt;&lt;span&gt;: does not trigger when inncomming data from uart.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>