Actions
Bug #5831
openSE K2x0i: built-in SIM reader is not working
Start date:
12/16/2022
Due date:
% Done:
20%
Resolution:
Spec Reference:
Description
Currently the mobile app fails to use built-in SIM reader of my Sony Ericsson K200i:
DMM INFO subscriber.c:596 Requesting SIM file 0x2fe2 DSIM INFO sim.c:223 got new job: SIM_JOB_READ_BINARY (handle=00000004) DSIM INFO sim.c:712 go MF DSIM INFO sim.c:256 SELECT (file=0x3f00) DSIM INFO sim.c:181 sending APDU (class 0xa0, ins 0xa4) DSIM INFO sim.c:200 Using built-in SIM reader DSIM INFO sim.c:901 received APDU (len=0 sw1=0x00 sw2=0x00) DSIM INFO sim.c:979 command failed DSIM INFO sim.c:147 sending result to callback function (type=1)
This is what the firmware log looks like:
OsmocomBB Layer 1 (revision osmocon_v0.0.0-2885-g86f46edd-modified) ====================================================================== Device ID code: 0xb496 Device Version code: 0x0000 ARM ID code: 0xfff3 cDSP ID code: 0x0128 Die ID code: e515201ce51557b9 ====================================================================== REG_DPLL=0x2413 CNTL_ARM_CLK=0xf0a1 CNTL_CLK=0xff91 CNTL_RST=0xfff7 CNTL_ARM_DIV=0xfff9 ====================================================================== Power up simcard: key=20 pressed key=20 released Checking TIFFS for the RF calibration records ... L1CTL_RESET_REQ: FULL! SIM Request (7): a0 a4 00 00 02 3f 00 SIM: ACK read failed SIM Response (2): 00 00
Note the key=20 pressed/released
, I wasn't actually pressing anything.
Updated by fixeria 12 months ago
- % Done changed from 0 to 20
This patch makes the SIM reader work:
diff --git a/src/target/firmware/calypso/sim.c b/src/target/firmware/calypso/sim.c
index ddc96946..38d71285 100644
--- a/src/target/firmware/calypso/sim.c
+++ b/src/target/firmware/calypso/sim.c
@@ -656,7 +656,7 @@ void calypso_sim_init(void)
int calypso_sim_powerup(uint8_t *atr)
{
/* Enable level shifters and voltage regulator */
-#if 1 // 2.9V
+#if 0 // 2.9V
twl3025_reg_write(VRPCSIM, VRPCSIM_SIMLEN | VRPCSIM_RSIMEN
| VRPCSIM_SIMSEL);
#else // 1.8V
I don't see key=20 pressed/released
, and mobile can attach now, but I am not 100% sure if this is correct.
Updated by fixeria 12 months ago
- Assignee set to steve-m
Reverting the display patch also makes the SIM reader work:
commit aeb19ea3efaaaab76a74f85684d7a9f7392a15d0 Author: Steve Markgraf <steve@steve-m.de> Date: Tue Nov 22 12:33:14 2022 +0100 fw: Add display driver for K200i/K220i Change-Id: I90fbe583983de34f39ec402d5a35712dfe57222b
Actions