<?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>How to change baudrate of BLE central device?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33572/how-to-change-baudrate-of-ble-central-device</link><description>Hi, 
 I am using two devices in which one is running with ble_app_uart code which is ble_peripheral device and another is running with ble_app_uart_c code which is central device. Peripheral device can be configured to the different baud rates through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 May 2018 09:32:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33572/how-to-change-baudrate-of-ble-central-device" /><item><title>RE: How to change baudrate of BLE central device?</title><link>https://devzone.nordicsemi.com/thread/130492?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 09:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28150732-058d-4168-a19d-e6b4bde481f3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;sorry for late response, uart_init could fail, check if it has failed due to some reason. Please do not ignore the return value of the functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change baudrate of BLE central device?</title><link>https://devzone.nordicsemi.com/thread/129120?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 10:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c065869-0ff1-47cc-8b8b-694700f5a0dc</guid><dc:creator>Mani</dc:creator><description>&lt;p&gt;I am not doing anything on Central device, but on peripheral device I will be sending commands from mobile phone to change the baud rate.The command is ab below&lt;pre class="ui-code" data-mode="text"&gt;static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
    
    char data[10];
	  uint32_t i;
	
    for (i = 0; i &amp;lt; length; i++)
    {
        while(app_uart_put(p_data[i]) != NRF_SUCCESS);
			  data[i]=p_data[i];
    }
    while(app_uart_put(&amp;#39;\n&amp;#39;) != NRF_SUCCESS);
		// Added- For changing the baud rate dynamically
		if(strstr(data,&amp;quot;BAUD9600&amp;quot;)!=NULL)
		{
			app_uart_close();
			baud_rate= UART_BAUDRATE_BAUDRATE_Baud9600;
			uart_init();
		}
		if(strstr(data,&amp;quot;BAUD57600&amp;quot;)!=NULL)
		{
			app_uart_close();
			baud_rate= UART_BAUDRATE_BAUDRATE_Baud57600;
			uart_init();
		}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Same as this I wanted to do it in central device. Is there any possibility?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change baudrate of BLE central device?</title><link>https://devzone.nordicsemi.com/thread/129102?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 08:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1383723b-4a49-4a03-85f2-c8526d88647f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Are you not able to debug to find out the disconnect reason?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The two devices on each end can have their own baudrate for the UART communciation, Probably there is an APP assert when are you trying to change the baud rate. Some code snippets of how you are doing that would help to have more insights into your problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>