<?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 accelerometer value to own service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69847/adding-accelerometer-value-to-own-service</link><description>Hi, Im trying to add accelerometer value to my own service. The device is advertising, When I connect to the nRF Connect application, I can not see my service, the status says disconnected. 
 This is the timer event handler I use in the program 
 static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Dec 2020 10:31:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69847/adding-accelerometer-value-to-own-service" /><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286981?ContentTypeID=1</link><pubDate>Wed, 30 Dec 2020 10:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf4fed5-cb0e-40be-b24d-c0c30c43071a</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;Im happy to say that the project is complete. Thank you for your support. You may close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286825?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 11:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80cbc657-80af-4a08-b4de-b7fa757ed583</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;&lt;span&gt;If I enable the accelerometer read function, I can not connect the device with the nrf connect app. The device stays in advertising mode. The program does not enter the timer_timout_handler where the accelerometer function is called.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think my twi configuration is interrupting softdevice. I changed the interrupt priority from high to low and medium. Nothing works. Do you have any suggestions? I can share my code if necessary.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286771?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 19:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ec6d62-270a-413b-b206-7710b8e84cd6</guid><dc:creator>Daniel Chisholm</dc:creator><description>&lt;p&gt;With a debugger, set a breakpoint after your call to&amp;nbsp;&lt;strong&gt;&lt;em&gt;MPU6050_ReadAcc&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;()&lt;/em&gt; and see if it is hit (or not; if you are in &amp;quot;DEBUG&amp;quot; mode the program will enter a loop).&lt;/p&gt;
&lt;p&gt;Or, put an NRF_LOG_INFO() trace message before and after your call to&amp;nbsp;&lt;strong&gt;&lt;em&gt;MPU6050_ReadAcc&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;(),&lt;/em&gt;&lt;span&gt;&amp;nbsp;to confirm your program flow... does your routine return, or do you fall into a crash-loop?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My &amp;quot;GPIO line&amp;quot; suggestion is moot, since you can run a debugger and see log outputs (if you couldn&amp;#39;t, I was suggesting that you could control a GPIO pin, and watch it with an oscilloscope or logic analyzer, to determine whether or not your code was hit, and if there was a reasonably short or unreasonably long time taken to run your accelerometer reading routine)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286713?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 13:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:422700cf-dc99-47b1-8b15-b988d72bf42b</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;I can run a debugger. RTT on debugger terminal shows this,&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: Notify observer 0x00030234 =&amp;gt; ready&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002260&lt;br /&gt;&amp;lt;info&amp;gt; app: started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;/p&gt;
&lt;p&gt;Nothing after this.&lt;/p&gt;
[quote userid="92730" url="~/f/nordic-q-a/69847/adding-accelerometer-value-to-own-service/286688#286688"]If you can&amp;#39;t run a debugger, could you raise a GPIO line before calling it, and lower that line upon return?[/quote]
&lt;p&gt;I don&amp;#39;t understand what you are trying to say. Can you please explain a little more elaborately?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286688?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 11:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c21ce22-49a0-4565-a578-5e4ebb2931bc</guid><dc:creator>Daniel Chisholm</dc:creator><description>&lt;p&gt;If&amp;nbsp;&lt;strong&gt;&lt;em&gt;MPU6050_ReadAcc(AccValue)&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;crashes, or if it takes too much time to perform, that could explain why your device disconnects.&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t run a debugger, could you raise a GPIO line before calling it, and lower that line upon return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286675?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e353d74-4120-459b-ba7c-2e55cda1bab0</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK 17.0.2. I&amp;#39;m trying to send accelerometer data through BLE. I followed&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt; BLE characteristics tutorial&lt;/a&gt; to develop my project. The code works fine, the problem occurs when I include the accelerometer read function in the code.To verify the problem, instead of sending accelerometer data, I sent dummy data. The data received without a problem. When I include my sensor read function into the code, the problem occurs. I have included the sniffer packets below, please have a look at them.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sniffer1.pcapng"&gt;devzone.nordicsemi.com/.../sniffer1.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding accelerometer value to own service</title><link>https://devzone.nordicsemi.com/thread/286666?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef4e608d-f5fc-464d-92c9-29b3a985c837</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The technical support team is currently low staffed due to Christmas holidays and the response time is therefor much longer than usual.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Please provide more information on what SDK you are using, and what application you are running.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you!&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>