<?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>Adding timestamps to ble tms service&amp;#39;s raw characteristic.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37444/adding-timestamps-to-ble-tms-service-s-raw-characteristic</link><description>Hello, 
 I&amp;#39;m implementing some ble service that send node id, timestamps, accel values, gyro values. 
 So I&amp;#39;m trying to modify ble tms service at Nordic-Thingy53-FW . 
 I want to add node id and timestamp at raw characteristic, so gatt client can request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jul 2019 08:41:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37444/adding-timestamps-to-ble-tms-service-s-raw-characteristic" /><item><title>RE: Adding timestamps to ble tms service's raw characteristic.</title><link>https://devzone.nordicsemi.com/thread/199691?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 08:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12291210-3f73-4ac8-93f7-c19f293d8988</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/soyoung"&gt;soyoung&lt;/a&gt;Could you please comment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding timestamps to ble tms service's raw characteristic.</title><link>https://devzone.nordicsemi.com/thread/199622?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2019 16:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9928646b-c443-47e3-a43d-331dcb3fae8b</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;How did you manage to send timestamps in the end? I am having the same problem and would really appreciate to know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding timestamps to ble tms service's raw characteristic.</title><link>https://devzone.nordicsemi.com/thread/145608?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 07:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7bbb94b-5d56-42a4-983a-e8804b73482d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Very sorry for the delayed response. It seems correct to use &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/firmware_architecture.html#arch_motion"&gt;motion_freq_hz&lt;/a&gt; &amp;amp; changing the value to 100 Hz to get a reading every 10 ms. You should not have to change the DEFAULT_MPU_HZ value. How are you testing this? Could you try connecting to the motion service on nrf connect for mobile &amp;amp; see if you notice a difference when motion_freq_hz is 5 Hz vs 200 Hz? I am not sure you will notice this, but it could be worth a shot.&lt;/p&gt;
&lt;p&gt;You will probably need to disconnect &amp;amp; connect to the Thingy device again to see the update.&lt;/p&gt;
&lt;p&gt;It is a good idea to keep the frequency above 50 Hz, as the integration of the motion data will not be as accurate if the frequency is lower.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding timestamps to ble tms service's raw characteristic.</title><link>https://devzone.nordicsemi.com/thread/144594?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 16:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f562d8d6-6a89-4545-82ce-c8a4c791773f</guid><dc:creator>soyoung</dc:creator><description>&lt;p&gt;Um.. I found another way to send timestamps.&lt;/p&gt;
&lt;p&gt;But now I have another problem, I want to receive raw characteristic notification every 20ms, but it&amp;#39;s sending notification every 100ms.&lt;/p&gt;
&lt;p&gt;How can I change data sending rate?. I changed &lt;strong&gt;motion_freq_hz&lt;/strong&gt; to 100 in&lt;strong&gt;&lt;em&gt; m_motion.h&lt;/em&gt;&lt;/strong&gt; file,&amp;nbsp;&lt;strong&gt;DEFAULT_MPU_HZ&lt;/strong&gt; to 10 in &lt;strong&gt;&lt;em&gt;drv_motion.c&lt;/em&gt;&lt;/strong&gt; file, but rate doesn&amp;#39;t changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding timestamps to ble tms service's raw characteristic.</title><link>https://devzone.nordicsemi.com/thread/144310?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 11:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e1ebd3-a7f2-4f9a-9c80-aa85e36231e2</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi, sorry for the delayed response. It seems there could be an error in the line:&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK_BOOL(size == sizeof(int32_t) * RAW_PARAM_NUM);&lt;/p&gt;
&lt;p&gt;There could be an issue there with the value of RAW_PARAM_NUM (i.e. you may need to increase this number to 11 since you have added two variables) &amp;amp; also one of your variables has the type uint16_t. This could potentially lead to errors.&lt;/p&gt;
&lt;p&gt;Could you try setting one of the variables as a constant to make sure that this data is being transferred correctly, e.g.:&lt;/p&gt;
&lt;p&gt;data.gyro.y = 1234;&lt;/p&gt;
&lt;p&gt;in drv_motion_evt_handler &amp;amp; see if you receive this value in the GATT client.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>