From bogus@does.not.exist.com Sun Jan 9 16:49:29 2022 From: bogus@does.not.exist.com () Date: Sun, 09 Jan 2022 16:49:29 -0000 Subject: No subject Message-ID: and I was told by Peter Stuge to use libusb too. Ok... libusb compiled ok under cygwin, now I have cygusb.dll. Now I need libosmocore to produce the dlls I need to use with the host application. The ouput of make is: $ make echo 0.5.3.104-a642 > .version-t && mv .version-t .version make all-recursive make[1]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore' Making all in include make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/include' GEN osmocom/core/crc16gen.h GEN osmocom/core/crc16gen.h GEN osmocom/core/crc32gen.h GEN osmocom/core/crc32gen.h GEN osmocom/core/crc64gen.h GEN osmocom/core/crc64gen.h GEN osmocom/core/crc8gen.h GEN osmocom/core/crc8gen.h make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/include' Making all in src make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src' GEN crc8gen.c GEN crc16gen.c GEN crc32gen.c GEN crc64gen.c make all-am make[3]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src' CC timer.lo CC select.lo CC signal.lo CC msgb.lo CC bits.lo CC bitvec.lo CC statistics.lo CC write_queue.lo CC utils.lo utils.c: In function 'osmo_str2lower': utils.c:205:3: warning: array subscript has type 'char' utils.c: In function 'osmo_str2upper': utils.c:218:3: warning: array subscript has type 'char' CC socket.lo CC logging.lo logging.c: In function 'log_vty_command_string': logging.c:635:5: warning: array subscript has type 'char' logging.c:657:4: warning: array subscript has type 'char' CC logging_syslog.lo CC rate_ctr.lo CC gsmtap_util.lo CC crc16.lo CC panic.lo CC backtrace.lo CC conv.lo CC application.lo CC rbtree.lo CC strrb.lo CC loggingrb.lo CC crc8gen.lo CC crc16gen.lo CC crc32gen.lo CC crc64gen.lo CC plugin.lo CC talloc.lo CC msgfile.lo CC serial.lo serial.c: In function 'osmo_serial_set_custom_baudrate': serial.c:193:2: warning: #warning osmo_serial_set_custom_baudrate: unsupported platform CCLD libosmocore.la libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries make[3]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src' make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src' Making all in src/vty make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/vty' CC buffer.lo CC command.lo CC vty.lo vty.c: In function 'vty_hello': vty.c:363:10: warning: array subscript has type 'char' CC vector.lo CC utils.lo utils.c: In function 'vty_cmd_string_from_valstr': utils.c:96:6: warning: array subscript has type 'char' CC telnet_interface.lo CC logging_vty.lo CCLD libosmovty.la *** Warning: This system can not link to static lib archive ../../src/ libosmocore.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/vty' Making all in src/codec make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/codec' CC gsm610.lo CC gsm620.lo CC gsm660.lo CC gsm690.lo CCLD libosmocodec.la libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/codec' Making all in src/gsm make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/gsm' CC a5.lo CC rxlev_stat.lo CC tlv_parser.lo CC comp128.lo CC gsm_utils.lo gsm_utils.c: In function 'gsm_band_parse': gsm_utils.c:450:2: warning: array subscript has type 'char' CC rsl.lo CC gsm48.lo CC gsm48_ie.lo CC gsm0808.lo CC sysinfo.lo CC gprs_cipher_core.lo CC gsm0480.lo CC abis_nm.lo CC gsm0502.lo CC gsm0411_utils.lo gsm0411_utils.c: In function 'gsm340_gen_scts': gsm0411_utils.c:87:2: warning: #warning find a portable way to obtain timezone offset CC gsm0411_smc.lo CC gsm0411_smr.lo CC lapd_core.lo CC lapdm.lo CC auth_core.lo CC auth_comp128v1.lo CC auth_milenage.lo CC aes-encblock.lo CC aes-internal.lo CC aes-internal-enc.lo CC milenage.lo CC gan.lo CCLD libosmogsm.la *** Warning: This system can not link to static lib archive ../../src/ libosmocore.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/gsm' Making all in src/gb make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/gb' CC gprs_ns.lo CC gprs_ns_frgre.lo CC gprs_ns_vty.lo CC gprs_bssgp.lo CC gprs_bssgp_util.lo CC gprs_bssgp_vty.lo CC gprs_bssgp_bss.lo CC common_vty.lo CCLD libosmogb.la *** Warning: This system can not link to static lib archive ../../src/ libosmocore.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This system can not link to static lib archive ../../src/vty/ libosmovty.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This system can not link to static lib archive ../../src/gsm/ libosmogsm.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This system can not link to static lib archive /cygdrive/d/Workspace/Morpho/libosmocore/src/libosmocore.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/gb= ' Making all in tests make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/tests= ' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/tests' Making all in utils make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/utils= ' CC osmo-arfcn.o osmo-arfcn.c: In function =91freq2arfcn=92: osmo-arfcn.c:80:1: warning: control reaches end of non-void function osmo-arfcn.c: In function =91main=92: osmo-arfcn.c:92:8: warning: =91param=92 may be used uninitialized in this function CCLD osmo-arfcn.exe CC osmo-auc-gen.o osmo-auc-gen.c: In function =91main=92: osmo-auc-gen.c:216:3: warning: implicit declaration of function =91time=92 osmo-auc-gen.c:217:3: warning: dereferencing type-punned pointer will break strict-aliasing rules osmo-auc-gen.c:249:3: warning: format =91%lu=92 expects type =91long unsign= ed int=92, but argument 2 has type =91uint64_t=92 osmo-auc-gen.c:249:3: warning: format =91%lu=92 expects type =91long unsign= ed int=92, but argument 2 has type =91uint64_t=92 CCLD osmo-auc-gen.exe make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/utils' make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore' make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore' make[1]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore' I now compilation for Windows is not supported directly, but would you mind pointing me in the right direction on how to build libosmocore as a dll? Thanks! --=20 Atenciosamente, Hugo Frederico Soares --f46d042dfcd1ea9df404d6cbc3f6 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Hi guys!

