<?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>PWM for simple connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3493/pwm-for-simple-connection</link><description>Hello, I am looking for the way I can use PWM to control duty cycle of connection. I am really novice and my understanding about programming and Bluetooth protocol is really at beginners&amp;#39; level. 
 What I am trying to do at first is to have a Bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Aug 2014 06:38:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3493/pwm-for-simple-connection" /><item><title>RE: PWM for simple connection</title><link>https://devzone.nordicsemi.com/thread/12650?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 06:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b73f6ea5-a5dd-4d70-8af2-291995597f77</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Yes, you are correct, if you set advertising interval to 1000ms it will advertise once a second. The most general practice is that the nRF51 is the peripheral and performs the advertising. The phone is the central and will perform the scanning. IPhone has the ability to be the peripheral , but otherwise it is uncommon for phones/tablets to support the peripheral role. So, when the nRF51 wants to connect, it will advertise and if a phone is scanning at the same time, it will discover the advertising packet from the nRF51 and be able to connect. The peripheral can adjust the advertising interval, or periodically pause advertising, e.g. advertise for 1 minute, then sleep for 1 minute before advertising again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM for simple connection</title><link>https://devzone.nordicsemi.com/thread/12649?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2014 15:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89cbcf3-9ee3-4c22-83be-ef435769ab9f</guid><dc:creator>Ha</dc:creator><description>&lt;p&gt;Thank you so much Stefan! It might be a dump question, but let me double check with your answer. So, if I set advertising interval as 1000ms it will send out 1 time in a seconds and 10000ms for 1 time in 10 seconds?&lt;/p&gt;
&lt;p&gt;Also, is there a practical way to make nRF51822 device only wakes up when smartphone is advertising so that it can be in off mode all time except for actual connection to minimize power consumption?&lt;/p&gt;
&lt;p&gt;Thank you again for the answer. I will also look at those books!&lt;/p&gt;
&lt;p&gt;HaChung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM for simple connection</title><link>https://devzone.nordicsemi.com/thread/12648?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2014 11:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92074bd3-1031-4cf1-9e51-1656ab90fd1c</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Additionally, if you want to look at these books right away, then they are both available on www.safaribooksonline.com, where they offer 30 day trial period.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM for simple connection</title><link>https://devzone.nordicsemi.com/thread/12647?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2014 11:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6922a8fa-8e80-433d-b4ae-73f95b8d3ced</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To adjust how frequently advertising packets are transmitted by the device you adjust the advertising interval. If you set your advertising interval to e.g. 100ms then the device will send out advertising packets 10 times per second. In the BLE examples in the nRF51 SDK, you adjust the advertsing interval by modifying the APP_ADV_INTERVAL constant.&lt;/p&gt;
&lt;p&gt;A good starting point to BLE development on the nRF51822 device is to look at the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nAN-36/24020"&gt;nAN-36 application note&lt;/a&gt;. The associated code example is available for SDK 5.2.0 &lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-lbs"&gt;here&lt;/a&gt;. To get up to speed with BLE, there are two good books available on the subject, &lt;a href="http://www.amazon.com/Getting-Started-Bluetooth-Low-Energy/dp/1491949511/ref=sr_1_2?ie=UTF8&amp;amp;qid=1408102779&amp;amp;sr=8-2&amp;amp;keywords=BLE"&gt;this one&lt;/a&gt; and &lt;a href="http://www.amazon.com/Bluetooth-Low-Energy-Developers-Handbook/dp/013288836X/ref=sr_1_5?ie=UTF8&amp;amp;qid=1408102779&amp;amp;sr=8-5&amp;amp;keywords=BLE"&gt;this one&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>