Skip to main content

Finding IMEI and CCID

This page describes how to find the IMEI and CCID of the eSIM of the Icarus Bee. This information can be used to register the Icarus Bee onto the platform.

Reading IMEI and CCID using AT commands

The Icarus Bee comes pre-programmed with the Serial LTE Modem Application Firmware from Nordic Semiconductor. This firmware accepts AT-commands through the terminal which can be used to communicate with and configure the modem. The terminal can be accessed through the LTE Link Monitor in the nRF Connect for Desktop program.

  1. Download and install the nRF Connect for Desktop program if you haven't already.
  2. Open the nRF Connect for Desktop program.
  3. Install the LTE Link Monitor.
  4. Open the LTE Link Monitor.
  5. In the left side panel, scroll down and deselect "Show only supported devices".
  6. Select your Icarus bee in the top-left corner.
  7. Write the following AT-commands to retrieve the IMEI and CCID:
$ AT+CGSN=1 # Read the IMEI
$ AT+CFUN=41
$ AT%XICCID # Read the CCID

The image below shows an example of sending the AT-commands and receiving the IMEI and CCID through the LTE Link Monitor:

Retrieval of IMEI and CCID using AT-commands

Retrieval of IMEI and CCID using AT-commands

Code for retrieving the IMEI and CCID manually

In case of writing your own firmware, the following code example shows how to retrieve the IMEI and CCID from the modem and print it on the serial monitor:

char imei[32] = {'\0',};
char ccid[32] = {'\0',};

modem_info_string_get(MODEM_INFO_IMEI, imei, sizeof(imei));
modem_info_string_get(MODEM_INFO_ICCID, ccid, sizeof(ccid));

printk("Modem IMEI: %s \n", imei);
printk("Modem CCID: %s \n", ccid);

This code will power on the modem, retrieve the IMEI and CCID and store them in separate char arrays and then turn off the modem again. Finally, it will print the information on the serial monitor.