Some time ago I stopped by ask= ing what would one do to compile under Windows, and it was suggested to use= cygwin to build the application and than use it with cygwin dll to run it = under linux. Well, I'm having some issues to do that...


From here, I need libosmocore, and I was told by Peter Stu= ge to use libusb too. Ok... libusb compiled ok under cygwin, now I have cyg= usb.dll.
Now I need libosmocore to produce the dlls I need to use with the host= application.

The ouput of make is:

=
$ make
echo 0.5.3.104-a642 > .version-t &&= amp; mv .version-t .version
make =A0all-recursive
make[1]: Entering directory `/cygdrive= /d/Workspace/Morpho/libosmocore'
Making all in include
<= div>make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/i= nclude'
=A0 GEN =A0 =A0 =A0osmocom/core/crc16gen.h
=A0 GEN =A0 =A0 = =A0osmocom/core/crc16gen.h
=A0 GEN =A0 =A0 =A0osmocom/core/crc32g= en.h
=A0 GEN =A0 =A0 =A0osmocom/core/crc32gen.h
=A0 GEN= =A0 =A0 =A0osmocom/core/crc64gen.h
=A0 GEN =A0 =A0 =A0osmocom/core/crc64gen.h
=A0 GEN =A0 =A0 = =A0osmocom/core/crc8gen.h
=A0 GEN =A0 =A0 =A0osmocom/core/crc8gen= .h
make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libos= mocore/include'
Making all in src
make[2]: Entering directory `/cygdrive/d/W= orkspace/Morpho/libosmocore/src'
=A0 GEN =A0 =A0 =A0crc8gen.c=
=A0 GEN =A0 =A0 =A0crc16gen.c
=A0 GEN =A0 =A0 =A0crc32= gen.c
=A0 GEN =A0 =A0 =A0crc64gen.c
make =A0all-am
make[3]: Entering directory `/cygdrive/d/Work= space/Morpho/libosmocore/src'
=A0 CC =A0 =A0 =A0 timer.lo
=A0 CC =A0 =A0 =A0 select.lo
=A0 CC =A0 =A0 =A0 signal.lo<= /div>
=A0 CC =A0 =A0 =A0 msgb.lo
=A0 CC =A0 =A0 =A0 bits.lo
=A0 CC =A0 =A0 =A0 bitvec.lo
=A0 CC =A0 =A0 =A0 statistics.lo
=A0 CC =A0 =A0 =A0 write_q= ueue.lo
=A0 CC =A0 =A0 =A0 utils.lo
utils.c: In functio= n 'osmo_str2lower':
utils.c:205:3: warning: array subscript has type 'char'
u= tils.c: In function 'osmo_str2upper':
utils.c:218:3: warn= ing: array subscript has type 'char'
=A0 CC =A0 =A0 =A0 s= ocket.lo
=A0 CC =A0 =A0 =A0 logging.lo
logging.c: In function 'lo= g_vty_command_string':
logging.c:635:5: warning: array subscr= ipt has type 'char'
logging.c:657:4: warning: array subsc= ript has type 'char'
=A0 CC =A0 =A0 =A0 logging_syslog.lo
=A0 CC =A0 =A0 =A0 rate= _ctr.lo
=A0 CC =A0 =A0 =A0 gsmtap_util.lo
=A0 CC =A0 = =A0 =A0 crc16.lo
=A0 CC =A0 =A0 =A0 panic.lo
=A0 CC =A0= =A0 =A0 backtrace.lo
=A0 CC =A0 =A0 =A0 conv.lo
=A0 CC =A0 =A0 =A0 application.lo
=A0 CC =A0 =A0 =A0 rbtree.= lo
=A0 CC =A0 =A0 =A0 strrb.lo
=A0 CC =A0 =A0 =A0 loggi= ngrb.lo
=A0 CC =A0 =A0 =A0 crc8gen.lo
=A0 CC =A0 =A0 = =A0 crc16gen.lo
=A0 CC =A0 =A0 =A0 crc32gen.lo
=A0 CC =A0 =A0 =A0 crc64gen.lo
=A0 CC =A0 =A0 =A0 plugin.lo<= /div>
=A0 CC =A0 =A0 =A0 talloc.lo
=A0 CC =A0 =A0 =A0 msgfile= .lo
=A0 CC =A0 =A0 =A0 serial.lo
serial.c: In function = 'osmo_serial_set_custom_baudrate':
serial.c:193:2: warning: #warning osmo_serial_set_custom_baudrate: uns= upported platform
=A0 CCLD =A0 =A0 libosmocore.la
libtool: link: warning: undefined symbols = not allowed in i686-pc-cygwin shared libraries
make[3]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/s= rc'
make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/= libosmocore/src'
Making all in src/vty
make[2]: Ent= ering directory `/cygdrive/d/Workspace/Morpho/libosmocore/src/vty'
=A0 CC =A0 =A0 =A0 buffer.lo
=A0 CC =A0 =A0 =A0 command.lo
=A0 CC =A0 =A0 =A0 vty.lo
vty.c: In function 'vty_he= llo':
vty.c:363:10: warning: array subscript has type 'ch= ar'
=A0 CC =A0 =A0 =A0 vector.lo
=A0 CC =A0 =A0 =A0 utils.lo
utils.c: In function 'vty_cm= d_string_from_valstr':
utils.c:96:6: warning: array subscript= has type 'char'
=A0 CC =A0 =A0 =A0 telnet_interface.lo
=A0 CC =A0 =A0 =A0 logging_vty.lo
=A0 CCLD =A0 =A0 libosmovty.la

