Learn

eIM interoperability testing: one SGP.32 device, more than one eIM

How to test an SGP.32 IoT device against more than one eIM: transport, association, package signing, migration, failure codes and a test matrix.

By SimCheck.ai team · Updated · 10 min read

eIM interoperability testing checks that one SGP.32 device works with more than one eSIM IoT remote Manager (eIM): the transport between the eIM and the device’s IPA, the eIM’s association with the eUICC, signed package handling, profile downloads and a migration from one eIM to another. The specification allows enough implementation choices that two compliant products can still fail to talk to each other. The only proof is to run the same device through each eIM you might use and check, at every step, that the device is still on a working network.

This guide explains where eIM interoperability breaks, which tests catch it, how to read the eUICC’s error codes, and how to build a test matrix that stays small enough to run. It assumes you know the basics; if not, start with What is an eIM? and What is SGP.32?.

Why eIM interoperability is the testing gap

SGP.32 promises that the party managing a device fleet can choose its own eIM and change it later without touching the hardware. That promise depends on three independent implementations agreeing with each other: the eIM, the IoT Profile Assistant (IPA) on the device, and the eUICC.

The GSMA’s SGP.33 test specifications check each one separately. SGP.33-3 (v1.2, January 2025) names the eIM as the implementation under test and drives it from a test tool, covering interface compliance and system behavior. That is necessary, but it can’t show that the options your IPA implements match the options a particular eIM implements.

Public multi-vendor results so far have mostly varied the other parts of the chain. In April 2026, the IoT Stars community reported a field test in which five host devices with IPAe-equipped SIMs migrated between three connectivity providers in real time, all managed through a single eIM. That is useful evidence that profiles from different operators work through one eIM. It says nothing about moving the same device to a second eIM, which is exactly what operator-neutral IoT eSIM is supposed to allow.

The three interfaces you are really testing

“Works with our eIM” covers three separate relationships. Test each one on its own before you test them together.

Interface Between What has to agree
ESipa eIM and IPA Retrieval or injection mode, HTTPS or CoAP/DTLS, TLS trust, ASN.1 or JSON binding, wake-up method
eUICC Packages (via the IPA) eIM and eUICC eIM identifier, signing key or certificate, counter values, EID, package size
ES9+’ (indirect download only) eIM and SM-DP+ The eIM relays the download for the device; both must support indirect download

ESipa: getting packages to the device at all

The SGP.32 v1.2 specification (section 3.1.1) defines two ways to move eIM Packages. In eIM Package Retrieval, the IPA polls the eIM. In eIM Package Injection, the eIM pushes to the IPA. Each eIM must support at least one, each IPA must support at least one, and if they use ESipa directly they must use the same mode and the same secure connection method. The specification recommends that an eIM serving many device types support both.

The eUICC records what each eIM supports in an eimSupportedProtocol bit string with five values: retrieve over HTTPS, retrieve over CoAP, inject over HTTPS, inject over CoAP, and proprietary. That field is the first thing to compare between an eIM’s documentation and your IPA’s capabilities. A CoAP-only IPA can’t reach an HTTPS-only eIM, and no amount of configuration fixes it.

Trust is the second common break. When the IPA is in the eUICC (IPAe) and fetches packages over HTTPS or CoAP, the eIM Configuration Data should carry the TLS trust anchor the eUICC needs; the specification notes this is needed to avoid TLS or DTLS session failures. A new eIM with a certificate chain the device doesn’t trust fails at the handshake, before any eSIM logic runs. Our guide to IPAd vs IPAe explains why the two behave differently here.

eUICC Packages: getting the eUICC to obey

Each eIM signs its eUICC Packages with ECDSA and includes its eIM identifier, the target EID and a counter. The eUICC accepts a package only if the signature verifies against the stored key or certificate for that eIM and the counter is higher than the last one it accepted from it. The eUICC then signs its own result, and the eIM should verify that signature before it updates its records.

Because the counter, key and identifier are stored per eIM, a device with two Associated eIMs has two independent sets of state. Bugs tend to appear where an implementation assumed there would only ever be one.

ES9+’: indirect download

In indirect download, the eIM talks to the operator’s SM-DP+ on the device’s behalf and relays the encrypted Bound Profile Package. The eIM advertises this with an indirectProfileDownload flag in its configuration data. A constrained device that depends on indirect download can only move to another eIM that also supports it, so check this before you assume a second eIM is a drop-in replacement.

