<?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>Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41755/sending-sms-using-at_client-example</link><description>Should it be possible to send SMS with the at_client example, and is there any special requirements to do so? 
 This is the AT commands setup procedure I&amp;#39;ve used: 
 AT+CFUN=1 OK AT+CPIN=&amp;quot;1234&amp;quot; OK AT+CNUM +CNUM: ,&amp;quot;+47123456789&amp;quot;,145 OK AT+CEREG? +CEREG</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2019 08:20:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41755/sending-sms-using-at_client-example" /><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/216516?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cfd488d-78cd-425b-beab-b44208dff5b6</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to follow the same things recommended by &lt;a href="https://devzone.nordicsemi.com/members/skyfex"&gt;skyfex&lt;/a&gt; but I am not able to send sms from iBASIS sim or my sim card as well. using AT+CMGS command always shows error or it is timed out. Can you please help me with this? I tried both programs (at_client and simple_at). But nothing works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/216410?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 13:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f1397d-c511-4abc-9d90-f334730d3e20</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using simple_at program to send sms. But it is not working. Commands like AT+CFUN?,&amp;nbsp;AT+CFUN=1,&amp;nbsp;&amp;nbsp;AT+CEREG? are working, but when i use AT+CMGS command, folllowing output comes. I am not able to send sms. I am using&amp;nbsp;&lt;span&gt;&amp;nbsp;iBasis SIM card that came with the DK. when i give&amp;nbsp;AT+CPIN=&amp;quot;1234&amp;quot; it shows error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please help me with this.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/output_5F00_sms.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/194081?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 11:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30a0e8a2-2ea9-411c-9b77-108d364f327c</guid><dc:creator>f0corner</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/skyfex"&gt;skyfex&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I tried what you are recommending here and it worked!&lt;/p&gt;
