How to use a white-brand 4G LTE SIM card and coder kit with pySim on macOS/Linux, personalize Ki/OPc with Milenage, and test with Ruijie CPE, eNodeB, and Open5GS EPC.
If you are building a private LTE network, the SIM card is often the first problem. The CPE cannot register. The core network rejects the subscriber. The settings do not match.
A white-brand SIM card solves this. You control the profile. You write your own IMSI, Ki, and OPc. Then you add the same data to your EPC.
HKCARD ELECTRONICS CO.,LIMITED (HKCARD) supplies SIM cards and the coding kit to use in a Ruijie CPE with open EPC software. This guide shows the full process, from personalization to the first field test.
Table of Contents
ToggleQuick Answer
Use a blank white-brand USIM card with a compatible coder kit and Osmocom pySim on macOS or Linux. Complete ADM verification, write the IMSI built from MCC and a 2-digit MNC, and personalize Ki and OPc for Milenage. Add the same subscriber to Open5GS. Then test with the CPE + eNodeB + EPC before you deploy the first eNodeB.
What Is a White-Brand 4G LTE SIM Card?
A white-brand SIM card is a blank or white-label USIM card. It has no operator branding. It has no fixed profile.
You program it for your own network. That makes it suitable for:
- Private LTE and private 4G test networks
- CPE, router, and IoT device testing
- Lab work with Open5GS and other open EPC software
- Pilot projects that need custom card printing
Important: White-brand only describes the card body and supply. The SIM will work only if the profile, CPE, eNodeB, and EPC all match.
SIM CARD, Coder (Coding Kit) and Software
You need three parts. One part alone will not work.
| Part | What It Does | What to Check |
|---|---|---|
| SIM CARD | Stores IMSI, Ki, OPc, and other files | 2FF / 3FF / 4FF size, USIM support, ADM key supplied |
| Coder Kit | Connects the SIM to your PC via USB reader | Reader model, driver, macOS/Linux support |
| Software | Reads and writes the SIM profile | Osmocom pySim version, card type, command options |
HKCARD coder kits are used for SIM personalization in a lab. The software can be Osmocom pySim, or the vendor tool supplied with the kit. Check compatibility before you order.
SIMs for Our Private LTE Network Using Open5GS and Milenage
Open5GS is a common open EPC for private LTE. It includes MME, HSS, SGW, and PGW.
For authentication, Open5GS and the SIM both use Milenage. Milenage is the 3GPP authentication algorithm. It needs matching keys on both sides.
The Three Keys You Must Match
| Field | Format | Where to Use It |
|---|---|---|
| Ki | 32 hex characters, 128-bit | On the SIM and in Open5GS HSS |
| OP | 32 hex characters, 128-bit | Source operator key |
| OPc | 32 hex characters, 128-bit | Derived from Ki + OP. Most cores store OPc |
The authentication field expects OP or OPc. This is a common source of error.
- If your core expects OPc, enter OPc. Do not enter OP.
- If you only have OP, calculate OPc first.
- Use the same type on the SIM and in Open5GS.
Keep Ki, OP, and OPc private. Do not put them in public files or normal emails.
Network Uses MCC, MNC (2 Digits), and Milenage
Your IMSI must match your private PLMN. For a 2-digit MNC, the IMSI is 15 digits:
| Part | Digits | Example |
|---|---|---|
| MCC | 3 | 001 |
| MNC | 2 | 01 |
| MSIN | 10 | 0000000001 |
| IMSI | 15 total | 001010000000001 |
Test networks often use MCC 001 and MNC 01. Use only test codes you are allowed to use. The eNodeB, SIM, and Open5GS must all use the same MCC/MNC.
How to Configure and Burn the SIM CARD White Brand 4G LTE
Use a Coder Kit to configure and burn the SIM CARD white brand 4G LTE only for your own authorized network.
Personalization Steps with pySim
pySim supports macOS/Linux. The steps below are the standard flow. Check the --help options for your installed version, as commands change between releases.
1. Connect the coder kit
Plug in the USB reader. Confirm your Mac or Linux PC detects it.
2. Insert the blank SIM
Place the HKCARD white-brand card in the reader. Use the correct size for your CPE later.
3. Complete ADM verification
Enter the ADM1 key supplied with the card. ADM verification unlocks the protected files. Without it, you cannot write the profile.
4. Write the identity
Write the IMSI, ICCID, and PLMN-related files. Check the MCC and 2-digit MNC again.
5. Write the authentication data
Write Ki and OPc. This is the Ki/OPc personalization step for Milenage.
6. Read back and verify
Read the card again. Compare every field with your Open5GS plan. Save the ICCID and IMSI in your test log.
Checklist before you move on:
- ADM verification passed
- IMSI is 15 digits
- Ki and OPc match Open5GS exactly
- Card record saved
Test with the CPE + eNodeB + EPC
Do not go straight to the field. Test with the CPE+eNodeB+EPC on the bench first.
Test path:Ruijie CPE with SIM -> LTE radio link -> eNodeB -> S1 interface -> Open5GS EPC
Bench Test Steps
1. Provision Open5GS
Add the subscriber in the HSS. Enter IMSI, K (Ki), OPc, and APN. Open5GS examples often use AMF 8000 for LTE. Confirm it in your config.
2. Configure the eNodeB
Set the same PLMN as the SIM. Set the LTE band your Ruijie CPE supports. Connect the eNodeB to the EPC.
3. Prepare the Ruijie CPE
Check the CPE model, band support, and SIM size. Insert the personalized HKCARD SIM.
4. Power on and watch logs
Look for the Attach Request in the MME log. Check that Milenage authentication passes.
5. Test data
Confirm the CPE gets an IP address. Run a ping test. Check throughput if you need it.
Use RF cables and attenuators for the bench test. Keep the signal contained.
Common Problems
| Problem | Likely Cause | Fix |
|---|---|---|
| CPE does not see the SIM | Wrong size or bad contact | Check 2FF/3FF/4FF, orientation, and tray |
| IMSI not found | MNC length error | Recheck 2-digit MNC and 10-digit MSIN |
| Attach fails after request | Ki or OPc mismatch | Compare SIM and Open5GS values again |
| Auth passes, no internet | APN or routing error | Check APN in CPE and PGW settings |
| Network not visible | Band or PLMN mismatch | Check eNodeB band, PLMN, and antenna |
Deploy the First eNodeB
After the bench test is stable, you can deploy the first eNodeB for a small field trial.
Start with one site:
- Define the coverage area and test devices.
- Confirm you have spectrum rights for that location.
- Check backhaul latency between eNodeB and EPC.
- Install power, grounding, cables, and antennas per the manual.
- Test with one known-good Ruijie CPE and SIM.
- Record RSRP, RSRQ, SINR, attach time, and data results.
- Add more CPEs only after the first site is stable.
A correct SIM cannot fix a band mismatch. The CPE and eNodeB must support the same LTE band.
Why Buy from HKCARD?
HKCARD ELECTRONICS CO.,LIMITED supports private LTE builders, system integrators, and lab teams.
- White-brand and custom-printed SIM cards
- Coder kits with reader and software guidance
- Samples for lab testing before bulk orders
- Support for Open5GS, pySim, macOS/Linux workflows
Tell HKCARD your CPE model, SIM size, core network, and quantity. Do not send Ki, OPc, or ADM keys in a normal enquiry.
FAQ
Can I use pySim on macOS?
Yes. Osmocom pySim is designed for macOS and Linux. Check your reader driver first.
What is ADM verification?
It is the admin key check that unlocks write access to protected SIM files. You need it for personalization.
Why does the field ask for OP or OPc?
Milenage can use either source value. Most Open5GS setups store OPc. Enter OPc if the field expects OPc.
Can one SIM work in any Ruijie CPE?
No. The CPE must support the eNodeB band and the SIM size. The profile must also match Open5GS.
Contact HKCARD ELECTRONICS CO.,LIMITED
For samples, coder kits, or project details, contact us:
- Email: byronhan@cardmfg.com
- Website: https://www.cardmfg.com/
- WhatsApp / WeChat: +86 158 1737 2512
#BlankSIMCard #WhiteBrandSIM #PrivateLTE #Open5GS #pySim



Leave A Comment