<?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>Thingy:91&amp;#39;s ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72088/thingy-91-s-adxl372-instant-on-high-treshold-issue</link><description>Hi. 
 I&amp;#39;m having issues setting the instant on high threshold on the ADXL372 on the Thingy:91. I&amp;#39;m new to this, so I might be missing something obvious. I&amp;#39;ve updated the thingy firmware as specified on the getting started page. I&amp;#39;m setting the bit like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 May 2021 09:55:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72088/thingy-91-s-adxl372-instant-on-high-treshold-issue" /><item><title>RE: Thingy:91's ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/thread/308919?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 09:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1568650-38ac-46ef-8cf6-d1866f531f75</guid><dc:creator>Rudolph Aschmoneit</dc:creator><description>&lt;p&gt;Hey Sigurd, I have no real answer to your question, but I also want to work in instant on mode.&amp;nbsp;I have one question, you say:&amp;nbsp;&lt;/p&gt;
[quote userid="101953" url="~/f/nordic-q-a/72088/thingy-91-s-adxl372-instant-on-high-treshold-issue"]And have ensured that&amp;nbsp;&lt;span style="font-family:inherit;"&gt;the 5th bit in the power control register (0x3F) is set before putting it into instant on mode, and that it stays that way.&lt;/span&gt;[/quote]
&lt;p&gt;how do you make sure that it stay&amp;#39;s that way? Are you using the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;adxl372_reg_read function from the driver (adxcl372.c)? If you do that, have you added this to the header? I have the Problem that I could not use any of the functions in the&amp;nbsp;adxcl372.c, expect the 4 ones which are mentionend in&amp;nbsp;adxcl372.h (with the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ADXL372_TRIGGER Guard around):&amp;nbsp;&lt;br /&gt;&lt;br /&gt;adxl372_get_status&lt;br /&gt;adxl372_reg_write_mask&lt;br /&gt;adxl372_trigger_set&lt;br /&gt;adxl372_init_interrupt&lt;br /&gt;&lt;br /&gt;when I try to add some more of the&amp;nbsp;adxcl372.c file my programm becomes very unstabel. I also do not find any information on how use sensors in Zephyr without the sensor API, It seems for me that it is not intended by &amp;quot;Zephyr&amp;quot; to use low level functions directly in application code. But I also don&amp;#39;t see any option to set the instant on mode and configure the fifos using the sensor.h api. According to this thread here:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/13718"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/13718&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;FiFO managmement don&amp;#39;t seem to be a part of the sensor API at the moment in Zephyr.&lt;br /&gt;But maybe I get things wrong, I don&amp;#39;t know.&lt;br /&gt;&lt;br /&gt;It also seems to be no Kconfig Option for Instant On mode, only for Measurement or for Peak Mode.&lt;br /&gt;I have not been able to figure out how Zephyr does the initial config of the sensor in these two modes either.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;it seems like you might be further along than me, so if you have an answer to any of these questions, I&amp;#39;d be very grateful.&lt;br /&gt;&lt;br /&gt;Otherwise, it could also be that your two commands alone do not set the Instant On mode at all and you therefore think that only the threshold is set incorrectly? Do you start with CONFIG_ADXL372_MEASUREMENT_MODE=y in your proj.conf? I read in the datasheet that this mode have to be enabled before the sensor could be set in instant on mode.&lt;br /&gt;&lt;br /&gt;Thanks in Advance.&lt;br /&gt;Best Regards Rudolph&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91's ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/thread/297207?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c69b65-6aba-4ce1-8306-6515cbfeca18</guid><dc:creator>sigurd</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ll try there. Thanks!&lt;/p&gt;
&lt;p&gt;-Sigurd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91's ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/thread/297202?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53981e2a-b8c0-4992-8b58-3f5ea3d9366a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid you need to ask the Zephyr support channels for this issue. Does not look like we have any official working NCS samples. The Zephyr samples are usually made by the Zephyr community&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/zephyr/introduction/index.html#community-support"&gt;Have a look at the Zephyr Community Support pages&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry for the inconvenience.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91's ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/thread/296547?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 12:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b0e59e8-f2d6-4a5d-b586-cfedebdccb08</guid><dc:creator>sigurd</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ve looked at both of those, and the program I&amp;#39;m working on is based on the ADXL372 sample. I&amp;#39;m using the sensor api to fetch data/read from the sensor and have no issues with that.&lt;/p&gt;
&lt;p&gt;The only issue i have is that when setting the the ADXL372 into INSTANT_ON mode (where it wakes from a low power sleep like state when it detects an impact)&amp;nbsp;it doesn&amp;#39;t seem to make a difference if I set the trigger to be high (30-40g) rather than low (&lt;span&gt;10-15g)&amp;nbsp;which is the default. It wakes up and starts to spit out data by equally light impacts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91's ADXL372 instant on high treshold issue</title><link>https://devzone.nordicsemi.com/thread/296530?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 12:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d905f0f8-d45c-4fdc-9e51-41903e237b53</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The latest official release is NCS v1.5.0, which was released yesterday.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What application are you working on? Have you looked at our Asset Tracker application? Or the Zephyr ADXL372 sample found in:&amp;nbsp;&lt;em&gt;zephyr\samples\sensor\adxl372\&lt;/em&gt;&lt;br /&gt;Both samples uses the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.2/zephyr/reference/peripherals/sensor.html"&gt;Sensors API&lt;/a&gt; (zephyr\include\drivers\sensor.h) to read from this sensor.&lt;br /&gt;&lt;br /&gt;Let me know how that works for you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>