*** Warning: This system can not link to static lib = archive ../../src/libosmocore.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. =A0But I can only do this if you hav= e a
*** shared version of the library, which you do not appear to= have.
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwi= n shared libraries
make[2]: Leaving directory `/cygdrive/d/Worksp= ace/Morpho/libosmocore/src/vty'
Making all in src/codec
make[2]: Entering directory `/cygdrive/d/Workspace/Morpho/libosmocore/= src/codec'
=A0 CC =A0 =A0 =A0 gsm610.lo
=A0 CC =A0 = =A0 =A0 gsm620.lo
=A0 CC =A0 =A0 =A0 gsm660.lo
=A0 CC = =A0 =A0 =A0 gsm690.lo
=A0 CCLD =A0 =A0 libosmocodec.la
libtool: link: warning: undefined symbols not allowed in i686-pc-cyg= win shared libraries
make[2]: Leaving directory `/cygdrive/d/Work= space/Morpho/libosmocore/src/codec'
Making all in src/gsm
make[2]: Entering directory `/cygdrive= /d/Workspace/Morpho/libosmocore/src/gsm'
=A0 CC =A0 =A0 =A0 a= 5.lo
=A0 CC =A0 =A0 =A0 rxlev_stat.lo
=A0 CC =A0 =A0 = =A0 tlv_parser.lo
=A0 CC =A0 =A0 =A0 comp128.lo
=A0 CC =A0 =A0 =A0 gsm_utils.l= o
gsm_utils.c: In function 'gsm_band_parse':
gs= m_utils.c:450:2: warning: array subscript has type 'char'
=A0 CC =A0 =A0 =A0 rsl.lo
=A0 CC =A0 =A0 =A0 gsm48.lo
=A0 CC =A0 =A0 =A0 gsm48_ie.lo
=A0 CC =A0 =A0 =A0 gsm0808.lo
=A0 CC =A0 =A0 =A0 sysinfo= .lo
=A0 CC =A0 =A0 =A0 gprs_cipher_core.lo
=A0 CC =A0 = =A0 =A0 gsm0480.lo
=A0 CC =A0 =A0 =A0 abis_nm.lo
=A0 CC =A0 =A0 =A0 gsm0502.lo
=A0 CC =A0 =A0 =A0 gsm0411_uti= ls.lo
gsm0411_utils.c: In function 'gsm340_gen_scts':
gsm0411_utils.c:87:2: warning: #warning find a portable way to obtai= n timezone offset
=A0 CC =A0 =A0 =A0 gsm0411_smc.lo
=A0 CC =A0 =A0 =A0 gsm0411= _smr.lo
=A0 CC =A0 =A0 =A0 lapd_core.lo
=A0 CC =A0 =A0 = =A0 lapdm.lo
=A0 CC =A0 =A0 =A0 auth_core.lo
=A0 CC =A0= =A0 =A0 auth_comp128v1.lo
=A0 CC =A0 =A0 =A0 auth_milenage.lo
=A0 CC =A0 =A0 =A0 aes-encblock.lo
=A0 CC =A0 =A0 =A0 aes-in= ternal.lo
=A0 CC =A0 =A0 =A0 aes-internal-enc.lo
=A0 CC= =A0 =A0 =A0 milenage.lo
=A0 CC =A0 =A0 =A0 gan.lo
=A0 = CCLD =A0 =A0 libosmogsm.la

