<?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>nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22566/nrf51822-with-tv-ir---how-to-hold-block-ble-radio-softdevice-interrupting</link><description>we builded &amp;quot; BLE to IR &amp;quot; using nRF51822 , it was working fine with out the softdevice.
problem start when we integrated with the SoftDevice . 
 1.the problem that we need that for 40 - 60 ms the softdevice / radio will not make any use or interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2017 12:57:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22566/nrf51822-with-tv-ir---how-to-hold-block-ble-radio-softdevice-interrupting" /><item><title>RE: nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/thread/88785?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 12:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440d4d90-eb26-4c70-8a53-6d1450d89b5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I agree in general with what RK posted here.&lt;/p&gt;
&lt;p&gt;Just want to add that it shouldn&amp;#39;t be too hard to get a 40-60ms timeslot within a reasonable amount of time. I don&amp;#39;t have any calculation, but I would assume it should be less than 100ms delay. And for this application, an IR remote for TV, a 100ms lag is hard to notice. The softdevice scheduler should be able to skip several BLE events to give enough time for the timeslot, as long as the connection won&amp;#39;t be terminated because of the skipping.&lt;/p&gt;
&lt;p&gt;Also if we can select not too short connection interval, says 100ms interval, then it&amp;#39;s pretty easy to fit a 40-60ms timeslot in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/thread/88783?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 10:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dcc7a36-573f-4ad9-8c5d-508faa5a2ff0</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;@RK  (LOL)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/thread/88782?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 07:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f08d6431-2110-41bc-812b-ca64c51c9d20</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;mostly written by me it seems!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/thread/88781?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 07:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f01412f-fc3c-48f5-9d83-fa5093c21cfd</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;&lt;a href="https://www.google.com.au/?gws_rd=ssl#q=nrf52+softdevice+interrupt+disable"&gt;www.google.com.au/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finds plenty of answers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 with TV-IR - how to hold block ble radio Softdevice interrupting</title><link>https://devzone.nordicsemi.com/thread/88784?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 07:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab9125c2-7817-44c1-adb0-e82af5b6f2bb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You really can&amp;#39;t. Are you generating the IR pulse using timers and interrupts, because you really cannot do accurate timing while the softdevice is running. This is discussed her many times a week. The softdevice has the highest priority interrupt and it needs it because BLE has very critical timing requirements.&lt;/p&gt;
&lt;p&gt;You can try using the timeslot API. This will give you a window of up to 100ms during which time you can do whatever you like. However, and this is a BIG however, the softdevice gets to tell you when you can have the slot, you may wait for a long time before it&amp;#39;s able to schedule it. If you are in connection and the connection interval is low enough, you may not even be able to get a slot of that length, at all. I&amp;#39;m sure you&amp;#39;re not able to wait a random time before delivering your IR command, so the timeslot API, especially for slots of that long length, probably won&amp;#39;t help you.&lt;/p&gt;
&lt;p&gt;So no what you need to do is find a way to make your IR pulse train without the MCU&amp;#39;s involvement. Using TIMERs and IRQs is not going to work. You need to use PPI or other hardware to generate it. How complicated is the pulse train? If it&amp;#39;s simple the nrf51 series has a PWM driver you can try, if it&amp;#39;s complicated then that chip may not be good enough for you.&lt;/p&gt;
&lt;p&gt;You can also just interface the thing to an IR pulse generator where you send commands out over another transport and the generator generates them for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>