<?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>Use the Real-time clock on the nRF52840 dongle with pc_ble_driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55245/use-the-real-time-clock-on-the-nrf52840-dongle-with-pc_ble_driver</link><description>I am trying to use the real time clock on the nRF52840 dongle using the pc-ble-driver. However, my nrf.h file has nothing in it but the following: 
 #ifndef NRF_H__ #define NRF_H__ 
 /* Empty file for SDK compatibility */ 
 #endif // NRF_H__ 
 I assume</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2019 14:00:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55245/use-the-real-time-clock-on-the-nrf52840-dongle-with-pc_ble_driver" /><item><title>RE: Use the Real-time clock on the nRF52840 dongle with pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/223938?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 14:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:688f2501-c5c7-436e-ab70-28f2213d058a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, there is no counter API of that sort in the SoftDevice. The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s132%2FSDS%2Fs1xx%2Fsd_resource_reqs%2Fhw_block_interrupt_vector.html"&gt;SoftDevice uses TIMER0 and RTC0&lt;/a&gt; when enabled, but only internally. When developing for the nRF directly, part of the SoftDevice API gives access to resources shared between Application and SoftDevice through the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s132%2FSDS%2Fs1xx%2Fsoc_lib%2Fsoc_lib.html"&gt;System on Chip library&lt;/a&gt;, but as previously mentioned that library is not serialized.&lt;/p&gt;
&lt;p&gt;Again, the SoftDevice serialization is for providing the PC with radio connectivity. If you need to emulate firmware running on an nRF SoC, you must do that on the PC (and only call BLE-related SD API calls through pc-ble-driver.)&lt;/p&gt;
&lt;p&gt;Simulating a timestamp in the pc-ble-driver application should be no problem. Use the system clock from the PC for getting timestamps, and then store an offset from that timestamp if you want to emulate a different time setting.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use the Real-time clock on the nRF52840 dongle with pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/223879?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 12:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61eea735-13bd-4b02-b79c-f247adfe7d5e</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I realize the rtc is just a counter. But I need to handle a situation where I must set the time on the simulated peripheral. I do not want to set the Windows OS system time, so I was thinking of using the RTC as my counter. So i some cases, using nRF functions DO make sense. Is there a Softdevice counter/clock that I could use instead? I did not find one in the APIs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use the Real-time clock on the nRF52840 dongle with pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/223862?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 11:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa63cea6-af29-4707-a3f5-eb03c936988b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;pc-ble-driver is only serializing the BLE related parts of the SoftDevice API. This is by design. The purpose is to allow BLE connectivity for a PC application, providing the same radio API as on an nRF application.&lt;/p&gt;
&lt;p&gt;Accessing the peripherals on the nRF does not make sense for pc-ble-driver, even in the few cases where the SoftDevice provides peripheral access. For any action performed by the peripherals on the nRF (other than the radio peripheral) it would make more sense to use similar peripherals / functionality directly on the PC.&lt;/p&gt;
&lt;p&gt;Note also that the RTC peripheral on the nRF is not a &amp;quot;real time clock&amp;quot;. It is a &amp;quot;real time counter&amp;quot;, and is comparable to the timer peripheral (but RTC uses the low frequency clock.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>