*** Warning: This system can not link to static lib arc= hive ../../src/libosmocore.la.
<= div>*** I have the capability to make that library automatically link in wh= en
*** you link to this library. =A0But I can only do this if you have a<= /div>
*** shared version of the library, which you do not appear to hav= e.
libtool: link: warning: undefined symbols not allowed in i686-= pc-cygwin shared libraries
make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/s= rc/gsm'
Making all in src/gb
make[2]: Entering dire= ctory `/cygdrive/d/Workspace/Morpho/libosmocore/src/gb'
=A0 C= C =A0 =A0 =A0 gprs_ns.lo
=A0 CC =A0 =A0 =A0 gprs_ns_frgre.lo
=A0 CC =A0 =A0 =A0 gprs_= ns_vty.lo
=A0 CC =A0 =A0 =A0 gprs_bssgp.lo
=A0 CC =A0 = =A0 =A0 gprs_bssgp_util.lo
=A0 CC =A0 =A0 =A0 gprs_bssgp_vty.lo
=A0 CC =A0 =A0 =A0 gprs_bssgp_bss.lo
=A0 CC =A0 =A0 =A0 common_vty.lo
=A0 CCLD =A0 =A0 libosmogb.la

*** Warning= : This system can not link to static lib archive ../../src/libosmocore.la.
*** I have the capability to make that library automatically link in w= hen
*** you link to this library. =A0But I can only do this if yo= u have a
*** shared version of the library, which you do not appe= ar to have.

*** Warning: This system can not link to static lib arc= hive ../../src/vty/libosmovty.la.
*** I have the capability to make that library automatically link in = when
*** you link to this library. =A0But I can only do this if you have a<= /div>
*** shared version of the library, which you do not appear to hav= e.

*** Warning: This system can not link to static= lib archive ../../src/gsm/libosmogsm.la.
*** I have the capability to make that library automatically link in w= hen
*** you link to this library. =A0But I can only do this if yo= u have a
*** shared version of the library, which you do not appe= ar to have.

*** I have the capability to make th= at library automatically link in when
*** you link to this library. =A0But I can only do this if you have a<= /div>
*** shared version of the library, which you do not appear to hav= e.
libtool: link: warning: undefined symbols not allowed in i686-= pc-cygwin shared libraries
make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/s= rc/gb'
Making all in tests
make[2]: Entering direct= ory `/cygdrive/d/Workspace/Morpho/libosmocore/tests'
make[2]:= Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore/t= ests'
Making all in utils
make[2]: Entering directo= ry `/cygdrive/d/Workspace/Morpho/libosmocore/utils'
=A0 CC = =A0 =A0 =A0 osmo-arfcn.o
osmo-arfcn.c: In function =91freq2arfcn=92:
osmo-arfcn.c:80:= 1: warning: control reaches end of non-void function
osmo-arfcn.c= : In function =91main=92:
osmo-arfcn.c:92:8: warning: =91param=92= may be used uninitialized in this function
=A0 CCLD =A0 =A0 osmo-arfcn.exe
=A0 CC =A0 =A0 =A0 osmo-auc-= gen.o
osmo-auc-gen.c: In function =91main=92:
osmo-auc-= gen.c:216:3: warning: implicit declaration of function =91time=92
osmo-auc-gen.c:217:3: warning: dereferencing type-punned pointer will brea= k strict-aliasing rules
osmo-auc-gen.c:249:3: warning: format =91%lu=92 expects type =91long u= nsigned int=92, but argument 2 has type =91uint64_t=92
osmo-auc-g= en.c:249:3: warning: format =91%lu=92 expects type =91long unsigned int=92,= but argument 2 has type =91uint64_t=92
=A0 CCLD =A0 =A0 osmo-auc-gen.exe
make[2]: Leaving directory= `/cygdrive/d/Workspace/Morpho/libosmocore/utils'
make[2]: En= tering directory `/cygdrive/d/Workspace/Morpho/libosmocore'
m= ake[2]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore'
make[1]: Leaving directory `/cygdrive/d/Workspace/Morpho/libosmocore&#= 39;

