<?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>AT Command to get ICCID from nRF9160 modem?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48992/at-command-to-get-iccid-from-nrf9160-modem</link><description>Hi, 
 
 We are working on our manufacturing process that involves use of the nRF9160. I need a way to programmatically get the IMEI and ICCID in order to register the device to our cellular provider. 
 
 I see there is an AT Command to get the IMEI number</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 22:46:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48992/at-command-to-get-iccid-from-nrf9160-modem" /><item><title>RE: AT Command to get ICCID from nRF9160 modem?</title><link>https://devzone.nordicsemi.com/thread/487584?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 22:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30df4da3-188b-4b86-b0f8-2fd004e8364a</guid><dc:creator>J J</dc:creator><description>&lt;p&gt;Hi there!&lt;/p&gt;
&lt;p&gt;Use this AT command: AT%XICCID&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example using the nRF9160-DK&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/pastedimage1717627711865v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT Command to get ICCID from nRF9160 modem?</title><link>https://devzone.nordicsemi.com/thread/233799?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 15:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a89662-680b-4ba7-974a-87a902e92f1b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Tero,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Power to the sim will not be applied before the modem is activated, so the +CRSM will then fail before CFUN is set to &amp;#39;1&amp;#39;.&lt;/p&gt;
&lt;p&gt;You could try this sequence:&lt;/p&gt;
&lt;p&gt;* subscribe to AT%XSIM&lt;/p&gt;
&lt;p&gt;* Start up the modem with CFUN=1&lt;/p&gt;
&lt;p&gt;* After &amp;quot;OK&amp;quot; has been returned, activate flight-mode with SIM turned on: &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun_set.html?cp=2_1_3_0_0"&gt;AT+CFUN=44&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;* Wait for SIM init notification: %XSIM: 1&lt;/p&gt;
&lt;p&gt;* Communicate with the SIM.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can ofcourse poll XSIM instead of waiting for notification, if you prefer that instead.&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: AT Command to get ICCID from nRF9160 modem?</title><link>https://devzone.nordicsemi.com/thread/233756?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 13:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222f7c23-dd95-426b-b736-61260aa043ec</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;I know this is a little old post but I hope I could still get some help from here.&lt;/p&gt;
&lt;p&gt;Sending&amp;nbsp;&lt;span&gt;AT+CRSM=176,12258,0,0,10 before AT+CFUN=1 gives me ERROR. But first sending AT+CFUN=1 and then&amp;nbsp;AT+CRSM=176,12258,0,0,10 gives OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, is there a way to read ICCID before modem has been powered on?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Tero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT Command to get ICCID from nRF9160 modem?</title><link>https://devzone.nordicsemi.com/thread/194765?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 07:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15144cb4-d02f-4d0f-9922-0dd15a10a16a</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Jack.&lt;/p&gt;
&lt;p&gt;You can find ICCID by running the AT command:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;AT+CRSM=176,12258,0,0,10&lt;/p&gt;
&lt;p&gt;You will get a response back something like:&lt;/p&gt;
&lt;p&gt;+CRSM: 144,0,&amp;quot;2143658709&amp;quot;&lt;/p&gt;
&lt;p&gt;The &amp;quot;2143658709&amp;quot; is in binary coded decimal format&amp;nbsp; with switched digits. So in this example it would turn out to be &amp;quot;1234567890&amp;quot;.&lt;/p&gt;
&lt;p&gt;To make it clear:&lt;/p&gt;
&lt;p&gt;2&lt;strong&gt;1&lt;/strong&gt; 4&lt;strong&gt;3&lt;/strong&gt; 6&lt;strong&gt;5&lt;/strong&gt; 8&lt;strong&gt;7&lt;/strong&gt; 0&lt;strong&gt;9&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Switch places:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1&lt;/strong&gt;2 &lt;strong&gt;3&lt;/strong&gt;4 &lt;strong&gt;5&lt;/strong&gt;6 &lt;strong&gt;7&lt;/strong&gt;8 &lt;strong&gt;9&lt;/strong&gt;0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>