<?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>Need guidance on code modifiaction based on SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33977/need-guidance-on-code-modifiaction-based-on-sdk</link><description>My customer is modifying the code based on the example provided in the SDK 15.0.0 to suit their project: 
 Project file from the SDK under \ nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses 
 
 The questions are: 
 1. how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 May 2018 13:34:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33977/need-guidance-on-code-modifiaction-based-on-sdk" /><item><title>RE: Need guidance on code modifiaction based on SDK</title><link>https://devzone.nordicsemi.com/thread/133674?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 13:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba97480-ca02-4327-93d2-8939ecda06da</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the&amp;nbsp;late response. I have been on holiday for a while.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Did you disable the UART to see if that helps with the 500 uA base current? You can also try to disable the logger module.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;How high are your peak currents? It doesn&amp;#39;t have to be the radio. I&amp;#39;m thinking that a 100 Ohm series resistor between your supply and the IC might cause significant voltage drops&amp;nbsp;that are possibly resetting your IC.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Is the interval exactly 250 ms?&lt;/li&gt;
&lt;li&gt;Can you zoom in on the peaks? It might give us a clue about what is causing them.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It is the central that ultimately decides on what connection interval to use, but it will always try to use an interval between the min and max value provided by the peripheral. You can try to set both min and max value to 1800 ms if you want to force the central to use that exact interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need guidance on code modifiaction based on SDK</title><link>https://devzone.nordicsemi.com/thread/132180?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 07:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd78ce90-7b1f-46ae-b298-f417060832a7</guid><dc:creator>ngml73</dc:creator><description>&lt;p&gt;This is the current consumption of our nRF52, 100 Ohm put between supply and the IC.&lt;br /&gt;No matter what interval we set, the peak current always happen at 250ms period. the standby/ sleep current&amp;nbsp;always about 500uA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;.&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/current-consumption.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Do you think&amp;nbsp;this is something related to Android Apps -&amp;gt; nRF Toolbox -&amp;gt; UART restrict the interval fix to 250ms?&lt;/p&gt;
&lt;p&gt;If we want to modify from the code of the Apps to longer interval. Can you advise us which file to modify.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Jimmy Ng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need guidance on code modifiaction based on SDK</title><link>https://devzone.nordicsemi.com/thread/131942?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 00:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9caefa-b6aa-47ee-8fc7-ab451be9363a</guid><dc:creator>ngml73</dc:creator><description>&lt;p&gt;Hi MartinBL,&lt;/p&gt;
&lt;p&gt;Thanks for your guidance. My customer has futher question on (2) as below. Any chance to reduce current further to 100uA ?&lt;/p&gt;
&lt;p&gt;min current that i get is 550uA. &lt;br /&gt;Adv interval=3500ms&lt;br /&gt;Min interval=20ms&lt;br /&gt;Max interval=1800ms&lt;br /&gt;If i increase the max interval to 2000ms, it does not function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need guidance on code modifiaction based on SDK</title><link>https://devzone.nordicsemi.com/thread/130587?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72f4d3bd-cf47-409f-a635-d3aca89f869d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;By default the UART TX and RX pins are defined in the file called sdk_config.h.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;The UART&amp;nbsp;can be used in legacy mode or in EasyDMA mode. In legacy mode the UART will have an internal 6 byte FIFO, which need to be off-loaded by an interrupt and the UART will require a HF clock while waiting for data in RX mode. The current consumption depends on supply voltage and if you have enabled DCDC, but typically less than 1mA. In EasyDMA mode the UART will require a direct access to the RAM&amp;nbsp;and the current consumption will typically be about 2mA, because more digital domains in the chip needs to be powered.&amp;nbsp;There is no real time requirements to off-load data by an interrupt, since data is written to RAM directly. &lt;br /&gt;&lt;br /&gt;By default the&amp;nbsp;ble_app_uart example uses EasyDMA and that is why they are measuring ~2.5 mA. You can turn off EasyDMA in the file called sdk_config.h, but the example is still leaving the HF clock running and this draws ~470 uA. The clock is necessary to receive data. To turn it off you need to disable the UART. &lt;br /&gt;&lt;br /&gt;To change advertising intervals you can modify&amp;nbsp;APP_ADV_INTERVAL in main.c. To change the connection intervals you can modify MIN_CONN_INTERVAL and&amp;nbsp;MAX_CONN_INTERVAL in main.c.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then I would start with the proximity example and import the files ble_nus.c and ble_nus.h. Then look at the ble_app_uart example to see how to implement it it in your code.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>