I now compilation for Windows is not sup= ported directly, but would you mind pointing me in the right direction on h= ow to build libosmocore as a dll?

Thanks!=A0

--
Atenc= iosamente,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Hugo Fred= erico Soares
--f46d042dfcd1ea9df404d6cbc3f6-- From bogus@does.not.exist.com Sun Jan 9 16:49:29 2022 From: bogus@does.not.exist.com () Date: Sun, 09 Jan 2022 16:49:29 -0000 Subject: No subject Message-ID: 0x62) Can anyone point me to a resource for computing parameters with a valid MAC? Thanks for your attention, Rupert --089e013d1f28c0d5d004d784db04 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good Afternoon,

I am trying to perform = USIM/3G authentication using=A0osmo-sim-auth and ran into the same problem = as Stefanos:

I followed Benoit's advice to view the details as f= ollows (using the inputs from the web page):

> r= and_bin =3D stringToByte(a2b_hex('00000000000000000000000000000000'= ))
> autn_bin =3D stringToByte(a2b_hex('ec9320c2c2000000e1dd22c1ad= 3e2d3d'))
> u.authenticate(RAND=3Drand_bin, AUTN=3Da= utn_bin,ctx=3D'3G')
> u.coms()

<= /div>
['INTERNAL AUTHENT=
ICATE apdu: 00 88 00 81 22 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =
00 10 EC 93 20 C2 C2 00 00 00 E1 DD 22 C1 AD 3E 2D 3D',
 'sw1, sw2: 98 62 - undefined status',
 (152, 98),
 []]

From=A0TS 31.102, section 7= .3.1 it looks like this means a MAC failure (0x98 0x62)
Can anyone point me to a resource for computing parameter= s with a valid MAC?

Thanks for your attention,
=
Rupert
--089e013d1f28c0d5d004d784db04-- From bogus@does.not.exist.com Sun Jan 9 16:49:29 2022 From: bogus@does.not.exist.com () Date: Sun, 09 Jan 2022 16:49:29 -0000 Subject: No subject Message-ID: The first time it even sends a C-APDU, but no SW is returned. Also the data stream (ATR and APDU) look correct, so it does no seem to be a speed issue. I only had the card for 5 minutes and did not try to debug it more (check it the PPS fails, or something afterwards) or use an oscilloscope. But maybe someone might have an idea. Here the SIMtrace log: Entering main loop ATR APDU: 3b 9f 95 80 1f c7 80 31 a0 73 be 21 13 67 d0 02 04 09 01 00 00 05 PPS(Fi=9/Di=5) ATR APDU: 3b 9f 95 80 1f c7 80 31 a0 73 be 21 13 67 d0 02 04 09 01 00 00 05 PPS(Fi=9/Di=5) APDU: 00 a4 00 0c 02 fc 00 ATR APDU: 3b 9f 95 80 1f c7 80 31 a0 73 be 21 13 67 d0 02 04 09 01 00 00 05 PPS(Fi=9/Di=5) ATR APDU: 3b 9f 95 80 1f c7 80 31 a0 73 be 21 13 67 d0 02 04 09 01 00 00 05 And here the debug log: main(76): entering main (idle) loop VCC_PHONE off VCC_PHONE on RST computed Fi(1) Di(1) ratio: 372 found Fi=9 Di=5 computed Fi(9) Di(5) ratio: 32 nRST VCC_PHONE off VCC_PHONE on RST computed Fi(1) Di(1) ratio: 372 found Fi=9 Di=5 computed Fi(9) Di(5) ratio: 32 nRST VCC_PHONE off VCC_PHONE on RST computed Fi(1) Di(1) ratio: 372 found Fi=9 Di=5 computed Fi(9) Di(5) ratio: 32 nRST VCC_PHONE off VCC_PHONE on RST computed Fi(1) Di(1) ratio: 372 found Fi=9 Di=5 computed Fi(9) Di(5) ratio: 32 nRST VCC_PHONE off thank, kevin