tomasz-lisowski / swsim

A software SIM card.
BSD 3-Clause "New" or "Revised" License
300 stars 34 forks source link

GSM SIM fixes #9

Closed laf0rge closed 1 year ago

laf0rge commented 1 year ago

This branch contains GSM SIM related fixes. With those applied, I can get seveal legacy 2G only MS to recognize the card and authenticate to a network.

tomasz-lisowski commented 1 year ago

The 2G devices I tested on didn't mind the 5v indication (e.g. Samsung GT-E1150i, and Nokia E72 both worked). Granted, I didn't know what voltages are really applied to the SIM in any of the devices I tested. Also, thank you for testing swSIM with more devices, I didn't have access to many 2G-only devices to test with, and it's likely that more of these types of issues will arise with more use.

As a sidenote, I noticed that SIMtrace didn't work with Samsung i600, but I didn't have time to investigate that issue further. Even with the stock SIMtrace firmware and a card inserted directly into SIMtrace, the device still rejected the card.

laf0rge commented 1 year ago

The 2G devices I tested on didn't mind the 5v indication (e.g. Samsung GT-E1150i, and Nokia E72 both worked). Also, thank you for testing swSIM with more devices, I didn't have access to many 2G-only devices to test with, and it's likely that more of these types of issues will arise with more use.

I probably have more than 50 different types of 2G MS here, but I don't have any plan to do extensive swsim compatibility testing due to time constraints. I was merely using those devices that I happened to use for the higher-level task that I'm currently working on (GSM CSD support in Osmocom CNI) - and for that I needed a SIM card with 2G XOR authentication, which sadly none of my programmable cards can do, so I resorted to a simulated SIM and hacked XOR-2G into swsim (ugly #ifdef, not worth submitting as-is). All three 2G MS I tried yesteday (Siemens AC75i, Siemens BGS2E, Motorola C121) gave up with that 5V-only coding.

As a sidenote, I noticed that SIMtrace didn't work with Samsung i600, but I didn't have time to investigate that issue further.

sorry to hear.

Even with the stock SIMtrace firmware and a card inserted directly into SIMtrace, the device still rejected the card.

Now that sounds relatively unlikely, so I would almost assume that it is some kind of contact problem. I'm happy to send you a combination of https://shop.sysmocom.de/Full-size-SIM-card-to-FPC-adapter/fullsize-sim-fpc and https://shop.sysmocom.de/Professional-SIM-card-adapter-plug-in-micro-nano-SIM-to-full-size/sim-adapter-pcb free of charge, so you could test with just "extending" the SIM slot to the card without any active electronics involved. IF that already fails, it's a mechanical/contact problem, or potentially an EMI issue.

tomasz-lisowski commented 1 year ago

Now that sounds relatively unlikely, so I would almost assume that it is some kind of contact problem. I'm happy to send you a combination of https://shop.sysmocom.de/Full-size-SIM-card-to-FPC-adapter/fullsize-sim-fpc and https://shop.sysmocom.de/Professional-SIM-card-adapter-plug-in-micro-nano-SIM-to-full-size/sim-adapter-pcb free of charge, so you could test with just "extending" the SIM slot to the card without any active electronics involved. IF that already fails, it's a mechanical/contact problem, or potentially an EMI issue.

Indeed, I could try that. I also need to get myself a new SIMtrace as the one I used while developing swSIM was borrowed :).