Unable to write IMEI using %IMEIWRITE to nrf9161

Hi

We are working on building a custom board for the nrf9161 as it's the newer chip but are having issues writing the IMEI to the device. I have flashed a modified version of the mosh shell to use RTT so we can communicate over the JTAG connection and flashed the latest PTI image to the modem but some AT commands are just returning error. Below is a sample of the commands but it seems commands interacting with the OTP memory fail.The docs suggest that calling AT+CGSN would return F's instead of error.

mosh:~$ at AT+CGMR
mfw-pti_nrf91x1_2.3.3
OK

mosh:~$ at AT%SIMTEST
%SIMTEST: 0
OK

mosh:~$ at AT+CGSN
ERROR

mosh:~$ at AT%IMEIWRITE=0,"35829984-------"
ERROR

I just wondered if you had any pointers as to if this is likely to be a hardware issue or AT command order issue. I cannot find any official documentation on writing the imei other than the AT command reference.

Thanks

Sam

Parents
  • Hello Sam, 

    Is this a new device on the custom board, or are you testing on a development kit? 

    Please note, as stated in the Write IMEI %IMEIWRITE documentation

    The command is a one-time operation. The IMEI value cannot be rewritten. The device can become unusable if the wrong IMEI is written.

    The command responds with OK and the device's IMEI value if the command syntax is correct. Syntax error returns Error.

    Kind regards,
    Øyvind

  • Hi

    This is a custom board based on a feather but updated for the nrf9161. Every attempt to write the IMEI has failed with an error. The docs suggests that the ERROR is because of a syntax error but from what I can tell the syntax I am using above is correct.

    Thanks,

    Sam

  • This is the  solution/steps that have worked for me reliably and consistently for programming the IMEI to over 100 nRF9161 SiPs...

    Make sure you have requested or obtained the IMEI numbers from the nRF Cloud console under IMEI Management.

    1. Flash latest Production Test Image (PTI) (mfw-pti_nrf91x1_2.3.3.zip) to the modem. This PTI modem firmware has the support for IMEI write but not nRF91x1 SiP LTE firmware.
    2. Build and flash at_client app to the nRF9161. The AT_CMD will easily allow you to write the IMEI number
    3. To Write, issue  command: AT%IMEIWRITE=0,”IMEI NUMBER”
    4. It should return/reply with : 

      %IMEIWRITE: 358299840099762
      OK
      This means your write was successful and it has read what you expected to write/wrote

    5. If not, then you have an issue or something is not configured properly. Check that your UART read/write is functioning as expected.

    6. If all goes well and IMEI is successfully written, update the modem firmware with 

      nRF91x1 SiP LTE firmware (mfw_nrf91x1_2.0.1)

    7. Build and flash at_client app again to test the connectivity and modem functionality

    Note there is a difference between Production Test Image (PTI) and nRF91x1 SiP LTE firmware for the modem.

    Hope this helps.

  • Hi Rajeev,
    Updating the modem firmware to the PTI image did indeed the trick for me.
    Thank you for elaborate answer. 

  •  , I am glad to hear this and that the chain of commands also worked as expected for you. 

    Cheers

  • Hi,

    thank you for the good description. I have the following issue:

    After flashing mfw-pti_nrf91x1_2.3.3.zip and at_client I am observing the response OK only when a plain AT command is launched, but when any other command is launched, i observe error:

    *** Booting nRF Connect SDK v3.5.99-ncs1-2 ***
    The AT host sample started
    Ready
    > AT
    OK
    > AT+CEREG?
    ERROR
    > AT AT+CEREG?
    ERROR
    > AT%XOPERID
    ERROR

    When I flash mfw_nrf91x1_2.0.1,the response after e.g. AT+CEREG? is correct but yes, I cannot do AT%IMEIWRITE

    Any help please?

    Thank you very much

  • Hello, 

    Please note the different modem FW you are working with. The AT%IMEIWRITE command is only available in production test image mfw-pti_nrf91x1_2.3.3. 

    While CEREG is only available in standard modem FW. 

    Kind regards,
    Øyvind

Reply Children
Related