-
Notifications
You must be signed in to change notification settings - Fork 260
07 2WIRE
Geo edited this page Sep 18, 2025
·
21 revisions
This mode is designed for interacting with smartcards and synchronous serial devices over a simple 2-wire interface, typically used in memory cards.
| Command | Description |
|---|---|
sniff |
Sniff data on IO/CLK with start/stop bits and commands description |
config |
Configure pins and frequency |
smartcard |
Open an interactive shell for smartcard (SLE44XX) operations |
[0xAB r:4] |
Raw instruction syntax for 2WIRE bit patterns [NYI] |
The smartcard command provides an interactive environment to explore, manage, and erase SLE44XX cards.
- 🔍 Probe – Detects the card type and reads the ATR (Answer To Reset).
- 🛡️ Security check – Verifies the current PSC (PIN) attempt counter and status.
- 🔓 Unlock card – Enters the PSC to unlock protected areas.
- 📝 PSC Set – Changes the PSC code to a new value.
- 📋 PSC Get – Reads the current PSC (if security settings allow).
- ✏️ Write – Writes data to a specified memory address.
- 🗃️ Dump – Reads and displays the entire card memory contents.
- 🚫 Protect – Permanently write-protect specific memory zones.
- 🚪 Exit Shell – Leaves the shell and returns to the previous menu.
| Model | Memory Size | Security Features |
|---|---|---|
| SLE4442 | 256 bytes | PSC protection, write-protect zones, retry counter |
| Compatible clones | Various | Same protocol and features as above |
- SLE44XX smartcards use the 2-Wire protocol (not I²C, not ISO7816).
- Probe executes an ATR (Answer to reset) for SLE4442 cards.
- PSC (Personal Security Code) is usually 3 bytes long.
- Exceeding the allowed number of incorrect PSC attempts will permanently lock the protected zones.
- Some SLE44XX clone cards ignore the protection memory, even after setting protection bits, writing to memory may still be possible.
- Most SLE44XX cards require a 5V power supply to operate reliably
- SLE44XX pinout:

smartcard # Operations on smartcard
sniff
config
[0x5A r:1]

⚠️ Voltage Warning: Devices should only operate at 3.3V or 5V.
Do not connect peripherals using other voltage levels — doing so may damage your ESP32.