<?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>thingy91 source code that includes AIR Quality measurements from BME680</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56355/thingy91-source-code-that-includes-air-quality-measurements-from-bme680</link><description>I have been working with the thingy91 source code from ncs, I can compile and load the sample app successfully. However I did notice that when I compile the code it does not report the Air Quality from the BME680 sensor, while the out-of-the-box binary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Jan 2020 19:57:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56355/thingy91-source-code-that-includes-air-quality-measurements-from-bme680" /><item><title>RE: thingy91 source code that includes AIR Quality measurements from BME680</title><link>https://devzone.nordicsemi.com/thread/228225?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 19:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de274aac-d937-4a65-b461-d241bb2fb4f9</guid><dc:creator>Luis Alberto</dc:creator><description>&lt;p&gt;Just notice that after configuring this once I cant not longer do any change as there seems to be something wrong with the configuration. This is what I get when I open menuconfig again (from &lt;span style="font-weight:400;"&gt;Project-&amp;gt;Configure nRF Connect SDK Project-&amp;gt; menuconfig) and then the options to do any change to the project never appears...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1578513396681v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91 source code that includes AIR Quality measurements from BME680</title><link>https://devzone.nordicsemi.com/thread/228224?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 19:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1eae25a-c831-4dc1-8eb4-271aa7e97e4b</guid><dc:creator>Luis Alberto</dc:creator><description>&lt;p&gt;I didn&amp;#39;t mean to make the ticket private... so I made it public for other people to look at it if they had the same issue... hope you don&amp;#39;t mind... : )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91 source code that includes AIR Quality measurements from BME680</title><link>https://devzone.nordicsemi.com/thread/228223?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 19:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efab4f90-3448-4344-987f-7cd2115bd9ac</guid><dc:creator>Luis Alberto</dc:creator><description>&lt;p&gt;I&amp;#39;m on v1.1-branch.&lt;/p&gt;
&lt;p&gt;The configuration was as it is, with only those attempts described in the post.&lt;/p&gt;
&lt;p&gt;Yes, I was getting only -1 from&amp;nbsp;&lt;em&gt;env_sensors_get_air_quality()&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I saw the note although it was not clear to me from where... so that is how I ended up getting those .c/.h files from the posts... never saw about the link to get the library nor how to add it to my project.&lt;/p&gt;
&lt;p&gt;I just have tested and seems to work fine.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91 source code that includes AIR Quality measurements from BME680</title><link>https://devzone.nordicsemi.com/thread/228222?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 09:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17881ba3-4d17-4e0c-8ee2-5728e9aef3c5</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]I have been working with the thingy91 source code from ncs, I can compile and load the sample app successfully.[/quote]
&lt;p&gt;What version of NCS are you working on?&amp;nbsp;&lt;/p&gt;
[quote user=""]However I did notice that when I compile the code it does not report the Air Quality from the BME680 sensor, while the out-of-the-box binary does.[/quote]
&lt;p&gt;Have you done any configuration to the sample, or have you compiled it as is?&lt;/p&gt;
[quote user=""]After looking into the sample app, I notice that there is a function in env_sensors.c that is supposed to get the air quality measurement but it just return -1.[/quote]
&lt;p&gt;&amp;nbsp;Are you getting any other error codes? I assume that you are receiving -1 from&amp;nbsp;&lt;em&gt;env_sensors_get_air_quality()?&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;project-&amp;gt;configure nrf connect sdk project -&amp;gt;menu config-&amp;gt; asset tracker-&amp;gt; environment sensors-&amp;gt;use bosh BME680 BSEC lib&lt;/p&gt;&lt;p&gt;I have enabled it... but it makes the project invalid...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see the documentation is missing regarding this, but it is mentioned in the KConfig file that you have to download the &lt;a href="https://www.bosch-sensortec.com/software-tools/software/bsec/"&gt;BSEC library from Bosch&lt;/a&gt;&amp;nbsp;to be able to read BME680 data. This needs to be extracted to&amp;nbsp;&lt;em&gt;ncs/nrf/ext&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;config BOSCH_BSEC_LIBRARY_PATH
    string &amp;quot;Path to Bosch BSEC library folder&amp;quot;
    default &amp;quot;$(ZEPHYR_BASE)/../nrf/ext/BSEC_1.4.7.4_Generic_Release&amp;quot;
    help
      Path to the folder where the Bosch BSEC library is placed.

    
config USE_BME680_BSEC
    bool &amp;quot;Use Bosch BME680 BSEC lib&amp;quot;
    default n
    help
      Enable use of Bosch BSEC library. The library itself is not a part of
      NCS and must be downloaded from Bosch Sensortec.


config BOSCH_BSEC_LIBRARY_PATH
    string &amp;quot;Path to Bosch BSEC library folder&amp;quot;
    default &amp;quot;$(ZEPHYR_BASE)/../nrf/ext/BSEC_1.4.7.4_Generic_Release&amp;quot;
    help
      Path to the folder where the Bosch BSEC library is placed.



&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now, back to&amp;nbsp;&lt;span&gt;project-&amp;gt;configure nrf connect sdk project -&amp;gt;menu config-&amp;gt; asset tracker-&amp;gt; environment sensors&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Enable&amp;nbsp;use bosh BME680 BSEC lib under Asset Tracker and disable BME680 sensor under Zephyr&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9fe90c88d9554a999fa6de4070235e83/pastedimage1578476750837v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I have enabled it... but it makes the project invalid...[/quote]
&lt;p&gt;If the issue still persists after downloading the BSEC lib, please try to clean your build folder&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9fe90c88d9554a999fa6de4070235e83/pastedimage1578476808687v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know how it works out for you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>