<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi Marek,<div><br></div><div>Are you trying to communicate with the card or program it?</div><div><br><div>Cheers,</div><div>Domi</div><div><br>2018. jan. 31. dátummal, 10:18 időpontban Marek Sebera <<a href="mailto:marek.sebera@gmail.com">marek.sebera@gmail.com</a>> írta:<br><br></div><blockquote type="cite"><div><span>Hi Harald,</span><br><span></span><br><span>thank you, I'll be happy to provide patches, as soon as I learn how to</span><br><span>communicate with card.</span><br><span></span><br><span>Is there anything to start with? Supplier just told us they obtained the</span><br><span>SIM cards from "<a href="http://www.copysim.cn">http://www.copysim.cn</a>" and there is no reference to</span><br><span>recommended software for programming these cards.</span><br><span></span><br><span>I did obtain some informations using various utilities, but all I can</span><br><span>now do is to study "ETSI TS 102 221" and implement the</span><br><span>card-commands-discovery or bruteforce myself.</span><br><span></span><br><span>Or am I wrong, and I've missed some utilities that could aid my fight?</span><br><span></span><br><span>I've wrote some shell using both pySim and mitshell/card frameworks, and</span><br><span>I've confirmed few things (ie. available commands, and CLA being 0x00,</span><br><span>which means these cards are USIM), but passwords for ADM1 PIN (12345678,</span><br><span>44444444, 00000000) do not work. Also card partially responds to CLA</span><br><span>0x80, which probably indicates the availability of proprietary PDUs, as</span><br><span>mentioned in grcardsim wiki. Is there any better tool, or am I using</span><br><span>best available ones?</span><br><span></span><br><span>Also mentioning the "bad echo value", is this related to implementation</span><br><span>of specific sim-card, the usb reader/writer (possibly faulty) or the sim</span><br><span>card? Because something as simple as ping/pong (or at least this is what</span><br><span>it seems like from code) should not fail generally, and it occurs only</span><br><span>when I provide "pin_adm" (adm1) and using grcardsim and sysmoUSIM-SJS1</span><br><span>(prefered).</span><br><span></span><br><span>Thank you</span><br><span>Marek</span><br><span></span><br><span>On 01/29/2018 11:15 PM, Harald Welte wrote:</span><br><blockquote type="cite"><span>Hi Marek,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On Mon, Jan 29, 2018 at 05:39:24PM +0100, Marek Sebera wrote:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>ATR: 3B 9F 95 80 1F C3 80 31 E0 73 FE 21 13 57 86 81 02 86 98 44 18 A8</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>GREEN CARD, Grcard (Hong Kong ) Co.,Limited, LTE Usim Card</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>(Telecommunication)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Celcom Postpaid 3G (Telecommunication)</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>The supplier of the cards you mention hasever contributed</span><br></blockquote><blockquote type="cite"><span>in any way to pySim.  We simply did some protocol tracing of an early</span><br></blockquote><blockquote type="cite"><span>GRSIM card (2G, not USIM or LTE) and implemented code for it based on reverse</span><br></blockquote><blockquote type="cite"><span>engineering, just like for the early MagicSIM.  If you have a different</span><br></blockquote><blockquote type="cite"><span>card, it will for sure not work.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>If you would like to implement support for the card models you are using,</span><br></blockquote><blockquote type="cite"><span>please feel free to contribute patches, we're happy to add support for</span><br></blockquote><blockquote type="cite"><span>more cards.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>The only SIM card supplier that ever contributed development of pySim code</span><br></blockquote><blockquote type="cite"><span>was sysmocom, and most recently, also fairwaves.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>So I guess you have the choice of either contributing code for the cards</span><br></blockquote><blockquote type="cite"><span>you work with, or use cards where the suppliers actually care about pySim</span><br></blockquote><blockquote type="cite"><span>support.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Kind regards,</span><br></blockquote><blockquote type="cite"><span>    Harald</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br></div></blockquote></div></body></html>