<?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>Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93632/matter-way-to-add-callback-during-cyclic-wakeup-of-sed</link><description>I am currently looking for a way to add a user-callback in the wakeup-period of the SED communication. This is done to prevent two wakeup cycles (communication + sensor readout) in order to figure out if this would decrease the power consumption. 
 Is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Dec 2022 11:45:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93632/matter-way-to-add-callback-during-cyclic-wakeup-of-sed" /><item><title>RE: Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/thread/399163?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 11:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55675246-4a6e-45af-96b3-ad4fd118e397</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reply from the OpenThread team offers two answers for two different scenarios. The first one being:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;send datapoll&lt;/li&gt;
&lt;li&gt;receive data from router&lt;/li&gt;
&lt;li&gt;react on request if any by reading the data from sensor&lt;/li&gt;
&lt;li&gt;go to sleep&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;and the second:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;read data from sensor&lt;/li&gt;
&lt;li&gt;send them to router,&lt;/li&gt;
&lt;li&gt;(at some point) send datapoll,&lt;/li&gt;
&lt;li&gt;react on incoming data if any&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first one gives should give you what you need, but it requires some pro-activeness from the router. In other words, its not a simple solution. As for second alternative, there currently is no available call back in OpenThread API to do it. Also take in mind that sending data poll is not only triggered by timer.&lt;/p&gt;
&lt;p&gt;Let me know if this answers your question&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: Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/thread/399138?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 10:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3939b92e-ef8a-4985-afe8-2761e4018cf5</guid><dc:creator>rosc</dc:creator><description>&lt;p&gt;Dear Andreas, thanks for the reply.&lt;br /&gt;I am looking forward for more information, but heed your time.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Robert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/thread/398338?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 13:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1984d7b-b771-40dc-8282-40694e1de94a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Apologies for the long response time. I&amp;#39;ve asked the Matter team and they came back with the following:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Unfortunately it isn&amp;#39;t possible to do it in an easy way. There is no easy way to add a callback in the PlatformMgr that can cooperate with SED intervals. In addition, when asking the Matter team for input, they also said that using RTC to do it can be dangerous because the device wakes up and goes to sleep several times during a single transmission (on preparing data, on sending a frame to the radio driver, on sending a frame by the radio driver etc.).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;They say that they think it is possible in a Bare Metal implementation, where is a specific thread for the user. In a Matter sample it isn&amp;#39;t so simple.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;I have asked our OpenThread team if they know about any other solutions, but I can&amp;#39;t guarantee that they know of any easy solutions for your inquiry either. Nonetheless, I will update you when/if I hear anything from them.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Kind regard,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Andreas&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/thread/396802?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 07:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9543f7e0-a91d-4787-b557-5abe3452290c</guid><dc:creator>rosc</dc:creator><description>&lt;p&gt;Oh, I was just looking if I can get wakeup-events from PlatformMgr().AddEventHandler callback (since this striked me the easiest one to access from my business logic), but found no matching notification there. SWI triggered interrupt sounds intriguing, though. I just suspect that I don&amp;#39;t use the same RTC compare event (pretty high-level Zephyr stuff), so I&amp;#39;ve got no idea here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Robert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter: way to add callback during cyclic wakeup of SED?</title><link>https://devzone.nordicsemi.com/thread/394660?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 11:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd48213b-a973-4978-91ce-4f612135b9eb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide links to the Matter event queue handles and OpenThread stuff you investigated so I don&amp;#39;t come with suggestions that you&amp;#39;ve already looked in to?&lt;/p&gt;
&lt;p&gt;Otherwise we have some suggestions that might be of help. If you&amp;#39;re using the same RTC compare event for each wakeup cycle, you could use SWI to trigger an interrupt during the same event as well.&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>