<?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>Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89925/is-there-some-mechanism-to-subscribe-to-unsolicited-modem-responses</link><description>SDK 2.0.0, nrf9160, modem fw 1.3.2 We are effectively running the GNSS sample and the MQTT sample in separate threads. We are interested in seeing the modem temperature (via AT%XTEMP=1 command). This command seems to enable periodic notifications of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jul 2022 12:43:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89925/is-there-some-mechanism-to-subscribe-to-unsolicited-modem-responses" /><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/379128?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 12:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c70ef44-9cd3-4844-8f4a-4bee894c8851</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The modem should send notifications also if the modem stays in RRC connected mode for more than 60 seconds, so if you can find a way for it to stay connected that long then you should receive a notification.&lt;/p&gt;
&lt;p&gt;You can also try setting &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xtemphighlvl_set.html"&gt;XTEMPHIGHLVL&lt;/a&gt;, to change the level at which the temperature sensor triggers. Also this might require RRC connected, the documentation wasn&amp;#39;t very clear about this. I tested this with RRC idle and didn&amp;#39;t receive anything, but it&amp;#39;s worth trying. You can just use the mqtt simple application and continuously publish data to stay in RRC connected. Or try something like &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74127/how-to-force-rrc-connected/305562"&gt;this&lt;/a&gt;.&lt;/p&gt;
[quote user="mincher"]I would like to have a relatively current reading to report whenever the client application requests it but don&amp;#39;t want to unnecessarily choke the modem pipe.[/quote]
&lt;p&gt;I doubt you would be able to choke the modem by sending XTEMP repeatedly, unless you send REALLY frequently. Once every five seconds or something like that should be fine I believe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/377734?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 21:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e9869e8-a89a-47c1-9945-5e4c6ead56f3</guid><dc:creator>Richard W Mincher</dc:creator><description>&lt;p&gt;I would love to see what you find.&amp;nbsp; We did send&amp;nbsp; AT%XTIME=1 and did get one single response from that.&amp;nbsp; I would expect that it would&amp;nbsp;get&amp;nbsp;this at some infrequent rate as well -- or maybe each time the&amp;nbsp;LTE network&amp;nbsp;connects at a minimum.&amp;nbsp; Still nothing with AT%XTEMP=1.&lt;br /&gt;&lt;br /&gt;If we were to poll the battery and temperature, what is a reasonable rate to do this without interfering with performance?&amp;nbsp; Is that too often if I send a %TEMP every minute?&amp;nbsp; Clearly, under normal circumstances, the temperature would not move quickly.&amp;nbsp; 2 minutes?&amp;nbsp; Thirty seconds?&amp;nbsp; 5 minutes?&amp;nbsp; I would like to have a relatively current reading to report whenever the client application requests it but don&amp;#39;t want to unnecessarily choke the modem pipe.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/377362?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 08:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7434fafa-90ba-40df-b2e2-4963bbf9fdfe</guid><dc:creator>Hakon</dc:creator><description>[quote user="mincher"]Are there periodic reports (other than +CEREG and %CESQ) that I can see?&amp;nbsp; I would have expected that by setting the filter to ANY (NULL) I would see other things that other system components were watching.[/quote]
&lt;p&gt;Have you enabled any other notifications? The modem won&amp;#39;t send notifications unless you subscribe. That includes the AT%XTEMP=1 to subscribe to temperature notifications.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have access to equipment until Wednesday, but if you wait I can try to test this myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/377240?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 16:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7587a5d6-199b-45d8-9e6d-e3987fa3890b</guid><dc:creator>Richard W Mincher</dc:creator><description>&lt;p&gt;The documentation seems to&amp;nbsp;imply&amp;nbsp;that the reporting frequency is approximately 60 seconds and that it may report more frequently if it gets closer to a critical threshold.&amp;nbsp; I find it hard to believe that it 1) doesn&amp;#39;t give an initial report when it is turned on, and 2) it never reports unless it changes severely.&amp;nbsp; I can believe that the update frequency is dependent on the proximity to a critical threshold.&amp;nbsp; I can try hitting it lightly with a heat gun or some freeze spray, but I would have expected in the minutes that I waited for a report that I received nothing.&lt;br /&gt;&lt;br /&gt;Are there periodic reports (other than +CEREG and %CESQ) that I can see?&amp;nbsp; I would have expected that by setting the filter to ANY (NULL) I would see other things that other system components were watching.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/377147?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 10:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feffbbf3-2227-46bf-afba-690ef05a09bf</guid><dc:creator>Hakon</dc:creator><description>[quote user="mincher"]Does the modem ever send those %XTEMP notifications?&amp;nbsp; It doesn&amp;#39;t seem to.[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xtemp_set.html"&gt;A notification is sent when the temperature is rising above a high or critical temperature level or cooling down from a critical or high temperature level.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So if the modem temperature doesn&amp;#39;t change much at all, it&amp;#39;s possible that the modem will never send a notification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/377065?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 04:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5fb7f6-0616-496d-b453-2732bb1f27aa</guid><dc:creator>Richard W Mincher</dc:creator><description>&lt;p&gt;Yes, it does seem like AT monitor is what I am looking for.&amp;nbsp; We started with the AT Monitor sample and it ran showing us the +CEREG and %CESQ messages.&lt;br /&gt;&lt;br /&gt;We modified it by adding another AT_MONITOR() for &amp;quot;XTEMP&amp;quot; (the monitor library uses strstr() for filtering) and&amp;nbsp;did&amp;nbsp;a nrf_modem_at_printf(&amp;quot;AT%%XTEMP=1&amp;quot;); to enable perioding reporting.&amp;nbsp; This returned &amp;quot;OK&amp;quot;.&amp;nbsp; We never saw an XTEMP message.&amp;nbsp; We even tried changing the AT_MONITOR filter to ANY.&amp;nbsp; And we enabled debug messages in the AT monitor library -- it never received an &amp;quot;%XTEMP&amp;quot; message from the modem.&lt;br /&gt;&lt;br /&gt;Does the modem ever send those %XTEMP notifications?&amp;nbsp; It doesn&amp;#39;t seem to.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there some mechanism to subscribe to unsolicited modem responses?</title><link>https://devzone.nordicsemi.com/thread/376903?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 08:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e697a8-9e56-4484-81f0-966fd5cc4ac4</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/at_monitor.html"&gt;AT monitor library&lt;/a&gt; is the closest thing to what you are asking for. It should be pretty straight forward to use it for XTEMP, as far as I can tell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>