<?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>Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73441/receiving-only-one-char-through-uart-interrupt-in-serial_uartes</link><description>Hi there, 
 
 I&amp;#39;m using nrf52840 DK and Custom board, SDK 15.1.0, Segger Embedded Studio(SES v5.20) 
 my issue is when i receive data from uart interrupt based on serial uartes example, i can only receive one char at a time. that means if i store that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 May 2021 08:33:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73441/receiving-only-one-char-through-uart-interrupt-in-serial_uartes" /><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/308302?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 08:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6910f74-a777-4f2c-93fd-a29d0c601fa5</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I have checked with the code with Serial terminal software and its working fine for even multi byte reading.&lt;/p&gt;
&lt;p&gt;after that i have also checked this same peer and code by increasing the timeout_us=10000;&lt;/p&gt;
&lt;p&gt;then this code is also working with multibyte reading.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;finally i can say that its working fine as i intended to.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/308277?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 06:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f581aa-0780-40ff-8901-ef0b8184aedc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you tested your project again any other UART peer?&amp;nbsp; If not, I suggest you test that. I have used your project unedited and it works OK with the peer that is doing a multibyte transfer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could it be possible that your peer serial device is having spaces between each byte transfers? Do you have a logic analyzer or an oscilloscope to see the incoming transactions? Can you test your project against the peer I tested with (attached project in my previous reply tested on pca10040?&lt;/p&gt;
&lt;p&gt;The reason I am asking you to test this because I think your product/project handles reception correctly and it looks to me that the peer serial device does not transmit data continuously&amp;nbsp; If there are spaces between characters then the UART RX will get an interrupt for every single char it gets and the RX seems to be processed before the next char is received. Just my theory, since nothing else explains this behavior when i see different results with your unedited project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/308241?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 17:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b821aaf8-e4dd-4ce5-9d69-50928a5350cf</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have again tested my code with timeout_us=1000 as suggested by &amp;quot;Dmitry&amp;quot;, and still i can receive only one byte at a time.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m currently receiving this data from a energy meter using RS-485(UART) and i can see only 1st byte(one byte) when interrupts triggers.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620150505631v2.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620150431532v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;please guide us to come out of this issue&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306945?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 08:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca42b966-564a-4748-943a-7696f067f0cd</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;I could guess that rx timeout is too short:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    nrf_libuarte_async_config_t nrf_libuarte_async_config = {
            ...
            .timeout_us = 100,
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Maybe increasing it to 1000 will help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306934?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 08:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd78d7c-e61d-4718-ad1b-72abadf0a611</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I used a simple setup as below&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7571.Capture.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;PCA10056 DK is running your project and the PCA10040 (nrf52832) is running below project&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6457.libuarte.zip"&gt;devzone.nordicsemi.com/.../6457.libuarte.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, I do not know why you are receiving only one character when the single transaction tested on your project without any changes shows that the RX event has multiple chars in it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306933?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 08:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ff6b32-ed58-4d54-bafb-1881c1d7bd8d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Rajender,&lt;/p&gt;
&lt;p&gt;I have now tested your latest project where you are testing nrf_libuarte.&lt;/p&gt;
&lt;p&gt;I have connected the pins for the uarte0 to the peer board that is transmitting this below thing in a loopback&lt;/p&gt;
&lt;p&gt;&amp;quot;Testing this exampple with UART example started.\r\n Loopback:\r\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp; breakpoint where the uart_event_handle processes the data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/533x360/__key/communityserver-discussions-components-files/4/2100.pastedimage1619510913049v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Looking into the memory pointer of the received event, I can see that the length and data are correct and not a single char.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/598x271/__key/communityserver-discussions-components-files/4/1050.pastedimage1619510862374v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306918?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 07:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56566c97-b357-460d-be47-a15917d60339</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Rajender,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, i am trying to replicate the issue by setting up a peer uart. I am able to build and flash your code. Most likely i will have some more insights today&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306799?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 12:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f67d3a1-8394-443b-b892-24bc5022d55c</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;This replay is for formal remainder for the replay to solve our problem, we are awaiting for your replay.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;please give the replay asap, since we have to solve this problem asap, and our development on this project is on hold because of this issue,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so please help us&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306510?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 11:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b80e5e-16b5-407d-9e58-0cf79379e70e</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/libuarte-_2D00_-GSM_2800_sms_2900_.zip"&gt;devzone.nordicsemi.com/.../libuarte-_2D00_-GSM_2800_sms_2900_.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi susheel,&lt;/p&gt;
&lt;p&gt;Yes, i found out&amp;nbsp;&lt;span&gt;SERIAL_BUFF_TX_SIZE&amp;nbsp; in the man.c, but if i use the libuarte example then also im getting only one byte at a time, and i didn&amp;#39;t&amp;nbsp;find any buf size specified in the main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please suggest the changes in the libuartes example also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;strong&gt;PFA for the libuarte project file&amp;nbsp;&lt;/strong&gt;in this library also im getting only one byte at a time&lt;/p&gt;
&lt;p&gt;and this example is from &lt;strong&gt;SDKv17.0.2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Raj&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/306004?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 08:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa27dbc8-401e-4648-a71a-598886ad13e2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Looking at your code you have&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define SERIAL_BUFF_TX_SIZE 1&lt;br /&gt;#define SERIAL_BUFF_RX_SIZE 1&lt;/p&gt;
&lt;p&gt;You clearly have set the TX_SIZE/RX_SIZE to 1 limiting the amount of rx transaction to 1 char.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check to see if you can increase it to a bigger number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/305693?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 06:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e732bafe-a0f9-4d68-b424-adb220c26f61</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial_5F00_uartes-_2D00_-GSM_2800_sms_2900_.zip"&gt;devzone.nordicsemi.com/.../serial_5F00_uartes-_2D00_-GSM_2800_sms_2900_.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Thanks for the reply,&lt;/p&gt;
&lt;p&gt;Here i am attaching zip file of my project, i think you can work around with this,&lt;/p&gt;
&lt;p&gt;and my problem in this project are,1) taking bunch of data at single shot only, 2)Response of GSM module was not catching completely (ex: if it should say, &amp;quot;\r\nOK\r\nCONNECT\r\n&amp;quot;, Its saying &amp;quot;\r\nOK\r\nCONN&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please check on the issue for data loss alos&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/305431?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 08:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6468870a-b17d-4ed2-8881-6e09bd9de9fe</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Rajender.&lt;/p&gt;
&lt;p&gt;I have now looked into the nrf_serial implementation and it is possible that you are using UART configuration instead of UARTE.&amp;nbsp;Can you please attach your sdk_config.h (best would be to attach your project here) so that i can quickly review the peripheral configuration you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/305365?ContentTypeID=1</link><pubDate>Sat, 17 Apr 2021 09:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a91c957-54d8-4f29-ac29-addcea2271ab</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi susheel,&lt;/p&gt;
&lt;p&gt;I know i have given very late replay last time, im sory for that but i need to solve this issue ASAP, this issue effecting the complete project development so please replay soon.&lt;/p&gt;
&lt;p&gt;Please understand the urgency.....&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/305166?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 17:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b4f01d3-ab1f-41df-9c2d-c75d868d5f42</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;1) GSM Interrupt occurs when we request the data from gsm like sending any AT command to the GSM (most likely around 1 second)&lt;/p&gt;
&lt;p&gt;2) RX Characters on the RX line --&amp;gt; i dont have the Logic analyser(CRO) in with me but i can say minimum RX characters are &amp;quot;OK&amp;quot;-2 characters,&amp;nbsp; MAX characters are around 255 characters.&lt;/p&gt;
&lt;p&gt;3)If we talk about any interrupt priority, i have not changed any interrupt priority its default as the example only (Mostly Priority 7)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure my answers are correct as you expected but please help and correct me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Raj.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/303763?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 12:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49329e31-c589-40fb-aba4-38f7d0104939</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Rajender, I am back from vacation and will look into this tomorrow. I suspect that the issue is that&amp;nbsp;GSM_InterruptHandler might have higher priority than UART interrupt and is triggering faster than the byte received inthe UART RX FIFO. Or the uart traffic is slower than the frequency of the GSM interrupt frequency?&lt;/p&gt;
&lt;p&gt;if none is the case, then we need to debug as to why you are not able to receive multiple received bytes from FIFO.&lt;/p&gt;
&lt;p&gt;Before i can try to dig more into the&amp;nbsp;nrf_serial library, could you tell me&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) GSM interrupt frequency&lt;br /&gt;2) UART characters on the RX line in single transaction (logic analyzer snapshots would be helful)&lt;br /&gt;3) UART and GSM interrupt priority&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/302836?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 08:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c973b3a-d827-479c-aa39-8b66de2db1a5</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi susheel,&lt;/p&gt;
&lt;p&gt;ok we can wait till next weeek, but please make sure to complete ASAP&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving only one char through uart  interrupt in Serial_uartes</title><link>https://devzone.nordicsemi.com/thread/302773?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad4e3b01-b9e2-4aa6-b246-dd4c04cdc1cd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I could not take a look at this before the easter holiday, i will take a look at this early next week when i come back to office.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>