How to Generate the Device ID

As explained in the previous section, Device IDs are generated from unique values of the device, such as MAC address or IMEI. The following subsections explain how to generate the Device ID from those different sources.

Tip If you are going to use the Cloud Connector general implementation, you can skip this section.

48-bit MAC Address Format

Example MAC: 112233:445566
Device ID mapping: 00000000-00000000-112233FF-FF445566

GSM IMEI

14 decimal digits plus a check digit. The check digit is not officially part of IMEI. However, since modems commonly report the IMEI including check digit, and it is typically listed on labels, it is included in the Device ID mapping.

Example IMEI: AA-BBBBBB-CCCCCC-D
Device ID mapping: 00010000-00000000-0AABBBBB-BCCCCCCD

CDMA ESN/MEID

CDMA has two addressing schemes. An older ESN scheme which was a 32 bit address and MEID which is a 56 bit scheme which translates into 14 hex digits. Both addresses can be specified in either hex or decimal format.

Similar to IMEI a check digit is appended to MEID addresses but is not considered part of the MEID. It is included in the Device ID mapping.

MEID is actually compatible with IMEI since the first two digits of an MEID will always be >= 0xA0 while those digits in an IMEI will always be less than 0xA0. However, IMEI and MEID will have separate specifications for the Device ID.

Example ESN-Hex: MM-SSSSSS
Device ID mapping: 00020000-00000000-00000000-MMSSSSSS

Example MEID-Hex: RR-XXXXXX-ZZZZZZ-C
Device ID mapping: 00040000-00000000-00RRXXXX-XXZZZZZZ

The decimal forms of these addresses are longer, with the Decimal MEID extending into the third word of the Device ID as shown in the table above.

Auto Generated Format

An ID that is generated by the platform and assigned to a device is often used in places where the device does not have the capability to provide its own unique identifier.

0008cccc-eeeeeeee-vvvvvvvv-gggggggg