<?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>How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49379/how-to-receive-sms-message-in-standby-mode-in-nrf9160</link><description>I want to wake up nRF9160 by SMS. 
 What I want to do: 
 The nRF9160 usually sleeps to reduce power consumption, and only when it receives SMS it wakes up and send some data by UDP or so. 
 
 I succeeded in implementing MQTT(+TLS), but have no experience</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Sep 2019 08:43:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49379/how-to-receive-sms-message-in-standby-mode-in-nrf9160" /><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209773?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 08:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c2e0c0-df55-4e67-9f4a-28f1ab8f45bf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Great to hear that you solved it &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;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209702?ContentTypeID=1</link><pubDate>Sat, 14 Sep 2019 04:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b9dd537-8ed5-47b9-a0c7-2d877acfbd61</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I solved this issue!&lt;/p&gt;
&lt;p&gt;You must need to use the same file descriptor when&amp;nbsp;&lt;span&gt;running &amp;quot;AT+CNMI=3,2,0,1&amp;quot;, &amp;quot;AT+CNMI?&amp;quot; and&amp;nbsp;&amp;quot;AT+CNMA&amp;quot;.&amp;nbsp; Get a fd by this line and, and send the above commands with this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;int at_socket_fd = socket(AF_LTE, 0, NPROTO_AT);&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209571?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 09:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743e40e9-fec5-4d3c-a7ac-dc098a70236d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If you set a handler via this function call:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/at_cmd/at_cmd.c#L312"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/at_cmd/at_cmd.c#L312&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you should get subscribed indication/events from the modem, such as sms.&lt;/p&gt;
&lt;p&gt;Could you try this and see if that works better?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209231?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 15:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b888cb1e-3fb1-488e-8c6d-ea8b32cc30e7</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I&amp;#39;m searching a way of polling SMS receiving notification, but I found only mqtt_simple sample program which&amp;nbsp;has&amp;nbsp;mqtt-specific polling function.&lt;/p&gt;
&lt;p&gt;How can I poll SMS&amp;nbsp;&lt;span&gt;receiving notification&lt;/span&gt;? Do you know any reference?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used&amp;nbsp;blocking_recv function which I found in simple_at and this doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209221?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 14:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c8929e-059d-47c7-bcfe-39da659f7f70</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi, Hakon. Thank you for your reply!&lt;/p&gt;
&lt;p&gt;So these steps should be correct&lt;/p&gt;
&lt;p&gt;1. run &amp;quot;AT+CNMI=3,2,0,1&amp;quot;&lt;br /&gt;2. polling for an incoming SMS&lt;br /&gt;3. send SMS from a server&lt;br /&gt;4. SMS notification shows up&amp;nbsp;&lt;span&gt;once the SMS is received&lt;/span&gt;&lt;br /&gt;5. run &amp;quot;AT+CNMA&amp;quot; right after the notification&lt;br /&gt;*If I don&amp;#39;t run &amp;quot;&lt;span&gt;AT+CNMA&amp;quot;&amp;nbsp; when SMS is received, SMS notification is disabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;OK, I got this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, when I don&amp;#39;t comment out&amp;nbsp;at_cmd_set_notification_handler(), no SMS receiving notification shows up, so MCU doesn&amp;#39;t know the timing of sending&amp;nbsp;&amp;quot;AT+CNMA&amp;quot; command. I guess&amp;nbsp;at_cmd_set_notification_handler() needs some fix.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try to find a way of polling an incoming SMS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209204?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 13:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4780d6a-d5ec-49fc-a03a-f73d2e95f1a0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply.&lt;/p&gt;
&lt;p&gt;When registering a request from AT+CNMI, you should use AT+CNMA to ACK the received message.&lt;/p&gt;
&lt;p&gt;If the ACK is not delivered before the timeout, the CNMI is released, as per this specification:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/text_mode/cnma_set.html?cp=2_1_8_5_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/text_mode/cnma_set.html?cp=2_1_8_5_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not see how commenting out the at_cmd_set_notification_handler() should influence this procedure. Could you see if the same behavior is observed if you ACK the SMS using CNMA?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/209092?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 08:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0cd279b-d94c-446d-acd2-9017f47202fd</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty sure that &amp;quot;at_cmd_set_notification_handler&amp;quot;&amp;nbsp; causes this issue.&lt;/p&gt;
&lt;p&gt;When I comment out the two lines, SMS notification shows up, but when I don&amp;#39;t, it doesn&amp;#39;t show up.&lt;/p&gt;
&lt;p&gt;Could you&amp;nbsp;help me fix this issue?&lt;/p&gt;
&lt;p&gt;Thank you so much for helping me a lot!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;lte_lc.c&amp;gt;

