From laforge at gnumonks.org Sun Jul 1 06:49:10 2018 From: laforge at gnumonks.org (Harald Welte) Date: Sun, 1 Jul 2018 08:49:10 +0200 Subject: CLA In-Reply-To: References: Message-ID: <20180701064910.GM2525@nataraja> On Sat, Jun 30, 2018 at 08:44:21AM -0400, tchen wrote: > I noticed the modem issued command with CLA 0 (usim) or a0 (gsm)... ?just wondering what cause it to use 0 or a0??? Or does it try different CLA automatically 0 == 3GPP USIM a0 == GSM SIM Most modern phones will first attempt to use the USIM app on cards (if any present) and then fall back to the old GSM SIM, if no USIM app is found. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From amikhailov at eastcompeace.ru Wed Jul 25 08:56:58 2018 From: amikhailov at eastcompeace.ru (Andrei Mikhailov) Date: Wed, 25 Jul 2018 11:56:58 +0300 Subject: Problem in accessing SIMTrace 2 Message-ID: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> Dears, I have received SIMTrace 2 just now and I tried to connect it to PC with the same parameter as for previous version of SIMTrace. But I found that USB VENDOR ID and USB PRODUCT ID were changed. For the previous version they were 0x16c0 and 0x0762 correspondingly. All host sources at ?git://git.osmocom.org/simtrace.git repository use this parameters. Now I can see that VENDOR ID is 0x1d50 and PRODUCT ID is 0x60e3. Could you please help me to find USB connectivity parameters for the SIMTrace device which I received? -- /Best regards, Andrei Mikhailov / -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Wed Jul 25 15:10:07 2018 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 25 Jul 2018 17:10:07 +0200 Subject: Problem in accessing SIMTrace 2 In-Reply-To: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> Message-ID: <20180725151007.GL17075@nataraja> Hi Andrei, On Wed, Jul 25, 2018 at 11:56:58AM +0300, Andrei Mikhailov wrote: > I have received SIMTrace 2 just now and I tried to connect it to PC with the > same parameter as for previous version of SIMTrace. Please read the documentation/wiki. SIMtrace 2 has different firmware and host software than SIMtrace1. > But I found that USB VENDOR ID and USB PRODUCT ID were changed. For the > previous version they were 0x16c0 and 0x0762 correspondingly. > All host sources at ?git://git.osmocom.org/simtrace.git repository use this > parameters. please look at simtrace2.git and - even more so http://osmocom.org/projects/simtrace2/wiki -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From amikhailov at eastcompeace.ru Thu Jul 26 05:37:19 2018 From: amikhailov at eastcompeace.ru (Andrei Mikhailov) Date: Thu, 26 Jul 2018 08:37:19 +0300 Subject: Problem in accessing SIMTrace 2 In-Reply-To: <20180725151007.GL17075@nataraja> References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> <20180725151007.GL17075@nataraja> Message-ID: Hi Harald, Thank you for clarification. It works now. But I can not find ATR contents in data received from SIMTrace 2. Please see the part of log file with data received from SIMTrace below: 0300000000000C0008000000 0302000000000E00000000000000 0303000000001200000000000400FF10947B 0303000000001200000000000400FF10947B 030100000000090094 0304000000001700000000000900A0A40000027F209F17 0304000000002C00000000001E00A0C0000017000008007F200200000000000A9300250700838A838A009000 Could you please clarify how to obtain ATR contents? /? ????????? / Best regards, ?????? ???????? / Andrei Mikhailov ???????????? ???????? / Project Manager ??? "????????? ???" / Eastcompeace (Rus) Co., Ltd. phone +7(499)7361431 mobile +7(916)6220848/ 25.07.2018 18:10, Harald Welte ?????: > Hi Andrei, > > On Wed, Jul 25, 2018 at 11:56:58AM +0300, Andrei Mikhailov wrote: > >> I have received SIMTrace 2 just now and I tried to connect it to PC with the >> same parameter as for previous version of SIMTrace. > Please read the documentation/wiki. SIMtrace 2 has different firmware and host software > than SIMtrace1. >> But I found that USB VENDOR ID and USB PRODUCT ID were changed. For the >> previous version they were 0x16c0 and 0x0762 correspondingly. >> All host sources at ?git://git.osmocom.org/simtrace.git repository use this >> parameters. > please look at simtrace2.git and - even more so http://osmocom.org/projects/simtrace2/wiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at mail.tsaitgaist.info Thu Jul 26 07:50:20 2018 From: ml at mail.tsaitgaist.info (=?iso-8859-1?Q?K=E9vin?= Redon) Date: Thu, 26 Jul 2018 09:50:20 +0200 Subject: Problem in accessing SIMTrace 2 In-Reply-To: References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> <20180725151007.GL17075@nataraja> Message-ID: <20180726075020.GA6419@coil> Hi Andrei, SIMtrace 1 displays the ATR on the console output: Entering main loop ATR APDU: 3b 9f 96 80 1f c7 80 31 a0 73 be 21 13 67 43 20 07 18 00 00 01 a5 and sends it in as GSMTAP APDU data packet: 020404000000000000000000000000003b9f96801fc78031a073be21136743200718000001a5 SIMtrace 2 also displays the ATR on the console output: Entering main loop Card state change: reset release ATR: 3b 9f 96 80 1f c7 80 31 a0 73 be 21 13 67 43 20 07 18 00 00 01 a5 but does not sent it over GSMTAP, since this is not really an APDU. Let me fix that quickly and I will let you know once the change is merged. Kevin On Thu, Jul 26, 2018 at 08:37:19AM +0300, Andrei Mikhailov wrote: > Hi Harald, > > Thank you for clarification. It works now. > > But I can not find ATR contents in data received from SIMTrace 2. Please see > the part of log file with data received from SIMTrace below: > 0300000000000C0008000000 > 0302000000000E00000000000000 > 0303000000001200000000000400FF10947B > 0303000000001200000000000400FF10947B > 030100000000090094 > 0304000000001700000000000900A0A40000027F209F17 > 0304000000002C00000000001E00A0C0000017000008007F200200000000000A9300250700838A838A009000 > > Could you please clarify how to obtain ATR contents? > > > /? ????????? / Best regards, > ?????? ???????? / Andrei Mikhailov > ???????????? ???????? / Project Manager > ??? "????????? ???" / Eastcompeace (Rus) Co., Ltd. > phone +7(499)7361431 > mobile +7(916)6220848/ > 25.07.2018 18:10, Harald Welte ?????: > > Hi Andrei, > > > > On Wed, Jul 25, 2018 at 11:56:58AM +0300, Andrei Mikhailov wrote: > > > > > I have received SIMTrace 2 just now and I tried to connect it to PC with the > > > same parameter as for previous version of SIMTrace. > > Please read the documentation/wiki. SIMtrace 2 has different firmware and host software > > than SIMtrace1. > > > But I found that USB VENDOR ID and USB PRODUCT ID were changed. For the > > > previous version they were 0x16c0 and 0x0762 correspondingly. > > > All host sources at ?git://git.osmocom.org/simtrace.git repository use this > > > parameters. > > please look at simtrace2.git and - even more so http://osmocom.org/projects/simtrace2/wiki > > > From ml at mail.tsaitgaist.info Thu Jul 26 16:52:50 2018 From: ml at mail.tsaitgaist.info (=?iso-8859-1?Q?K=E9vin?= Redon) Date: Thu, 26 Jul 2018 18:52:50 +0200 Subject: Problem in accessing SIMTrace 2 In-Reply-To: <20180726075020.GA6419@coil> References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> <20180725151007.GL17075@nataraja> <20180726075020.GA6419@coil> Message-ID: <20180726165250.GA6799@coil> I've fixed the issue and simtrac2-sniff now also sends the ATR over GSMTAP. The patch is still getting reviewed. There will be a difference to SIMtrace 1 though. SIMtrace 1 sent the ATR as if it would be an APDU (which it isn't). To make the difference between the ATR and APDU data I introduced GSMTAP SIM sub_types. See https://osmocom.org/projects/baseband/wiki/GSMTAP for the GSMTAP header format. Sub_type 0 will still be for APDU data (and is backwards compatible with SIMtrace 1 and the wireshark decoder). SIMtrace 2 will use sub-type 1 when sending the ATR. Until the change is merged you may already want to take this change into account. Since this change is also in libosmocore, you will have to get the latest libosmocore version (through git or nightly packages) for the simtrace2-sniff to use this sub_type. I will let you know once the change is merged and ready. On Thu, Jul 26, 2018 at 09:50:20AM +0200, K?vin Redon wrote: > Hi Andrei, > > SIMtrace 1 displays the ATR on the console output: > Entering main loop > ATR APDU: 3b 9f 96 80 1f c7 80 31 a0 73 be 21 13 67 43 20 07 18 00 00 01 a5 > > and sends it in as GSMTAP APDU data packet: > 020404000000000000000000000000003b9f96801fc78031a073be21136743200718000001a5 > > SIMtrace 2 also displays the ATR on the console output: > Entering main loop > Card state change: reset release > ATR: 3b 9f 96 80 1f c7 80 31 a0 73 be 21 13 67 43 20 07 18 00 00 01 a5 > > but does not sent it over GSMTAP, since this is not really an APDU. > > Let me fix that quickly and I will let you know once the change is merged. > > Kevin > > > > On Thu, Jul 26, 2018 at 08:37:19AM +0300, Andrei Mikhailov wrote: > > Hi Harald, > > > > Thank you for clarification. It works now. > > > > But I can not find ATR contents in data received from SIMTrace 2. Please see > > the part of log file with data received from SIMTrace below: > > 0300000000000C0008000000 > > 0302000000000E00000000000000 > > 0303000000001200000000000400FF10947B > > 0303000000001200000000000400FF10947B > > 030100000000090094 > > 0304000000001700000000000900A0A40000027F209F17 > > 0304000000002C00000000001E00A0C0000017000008007F200200000000000A9300250700838A838A009000 > > > > Could you please clarify how to obtain ATR contents? > > > > > > /? ????????? / Best regards, > > ?????? ???????? / Andrei Mikhailov > > ???????????? ???????? / Project Manager > > ??? "????????? ???" / Eastcompeace (Rus) Co., Ltd. > > phone +7(499)7361431 > > mobile +7(916)6220848/ > > 25.07.2018 18:10, Harald Welte ?????: > > > Hi Andrei, > > > > > > On Wed, Jul 25, 2018 at 11:56:58AM +0300, Andrei Mikhailov wrote: > > > > > > > I have received SIMTrace 2 just now and I tried to connect it to PC with the > > > > same parameter as for previous version of SIMTrace. > > > Please read the documentation/wiki. SIMtrace 2 has different firmware and host software > > > than SIMtrace1. > > > > But I found that USB VENDOR ID and USB PRODUCT ID were changed. For the > > > > previous version they were 0x16c0 and 0x0762 correspondingly. > > > > All host sources at ?git://git.osmocom.org/simtrace.git repository use this > > > > parameters. > > > please look at simtrace2.git and - even more so http://osmocom.org/projects/simtrace2/wiki > > > > > From ml at mail.tsaitgaist.info Sat Jul 28 10:38:33 2018 From: ml at mail.tsaitgaist.info (=?iso-8859-1?Q?K=E9vin?= Redon) Date: Sat, 28 Jul 2018 12:38:33 +0200 Subject: Problem in accessing SIMTrace 2 In-Reply-To: <20180726165250.GA6799@coil> References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> <20180725151007.GL17075@nataraja> <20180726075020.GA6419@coil> <20180726165250.GA6799@coil> Message-ID: <20180728103833.GA23801@coil> The patches have been reviewed and merged. If you use the latest version (e.g. compile the git source code) of libosmocore and simtrace2 you should see the ATR in the GSMTAP traffic (with GSMTAP sub_type 1). Let me know if you find issues. On Thu, Jul 26, 2018 at 06:52:50PM +0200, K?vin Redon wrote: > I will let you know once the change is merged and ready. From ml at mail.tsaitgaist.info Mon Jul 30 06:52:43 2018 From: ml at mail.tsaitgaist.info (=?iso-8859-1?Q?K=E9vin?= Redon) Date: Mon, 30 Jul 2018 08:52:43 +0200 Subject: Problem in accessing SIMTrace 2 In-Reply-To: References: <08b298fe-92f0-8930-3b9d-981d55f5dcaf@eastcompeace.ru> <20180725151007.GL17075@nataraja> <20180726075020.GA6419@coil> <20180726165250.GA6799@coil> <20180728103833.GA23801@coil> Message-ID: <20180730065243.GA4679@coil> On Mon, Jul 30, 2018 at 08:07:08AM +0300, Andrei Mikhailov wrote: > Excuse me I use my own PC host program on Python 2.7.x for Windows PC and > have no additional Linux PC to make firmware. > Could you please make updated firmware for me? The issue and fix only affect the host software, not the firmware. You don't need to flash a new firmware. In case you need a new SIMtrace 2 firmware (without compiling it yourself), you can find compiled images in the wiki: https://osmocom.org/projects/simtrace2/wiki#Firmware P.S. I am replying on the mailing list because I can't reply to you directly. Your mail provider/server uses https://www.spamsources.fabel.dk/ for spam detection, which considers my mail server IP as spam. The only way to get de-listed requires me to have a google mail account, which I don't and won't have.