---
title: eSIM Preperation
description: 
published: true
date: 2025-09-11T09:44:47.383Z
tags: 
editor: markdown
dateCreated: 2025-09-11T09:44:47.383Z
---

# eSIM Generals

Thesis is pushed to GitLab at https://git.uniberg.com/ub-edge/eSIM/bsc-thesis

## Abstract

Work was split into two parts. One was implementation of eSIM eUICC control using Qualcomm 4G/5G modems using the QMI interface. This has been upstreamed, patches being available in out GitLab for reference

## Usage

eUICC cards are obtainable from sysmocom and various chinese / indian companys. https://shop.sysmocom.de/sysmoEUICC1-eUICC-for-consumer-eSIM-RSP/sysmoEUICC1-C2G

### Installation

UQMI supprot is available in OpenWrt and debian. For router paltforms (Teltonika et.al.) install lpac using opkg. (Available starting release 24.10)

```
opkg update; opkg install lpac
```

Configuration is done with the config file `/etc/config/lpac`. Configuration is not necessary when you operate a single modem in QMI mode

> You might need to switch operating mode of the Modem to QMI in case it is operating in MBIM mode. Refer to the modem datasheet from quectel for that.
{.is-info}

### Commands

#### Profile installation

Example with a card from betterroaming:

```
lpac profile download -a 'LPA:1$rsp.truphone.com$QR-G-5C-1LS-1W1Z9P7'
```

#### Profile activation

```
lpac profile enable <ICCID>
```

> After profile switching, you need to notify the modem about the changed profile
> by power-cycling the SIM card using QMI. 
> ```uqmi -d /dev/cdc-wdm0 --uim-power-off --uim-slot=1; uqmi -d /dev/cdc-wdm0 --uim-power-on --uim-slot=1```
{.is-warning}

### Custom profiles

We have access to a batch of custom eSIM profiles.

Interface is available at https://mesh.rsp.world:8443/

People with access:
 - Lukas
 - Salman
 - Jannis
 - David
