<?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>BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74637/bme680-air-quality-values</link><description>I am trying to work with Bme680 with I2C communication i can read every value but i cant read air quality value its always at 806516 value and does not change . I thing configirations are wrong but i got them from bosch site so i dont know what to do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 May 2021 15:01:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74637/bme680-air-quality-values" /><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307795?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 15:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa6cbf3-c7e6-4d36-ad40-a3676a1e6720</guid><dc:creator>kefom</dc:creator><description>&lt;p&gt;Thanks you have been really helpfull i will look into this function and settings , the links .thanks again for the answers&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards.:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307794?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c837f48-1440-40ab-bf23-021b322d55a3</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;for the code, there are some initialization that need to be performed before reading the resistance value. &amp;nbsp;One of which is the setting of heating profile. &amp;nbsp;Look for the function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;bool&lt;/b&gt;&lt;/span&gt; &lt;b&gt;TphgBme680::Init&lt;/b&gt;(&lt;span&gt;&lt;b&gt;const&lt;/b&gt;&lt;/span&gt; &lt;span&gt;GASSENSOR_CFG&lt;/span&gt; &amp;amp;CfgData, &lt;span&gt;DeviceIntrf&lt;/span&gt; *pIntrf, &lt;span&gt;Timer&lt;/span&gt; *pTimer)&lt;/p&gt;
&lt;p&gt;In the code I showed you previously via the link to github. &amp;nbsp;I am not using the bosch driver but they should have something equivalent.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another example code where see how the IOsonata driver work. &amp;nbsp;This one reads the sensor including the AQI and sends them over BLE Advertisement data.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/IOsonata/IOsonata/blob/master/ARM/Nordic/exemples/TPHSensorTag.cpp"&gt;https://github.com/IOsonata/IOsonata/blob/master/ARM/Nordic/exemples/TPHSensorTag.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This blog describes about it but its a bit old now&amp;nbsp;&lt;a href="https://embeddedsoftdev.blogspot.com/2018/01/"&gt;https://embeddedsoftdev.blogspot.com/2018/01/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307793?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22501566-a285-4771-816d-50fbe1d95547</guid><dc:creator>kefom</dc:creator><description>&lt;p&gt;yes i know you didnt mean that i tough maybe some dust entered in it so i was just ganna blow it with air thanks tough for the warning i am thankfull &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307792?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127df305-2fa1-4a50-923a-6f520ff5b74b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;What I meant about cleaning is actually do not clean it. If any liquid gets into the little holes on the sensor, it will destroy it. Be careful with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307791?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4010cf7d-0393-4d20-a9af-64b8c3e42403</guid><dc:creator>kefom</dc:creator><description>&lt;p&gt;thanks for your fast answers it means a lot to me. I want to ask if you know the reason might be this ?&lt;/p&gt;
&lt;p&gt;i am writing 140 data to temp , hum and press registers and they work but i am not writing and additional data to gas_resistance part ( i cant find that register in datasheet ) i belive the reason is my code but i will also try to clean the sensor too.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
uint8_t data[1]={140};
uint8_t reg[1]={0x74};
uint8_t rega[1]={0x72};
uint8_t regs[1]={0x73};
//uint8_t regg[1]={0x75};
bme680_set_regs(reg, data, 1, &amp;amp;gas_sensor);
bme680_set_regs(rega, data, 1, &amp;amp;gas_sensor);
bme680_set_regs(regs, data, 1, &amp;amp;gas_sensor);
//bme680_set_regs(regg, data, 1, &amp;amp;gas_sensor);
nrf_delay_ms(500);

while (1)
{
uint16_t meas_period;
bme680_get_profile_dur(&amp;amp;meas_period, &amp;amp;gas_sensor);

struct bme680_field_data data;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;after writing to these registers i just write&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
if(data.status &amp;amp; BME680_GASM_VALID_MSK)
            printf(&amp;quot;, G: %d ohms&amp;quot;, data.gas_resistance);
if (gas_sensor.power_mode == BME680_FORCED_MODE)
{
rslt = bme680_set_sensor_mode(&amp;amp;gas_sensor);

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this to the end of the code for gas_resistance&lt;/p&gt;
&lt;p&gt;Best regards Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Efe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307790?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aab8668-88b2-4663-9fc3-d1ba3ff75bca</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The values should varies. 2 things could happen when you get fixed value. &amp;nbsp;Either the code is not correct or the sensor is effective. &amp;nbsp;Try with another board. &amp;nbsp;If you get the same result, it likely the code issue. &amp;nbsp;The BME680 is a sensitive device. &amp;nbsp;If it get cleaned in liquid (water or flux cleaner) after assembly, the sensor is likely be effective after cleaning. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307789?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 14:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638ef9df-7b0b-478d-95b6-5e51a74371ba</guid><dc:creator>kefom</dc:creator><description>&lt;p&gt;i couldnt understand but i will try what you said . But i want to make this clear the value i get from reading data from sensor for gas resistance does not change . The value changing is normal or not ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307767?ContentTypeID=1</link><pubDate>Sat, 01 May 2021 17:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321c70c9-2c6f-46e9-a76c-e1a1110ab3a7</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;See the driver and example code here.&lt;/p&gt;
&lt;p&gt;Driver :&amp;nbsp;&lt;a href="https://github.com/IOsonata/IOsonata/blob/master/src/sensors/tphg_bme680.cpp"&gt;github.com/.../tphg_bme680.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Use case example : &lt;a href="https://github.com/IOsonata/IOsonata/blob/master/exemples/sensor/env_tph_demo.cpp"&gt;https://github.com/IOsonata/IOsonata/blob/master/exemples/sensor/env_tph_demo.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to get the Air Quality Index, you need to pass the data read from the sensor to the BSEC library to do the conversion. &amp;nbsp; They don&amp;#39;t give you the details equation to convert from gas resistance value to AQI.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307681?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 13:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6467fab9-f6f0-4ed1-a853-8a612cc37758</guid><dc:creator>kefom</dc:creator><description>&lt;p&gt;no i dont have a analyser i know its about bosch but i hoped maybe someone knows whats wrong and what to do so they can tell me . thanks for your answer.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME680 Air quality Values</title><link>https://devzone.nordicsemi.com/thread/307678?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 13:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ec2bbc-d59c-4409-87f5-469c64df65eb</guid><dc:creator>awneil</dc:creator><description>[quote userid="103304" url="~/f/nordic-q-a/74637/bme680-air-quality-values"]with I2C communication i can read every value but i cant read air quality value[/quote]
&lt;p&gt;That does rather suggest that the Nordic part of your project is working correctly.&lt;/p&gt;
[quote userid="103304" url="~/f/nordic-q-a/74637/bme680-air-quality-values"]I thing configirations are wrong but i got them from bosch site [/quote]
&lt;p&gt;You would really need to go to Bosch for support with &lt;em&gt;&lt;strong&gt;their&lt;/strong&gt; &lt;/em&gt;products.&lt;/p&gt;
&lt;p&gt;Do you have an analyser to check the actual I2C traffic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>