<?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>Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49996/bit-character-limit-on-central-and-peripheral-example</link><description>I am using 2 nrf52832 boards to talk to each other through UART. One is programmed to the central SDK example and other other is peripheral. In the code, i incorporated 2 different types of app_timers. One that is a continuous loop that sends data out</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2019 07:01:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49996/bit-character-limit-on-central-and-peripheral-example" /><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/200403?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 07:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8acdfcc2-67e7-4add-a0dd-1d712c3411f8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you check what the APP_UART_COMMUNICATION_ERROR returns? I suspect this is an OVERRUN error, which means that a&amp;nbsp;start bit is received while the previous data still lies in RXD. What&amp;#39;s recommended for higher baud rates is to implement the HW flow control as Håvard suggested early on. Is there a reason you can&amp;#39;t do that? You could also try implementing the workaround he links to as well.&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: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/200315?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 14:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2815f4-25c3-4108-bd5e-9abeba50e39a</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;so both boards are connected simply as serial ports. and i am talking to each other through tera term. and yes. i have tried all baudrates from 9600-921600 and nothing above 19200 works consistently without giving an error. so actually, i have commented out the error handler under&amp;nbsp;APP_UART_COMMUNICATION_ERROR so that it can try to send as much. but if this were to be on, all the baudrates above 19200 would simply error out every time i try to send more than 7 or so characters in a .txt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/200188?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 06:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c493db3-73a7-4f3c-9e48-6cf2621528cc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using a JLINK device (DK or similar) to communicate with the computer? In that case, the baud rate of 921 600 is not supported due to the Baudrate calculations not matching that value. In our nRF52 DK user guide, this is stated as well. Are you not able to get any of the baud rates above 19200 to work either?&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: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/200113?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 14:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:547976d3-dc2b-420e-9889-35f19a197610</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;all the baud rates i stated above, i would set using the sdk_config.h. so what could be the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199916?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 05:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8641a0-d96f-4a08-b0c7-0ac93c2bad76</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What have you set the baud rate as in your sdk_config.h file? By default, this should be set to 115200 in our examples, but you can modify this in your projects sdk_config.h file.&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: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199872?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 16:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b61e0bcb-e40b-440a-9f7b-a5d02a194310</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;&lt;span&gt;another update: so with the same code, i am running at different baudrates. at 921600 when i try to send a file .txt, only 6 characters pass through when the file could have 12+ characters. but when the baudrate is 9600 or even 19200, i can accurately send over 100+ characters without any error. the buffer sizes are 256 for tx and rx. so what could be causing the data to be incomplete at baud rates after 19200?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199842?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 14:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60033c7d-4861-476f-8005-2a44a36a626d</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt; the size is set to 256 on both, should i increase it or is that enough and something else is causing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199671?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 07:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1001d27-d849-4403-b3e3-44871b3dcf70</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What&amp;#39;s your UART_TX_BUF_SIZE and UART_RX_BUF_SIZE set as? You could try to increase these values to reserve more RAM for the buffer. You can change this to the number you require as long as you keep the RAM size in mind and the buffer size is a power of 2.&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: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199599?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 20:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585580f6-56d4-4ad7-8e71-7eec246c0d33</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;update: so i figured out why i cant use flow control. the program i am using doesn&amp;#39;t enable the cts and rts lines in the first place so me trying to enable them is why i was getting the error. is there any other way i could increase the how many characters or bits i can pass through the buffer at once?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199595?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 19:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f825764-f7bc-4dbe-974b-5e4506520186</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;so in the program i am using. i have to connect a board and then send data through. so with the &amp;#39;disabled&amp;#39; i would be able to connect the boards but when sending data, errors would cause failure. with &amp;#39;enabled&amp;#39; on the same code, i am not able to even connect my board. i dont exactly know why that is.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199397?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 03:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056a925d-ecbf-4242-bac8-183c92b9da7a</guid><dc:creator>H&amp;#229;vard</dc:creator><description>&lt;p&gt;In main.c I found the line&lt;/p&gt;
&lt;p&gt;.flow_control = APP_UART_FLOW_CONTROL_DISABLED,&lt;/p&gt;
&lt;p&gt;and changed it to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;.flow_control = APP_UART_FLOW_CONTROL_ENABLED,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199371?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 22:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6a24f7-4a1a-4be0-b896-e7857bb74687</guid><dc:creator>Aashay</dc:creator><description>&lt;p&gt;how did you enable flow control? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bit/Character limit on Central and Peripheral example</title><link>https://devzone.nordicsemi.com/thread/199364?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 19:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dfdfbd2-ebe0-47a7-abad-bedb26628633</guid><dc:creator>H&amp;#229;vard</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested with SDK 15.3&lt;/p&gt;
&lt;p&gt;ble_app_uart on one board, and ble_app_uart_c on the other. (I tested with nRF52840 and not nRF52832).&lt;/p&gt;
&lt;p&gt;I noticed that the peripheral app, ble_app_uart, asserted when I loaded large text files (but worked fine with 18 characters and a bit more).&lt;/p&gt;
&lt;p&gt;Digging down in the drivers I wonder if this ultimately comes from an overrun error (A start bit is received while the previous data still lies in RXD).&lt;/p&gt;
&lt;p&gt;Enabling flow control fixed the issue for me, and let me send larger files.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44453/svc-handler-missing-error-with-app-uart"&gt;Graceling explored a different workaround in this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>