<?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>How to output the &amp;quot;instantaneous cadence&amp;quot; data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80946/how-to-output-the-instantaneous-cadence-data-from-cycling-speed-and-cadence-sensor-cscs-example-through-nrf52-dk</link><description>Hi, all, 
 
 At first, I have to say I am a newbie in programming for BLE. ^^&amp;quot; 
 
 I trying to development a cycling power meter, so I want to modify this CSCS example to CPS, and it already roughly worked. 
 I can connect and output instantaneous power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Oct 2021 14:40:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80946/how-to-output-the-instantaneous-cadence-data-from-cycling-speed-and-cadence-sensor-cscs-example-through-nrf52-dk" /><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/336026?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 14:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dc589b1-7fa9-40d9-947a-dabdf11db086</guid><dc:creator>Sigurd</dc:creator><description>[quote user="IDin"]&lt;p&gt;Can you tell me more details about &lt;span&gt;enable notification for this characteristic?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I think you can use the function&amp;nbsp;&lt;span&gt;setCharacteristic&lt;/span&gt;&lt;span&gt;Notification() for that.&amp;nbsp;&lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt"&gt;https://developer.android.com/reference/android/bluetooth/BluetoothGatt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have several android libraries and example codes in different repos that you might find useful here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor?q=android&amp;amp;type=&amp;amp;language=&amp;amp;sort="&gt;https://github.com/NordicSemiconductor?q=android&amp;amp;type=&amp;amp;language=&amp;amp;sort=&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, looking at the&amp;nbsp;Cycling Speed and Cadence Profile 1.0,&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/specs/cycling-speed-and-cadence-profile-1-0/"&gt;https://www.bluetooth.com/specifications/specs/cycling-speed-and-cadence-profile-1-0/&lt;/a&gt;&amp;nbsp;, it looks like the calculation should be done at the collector side(e.g. phone), and not at the sensor side:&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1635259199414v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/335533?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 15:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6d60e5-2df4-472c-8d07-d8b77ca2d027</guid><dc:creator>IDin</dc:creator><description>&lt;p&gt;I need make my nRF52-DK TX device always keep sending&lt;span&gt;&amp;nbsp;the data, when I connected it to other RX device&amp;nbsp;over BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, back to my question,&lt;/p&gt;
&lt;p&gt;I already calculated a numeral data, it named &amp;quot;instantaneous_cadence&amp;quot; in CSCS example,but I just can advertising the service&amp;nbsp;&lt;span&gt;&amp;quot;BLE_UUID_CYCLING_SPEED_AND_CADENCE&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x1816&lt;/span&gt;&lt;span&gt;&amp;quot; supported feature data, like Cumulative Wheel Revolutions, Last Wheel Event Time,&amp;nbsp;&lt;/span&gt;&lt;span&gt;Cumulative Crank Revolutions and&amp;nbsp;&lt;/span&gt;&lt;span&gt;Last Crank Event Time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;but I don&amp;#39;t know how to advertising others data (user defined data, like I created &amp;quot;&lt;span&gt;instantaneous_cadence&amp;quot; or something others&lt;/span&gt;)&amp;nbsp; in this CSCS example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/335529?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 14:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b69946-2d64-4897-be50-6f8c46ec2d04</guid><dc:creator>IDin</dc:creator><description>&lt;p&gt;Hi, Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think that just what I need, but I don&amp;#39;t know how to do it.&lt;/p&gt;
&lt;p&gt;Can you tell me more details about &lt;span&gt;enable notification for this characteristic?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or can I get some examples for this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/335514?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 14:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aade7bc5-d380-4071-a944-13331768ce3e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;From your android app, you need to enable notification for this characteristic, and then the nRF52 will start sending the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/335510?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 13:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d5f9f8-b1e3-443b-9152-dc79d1560cf2</guid><dc:creator>IDin</dc:creator><description>&lt;p&gt;Hi, Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I means I need to send the&lt;span&gt;&amp;nbsp;instantaneous cadence data (RPM) just like I&amp;nbsp;set up a cycling cadence sensor on bike and connect it to my android apps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Makes app (Wahoo, Rouvy or others...) can receiving the RPM data correctly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;TT_Power is what I named to my nRF52-DK TX device, you can see it when I connected to this app (Rouvy).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;App can receiving the instantaneous power data in 60W, but no instantaneous cadence data (that what I need).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " height="186" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Rouvy1.jpg" width="292" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output the "instantaneous cadence" data from Cycling Speed and Cadence sensor (CSCS) example through nRF52-DK ?</title><link>https://devzone.nordicsemi.com/thread/335471?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 11:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e195e70d-97af-4090-9111-b211d33cca57</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]How make it can output&amp;nbsp;instantaneous cadence data to my device?[/quote]
&lt;p&gt;What do you mean by output? You want to print the value over UART ? or send the data more frequently over BLE ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>