<?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 get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100615/how-to-get-the-device-id-shown-in-the-programmer-about-device-section-from-at-commands</link><description>Hi, I&amp;#39;m connecting my Thingy:91 for the first time, and trying to understand several things. 1. How do I determine what factory Firmware files (hex files) was used to program my device? (I was hoping to find them in the download section, but since I cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jun 2023 14:04:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100615/how-to-get-the-device-id-shown-in-the-programmer-about-device-section-from-at-commands" /><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/432057?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 14:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f80bb83b-6324-4964-83bf-48fc195a1b60</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Emanuel,&lt;/p&gt;
&lt;p&gt;The device ID&amp;nbsp;which is shown on&amp;nbsp;programmer app has no connection with the nRF9160 sip&amp;nbsp;that can tell if it is on a thingy:91 or DK or something else.&amp;nbsp;It can be related to nRF Connect for Desktop. This app can define what device is based on the USB descriptors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read device ID by using AT+CGSN command (&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/general/cgsn.html?cp=2_1_3_3"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/general/cgsn.html?cp=2_1_3_3&lt;/a&gt;) and can read modem FW version by using AT+CGMR.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF9160 DK or Thingy:91, ship with a device ID in the format of&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrf-[IMEI]&lt;/code&gt;&lt;span&gt;, for example,&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrf-351358811330130&lt;/code&gt;&lt;span&gt;. The IMEI is printed on the product&amp;#39;s label. However, you are not restricted to the&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrf-&lt;/code&gt;&lt;span&gt;&amp;nbsp;format. To change the device ID, your device requires new credentials&amp;nbsp;&lt;/span&gt;&lt;span&gt;and properly configured application firmware. Device management and provisioning&amp;nbsp;services, you will get in nRF Cloud also.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;#39;&amp;#39;For Q2, you referred me to use&amp;nbsp;nrfjprog,&amp;nbsp;but not saying that it&amp;nbsp;&lt;em&gt;requires&lt;/em&gt;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;&amp;nbsp;a debugger attached, such as the nrF9160-DK (or other 3rd party). If there is another solution, for using that tool, please let me know.&amp;#39;&lt;/strong&gt;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes. nrfjprog is the component&amp;nbsp;of nRF command line tools. It is detailed described here (&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools"&gt;nRF Command Line Tools - nordicsemi.com&lt;/a&gt;).. The&amp;nbsp;&lt;span&gt;nrfjprog&lt;/span&gt;&amp;nbsp;utility is developed for using together with SEGGER debuggers, so the SEGGER software must also be installed.&amp;nbsp;When installing the nRF Command Line Tools on Windows, SEGGER software is automatically installed in addition to the tools.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/431579?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 23:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d58a714-6846-43ad-b1d4-a2d381a3bb54</guid><dc:creator>EAB</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To Recap:&lt;/p&gt;
&lt;p&gt;For Q1 I was wondering how to determine from within the device what factory FW it was flashed with?&lt;br /&gt;(Perhaps there&amp;#39;s an AT command that shows you the exact version?)&lt;br /&gt;&lt;br /&gt;For Q2, you referred me to use &lt;strong&gt;nrfjprog,&lt;/strong&gt; but not saying that it &lt;em&gt;requires&lt;/em&gt; a debugger attached, such as the nrF9160-DK (or other 3rd party). If there is another solution, for using that tool, please let me know. &lt;br /&gt;&lt;br /&gt;For example, can I use &lt;strong&gt;nrfjprog&lt;/strong&gt; over USB interface if I flash the &lt;strong&gt;*debug&lt;/strong&gt; version of the firmware?&lt;br /&gt;(I believe not..)&lt;/p&gt;
&lt;p&gt;References:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100782/can-the-swd-port-p8-be-used-to-collect-trace-data-using-a-serial-to-usb-cable"&gt;Can the SWD port (P8) be used to collect Trace data using a serial-to-usb cable?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;gt;&lt;em&gt; I am just curious why do you need this information?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Because we are looking to get some kind of unique (but simple) ID that cannot be changed, and could be used for either the PSK keyid, deviceID or default PSK password, for provisioning devices to our test customers. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/431118?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 20:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45fc883-c899-4a12-bbd4-cf933e37372e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Emanuel,&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;Thanks for the info, but I am not able to run the program you suggest.&amp;#39;&amp;#39; - could you please tell me that which program you are mentioning? I am sorry as my second reply did not satisfy your queries.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;#39;&amp;#39;Apparently the installer did not install the &amp;quot;nRF-Command-Line-Tools&amp;quot;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;My operating system is windows and here is no problem to install nRF command line tools. I am not sure about this. I will ask our team will give you a feedback.&lt;/p&gt;
&lt;p&gt;Let me say again about device address a bit more again. I showed you to see the device ID for nRF9160 ( when the switch is&amp;nbsp; turned to nRF91). When it is nRF52840, we need to use the address for the register of that chip. for device.addr it is 0x10000064. nrfjprog --memrd command shows the following output.&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/pastedimage1686771570640v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, none of the IDs&amp;#39; are close to what we can see in the about tab in programmer app. I have found a code&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/connectivity_bridge/src/main.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/applications/connectivity_bridge/src/main.c&lt;/a&gt;&amp;nbsp;that shows hoe device ID set in the application. So, it is clear that device ID is from deviceaddr register.&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/pastedimage1686771937729v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I will ask the specific team about this ID on the programmer app. I am just curious why do you need this information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/430497?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 12:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e895c2d-98ba-4da6-a76b-a68cd4860031</guid><dc:creator>EAB</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;br /&gt;&lt;br /&gt;This is an answer for a different question, not the one I had above. &lt;br /&gt;(I have already flashed the device and know how to do so.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/430454?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 11:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c073784-55c0-40f5-9d9b-e52661cf2f61</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Emanuel,&lt;/p&gt;
&lt;p&gt;This is the way&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/thingy91_gsg.html#id45"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/thingy91_gsg.html#id45&lt;/a&gt;&amp;nbsp;how you can update modem firmware on nRF9160.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see these file for specific applications and the description.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;img_app_bl/debug/thingy91_asset_tracker_v2_debug_2023-06-01_0677b099.hex                         Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-Iot and LTE-M network modes
img_app_bl/debug/thingy91_asset_tracker_v2_debug_nbiot_legacy_pco_2023-06-01_0677b099.hex        Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-IoT network mode, legacy PCO
img_app_bl/debug/thingy91_modem_shell_debug_2023-06-01_0677b099.hex                              Modem shell, modem debug enabled
img_app_bl/debug/thingy91_serial_lte_modem_debug_2023-06-01_0677b099.hex                         Serial LTE modem, modem debug enabled
img_app_bl/thingy91_asset_tracker_v2_2023-06-01_0677b099.hex                                     Asset tracker v2 firmware for nRF9160, NB-Iot and LTE-M network modes
img_app_bl/thingy91_asset_tracker_v2_nbiot_legacy_pco_2023-06-01_0677b099.hex                    Asset tracker v2 firmware for nRF9160, NB-IoT network mode, legacy PCO
img_app_bl/thingy91_at_client_2023-06-01_0677b099.hex                                            Firmware for direct modem communication
img_app_bl/thingy91_modem_shell_2023-06-01_0677b099.hex                                          Modem shell
img_app_bl/thingy91_nrf52_connectivity_bridge_2023-06-01_0677b099.hex                            Connectivity bridge for the nrf52
img_app_bl/thingy91_serial_lte_modem_2023-06-01_0677b099.hex                                     Serial LTE modem
img_fota_dfu_bin/debug/thingy91_asset_tracker_v2_debug_2023-06-01_0677b099.bin                   Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-Iot and LTE-M network modes
img_fota_dfu_bin/debug/thingy91_asset_tracker_v2_debug_nbiot_legacy_pco_2023-06-01_0677b099.bin  Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-IoT network mode, legacy PCO
img_fota_dfu_bin/debug/thingy91_modem_shell_debug_2023-06-01_0677b099.bin                        Modem shell, modem debug enabled
img_fota_dfu_bin/debug/thingy91_serial_lte_modem_debug_2023-06-01_0677b099.bin                   Serial LTE modem, modem debug enabled
img_fota_dfu_bin/thingy91_asset_tracker_v2_2023-06-01_0677b099.bin                               Asset tracker v2 firmware for nRF9160, NB-Iot and LTE-M network modes
img_fota_dfu_bin/thingy91_asset_tracker_v2_nbiot_legacy_pco_2023-06-01_0677b099.bin              Asset tracker v2 firmware for nRF9160, NB-IoT network mode, legacy PCO
img_fota_dfu_bin/thingy91_at_client_2023-06-01_0677b099.bin                                      Firmware for direct modem communication
img_fota_dfu_bin/thingy91_modem_shell_2023-06-01_0677b099.bin                                    Modem shell
img_fota_dfu_bin/thingy91_nrf52_connectivity_bridge_2023-06-01_0677b099.bin                      Connectivity bridge for the nrf52
img_fota_dfu_bin/thingy91_serial_lte_modem_2023-06-01_0677b099.bin                               Serial LTE modem
img_fota_dfu_hex/debug/thingy91_asset_tracker_v2_debug_2023-06-01_0677b099.hex                   Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-Iot and LTE-M network modes
img_fota_dfu_hex/debug/thingy91_asset_tracker_v2_debug_nbiot_legacy_pco_2023-06-01_0677b099.hex  Asset tracker v2 firmware for nRF9160, modem debug enabled, NB-IoT network mode, legacy PCO
img_fota_dfu_hex/debug/thingy91_modem_shell_debug_2023-06-01_0677b099.hex                        Modem shell, modem debug enabled
img_fota_dfu_hex/debug/thingy91_serial_lte_modem_debug_2023-06-01_0677b099.hex                   Serial LTE modem, modem debug enabled
img_fota_dfu_hex/thingy91_asset_tracker_v2_2023-06-01_0677b099.hex                               Asset tracker v2 firmware for nRF9160, NB-Iot and LTE-M network modes
img_fota_dfu_hex/thingy91_asset_tracker_v2_nbiot_legacy_pco_2023-06-01_0677b099.hex              Asset tracker v2 firmware for nRF9160, NB-IoT network mode, legacy PCO
img_fota_dfu_hex/thingy91_at_client_2023-06-01_0677b099.hex                                      Firmware for direct modem communication
img_fota_dfu_hex/thingy91_modem_shell_2023-06-01_0677b099.hex                                    Modem shell
img_fota_dfu_hex/thingy91_nrf52_connectivity_bridge_2023-06-01_0677b099.hex                      Connectivity bridge for the nrf52
img_fota_dfu_hex/thingy91_serial_lte_modem_2023-06-01_0677b099.hex                               Serial LTE modem
mfw_nrf9160_1.3.4.zip                                                                            Modem firmware, updated through nRF Connect for Desktop
&lt;/pre&gt;You can program the hex file from programmer app or using nrfjprog. If we use &lt;strong&gt;nrfjprog&lt;/strong&gt; then you have to use the external debugger and select the hex file (&lt;span&gt;Open the folder&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;img_app_bl&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;that contains the HEX files for flashing with a debugger) from specific folder (img_app_bl).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example: I programmer asset trackerv2 on thingy:91 through command prompt&amp;nbsp;using nrfjprog.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1686568581444v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/430313?ContentTypeID=1</link><pubDate>Sat, 10 Jun 2023 14:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330636e8-ba62-47f0-bad8-10a7afd55e9a</guid><dc:creator>EAB</dc:creator><description>&lt;p&gt;Hi Kazi, &lt;br /&gt;&lt;br /&gt;Thanks for the info, but I am not able to run the program you suggest.&lt;br /&gt;Opening a Bash from nRF Connect for Desktop:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;$ cd /c/mydev/ncs/v2.4.0/zephyr/scripts/west_commands/runners
$ python.exe nrfjprog.py --memrd 0x00FF0204

Traceback (most recent call last):
  File &amp;quot;nrfjprog.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
    from runners.nrf_common import ErrNotAvailableBecauseProtection, ErrVerify, \
ModuleNotFoundError: No module named &amp;#39;runners&amp;#39;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It seem that there is a python package missing. &lt;br /&gt;No idea why, as it was installed by your installer.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;Apparently the installer did not install the &amp;quot;nRF-Command-Line-Tools&amp;quot;. &lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download?lang=en#infotabs"&gt;www.nordicsemi.com/.../Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now I get another error:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;$ nrfjprog.exe --memrd 0x00FF0204
ERROR: No debuggers were discovered.&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the Device ID shown in the Programmer : About-Device section from AT commands?</title><link>https://devzone.nordicsemi.com/thread/430199?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 11:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c492623b-1ac1-4981-ad13-05c4eee0ff84</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;1. How do I determine what factory Firmware files (hex files) was used to program my device?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After downloading&amp;nbsp;the firmware file of thingy:91, you can see a text file called CONTENTS.txt inside the folder which directs the use of hexfile. You can look at this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/thingy91_gsg.html"&gt;Getting started with Thingy:91 — nRF Connect SDK 2.4.99 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;getting started guide also.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. In the Programmer application there is section under the ABOUT tab, called Device. Here you can find the ID that is shown in all apps for the device. (See screenshot.)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I do not think we can find this from AT command. You can find the device ID (&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/ficr.html?cp=2_0_0_3_4_0_8#register.INFO.DEVICETYPE"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/ficr.html?cp=2_0_0_3_4_0_8#register.INFO.DEVICETYPE&lt;/a&gt;)from memory read command by using nrfjrpog.&lt;/p&gt;
&lt;p&gt;For example, this is my device ID when Thingy:91 is connected with external debugger (nRF9160).&lt;/p&gt;
&lt;p&gt;&lt;strong&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/pastedimage1686308422562v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Kazi&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>