<?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>Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11116/buzzer-beep-in-immediate-alert-service</link><description>Hi.
I am adding buzzer beeping in Immediate Alert Service of ble_app_proximity example. Event thought Immediate Alert signal is sent from nRF Master Control, there is no beeping. I would like to know the reason and how to solve it. 
 The code is as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Aug 2018 13:20:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11116/buzzer-beep-in-immediate-alert-service" /><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/146531?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 13:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13408bbc-74a5-421b-85bc-e7e02d2e2739</guid><dc:creator>Arjun_arj</dc:creator><description>&lt;p&gt;where BUZZER is defined??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41645?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2016 15:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35bcdcf5-dcc0-4d02-ab0d-7cd8fa6a063c</guid><dc:creator>karan</dc:creator><description>&lt;p&gt;Hello stefan, i am able to succed to make the proxmity app working functionality int he toolbox app by using pwm and could you please tell me is there any possibility to make the phone ring by pressing the button on the NRF51DK just like button press then phone will start ringing if it is please suggest me some reference or ideas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41644?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 08:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8613a16-83d0-405a-9156-a4621a7facbe</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@shin   Just to mention again, I am using the ble_app_proximity_with_pwm example for S110 8.0.0 softdevice and nRF51 SDK 10.0.0. Android 5.0, but that should not matter, as long as you have Android 4.3+&lt;/p&gt;
&lt;p&gt;First, go to Bluetooth settings, disable bluetooth and enable it again.&lt;/p&gt;
&lt;p&gt;Try first to use the nRFToolbox - proximity app. Connect to the device, wait for the device to pair to the phone and for the lock to open. LED_4 on the nRF51-DK board should give weak light, indicating NO ALERT (0x00). Click FIND ME button on the app in order to send HIGH ALERT (0x02) to the device, where LED_4 should fully light up.&lt;/p&gt;
&lt;p&gt;A few times it has been necessary for me to restart my Android phone to have the Bluetooth hardware up and running. Try that if the nRFToolbox and/or Master Control Panel are not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41643?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2016 02:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9470735f-6fb3-4eaa-b1d7-f52c0c82d62e</guid><dc:creator>shin</dc:creator><description>&lt;p&gt;Hi Stefan, thank you very much for your comment. Now I have the same problem that hark commented previously. I compiled your ble_app_proximity_with_pwm application with Keil and loaded it to PCA10028. Though I sent Immediate Alert Signal (0x01 or 0x02) from nRF Master Control on Android phone, the LED on PCA10028 wasn&amp;#39;t blink or on. Could you please let me know how to solve it? Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41640?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 15:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5959c03-934f-4fc5-8472-e6fd80d57ffd</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@shin. The link loss service should give you alert on the phone and on the device when the they are out of range of each other. When they are again in range are are able to connect, it is perhaps normal to disable the alert by calling the  alert_signal() function with value BLE_CHAR_ALERT_LEVEL_NO_ALERT (0x00). You can anyhow modify it anyway you like as it would best fit your scenario.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41642?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 14:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a7758e5-e38a-4760-979e-cbb5b23ea2f6</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@hark. Verified that the ble_app_proximity_with_pwm.zip that I attached before works on my iphone, both with lightblue and with nRFToolbox proximity app. However, it was necessary to go to bluetooth settings and select the &amp;quot;i&amp;quot; for the device and then select &amp;quot;forget device&amp;quot;. Then turn of Bluetooth and turn it on again. This procedure erases the bonding information on the iphone and will make the iphone create new gatt table for the proximity app. Otherwise, an old gatt table could be present on your iphone from another application that you connected with previously.&lt;/p&gt;
&lt;p&gt;On lightblue, just send 0x01 or 0x02 to the immediate alert service.
On nRFToolbox proximity app, connect and then press the &amp;quot;Find Me&amp;quot; button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41641?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 11:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a000202-0bb4-40cd-8d98-7beed0a2762e</guid><dc:creator>shin</dc:creator><description>&lt;p&gt;Hi. My previous comment is incorrect. The alert_signal() function is called by not only on_ias_evt() but also on_lls_evt(). On connecting, on_lls_evt() function calls alert_signal() function with BLE_CHAR_ALERT_LEVEL_NO_ALERT. Is this calling mandatory as LLS?
Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41639?ContentTypeID=1</link><pubDate>Sun, 10 Jan 2016 02:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06112a45-acbb-4d84-ade9-202dc31d6288</guid><dc:creator>hark</dc:creator><description>&lt;p&gt;Hi Stefan, I use your project and down into the my board, It can connect by Lightblue, But I  wrote 0x00, 0x01 or 0x02 to the Immediate Alert Service, the alert_signal() function never call? Why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41638?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2016 12:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87c0b59-ded4-47b3-9168-d60f39d62eef</guid><dc:creator>shin</dc:creator><description>&lt;p&gt;Hi Stefan,
Thank you very much for attaching your code. The code works well even on my custom board. That is, by sending Immediate Alert signal, the buzzer beeps. And I found why the buzzer didn&amp;#39;t beep.  Because pwm_stop() function in my code calls app_pwm_uninit() function. When the calling is commented out, my code also works well.
So, I have a new question: why pwm_stop() function is called even thought the function is called only by receiving BLE_CHAR_ALERT_LEVEL_NO_ALERT (0x00) in alert_signal() function? It looks like that initialization of Immediate Alert Service calls internally alert_signal() function with 0x00.
Thank you again. Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer beep in Immediate Alert Service</title><link>https://devzone.nordicsemi.com/thread/41637?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2016 16:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:098c8f68-394c-431e-83fc-286f1e46afcc</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi shin&lt;/p&gt;
&lt;p&gt;Try the following code where I have combined PWM with ble_app_proximity example. It is for nRF51 SDK 10.0.0 and PCA10028&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_proximity_5F00_with_5F00_pwm.zip"&gt;ble_app_proximity_with_pwm.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Connect to the device and write 0x00, 0x01 or 0x02 to the Immediate Alert Service in order to change the alert level and to change PWM duty cycle on LED_4&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 10.2.2016&lt;/strong&gt;
Below is a similar example, but with 4x PWM channels connected to 4 LEDs on the nRF51-DK board. All PWMs are generated with the app_pwm library which uses TIMER+PPI+GPIOTE peripherals. Use the same procedure as before to change the duty cycle of the PWMs.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_proximity_5F00_with_5F00_4xPWMs.zip"&gt;ble_app_proximity_with_4xPWMs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>