<?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>Connection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23819/connection-problem</link><description>Currently using nordic52832 to develop products that use batteries. 
 We found that the problem is that when the BLE module is connected successfully, it takes 200ms to send the message. 
 How can I improve this problem? 
 We need a very short grip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2017 13:09:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23819/connection-problem" /><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93708?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 13:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbdf7b45-61b5-4b05-aadf-10696a3aa27b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m also confused. You need to find a better way to describe what you are asking about. It&amp;#39;s UART signal or it&amp;#39;s BLE packet. Please don&amp;#39;t mix them up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93705?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 18:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbbdfccd-a91d-47c5-8eab-74b459f67fd9</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;...(2/2) if your problem is really between  BLE_GAP_EVT_CONNECTED event and some subsequent application data exchange over GATT then you probably have too long connection interval and/or do unnecessary long GATT Service Discovery from GATT Client side (I suppose that runs on GAP Central side). Doing simple BLE radio trace would tell you all the details and you would have clarity in few minutes. Just for your information you don&amp;#39;t need to settle down with ~250ms for GATT Service discovery, if you use short interval (which is recommended if you want to save power and both sides support it!) and do it properly (= look only for service(es) you need instead of full enumeration) then you can easily discover your custom service + characteristic + enable notifications through CCCD in less then 70ms (with 7.5ms connection interval), maybe even less.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93706?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 18:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f0af4a4-e19d-4b35-8d03-c6f0f2ffdb12</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;No no no, we don&amp;#39;t understand each other;) These levels on oscilloscope are some wires so the question is how you generate that signal. Is it debug UART or just some GPIO high/low signalling? How you detect radio events and transfer it to these levels (interrupt, PPI, some mixed method e.g. with scheduler...)? That can make single digit up to several dozens of millisecond itself as systematic error. Yes, it doesn&amp;#39;t explain full 200-300 delay but it&amp;#39;s important to understand what are we looking at. Now if really GAP Central devices starts with Power On Reset event then obviously it needs to boot (so start-up itself and enabling of all modules including Soft Device costs you some time) and HF + LF clock start can take 200~300ms on nRF52 (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18_3_3#unique_450885145"&gt;read the spec!&lt;/a&gt;) but... (1/2)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93707?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 16:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae47812-281c-4c60-bb65-8d2080e2cf88</guid><dc:creator>Ken</dc:creator><description>&lt;p&gt;Hi endnode &amp;amp; Hung Bui,
thanks for the reply&lt;/p&gt;
&lt;p&gt;1.The yellow line is the central UART receiving the TX signal from the external MCU.
2.The blue line is Central from the peripheral BLE radio to receive the UART TX signal.
3. Pink is the peripheral UART receives the TX signal from the external MCU.&lt;/p&gt;
&lt;p&gt;I would like to use the central and peripheral BLE modules as UART to BLE radio bridges,
Yes, as described by endnode, I hope that GAP Central will connect and communicate with peripherals immediately after booting and starting scanning. My goal is to turn Central power on -&amp;gt; to exchange messages -&amp;gt; to turn off Central power.&lt;/p&gt;
&lt;p&gt;The current difficulty is that the central power supply can really send the message too long, resulting in power consumption too high, thanks to the flood reminders, I think 272ms should be found when the service, there is no way to shorten this time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93702?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 14:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef98d8c7-a348-41ec-ac3e-645d06bed0dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I have same question as endnode, what trigger the toggle on the 3 lines ?&lt;/p&gt;
&lt;p&gt;I suspect the first 272ms was the time it take to do service discovery. It would be clearer if you can provide &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;a sniffer trace&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93703?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfac672-66ef-4253-88d6-7c169758e9e5</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;To be sure what exactly are these 3 colorful lines? How &amp;quot;close&amp;quot; are you to actual processing code on nRF MCU? Also what is your exact set-up and sequence? Is GAP Peripheral running indefinitely and only GAP Central is power on at the beginning of test? And you expect that GAP Central will connect and communicate with Peripheral right after it boots and starts scanning? Also what exactly is happening on BLE radio? That can show you which device is the bottle neck and in which phase...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93704?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:072c54aa-6d74-40a6-ae44-b4c3c89cd619</guid><dc:creator>Ken</dc:creator><description>&lt;p&gt;thanks, your response.
You can refer as below link for the measurement of the waveform,.
&lt;a href="https://drive.google.com/open?id=0Bz_rF9btR5X4RkVxckZUcmlXVDQ"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93700?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 08:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16e4d8c-e80d-41c4-b54c-6cc0f28a787f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;OK so this makes it even more confusing;) What is exact configuration of your test system and sequence of steps? Can you take RF trace by some BLE sniffer? Then you can clearly say what part is spent before even GAP Peripheral starts advertising, then how long it takes to GAP Central to pick-up the advertisement and issue CONNECT_REQ and finally how long the LL and GATT procedures take before any meaningful exchange happen on APP layer. Without this you can hardly debug and optimize your set-up. There can be many easy/stupid mistakes or misunderstandings like nRF5x starting with LF crystal takes 200-400ms just there so you need o use internal RC or synth from HF if you require start in &amp;lt;100ms range etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93701?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 01:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302b67e9-c9f7-467b-953e-acec548d04f6</guid><dc:creator>Ken</dc:creator><description>&lt;p&gt;Sorry, I did not describe it clearly, I was not talking about the connection time,
We use two nrf52832 modules and use the example ble_central \ ble_app_uart_c
With ble_peripheral \ ble_app_uart_c,
When the two ends ble module connection is successful,
Cental ble module needs 200ms to receive RX message, we use the oscilloscope to measure the signal.&lt;/p&gt;
&lt;p&gt;Do we want to have a function that can send messages quickly after power-up, can we recommend features? (Mesh..or etc ...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem</title><link>https://devzone.nordicsemi.com/thread/93699?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 21:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5fa8461-b371-4404-a703-177ecdda3387</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Do you use GATT Client/Server architecture? If so then you are even lucky if you see GATT Server Discovery only 200ms long, usual phones will take 600-1500ms even for the minimal GATT Server configuration. If you have control over both sides of the link (e.g. two nRF5x devices running against each other) then you could debug and optimize (with minimal 7.5ms connection interval and GATT Service Discovery you should still be able to do it within 100ms, probably less). In every case such problems should be always debugged with RF analyzer (sniffer), that will tell you immediately where you are loosing 200ms (it can be on-air procedures and then you can see which side does i and maybe change it or at least understand why, it can be even invisible on radio which signals that one of the sides hangs in higher layers and should be debugged...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>