<?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>Some of the questions about Asset Tracker</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64332/some-of-the-questions-about-asset-tracker</link><description>1、Can BME680 be enabled for air quality testing? There is no initialization function to get air quality, and the function to get air quality data returns -1. 
 
 2、The gps_handler() has sending A-GPS request. But I don&amp;#39;t receive the A-GPS data when the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jul 2020 12:56:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64332/some-of-the-questions-about-asset-tracker" /><item><title>RE: Some of the questions about Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/262585?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 12:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9fcf4d0-4cd2-44d7-a1c5-20e8cb00d0b9</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Xinjiang,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From the &lt;a href="https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf" rel="noopener noreferrer" target="_blank"&gt;datasheet&lt;/a&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-95788d524ce7459fa09c9c3e1b49a98e/pastedimage1596200196264v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(&lt;em&gt;&lt;strong&gt;Please note&lt;a href="https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors-bme680/#documents" rel="noopener noreferrer" target="_blank"&gt; the BME680 sensor&lt;/a&gt;, like&amp;nbsp;all&amp;nbsp;VOC/gas sensors, has variability and to get precise measurements you will want to calibrate it against known sources!&lt;/strong&gt;&amp;nbsp;That said, for general environmental sensors, it will give you a good idea of trends and comparisons. We recommend that you run this sensor for 48 hours when you first receive it to &amp;quot;burn it in&amp;quot;, and then 30 minutes in the desired mode every time the sensor is in use. This is because the sensitivity levels of the sensor will change during early use, and the resistance will slowly rise over time as the MOX warms up to its baseline reading.)&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;br /&gt;Good to hear that you made it work out.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some of the questions about Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/262486?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 02:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4bc5744-38fc-4fbc-8372-a12e23676c1d</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;1、T&lt;span&gt;he code in this website also does not initialize the air quality test.&amp;nbsp;&lt;/span&gt;I tried to turn this on myself.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;+static struct env_sensor quality_sensor = {
+	.sensor =  {
+		.type = ENV_SENSOR_AIR_QUALITY,
+		.value = 0,
+	},
+	.channel = SENSOR_CHAN_GAS_RES,
+	.dev_name = CONFIG_TEMP_DEV_NAME
+};

/* Array containg environment sensors available on the board. */
static struct env_sensor *env_sensors[] = {
	&amp;amp;temp_sensor,
	&amp;amp;humid_sensor,
	&amp;amp;pressure_sensor,
+   &amp;amp;quality_sensor
};

int env_sensors_get_air_quality(env_sensor_data_t *sensor_data)
{
+	if (sensor_data == NULL) {
+		return -1;
+	}
+	k_spinlock_key_t key = k_spin_lock(&amp;amp;quality_sensor.lock);
+
+	memcpy(sensor_data, &amp;amp;(quality_sensor.sensor),
+		sizeof(quality_sensor.sensor));
+	k_spin_unlock(&amp;amp;quality_sensor.lock, key);
+	return 0;
//        return -1;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get the following data.&lt;span class="sentence_translation"&gt; I don&amp;#39;t know what this means. &lt;/span&gt;&lt;/span&gt;What are the units of this data?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="sentence_translation"&gt;&lt;span class="tran"&gt;&lt;pre class="ui-code" data-mode="text"&gt;{&amp;quot;appId&amp;quot;:&amp;quot;AIR_QUAL&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;74625&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
{&amp;quot;appId&amp;quot;:&amp;quot;AIR_QUAL&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;81131&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
{&amp;quot;appId&amp;quot;:&amp;quot;AIR_QUAL&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;10675&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
{&amp;quot;appId&amp;quot;:&amp;quot;AIR_QUAL&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;10213&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2、According to the&amp;nbsp;nrf_cloud_apgs routine, I turned on the GPS three seconds after sending the A-GPS request and successfully received the A-GPS data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Xinjiang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some of the questions about Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/262424?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 13:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fffd47c-7f96-46b7-881a-2115e55c36ed</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Xinjiang,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1.&lt;/strong&gt;&lt;br /&gt;It is because you need to run the BSEC library, so just use that instead --&amp;gt;&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/applications/asset_tracker/src/env_sensors/env_sensors.c#L196"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/applications/asset_tracker/src/env_sensors/env_sensors.c#L196&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;br /&gt;Could you share the full log over a longer period of time?&lt;br /&gt;&lt;br /&gt;Also make sure you are using the latest mfw:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(you can try to send the A-GPS request before the GPS turns ON, and then give a delay around 5-10 seconds to respond before GPS (including PSM) turns ON).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;One quick test you can do is to set CONFIG_GPS_CONTROL_PSM_ENABLE_ON_START=n in prj.conf, to see if it is some issues with PSM.&lt;br /&gt;(which SIM card are you using?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>