Where interoperability breaks

These are the failures to design tests around, with the signal each one produces.

Failure What you see Usual cause
Transport mismatch Device never collects packages; eIM queue grows IPA and eIM support different modes or protocols
TLS or DTLS trust failure Handshake errors in device logs; nothing reaches the eUICC Missing or wrong trust anchor for the new eIM
Signature rejected Package rejected; result never reaches the eIM Wrong key or certificate stored for that eIM
replayError eUICC refuses a package Counter not higher than the last accepted value
counterValueOutOfRange Package or eIM update refused Counter exceeds the range the eUICC accepts
invalidEid eUICC refuses a package Package addressed to a different EID
ciPKUnknown addEim or updateEim fails Certificate chains to a CI the eUICC doesn’t know
associatedEimAlreadyExists addEim fails The eIM identifier is already associated
sizeOverflow / resultSizeOverflow Package or result truncated Too many operations in one package for this eUICC
ecallActive Package refused Device is in an active eCall; retry later
Silent stranding Profile enabled, device unreachable New profile’s APN or firewall blocks the eIM

The error names are the ASN.1 values defined in SGP.32 v1.2 (section 2.11). Ask each eIM vendor how it surfaces them through its API. An eIM that reports only “failed” makes interoperability problems very slow to diagnose, so treat clear error reporting as a selection criterion, not a nice-to-have.

Association tests

Association is where multi-eIM behavior lives. SGP.32 defines four eIM Configuration Operations (eCOs) that every eUICC must support: addEim, deleteEim, updateEim and listEim. Once an eUICC has an Associated eIM, it accepts only signed eCOs from an Associated eIM; unsigned configuration is accepted only while no eIM is associated, through the IPA’s AddInitialEim function.

Run these on a test device for every eIM pairing you care about:

  1. Initial association. Associate eIM A the way your manufacturing flow will (at eUICC production or through AddInitialEim). Confirm a second AddInitialEim is refused now that an eIM exists.
  2. List. Ask eIM A to run listEim and confirm it returns exactly the identifiers you expect.
  3. Add a second eIM. eIM A sends addEim with eIM B’s configuration data. Confirm eIM B can then read the device’s EID and profile list with a data request, using its own transport settings.
  4. Independent counters. Send several packages from eIM A, then one from eIM B, then from A again. Each must be accepted. A device that shares one counter across eIMs fails here.
  5. Key rotation. Use updateEim to replace eIM B’s key or certificate and counter, then confirm packages signed with the old key are rejected and packages signed with the new one are accepted.
  6. Delete the original. eIM B (or A) sends deleteEim for eIM A. Confirm eIM A’s next package is rejected and eIM B still manages the device.
  7. Last eIM. On a disposable test device only, delete the remaining eIM and confirm the result is lastEimDeleted and that AddInitialEim is accepted again. Never do this on a device you can’t physically reach.

Pass: at each step, listEim matches reality and only the eIMs that should be able to manage the device can.

Package signing and result tests

These tests check that the eUICC enforces the security model, and that each eIM handles the eUICC’s answers correctly.

  • Tampered package. Alter one byte of a signed eUICC Package in transit (an IPAd test harness makes this easy). The eUICC must reject it.
  • Replay. Resend a package the eUICC already executed. Expect replayError.
  • Wrong EID. Send a package signed for another device. Expect invalidEid.
  • Result verification. Confirm each eIM verifies the eUICC’s signature on results and rejects a result that fails verification, rather than updating its records anyway.
  • Acknowledgements. Confirm results and notifications are acknowledged and cleared, so the IPA doesn’t resend them forever. A queue that never empties is a common cause of battery drain on sleeping devices.
  • Failover. If an eIM runs in several regions or instances, fail it over mid-test and confirm its counter store survived. A counter that goes backwards after a restore produces replayError on every device it touches.

Download and profile-state tests across eIMs

