<?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>nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74427/nrf52832-i-want-to-use-acc-and-ble-at-the-same-time</link><description>I want to read the acceleration sensor value using the example of the ble-hid-keyboard, but if I let you read the acceleration sensor value, Bluetooth will be cut off. Can we solve this problem?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jun 2021 12:15:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74427/nrf52832-i-want-to-use-acc-and-ble-at-the-same-time" /><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/316726?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 12:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:459e9ba5-9fb2-46bf-8327-eda914b05a0a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please have a look at the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/application-timer-tutorial"&gt;Application Timer Tutorial&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/316365?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 02:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:528b273a-bea8-46e5-9195-e8a0fa6bde53</guid><dc:creator>jayden123</dc:creator><description>&lt;p&gt;thank you!!! how to work the program through timer event?? have you simple example???&amp;nbsp;&lt;span&gt;It&amp;#39;s hard to apply because I&amp;#39;m a beginner.ㅜㅜ&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/308115?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 09:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf33a94-fb55-4144-8ef4-1e7de566d474</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you put the code like that, CalibAccel/calcDT/calcAccelYPR/calcGyroYPR/calcFilteredYPR/nrf_delay_ms(50) will be called every time the chip wakes from sleep to perform a task. If you&amp;nbsp;have any sources in your application that will wake the chip from sleep (timers, etc), this should work. If there are no wakeup sources, the application will go to sleep and stay there forever. In general, it is a better approach to do the function-calls in a timer event if you want to do a regular read of the sensor. Alternatively, you can set a flag in the timer event handler, and read the sensor in main-loop if the flag is set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/308053?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 05:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d393cb-0259-4818-97f3-0ea7087eda65</guid><dc:creator>jayden123</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    for (;;)
    {
        
        idle_state_handle();
        
        CalibAccel();
        calcDT();
        calcAccelYPR();
        calcGyroYPR();
        calcFilteredYPR();
        nrf_delay_ms(50);
       
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want the idle and the functions below to run in series and run in parallel at the same time. Is this what you want?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/307986?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 14:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:003bf903-2c7f-4f07-af78-f062a8893a2c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In the code you posted, all calls to functions reading the accelerometer seems to be commented out. Can you post the code showing exactly where you call this code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/307823?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 06:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a36da1c-a81a-4c8c-bb16-95c5f96df66a</guid><dc:creator>jayden123</dc:creator><description>&lt;p&gt;&lt;span&gt;I think it&amp;#39;s because sensorread and idle_state_handle() are placed together in the form statement, is there any way to run both at the same time?&lt;/span&gt;&lt;br /&gt;&lt;span&gt;There&amp;#39;s no error mark.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I want to use acc and ble at the same time.</title><link>https://devzone.nordicsemi.com/thread/306844?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 14:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894fe8f1-3fcd-4a1a-adc3-cc2b3ab6c234</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not easy to see from your code what is causing this issue. There can be many reasons that the Bluetooth connection is broken. Error codes, asserts, priority issues, etc.&lt;/p&gt;
&lt;p&gt;Does the chip reset? Are you seeing any error codes on the log? Have you tried debugging the application to see where it fails?&lt;/p&gt;
&lt;p&gt;If you can post the full application project, it may be easier to see/test what is causing the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>