<?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>RSCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91386/rscs</link><description>Hi, 
 I am new to DevZone as well as BLE development itself. I am currently working on a project and trying to undestand the IDE as well as the processes and workflow of the nRF52840 DK. 
 I was trying to make a counter application and have seen that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Oct 2022 07:57:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91386/rscs" /><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/392526?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 07:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e09c0d-32af-447c-9d5f-93c71ffb7b07</guid><dc:creator>heravinluca</dc:creator><description>&lt;p&gt;According to my knowledge, you cannot change the name of the service. Some services (ex: HEART_RATE_SERVICE)&amp;nbsp;are identified because they have Bluetooth SIG specified UUIDs.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://1v1battle.co"&gt;1v1 battle&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383830?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 09:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1384ff4-9941-4129-9fe1-58b06cccbaee</guid><dc:creator>Aimek</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I would look into NUS, thank you for the advice &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44c.svg" title="Ok hand"&gt;&amp;#x1f44c;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383826?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 08:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971de97d-521b-4693-96bd-2b9a64e20a71</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Aimek"]I am trying to implement the UART example with some sort of data transmition as a prototype, to just discover the limitations of the nRF52840 (regarding the connecton distance and data transfered[/quote]
&lt;p&gt;Is it so that with regard to Bluetooth you just want a data channel? If so, I suggest you take a look at the Nordic UART service (NUS). There are both central and peripheral examples for that in both the older &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;nRF5 SDK&lt;/a&gt; and the newer &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/libraries/bluetooth_services/services/nus.html"&gt;nRF Connect SDK&lt;/a&gt;. The service simply provides data channels to mimic UART over BLE. This can also work as an example of a simple custom service that you can adapt to your need, but many end products in fact ship with that more or less unmodified, perhaps only with another UUID.&lt;/p&gt;
[quote user="Aimek"]So I have just thought to use an already existing example, because it resembles my goal quite a lot.[/quote]
&lt;p&gt;It is not really the case. The RSCS example very specifically implements the RSCS profile, and it is not a good starting point for what you describe. This is where NUS comes in.&lt;/p&gt;
[quote user="Aimek"]I was trying to figure out how to combine the UART example with a simple nfc record URL (just for a test as well[/quote]
&lt;p&gt;As you have been using nRF5 SDK before in this thread, I will assume that you are still using that for now. In that case, the SoftDevice must be used, so I would take the BLE example as starting point, and migrate the NFC code into it. Remember to also update the sdk_config.h to enable NFC related libraries etc (you may need to copy-past parts from the NFC example here also).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383816?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 08:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b3eb4b-be91-4d8a-898a-961259ad658b</guid><dc:creator>Aimek</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;so I am trying to implement the UART example with some sort of data transmition as a prototype, to just discover the limitations of the nRF52840 (regarding the connecton distance and data transfered), but as I am relatively new to BLE&amp;nbsp;this is quite a challenge. I was trying to figure out how to combine the UART example with a simple nfc record URL (just for a test as well), but after checking al the libraries and directories and compiling it stopped advertising and nothing worked. So I have just thought to use an already existing example, because it resembles my goal quite a lot. For now I think I would be trying to make a study on how to make it possible to write something into console from the mobile device itself (like in uart example), so pretty much, how to add a writting into console function via mobile device into the rscs example.&lt;/p&gt;
&lt;p&gt;P.S if there is such example already existing would be great to hear about it because I could not find it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383808?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 08:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dd89892-219d-4f4e-b421-3d0a4ff83d90</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Aimek"]And now I have gotten the question: How in the RSCS example was the floating point number set?&amp;nbsp;[/quote]
&lt;p&gt;As you write, the stride length is a unsigned 16 bit integer, not a floating point. As with all other aspects of the RSCS, this is given by it&amp;#39;s specification and cannot be changed. So it is never a floating point. However, a user of the data (like an app) could very well present the data as floating point.&lt;/p&gt;
[quote user="Aimek"]I remember reading about something regarding timer APIs&amp;#39; but I have no idea how to implement it in practice and as I undestand this would solve my problem. Could you explain a bit what should I do?[/quote]
&lt;p&gt;If you just want a timer that counts seconds, and do not need finer granularity then that, I would simply use the application timer library and use a 1 second repeated timer. You can refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_timer.html"&gt;documentation&lt;/a&gt; and (slightly outdated) &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial"&gt;tutorial&lt;/a&gt; to see how it is used.&lt;/p&gt;
&lt;p&gt;I am a bit confused as it seems you are trying to mold the RSCS into something it is not. What is your end goal? Is it to use RSCS, or is it to make another (custom) service, and you just happened to use that as a starting point? If you can back-track a bit and describe what you want to accomplish, it might be that I could make some sensible suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383731?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 15:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e99e1aa6-27d4-4dfb-a5aa-3f39414be88c</guid><dc:creator>Aimek</dc:creator><description>&lt;p&gt;Thank you for the reply, I undestood the issue with the first part.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the second point, I have experimented a little bit more with the RSCS example and have discovered that if you change the stride length increment, it counts numbers with floating points (F.E. &amp;quot;123.45; 123.46; 123.47 ... and so on&amp;quot;) and your answer confirms my suspision that the stride length is set to uint16_t, which is coded in ble_rscs.c part of the rscs example.&amp;nbsp;&lt;br /&gt;And now I have gotten the question: How in the RSCS example was the floating point number set?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;// Instantaneous stride length field&lt;br /&gt; if (p_rscs-&amp;gt;feature &amp;amp; BLE_RSCS_FEATURE_INSTANT_STRIDE_LEN_BIT)&lt;br /&gt; {&lt;br /&gt; if (p_rsc_measurement-&amp;gt;is_inst_stride_len_present)&lt;br /&gt; {&lt;br /&gt; flags |= RSC_MEAS_FLAG_INSTANT_STRIDE_LEN_PRESENT;&lt;br /&gt; len += uint16_encode(p_rsc_measurement-&amp;gt;inst_stride_length,&lt;br /&gt; &amp;amp;p_encoded_buffer[len]);&amp;nbsp; &amp;nbsp; // &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&amp;lt;----------- is it because of this part???&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;P.S. i was trying to insert code, but i guess my connection timed out&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was trying to play around, the bits and definitions but I have either gotten an error or my increment would not work as it is supposed to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And as I have said in my request I am trying to make a counter like in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46104/microsecond-counter"&gt;this example&lt;/a&gt;&amp;nbsp;but simpler, which adds up 1 each second and shows up in the nrf connect for mobile like rscs example does it, but I did not undestand this part in the request&lt;/p&gt;
&lt;p&gt;/*&amp;nbsp;&lt;span&gt;I tried to use the timer API and increment the counter in the event handler call back */&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I remember reading about something regarding timer APIs&amp;#39; but I have no idea how to implement it in practice and as I undestand this would solve my problem. Could you explain a bit what should I do?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you in advance&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSCS</title><link>https://devzone.nordicsemi.com/thread/383671?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 12:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2565c771-9ffe-42fa-bf5f-df4676cf44ec</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. How do you change the names of services, that show up in nRF connect for mobile?[/quote]
&lt;p&gt;That is not possible. The services are known by their standardized UUID, and the name is not specified anywhere in the nRF. The nRF Connect application simply uses the official Bluetooth name for the specific service. For custom services (except those known to the app, like the Nordic UART Service), the just the UUID will be shown. If you want a specific name shown, you need to make your own mobile application that does it.&lt;/p&gt;
[quote user=""]2. In RSCS example you could see the variable - Candence, when I set it up to count from 0 to 256000 (for example) it counts up until 255, which I guess has to do something with the data length limit... So where do I change the size of data which could be transfered, so that it would count to a higher number[/quote]
&lt;p&gt;The cadence is a 8 bit number, so 255 is the maximum value. This follows from the service specification, which you can &lt;a href="https://www.bluetooth.com/specifications/specs/"&gt;download from the Bluetooth SIG&lt;/a&gt;. If you were to change this to a larger type, you would break the Bluetooth specification, and it would not be compatible with other devices that support running speed and cadence service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>