The interesting cases are the ones where the eIMs overlap.

  • Download through each eIM. For every trigger you use (activation code, SM-DS event or default SM-DP+) and every mode (direct or indirect), download a profile through eIM A and then through eIM B.
  • Cross-eIM state changes. Download a profile through eIM A, then enable, disable and delete it from eIM B. Confirm both eIMs and the SM-DP+ end up agreeing on the profile’s state after the next data request.
  • Rollback. Send an enable with rollback granted from the eIM that will manage the device in production, using a profile that can’t attach where you are testing. Confirm the device rolls back and the eIM receives the result.
  • Fallback. If your eUICC supports the fallback attribute, set it from one eIM and trigger fallback while the other eIM is the one the device talks to most.
  • Sleeping devices. Queue packages from both eIMs while the device is in PSM or eDRX, then wake it. Confirm the IPA collects both and the eUICC executes them in a sensible order.

Every one of these ends the same way: does the device attach on the expected network, get data through the right APN and reach your application? An eIM reporting “enabled” is not the same as a device that works, which is why the field checks in our SGP.32 field-test guide apply after every eIM operation.

Building a test matrix that stays runnable

Testing every combination grows fast. A realistic matrix has four axes:

Axis Examples How to cut it down
Device build Module, firmware, IPAd or IPAe One row per firmware line you ship
eUICC Vendor and batch One row per vendor, plus each new batch
eIM Current provider, candidate providers Every eIM you might migrate to
Operator profile Bootstrap and each operational profile Bootstrap plus your top markets

Run the full association and migration sequence once per device build and eIM pair, because it’s slow and partly destructive. Run download, enable and attach across the operator profiles for each eIM. Then keep a small scheduled regression suite running against your production eIM on live networks, because network and server changes happen without notice. Treat a new eIM release, IPA firmware or eUICC batch as a trigger to rerun the pairwise tests.

eIM interoperability checklist

Area Check
Transport Same retrieval or injection mode and same HTTPS or CoAP/DTLS method on both sides
Trust Device trusts each eIM’s TLS/DTLS certificate chain
Binding ASN.1 or JSON agreed for ESipa over HTTP
Association Initial association, addEim, listEim, updateEim and deleteEim all tested
Counters Independent per eIM; survive eIM restart and failover
Errors Each eIM surfaces the eUICC’s error codes through its API
Downloads Every trigger and mode through each eIM, including indirect download
Cross-eIM state Both eIMs and the SM-DP+ agree after changes made by the other eIM
Recovery Rollback and, if supported, fallback tested with real network loss
Field result Device attaches, passes data and reaches the eIM again after every change

Testing on live networks

eIM interoperability only matters if the device ends up connected, so finish every eIM operation with a field check on a real network: attach, data and an application round trip such as MQTT. SimCheck.ai installs SGP.32 profiles onto real cellular modems through a cloud eIM and then runs those connectivity checks on live networks, with the decoded signaling and packet captures when something fails. See SGP.32 IoT eSIM testing for how teams use it to validate eUICC, eIM and operator combinations before rollout.

Frequently asked questions

Does SGP.33 certification guarantee that my device works with any eIM?

No. SGP.33-3 tests an eIM as the implementation under test, and the other SGP.33 parts test the eUICC and the IPA, each against a test tool. That proves each side follows the specification, not that the options your IPA chose match the options a given eIM chose. You still need to test the real pairings.

Can an eUICC be associated with more than one eIM at the same time?

Yes. SGP.32 lets an eUICC hold one or more Associated eIMs, each with its own eIM Configuration Data: identifier, public key or certificate, anti-replay counter and supported protocols. Each eIM signs its own packages and keeps its own counter, so you should test that two eIMs on one device don't interfere with each other.

How do I move a deployed fleet from one eIM to another?

The current eIM sends a signed addEim operation that installs the new eIM's configuration data, the new eIM proves it can manage the device, and then a deleteEim removes the old one. The order matters: deleting first leaves the device with no Associated eIM. Rehearse the full sequence on test devices before you sign the contract with a new provider.

What does a replayError from the eUICC mean?

The eUICC rejected an eUICC Package because its counter value was not higher than the last one it accepted from that eIM. It usually means the eIM's counter store and the eUICC have drifted apart, for example after an eIM restore from backup, a failover between eIM instances, or a package that was resent instead of re-signed.

Which eIM transport should an IoT device support?

It depends on the device, but the IPA and eIM must agree on the same mode (retrieval or injection) and the same secure connection (HTTPS or CoAP over DTLS), unless you carry ESipa inside your own protocol. Supporting HTTPS retrieval gives the widest choice of eIMs; check every candidate eIM's supported protocols before you commit firmware.

See it on your own eSIMs

Start a free trial with test tokens included, or book a demo to test your profiles across your target markets.