<?xml-stylesheet type="text/xsl" href="https://test-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/"><channel><title>Setting up the Timeslot API</title><link>/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><description>Setting up the Timeslot API
When you want to use the radio while still maintaining a BLE connection or have a task that you need to do uninterrupted by radio activity, you can set up a timeslot. The timeslot is a period of time from 100 &amp;micro;s to 1...</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><item><title>RE: Setting up the Timeslot API</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><pubDate>Tue, 19 Apr 2022 09:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe359fa3-d51b-4030-9f92-cd20de64eb89</guid><dc:creator>user91008</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Dear ALL&lt;/p&gt;
&lt;p&gt;If your timeslot does not work on the SDK after version 15.0, you can refer to the practices of Gurusanthosh and sudu, and also see this discussion:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_blank" href="https://devzone.nordicsemi.com/f/nordic-q-a/85393/timeslot-question"&gt;devzone.nordicsemi.com/.../timeslot-question&lt;/a&gt;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1174&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up the Timeslot API</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><pubDate>Fri, 18 Oct 2019 06:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe359fa3-d51b-4030-9f92-cd20de64eb89</guid><dc:creator>user71457</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi [mention:11123b66fdb84860bef6844b2ace5a43:e9ed411860ed4f2ba0265705b8793d05]&lt;/p&gt;
&lt;p&gt;I am using nRF52840 (s140 device) and I could setup the time slot API and observed that LED4 is blinking periodically with the following changes.&lt;/p&gt;
&lt;p&gt;1. In &amp;quot;timeslot.c&amp;quot;, replaced the header file &amp;quot;softdevice_handler.h&amp;quot; with &amp;quot;nrf_sdh.h&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. As sys_evt_dispatch is not there in main.c, as suggested by [mention:97b0ce36fe6e45ec9a618ed35cbc0f73:e9ed411860ed4f2ba0265705b8793d05], I added the following line to main.c&lt;/p&gt;
&lt;pre&gt;NRF_SDH_SOC_OBSERVER(m_time_slot_soc_observer, 0, time_slot_soc_evt_handler, NULL);&lt;/pre&gt;
&lt;p&gt;3. Seperate function is defined as suggested by [mention:97b0ce36fe6e45ec9a618ed35cbc0f73:e9ed411860ed4f2ba0265705b8793d05] to handle time_slot_soc_evt_handler&lt;/p&gt;
&lt;pre&gt;static void time_slot_soc_evt_handler(uint32_t evt_id, void * p_context)
{
    nrf_evt_signal_handler(evt_id);
}&lt;/pre&gt;
&lt;p&gt;4. To toggle LED4, I used &amp;quot;bsp_board_led_invert(3)&amp;quot;, instead of &amp;quot;nrf_gpio_pin_toggle(20)&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1174&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up the Timeslot API</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><pubDate>Fri, 05 Jul 2019 11:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe359fa3-d51b-4030-9f92-cd20de64eb89</guid><dc:creator>user72273</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi, same as [mention:cdb11e3fa9824ce59250f98e5dd5fa4d:e9ed411860ed4f2ba0265705b8793d05] I cannot find sys_evt_dispatch anywhere.&lt;br /&gt;Thanks&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1174&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up the Timeslot API</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><pubDate>Thu, 20 Jun 2019 08:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe359fa3-d51b-4030-9f92-cd20de64eb89</guid><dc:creator>user80830</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would like to use Timeslot API. Unfortunately this article is outdated.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1174&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up the Timeslot API</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api</link><pubDate>Wed, 12 Jun 2019 07:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe359fa3-d51b-4030-9f92-cd20de64eb89</guid><dc:creator>user80133</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using nrf52dk , sdk 14.2.0 and s130. My starting point is the beacon app example I want to use timeslot but I can not perform the change requested in the main file as I do not have this function nor any of the called what should I do ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:a75f3687-9ffc-4d89-93a7-72095ff36403:type=text&amp;text=static%20void%20sys_evt_dispatch%28uint32_t%20sys_evt%29%0D%0A%7B%0D%0A%20%20%20%20pstorage_sys_event_handler%28sys_evt%29%3B%0D%0A%20%20%20%20ble_advertising_on_sys_evt%28sys_evt%29%3B%0D%0A%7D]&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1174&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>