static int w_lte_lc_init_and_connect(struct device *unused)
{
.
.
.
	if (at_cmd_write(network_mode, NULL, 0, NULL) != 0) {
		return -EIO;
	}

	k_sem_init(&amp;amp;link, 0, 1);

//	at_cmd_set_notification_handler(at_handler);

	if (at_cmd_write(normal, NULL, 0, NULL) != 0) {
		return -EIO;
	}

	k_sem_take(&amp;amp;link, K_FOREVER);

//	at_cmd_set_notification_handler(NULL);

	return 0;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/208557?ContentTypeID=1</link><pubDate>Sun, 08 Sep 2019 11:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50b43f2-c2c3-4230-8a33-138fc3cd4bf8</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi, Hakon.&lt;/p&gt;
&lt;p&gt;I managed to receive SMS during eDRX on at_client and LTE Link Monitor.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CFUN=4
AT%XBANDLOCK=1,&amp;quot;10000000&amp;quot; // Some carriers don&amp;#39;t support SMS during eDRX
AT+CEDRXS=2,4,&amp;quot;0110&amp;quot; // enable eDRX
AT%XPTW=4,&amp;quot;0111&amp;quot;
AT+CNMI=3,2,0,1
AT%XSYSTEMMODE=1,0,0,0
AT+CFUN=1
Wait for a while
AT+CFUN? // Make sure LTE conection is established
AT+CEDRXRDP
AT+CNMI?
SMS from server
wait until unsolicited message shows up on LLM
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I implement this code in usual project&amp;nbsp;and check if SMS notification shows up on&amp;nbsp;LTE Link Monitor, I can&amp;#39;t receive SMS notification even though I set&amp;nbsp;&lt;span&gt;&amp;quot;AT+CNMI=3,2,0,1.&amp;quot; SMS seems to be received, but SMS notification is not generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;main&amp;gt;
.
.
.
void send_at_commands(void)
{

    char recv_buf[1024 + 1];
	const char *at_commands[] = { &amp;quot;AT+CEDRXRDP&amp;quot;, &amp;quot;AT+CNMI?&amp;quot; };

	int at_socket_fd = socket(AF_LTE, 0, NPROTO_AT);

	if (at_socket_fd &amp;lt; 0) {
		printk(&amp;quot;Socket err: %d, errno: %d\r\n&amp;quot;, at_socket_fd, errno);
	}
	for (int i = 0; i &amp;lt; ARRAY_SIZE(at_commands); i++) {
        printk(&amp;quot;%s\n&amp;quot;, at_commands[i]);
		int bytes_written = send(at_socket_fd, at_commands[i],
					 strlen(at_commands[i]), 0);
		if (bytes_written &amp;gt; 0) {
			int r_bytes = blocking_recv(at_socket_fd, recv_buf, sizeof(recv_buf), MSG_DONTWAIT);
			if (r_bytes &amp;gt; 0) {
				printk(&amp;quot;%s&amp;quot;, recv_buf);
			}
		}
	}
	printk(&amp;quot;Closing socket\n\r&amp;quot;);
	(void)close(at_socket_fd);
}

void main(void)
{
	printk(&amp;quot;The AT client program started\n&amp;quot;);
	modem_configure();
    send_at_commands();
}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;lte_lc.c&amp;gt;
.
.
#if defined(CONFIG_LTE_LOCK_BANDS)
/* Lock LTE bands 8 (volatile setting) */
static const char lock_bands[] = &amp;quot;AT%XBANDLOCK=2,\&amp;quot;10000000\&amp;quot;&amp;quot;;
#endif
/* Request eDRX settings to be used */
static const char edrx_req[] = &amp;quot;AT+CEDRXS=1,&amp;quot;CONFIG_LTE_EDRX_REQ_ACTT_TYPE&amp;quot;,\&amp;quot;&amp;quot;CONFIG_LTE_EDRX_REQ_VALUE&amp;quot;\&amp;quot;&amp;quot;;
static const char edrx_ptw[] = &amp;quot;AT%XPTW=4,\&amp;quot;0111\&amp;quot;&amp;quot;;
.
.
static int w_lte_lc_init_and_connect(struct device *unused)
{
/* ADD HERE */
	if (at_cmd_write(offline, NULL, 0, NULL) != 0) {
		return -EIO;
	}

	if (at_cmd_write(&amp;quot;AT+CNMI=3,2,0,1&amp;quot;, NULL, 0, NULL) != 0) {
		return -EIO;
	}
/* ADD HERE */

#if defined(CONFIG_LTE_EDRX_REQ)
	/* Request configured eDRX settings to save power */
	if (at_cmd_write(edrx_req, NULL, 0, NULL) != 0) {
		return -EIO;
	}
	if (at_cmd_write(edrx_ptw, NULL, 0, NULL) != 0) {
		return -EIO;
	}
#endif
	if (at_cmd_write(subscribe, NULL, 0, NULL) != 0) {
		return -EIO;
	}

#if defined(CONFIG_LTE_LOCK_BANDS)
	/* Set LTE band lock (volatile setting).
	 * Has to be done every time before activating the modem.
	 */
	if (at_cmd_write(lock_bands, NULL, 0, NULL) != 0) {
		return -EIO;
	}
#endif
#if defined(CONFIG_LTE_LEGACY_PCO_MODE)
	if (at_cmd_write(legacy_pco, NULL, 0, NULL) != 0) {
		return -EIO;
	}
	LOG_INF(&amp;quot;Using legacy LTE PCO mode...&amp;quot;);
#endif
#if defined(CONFIG_LTE_PDP_CMD)
	if (at_cmd_write(cgdcont, NULL, 0, NULL) != 0) {
		return -EIO;
	}
	LOG_INF(&amp;quot;PDP Context: %s&amp;quot;, cgdcont);
#endif
	if (at_cmd_write(network_mode, NULL, 0, NULL) != 0) {
		return -EIO;
	}

	k_sem_init(&amp;amp;link, 0, 1);

	at_cmd_set_notification_handler(at_handler);

	if (at_cmd_write(normal, NULL, 0, NULL) != 0) {
		return -EIO;
	}

	k_sem_take(&amp;amp;link, K_FOREVER);

	at_cmd_set_notification_handler(NULL);

	return 0;
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-2019_2D00_09_2D00_08-20.06.32.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;*Without SMS notification, AT+CNMI was reset and probably SMS is received.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/ncs/nrf/drivers/lte_link_control/lte_lc.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In this lte_lc.c, I think&amp;nbsp;&lt;/span&gt;at_cmd_set_notification_handler&amp;nbsp;is related to&amp;nbsp;this issue.&amp;nbsp;Can you check this?&lt;/p&gt;
&lt;p&gt;Another question:&lt;/p&gt;
&lt;p&gt;Every time SMS is received, SMS notification is reset and you need to run &amp;quot;AT+CNMI=3,2,0,1&amp;quot; again. Why does this happen? Is this possible to set SMS notification permanently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/208543?ContentTypeID=1</link><pubDate>Sat, 07 Sep 2019 04:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e794faf7-e0fe-4e05-ac39-21623e331458</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;oops! That&amp;#39;s wrong.&lt;/p&gt;
&lt;p&gt;This is correct.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEDRXS=2,4,&amp;quot;0110&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/208294?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 15:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69262830-f3c8-46ce-acee-070647b193fd</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEDRXRDP=4,&amp;quot;0110&amp;quot;,&amp;quot;0110&amp;quot;,&amp;quot;0000&amp;quot;
+CEDRXRDP: 0
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I run the above AT command with at_client program, I received &amp;quot;&lt;span&gt;+CEDRXRDP: 0.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But, studying the current consumption(floor: 40uA) and receiving interval, eDRX seems to be working in mqtt_simple + edrx, not at_client.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess something is missing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What should I add? Any help?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/208022?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 16:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdff40cd-d2bd-45a0-be23-8adcb6d9b3a9</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi, Hakon. Thank you for your advice. Very helpful.&lt;/p&gt;
&lt;p&gt;&amp;gt;Is it NB1 or LTE M1?&amp;nbsp;&lt;br /&gt;LTE-M1, hologram SIM&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;span&gt;SMS reception should work in eDRX and PSM&lt;br /&gt;I see. So it&amp;#39;s worth to try to find a way of using SMS and eDRX at the same time in nRF9160.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If SMS and eDRX integrated sample program is provided, it&amp;#39;s very helpful. I think the best way to send messages in some interval while checking an incoming message is to use eDRX and SMS.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/207888?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 10:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2f4d72-bb1a-4aee-ae44-65a20fab6865</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;SMS reception should work in eDRX and PSM, but the SMS itself will be delayed by one period, so if the eDRX or PSM timeout is set to 1 hour, you might have to wait 1 hour to read the received SMS.&lt;/p&gt;
&lt;p&gt;Which operator network are you connected to?&lt;/p&gt;
&lt;p&gt;Is it NB1 or LTE M1?&amp;nbsp;&lt;/p&gt;
[quote user="yusuke217"]Could u tell me how to set up eDRX on LTE link monitor?[/quote]
&lt;p&gt;To request eDRX:&amp;nbsp;&lt;strong&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxs.html"&gt;eDRX setting +CEDRXS&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To check if the settings were applied:&amp;nbsp;&lt;strong&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxrdp.html"&gt;Read EDRX dynamic parameters +CEDRXRDP&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/207767?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 00:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6f1c3a-f685-4d63-b9a1-a4368c58da3c</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Could u tell me how to set up eDRX on LTE link monitor? I want to know the at commands for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/207334?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 09:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df33365-7da4-4aa3-bd9d-6c5752825c34</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Yea, I can receive SMS in normal mode without PSM or eDRX.&lt;br /&gt;I use at_client program and hologram SIM. The SIM allows you to send SMS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/207278?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 06:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9ccd4f-c627-406a-af59-8caa67a1e49f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to receive SMS successfully in other operating modes?&lt;/p&gt;
&lt;p&gt;Is it just eDRX that is the problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/207244?ContentTypeID=1</link><pubDate>Sun, 01 Sep 2019 03:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51b1e01-b738-4e40-8c52-ee7e3492cdb4</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi, Hakon.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t receive SMS in eDRX.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I set 82 sec interval, I hope nRF9160 check if it receives SMS in that interval, but it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Does this mean SMS can&amp;#39;t be received when you use eDRX?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198834?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 03:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8349ec-2821-4bed-bee6-f735ab0f847d</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I think it&amp;#39;s not possible to &amp;quot;wake up&amp;quot; dormant LTE modem by SMS. What you can do is to check SMS incoming in the interval which eDRX configures.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198828?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 01:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4de0cde3-8f9d-4a5f-acde-142066d95f8a</guid><dc:creator>Ethan</dc:creator><description>&lt;p&gt;The reference is not what we are doing. In the case, it is not sending trigger on SMS to wake up the LTE module. The article explains that once the LTE module becomes awake, it can receive SMS even though SMS is sent while the LTE module is off. What we want to do is to wake up the LTE module in eDRX or PSM by a trigger on SMS. Isn&amp;#39;t it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198827?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 01:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52e10a3-8322-4c9d-9a30-97910cbb1d71</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;SMS should be received even when eDRX or PSM is activated. SMS is kept at least three days if it doesn&amp;#39;t reach a cell phone. You can turn off your cell phone, send SMS from another cell phone, and turn on the former one. You will receive SMS.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.techwalla.com/articles/can-i-receive-texts-while-my-phone-is-off"&gt;https://www.techwalla.com/articles/can-i-receive-texts-while-my-phone-is-off&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198824?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 23:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:780c3dc6-762c-421a-bfae-d4c0dc669668</guid><dc:creator>Ethan</dc:creator><description>&lt;p&gt;Thanks for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see. You are also facing with the same difficulty as ours. Since eDRX and PSM extend the paging period, the LTE becomes dormant and cannot receive any signals during the period. Only thing we can think of now is to trigger the LTE from microchip in the device, which we don&amp;#39;t want.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198820?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 22:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19941162-16a2-4783-9d2a-a77a6fe70e38</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;In my case, I&amp;#39;m trying to receive SMS during eDRX. If it received SMS, it&amp;#39;s supposed to send data through UDP.&lt;/p&gt;
&lt;p&gt;However, I have not been able to do that.&lt;/p&gt;
&lt;p&gt;I really want an example program about this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/198813?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 20:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df80c188-a888-4be9-aceb-018c5e85f938</guid><dc:creator>Ethan</dc:creator><description>&lt;p&gt;Hi Yusuke, sounds like your development would be similar to ours. I am wondering that when you succeeded in implementing MQTT(+TLS) to wake up the device and send some data by UDP, is the LTE module in PSM? Did you successfully implement SMS function? I have been trying to implement the method to wake up the LTE by sending SMS and send some data to the server by UDP. If you don&amp;#39;t mind, please exchange the information. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/197017?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 08:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dcaafbd-c4e5-4284-b4c6-f21484c3bd63</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The sample you link to is for sending sms. For receiving sms, you need to poll the AT socket. Try to use at_client, and see if you are able to get a sms successfully received. Note that you need a SIM card which has a phone number in order to send/receive sms.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/196933?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 05:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8585f8b9-2c93-46db-8c33-1b0ebd8eec7c</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;This is&amp;nbsp;draft code of what I want to do.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2018 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
 */

#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;net/socket.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

/**@brief Recoverable BSD library error. */
void bsd_recoverable_error_handler(uint32_t err)
{
	printk(&amp;quot;bsdlib recoverable error: %u\n&amp;quot;, err);
}

/**@brief Irrecoverable BSD library error. */
void bsd_irrecoverable_error_handler(uint32_t err)
{
	printk(&amp;quot;bsdlib irrecoverable error: %u\n&amp;quot;, err);

	__ASSERT_NO_MSG(false);
}

int blocking_recv(int fd, u8_t *buf, u32_t size, u32_t flags)
{
	int err;

	do {
		err = recv(fd, buf, size, flags);
	} while (err &amp;lt; 0 &amp;amp;&amp;amp; errno == EAGAIN);

	return err;
}

int blocking_send(int fd, u8_t *buf, u32_t size, u32_t flags)
{
	int err;

	do {
		err = send(fd, buf, size, flags);
	} while (err &amp;lt; 0 &amp;amp;&amp;amp; errno == EAGAIN);

	return err;
}

int blocking_connect(int fd, struct sockaddr *local_addr, socklen_t len)
{
	int err;

	do {
		err = connect(fd, local_addr, len);
	} while (err &amp;lt; 0 &amp;amp;&amp;amp; errno == EAGAIN);

	return err;
}

void setup_sms()
{
    char recv_buf[256 + 1];
    const char *at_commands[] = {&amp;lt;AT Commands that enables modem and SMS notification&amp;gt;};
	int at_socket_fd = socket(AF_LTE, 0, NPROTO_AT);

	printk(&amp;quot;Starting simple AT socket application\n\r&amp;quot;);

	if (at_socket_fd &amp;lt; 0) {
		printk(&amp;quot;Socket err: %d, errno: %d\r\n&amp;quot;, at_socket_fd, errno);
	}
	for (int i = 0; i &amp;lt; ARRAY_SIZE(at_commands); i++) {
        printk(&amp;quot;%s\n&amp;quot;, at_commands[i]);
		int bytes_written = send(at_socket_fd, at_commands[i], strlen(at_commands[i]), 0);
		if (bytes_written &amp;gt; 0) {
			int r_bytes = blocking_recv(at_socket_fd, recv_buf, sizeof(recv_buf), MSG_DONTWAIT);
			if (r_bytes &amp;gt; 0) {
				printk(&amp;quot;%s\n&amp;quot;, recv_buf);
			}
		}
	}
	printk(&amp;quot;Closing socket\n\r&amp;quot;);
	(void)close(at_socket_fd);
}

void main(void)
{
	printk(&amp;quot;The SMS receiving sample started\n&amp;quot;);
	char sms_messsage[30];
    setup_sms();

    while(1){
        while(&amp;lt;no SMS message? = true&amp;gt;){
            &amp;lt;check if modem is on and SMS notification is on in some interval&amp;gt;;
            if(&amp;lt;modem is off of SMS notification is off&amp;gt;){
                setup_sms();
            }
        }
        
        // if SMS received
        &amp;lt;store sms message to sms_messsage&amp;gt;;
        printk(&amp;quot;SMS message is %s\n&amp;quot;, sms_message);
    };

}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to receive SMS message in standby mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/196643?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 15:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:238576c9-cbf2-4dba-9012-934204ff33aa</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I&amp;#39;ve already checked the link below, but I don&amp;#39;t really get what each line means.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41755/sending-sms-using-at_client-example"&gt;devzone.nordicsemi.com/.../sending-sms-using-at_client-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is my understanding.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;AT+CFUN=1&lt;br /&gt;&lt;/span&gt;&lt;span&gt;=&amp;gt; Turn on the modem. The modem can receive SMS at any time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT+CPIN=&amp;quot;1234&amp;quot;&lt;br /&gt;=&amp;gt; Set Pin number, which is a password of SIM. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT+CNMI=3,2,0,1&lt;br /&gt;=&amp;gt; Configure the process of receving SMS.&lt;br /&gt;&lt;/span&gt;----------------&lt;/p&gt;
&lt;p&gt;After this setting, MCU can go to sleep to wait until SMS is received. When SMS is received, MCU wakes up.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this correct? I&amp;#39;m not familiar with SMS function. Sorry for poor skill.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>