How to get the Device ID shown in the Programmer : About-Device section from AT commands?

Hi,

I'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 find what was used to program the device, I don't know what to download.)

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.)
(a) How can I find this ID, and where/how is it defined?
(b) Can we find it using AT commands?

Thanks in advance.

  •   

    To Recap:

    For Q1 I was wondering how to determine from within the device what factory FW it was flashed with?
    (Perhaps there's an AT command that shows you the exact version?)

    For Q2, you referred me to use nrfjprog, but not saying that it requires 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.

    For example, can I use nrfjprog over USB interface if I flash the *debug version of the firmware?
    (I believe not..)

    References:
    Can the SWD port (P8) be used to collect Trace data using a serial-to-usb cable?


    > I am just curious why do you need this information?

    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.

  • Hello Emanuel,

    The device ID which is shown on programmer app has no connection with the nRF9160 sip that can tell if it is on a thingy:91 or DK or something else. It can be related to nRF Connect for Desktop. This app can define what device is based on the USB descriptors. 

    You can read device ID by using AT+CGSN command (https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/general/cgsn.html?cp=2_1_3_3) and can read modem FW version by using AT+CGMR. 

    nRF9160 DK or Thingy:91, ship with a device ID in the format of nrf-[IMEI], for example, nrf-351358811330130. The IMEI is printed on the product's label. However, you are not restricted to the nrf- format. To change the device ID, your device requires new credentials and properly configured application firmware. Device management and provisioning services, you will get in nRF Cloud also. 

    ''For Q2, you referred me to use nrfjprog, but not saying that it requires 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.''

    Yes. nrfjprog is the component of nRF command line tools. It is detailed described here (nRF Command Line Tools - nordicsemi.com).. The nrfjprog utility is developed for using together with SEGGER debuggers, so the SEGGER software must also be installed. When installing the nRF Command Line Tools on Windows, SEGGER software is automatically installed in addition to the tools. 

Related