SimProbe

eSIM activation codes: fields of the SGP.22 LPA string

The LPA:1$…$… string on an eSIM QR code: SM-DP+ address, matching ID, OID and confirmation-code flag, plus the download flow and differences from SGP.32.

  • IDNTEQ
  • eSIM transition
  • SGP.22
  • activation code
  • LPA
  • SM-DP+

Reading the text in an eSIM activation QR code is often the first step in debugging a failed download.

Fields of the LPA string

A consumer eSIM QR code carries a string like:

LPA:1$smdp.example.com$04386-AGYFT-A74Y8-3F815

After the LPA: scheme prefix, the $-separated fields are:

  1. AC format version: 1 (the only version SGP.22 defines)
  2. SM-DP+ address: the FQDN the LPA connects to
  3. Matching ID (AC_Token): a one-time token binding this download
  4. SM-DP+ OID: optional
  5. Confirmation-code-required flag: optional; 1 means the user must enter a code

The activation-code decoder splits and validates all of these locally. It never contacts an SM-DP+.

The download/consent flow

The LPA (Local Profile Assistant) on the device parses the code, connects to the named SM-DP+ over ES9+, authenticates the eUICC, then downloads and installs the profile with user consent.

Consumer SGP.22 vs IoT SGP.32

SGP.22 is the consumer model: a person scans a code. SGP.32 is the IoT model: an eIM drives provisioning through the device’s IPA, with no user-scanned code. This article covers only the consumer SGP.22 format.

Check the usual activation failures

  • Check the SM-DP+ FQDN resolves and serves ES9+ over HTTPS.
  • Confirm the matching ID hasn’t already been redeemed.
  • If a confirmation code is required, make sure it’s being collected and passed.

Related

The tool this article refers to, and the related consulting service.