&lt;p&gt;Thank you for sharing. That is some very useful information.&lt;/p&gt;
&lt;p&gt;A+&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/173560?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 17:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1150f15-0bdf-4f45-ad76-716d5fe0040b</guid><dc:creator>skyfex</dc:creator><description>&lt;p&gt;One more thing, you may have to check if your network supports LTE-M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/173559?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 17:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbbcd97f-cafa-4c38-8342-4d42b40c5cb6</guid><dc:creator>skyfex</dc:creator><description>&lt;p&gt;Etienne,&amp;nbsp;&lt;br /&gt;Does you SIM card have a PIN-code? My impression is that in the default configuration the OS will not boot if it&amp;#39;s configured to work with a PIN-less SIM card, but the inserted card has a PIN-code.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s possible to configure it to not attempt to connect to the network before booting, and in that case a SIM card with PIN-code is OK. You just have to send the right AT commands to enter the PIN-code as my example illustrated. I haven&amp;#39;t tried to get networking up and running with PIN-code.&lt;br /&gt;&lt;br /&gt;The configuration is in prj.conf&lt;br /&gt;I don&amp;#39;t remember which one. Maybe someone could find the documentation of this configuration file and link to it here.&lt;/p&gt;
&lt;p&gt;I think you can disable the PIN-code on your SIM card from any phone as well.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;mdash; Audun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/173423?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 10:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c92bfd9d-dc10-40bb-ad97-1e6acb2ab7d7</guid><dc:creator>&amp;#201;tienne Castani&amp;#233;</dc:creator><description>&lt;p&gt;Hi Dominik! Thank you for your answer!&lt;/p&gt;
&lt;p&gt;The behavior we saw is the following one:&lt;/p&gt;
&lt;p&gt;- Booting simple_at with the iBasis sim card inserted in the DK works fine (= we see the secure boot trace + the application printk as expected)&lt;/p&gt;
&lt;p&gt;- Booting simple_at (or else) with our own sim cards inserted (we tried two different ones, Orange &amp;amp; SFR french operators) only shows the secure boot traces, and nothing else after the &amp;quot;Booting Zephyr OS&amp;quot; printk. The firmware seems then stuck.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems like our sim cards are not &amp;quot;allowed&amp;quot; to be used with the nrf9160 DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;Eacute;tienne&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/173268?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 13:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e413fb6-0b71-4ceb-9b71-2e3e68bdd7cd</guid><dc:creator>Dominik Windhab</dc:creator><description>&lt;p&gt;Hi! Has probably nothing to do with the SMS problem, but could you explain what&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;using SIM cards other than iBasis seems to prevent the firmware from booting&amp;quot; mean? I am&amp;nbsp;also using my own sim card&amp;nbsp; (with NB-IoT firmware), and the boot process itself is&amp;nbsp;working. My problem is that the registration process is&amp;nbsp;not working reliably. Meaning that it seems to work after I flashed the application for time and then never again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/172974?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 09:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04dd388a-7193-4498-a0cd-7b04e077bf52</guid><dc:creator>&amp;#201;tienne Castani&amp;#233;</dc:creator><description>&lt;p&gt;Hi all!&lt;/p&gt;
&lt;p&gt;We are trying to send SMS with the nrf9160 DK, without success.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you @skyfex for your clear explanations. Unfortunately, using SIM cards other than iBasis seems to prevent the firmware from booting (we got the same behavior that @Diego Garcia with only the &amp;quot;Booting Zephyr OS&amp;quot; printk showing when using SIM cards other than the iBasis one).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;@skyfex could you share which SIM card you used for your successful SMS test?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;@Diego Garcia could you in the end manage to send SMS? If yes, could you share how you did it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;Eacute;tienne&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/169399?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 06:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:035362dd-3ac0-4d2e-884b-368663f67612</guid><dc:creator>Diego Garc&amp;#237;a</dc:creator><description>&lt;p&gt;Hi!,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m following your steps, but it seems simple_at doesn&amp;#39;t boot correctly. First I erase all, then program secure_boot, then simple_at. But it stops when showing &amp;quot;&lt;span&gt;***** Booting Zephyr OS v1.13.99-ncs2 *****&amp;quot;, and it&amp;nbsp;doesn&amp;#39;t show the first&amp;nbsp;&lt;/span&gt;printk from app_socket_start.&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending SMS using at_client example</title><link>https://devzone.nordicsemi.com/thread/164297?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 14:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4fb81d-f053-4339-ba99-79496490114c</guid><dc:creator>skyfex</dc:creator><description>&lt;p&gt;I was able to get sending of SMS to work.&lt;br /&gt;&lt;br /&gt;It does not appear to work with the iBasis SIM card that came with the DK. But I was able to use my own SIM card (this might not work for everyone since LTE-M might not be supported)&lt;br /&gt;&lt;br /&gt;I could not use the at_client example, as the AT+CMGS command isn&amp;#39;t supported over a UART terminal to at_client, if I understand correctly.&lt;br /&gt;&lt;br /&gt;If I write the AT commands directly from C firmware, it works.&lt;br /&gt;&lt;br /&gt;This is the sequence of AT commands I used:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; AT+CPIN=&amp;quot;1234&amp;quot;
OK
&amp;gt; AT+CFUN?
+CFUN: 4
OK
&amp;gt; AT+CFUN=1
OK
&amp;gt; AT+CFUN?
+CFUN: 1
OK
Sleeping...
&amp;gt; AT+CNUM
+CNUM: ,&amp;quot;+47123456789&amp;quot;,145
OK
&amp;gt; AT+CEREG?
+CEREG: 0,2,&amp;quot;0AF1&amp;quot;,&amp;quot;02055515&amp;quot;,7
OK
&amp;gt; AT+CNMI=3,2,0,1
OK
&amp;gt; AT+CMGS=27&amp;lt;CR&amp;gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;lt;SUB&amp;gt;
+CMGS: 99
OK
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It was important to add a sleep function before sending CPIN, and after sending CFUN=1&lt;br /&gt;&lt;br /&gt;I used the following example for how to send simple AT commands from C firmware code:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf2/blob/nrf9160_samples/samples/nrf9160/simple_at/src/main.c"&gt;https://github.com/Rallare/fw-nrfconnect-nrf2/blob/nrf9160_samples/samples/nrf9160/simple_at/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(I used k_sleep(10000) to sleep before CPIN and after CFUN=1)&lt;/p&gt;
&lt;p&gt;I used this tool to generate the AT+CMGS command:&lt;br /&gt;&lt;a href="http://rednaxela.net/pdu.php"&gt;http://rednaxela.net/pdu.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the C code the string for the CMGS command looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;quot;AT+CMGS=YY\rXXXX\x1A&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where YY is the length (from the first line from the PDU generator) and XXXX is the hexidecimal code (from the second line from the generator)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>