<?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>IMEI and HWID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59924/imei-and-hwid</link><description>I am trying to get the IEMI and HWID in my code. I was able to read the IEMI as a client ID using the following API. 
 nct_client_id_get(client_id_buf); printk(&amp;quot;Client ID: %s\r\n&amp;quot;,client_id_buf); 
 
 with the result below that is my correct board ID.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Apr 2020 17:55:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59924/imei-and-hwid" /><item><title>RE: IMEI and HWID</title><link>https://devzone.nordicsemi.com/thread/243952?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 17:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62fe320-6d1e-4e6c-b745-c0544b283f29</guid><dc:creator>Timothy</dc:creator><description>&lt;p&gt;Didrik&lt;/p&gt;
&lt;p&gt;thanks or explaining how to access the EMEI. you are correct we will not need HWID. you can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IMEI and HWID</title><link>https://devzone.nordicsemi.com/thread/243827?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 08:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3700065-70f0-498b-bb4d-ac1925786431</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user=""]Is this the correct way to get the IEMI?[/quote]
&lt;p&gt;Not really, but it might be a usable way regardless. The &amp;quot;correct&amp;quot; answer is that you should use the +CGSN AT command. To get the IMEI, the command is AT+CGSN=1.&lt;/p&gt;
&lt;p&gt;To easier send the the AT command from your application, you can use the modem_info library to get the IMEI, or the at_cmd library to send the AT command yourself.&lt;/p&gt;
&lt;p&gt;The function you found is used internally in the nrf_cloud library to get the client ID used by nrf_cloud if no other ID is provided.&lt;/p&gt;
&lt;p&gt;The reason for why the nRF Cloud client ID is based on the IMEI is that AWS (which nRF Cloud is built on) requires client IDs to be globally unique. As the IMEI is already a gloablly unique number that the device knows it is a very easy way of automatically creating globally unique IDs that the device is able to construct themselves at runtime (which is what the nct_client_id_get() function does). However, the nrf_cloud library does allow you to override this ID generation and instead use another pre-defined ID.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]How do I read the HWID information of the form XX:XX:XX:XX:XX:XX printed on the board?[/quote]
&lt;p&gt;&amp;nbsp;From the nRF91? You cannot. At least not without some help. The HWID is the Bluetooth MAC address of the nRF52840 on the nRF91DK. So in order for the application running on the nRF9160 to get the HWID, it must first be read from the nRF52840, then sent to the nRF9160, e.g. over UART. &lt;/p&gt;
&lt;p&gt;The question is though, why do you want to read the HWID? On nRF Cloud, it is used only as an &amp;quot;ownership code&amp;quot;. A piece of information that is only tied to the board, which is used by nRF Cloud to confirm that you actually are in possession of the board. If you are adding your own custom board to nRF Cloud, you are free to set the client ID and ownership code/HWID/PIN to whatever you want (although the client ID can not be on the form nrf-&amp;lt;18 numbers&amp;gt; as nRF Cloud will then believe you have a &amp;quot;Nordic device&amp;quot;, i.e. a Thingy:91 or a 91DK, which already has an ownership code).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>