<?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>Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed</link><description>Hello everyone, 
 I&amp;#39;m working on a Zigbee project that has the Thingy:53 as an end node. The program of the Thingy is a variation of the Zigbee Weather Station . 
 I&amp;#39;m measuring the current consumption of the board in different states, and I have some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2024 08:03:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed" /><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/481220?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 08:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e6b119-f950-4666-a251-f63e8d97386e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="gorka"]Finally I have discovered what was that consumption, and is not related to the BME688, is related to the BMM150&lt;span title="Upside down"&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1f643.svg" style="max-height:32px;max-width:32px;" alt="Upside down" /&gt;&lt;/span&gt;.[/quote]
&lt;p&gt;Happy to hear that you discovered the cause of consumption! I was looking around some yesterday afternoon with the BME680 sample, but I could not find the cause myself. But thats not a wonder if it was caused by another peripheral &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;
[quote user="gorka"]I don&amp;#39;t know exactly why but I suppose is related to the devicetree of the Thingy:53. Even if I don&amp;#39;t use anywhere it looks like it activates. To disable it I have to write the CONFIG_BMM150=n in prj.conf.[/quote]
&lt;p&gt;This is the way to do it. You must disable it like this and/or you should disable it in the overlay in a similar fashion as the example below (which disables the QSPI peripheral):&lt;/p&gt;
&lt;p&gt;CONFIG_NORDIC_QSPI_NOR=n&lt;/p&gt;
&lt;p&gt;And in your overlay file you should set&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So i.e the same goes for the sensor you have set up, given that the sensor is a part of your board files. Also remember to double check with any board files within child images that you have disabled the peripherals there as well. Sometimes there are configurations that&amp;nbsp;&lt;em&gt;selects&lt;/em&gt; or&amp;nbsp;&lt;em&gt;implies&lt;/em&gt; that a configuration should be selected, even though you&amp;#39;ve disabled it in your prj.conf (kconfig fragments and child overlay configurations override the settings in prj.conf).&lt;/p&gt;
[quote user="gorka"]After that, the consumption spikes disappear.[/quote]
&lt;p&gt;Good job navigating down where the true cause for the consumption was!&lt;/p&gt;
[quote user="gorka"]Thank you for your attention and help![/quote]
&lt;p&gt;Happy to help you get there!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/481094?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 13:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df762aa-1338-4738-9e74-2359da61ea51</guid><dc:creator>gorka</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally I have discovered what was that consumption, and is not related to the BME688, is related to the BMM150&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f643.svg" title="Upside down"&gt;&amp;#x1f643;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know exactly why but I suppose is related to the devicetree of the Thingy:53. Even if I don&amp;#39;t use anywhere it looks like it activates. To disable it I have to write the CONFIG_BMM150=n in prj.conf.&lt;/p&gt;
&lt;p&gt;After that, the consumption spikes disappear.&lt;/p&gt;
&lt;p&gt;Thank you for your attention and help!&lt;/p&gt;
&lt;p&gt;Gorka.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/481025?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 09:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d66691c-c4db-4b1a-9641-5c7308f99c1a</guid><dc:creator>gorka</dc:creator><description>&lt;p&gt;Thank you for your response!&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed/481010"]The BME680 sample is set up to fetch and print the output every 3000 msec, are you certain that the period is 100 msec? Does the sensor_sample_fetch match the consumption spikes intervals?[/quote]
&lt;p&gt;You are correct that the sample is set up to fetch al 3000msec, but the spikes are at 100ms period.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2.-Consumo-dormido-con-fetch-del-sensor.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed/481010"]Could you share the code of the bme680 sample where you do this?[/quote]
&lt;p&gt;The sensors reading in my application are done like in the Zigbee weather station:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void check_weather(zb_bufid_t bufid)
{
	ZVUNUSED(bufid);

	int err = weather_station_check_weather();

	if (err) {
		LOG_ERR(&amp;quot;Failed to check weather: %d&amp;quot;, err);
	} else {
		err = weather_station_update_temperature();
		if (err) {
			LOG_ERR(&amp;quot;Failed to update temperature: %d&amp;quot;, err);
		}

		err = weather_station_update_pressure();
		if (err) {
			LOG_ERR(&amp;quot;Failed to update pressure: %d&amp;quot;, err);
		}

		err = weather_station_update_humidity();
		if (err) {
			LOG_ERR(&amp;quot;Failed to update humidity: %d&amp;quot;, err);
		}
	}

	zb_ret_t zb_err = ZB_SCHEDULE_APP_ALARM(check_weather,
						0,
						ZB_MILLISECONDS_TO_BEACON_INTERVAL(
							WEATHER_CHECK_PERIOD_MSEC));
	if (zb_err) {
		LOG_ERR(&amp;quot;Failed to schedule app alarm: %d&amp;quot;, zb_err);
	}
}&lt;/pre&gt;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed/481010"]&lt;p&gt;Uses this driver&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/bme680"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/bme680&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively I would recommend that you investigate this topic&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/&lt;/a&gt;&amp;nbsp;and this exercize&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-2-12/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-2-12/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m going to try both solutions and came back to inform you,&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Gorka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/481010?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 08:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea435e30-1879-4cc6-a3e2-19eab0bcc934</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="gorka"]I have conducted further tests, and it appears the consumption issue is related to the BME680 sensor. As you mentioned, when using the switch example with SED, this consumption is not present.[/quote]
&lt;p&gt;Glad to hear that you&amp;#39;ve verified this-&lt;/p&gt;
[quote user="gorka"]I observed that upon activating the BME680 sensor, the consumption manifests with a 100ms period, which I suspect is due to sensor fetching[/quote]
&lt;p&gt;The BME680 sample is set up to fetch and print the output every 3000 msec, are you certain that the period is 100 msec? Does the sensor_sample_fetch match the consumption spikes intervals?&lt;/p&gt;
[quote user="gorka"]Could you advise on how to power it down? I currently fetch data manually before reading from the channels.[/quote]
&lt;p&gt;Some advice/hints: IF the sampling is set in the device driver, you should be able to either create your own custom version of the device by creating a device binding and make your changes there.&lt;/p&gt;
&lt;p&gt;Uses this driver&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/bme680"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/bme680&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively I would recommend that you investigate this topic&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/&lt;/a&gt;&amp;nbsp;and this exercize&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-2-12/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-2-12/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="gorka"]I currently fetch data manually before reading from the channels.[/quote]
&lt;p&gt;Could you share the code of the bme680 sample where you do this?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/480885?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 12:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fe55883-c968-4c75-be1f-2122550d6045</guid><dc:creator>gorka</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have conducted further tests, and it appears the consumption issue is related to the BME680 sensor. As you mentioned, when using the switch example with SED, this consumption is not present.&lt;/p&gt;
&lt;p&gt;Additionally, using the BME680 sample, I observed that upon activating the BME680 sensor, the consumption manifests with a 100ms period, which I suspect is due to sensor fetching. Could you advise on how to power it down? I currently fetch data manually before reading from the channels.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Gorka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/480162?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 10:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e315eb1d-1150-4623-8766-70a4943ba70f</guid><dc:creator>gorka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you mentioned I try to measure the SED with other samples, and you&amp;#39;re right the device consumes the same all the time. It has to be something related to the sensor.&lt;/p&gt;
&lt;p&gt;So to test that, I measure when is not connected to any coordinator and is not sending any kind of packets (checking it with the sniffer), and the same consumption continues. In the image below I capture a reading of the sensor, and you can see the consumption of the sensor reding temp, hum and press, and you can notice that it seems to have the same consumption spikes that the device has when is sleeping (circles in red).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/borrar.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do you know why it can be?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Gorka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/480122?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 08:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d8635b-613c-4d96-a4be-62342c7baa23</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="gorka"]&lt;span&gt;I think&lt;/span&gt;&lt;span&gt;&amp;nbsp;that&amp;#39;s not the case because that occurs even when the device is not connected.&lt;/span&gt;[/quote]
&lt;p&gt;There should not be anything other than the keepalive and polling w.r.t Zigbee that causes Zigbee activity and current draw, but as you mention you&amp;#39;re using a weather station sample. There could be sensors gathering sensor data or similar. Have you verified if this activity occurs and is ongoing?&lt;/p&gt;
&lt;p&gt;It could also be that the device&amp;nbsp;&lt;em&gt;tries&lt;/em&gt; to join a network. Could you check with a Zigbee sniffer (&lt;a href="https://docs.nordicsemi.com/bundle/ug_sniffer_802154/page/UG/sniffer_802154/intro_802154.html"&gt;https://docs.nordicsemi.com/bundle/ug_sniffer_802154/page/UG/sniffer_802154/intro_802154.html&lt;/a&gt;)&amp;nbsp;and verify if the device sends any Zigbee data packs? If you&amp;#39;ve enabled attribute reporting it will also send this in addition to the other Zigbee packs when it is connected to the network.&lt;/p&gt;
&lt;p&gt;I would also like to suggest that you test the sleep current might be to use a sample that does not do as many things in addition to Zigbee sleep activity to avoid having other sources interfering in your measurement. You can for instance select one of the other Zigbee ED samples mentioend in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/zigbee.html#zigbee-samples"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/zigbee.html#zigbee-samples&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/480095?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 06:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84d8982-bf7c-4fcb-aced-b70433f25de6</guid><dc:creator>gorka</dc:creator><description>&lt;p&gt;Thanks for the answer,&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/110464/current-consumption-on-thingy-53-zigbee-sed/479994"]Yes, this is correct, the device has things that it is required to to. What you&amp;#39;re seeing is that the device regularly polls its parent device for data[/quote]
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;I think&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;that&amp;#39;s not the case because that occurs even when the device is not connected.&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;In the image below&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;can&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;be seen&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;that in sleep mode,&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;sends&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;a data request (left)&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;and&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;my doubt is the consumption of the&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;right&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;part.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713852390278v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;The&amp;nbsp;&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;zigbee&lt;/span&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;polling part cleared, thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Gorka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on Thingy:53 Zigbee SED</title><link>https://devzone.nordicsemi.com/thread/479994?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 12:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5568e9a2-35b8-4d9b-9357-a734966388c6</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]As can be seeing in the image below,&amp;nbsp;that is taken when the device is in sleep mode, there are times when the device consumes more. Possibly because it has some tasks to do, but I want to know why this happens if possible.[/quote]
&lt;p&gt;It&amp;#39;s not really easy to see whats happening on the image since the image does not give any insight to the axis sizes, and also it could be a better indicator to measure µAs rather than the µV w.r.t measuring&amp;nbsp;&lt;em&gt;current&lt;/em&gt;consumption&lt;/p&gt;
[quote user=""]s taken when the device is in sleep mode, there are times when the device consumes more. Possibly because it has some tasks to do, but I want to know why this happens if possible.[/quote]
&lt;p&gt;Yes, this is correct, the device has things that it is required to to. What you&amp;#39;re seeing is that the device regularly polls its parent device for data&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See for instance this page for some insight into what&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/zigbee/configuring.html#sleepy-end-device-behavior"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/zigbee/configuring.html#sleepy-end-device-behavior&lt;/a&gt;&amp;nbsp;as well as download the Zigbee specification from CSA&amp;nbsp;&lt;a href="https://csa-iot.org/developer-resource/specifications-download-request/"&gt;https://csa-iot.org/developer-resource/specifications-download-request/&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;From the first link:&amp;nbsp;&lt;em&gt;&amp;quot;By default, the end device regularly polls its parent for data. When the SED behavior is enabled and no frames are available for reception after the last poll, the SED disables its radio until the next scheduled poll. The Zigbee stack’s own scheduler informs the application about periods of time when nothing is scheduled for any of the device roles. This allows the stack to enter the sleep state during these periods, which also powers off some peripherals for the SED.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;These are parameters and settings that you can set yourself, given that you comply with the keep alive routines that is required based on the specification. Most samples have a&amp;nbsp;&lt;/p&gt;
[quote user=""] Or is it not a problem for example setting this on hours period or if its possible to delete it.[/quote]
&lt;p&gt;Yes, you can increase this interval, but you can&amp;#39;t delete it. If you do there are no ways to wake the device and for it to poll its parent so the network will consider this device as &amp;quot;dead&amp;quot; and remove it from the network unless it lets the network know it is alive and present.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>