<?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>Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95770/regarding-scripting-of-certification-to-cloud</link><description>Hi everyone! 
 In preparations of getting our custom nRF9160 HW, I&amp;#39;m making use of the fantastic scripts to generate credentials and provision our devices with nRFCloud. 
 I have successfully generate our CA as such: 
 
 Then I installed the credentials</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2023 13:52:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95770/regarding-scripting-of-certification-to-cloud" /><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405696?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 13:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0326535b-f50d-4448-9c0c-70e4a40d9cae</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Thank you for these links. My understanding is that to define the names, the devinfo.csv is not really needed, since the provision.csv does the same thing with the right parameters anyway. devinfo is helpful for getting the modem firmware version, which can be important.&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405469?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 12:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c19d6af-3162-46c8-a4e6-c572ad9822e1</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Torje,&lt;/p&gt;
&lt;p&gt;Did you attach the csv file that your devices information behind &lt;span&gt;--devinfo? Its format is&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;# First column in each row is the device ID&lt;br /&gt; # Add a list to the list [ &amp;lt;device_id&amp;gt;, &amp;lt;mfw_version&amp;gt;, &amp;lt;imei&amp;gt;]&lt;/p&gt;
&lt;p&gt;What I see from the source codes is that&amp;nbsp;&lt;a href="https://github.com/nRFCloud/utils/blob/2d6caafcdf395b20abe7a661e7b08a552f28374c/python/modem-firmware-1.3%2B/nrf_cloud_provision.py#L511"&gt;&lt;span&gt;&lt;span&gt;process_device_info_csv&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;which processes device information is more like a stand-alone function without any bonding to &lt;a href="https://github.com/nRFCloud/utils/blob/2d6caafcdf395b20abe7a661e7b08a552f28374c/python/modem-firmware-1.3%2B/nrf_cloud_provision.py#L319"&gt;do_provisioning&lt;/a&gt;. It can be used to modify the device ID stored in nRF Cloud.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405463?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 12:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db5c0d36-9c08-43be-af56-0bd8661e9608</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been studying and testing based on this documentation, but I&amp;#39;m not really the wiser from it. It seems to me that getting the prefix and the IMEI as names is done by:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; --id_str ID_STR       Device ID to use instead of UUID. Will be a prefix if used with --id_imei (default: )
  --id_imei             Use IMEI for device ID instead of UUID. Add a prefix with --id_str (default: False)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Using the devinfo made no difference, but these arguments did. I have tried the different combinations of it. In my case, the devinfo changes, with name_imei and name_prefix, makes no change. The changes in my snip above are what changes the name, and works when setting the corresponding configs the firmware.&lt;/p&gt;
&lt;p&gt;These are my obsevations, where the name_imei and name_prefix makes no difference. Am I mistaken or totally wrong?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;-Torje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405460?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 11:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc7e5436-a06a-472a-988c-20a0054c3c78</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Torje,&lt;/p&gt;
&lt;p&gt;You can find how they are used from the source codes: &lt;a href="https://github.com/nRFCloud/utils/blob/master/python/modem-firmware-1.3%2B/nrf_cloud_provision.py"&gt;utils/nrf_cloud_provision.py at master · nRFCloud/utils (github.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  --name_imei          Use the device&amp;#39;s IMEI as the friendly name. Requires --devinfo. (default: False)
  --name_prefix NAME_PREFIX
                        Prefix string for IMEI friendly name (default: None)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you input&amp;nbsp;--devinfo devinfo.csv --name_prefix Company- --name_imei arguments, the client ID will be changed to Company-xxxxxxxxxxxxxxx and will be stored with credentials into nRF cloud, then you can use the following configuration when building the device firmware.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=n
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_IMEI=y
CONFIG_NRF_CLOUD_CLIENT_ID_PREFIX=&amp;quot;Company-&amp;quot;&lt;/pre&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Charlie&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405366?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 06:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668f1855-62f5-4536-ad6c-9d4c6ff6b91d</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Update again:&lt;/p&gt;
&lt;p&gt;I figured out how to use own names, or own prefix and IMEI instead of UUID. For reference incase others are looking for the same:&lt;br /&gt;We can change the names in the provision.csv output, and must change name accordingly in prj.conf as such:&lt;br /&gt;CONFIG_NRF_CLOUD_CLIENT_ID_SRC_COMPILE_TIME=y&lt;br /&gt;CONFIG_NRF_CLOUD_CLIENT_ID=&amp;quot;Very-Cool-Device&amp;quot;&lt;/p&gt;
&lt;p&gt;We can chose to use prefix and IMEI in the script, and must chose this in the prj.conf as well as such:&lt;br /&gt;&lt;span&gt;CONFIG_NRF_CLOUD_CLIENT_ID_PREFIX&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;cool-&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_NRF_CLOUD_CLIENT_ID_SRC_IMEI&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have not understood what the devinfo.csv with --name_prefix and --name_imei do. The names are set before, and saved in provisions.csv. If someone would clarify, that would be welcomed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Torje&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding scripting of certification to cloud</title><link>https://devzone.nordicsemi.com/thread/405227?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 12:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d854b7a-1991-4f9e-ae3c-b90fa8a66be8</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Update: I had not added&amp;nbsp;&lt;span&gt;CONFIG_MODEM_JWT&lt;/span&gt;&lt;span&gt;=y and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID&lt;/span&gt;&lt;span&gt;=y. After doing so, I&amp;#39;m successfully connecting to the cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve also learned that the provisions.csv can be manually edited to change the device names on nRFCloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So now this question remains: What does the --name_prefix and --name_imei do? And maybe more importantly, what does the devinfo do?&lt;br /&gt;Can the name change be done in the same script procedures?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Torje&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>