Hi,

Sorry about that. Didn’t realize I was taking it private. I’ve a couple more 
questions. If the ATR comes back at 9600, doesn’t it stay the same until we 
send PPS?

So I went through that link, according to that, after ATR, we use the Fi and Di 
values to calculate UART Baud rate and send commands in that rate? But I want 
to know what baud rate the phone uses? Does it change using PPS? Wireshark 
doesn’t show any PPS after ATR. Does that mean the phone read the ATR and 
adjusted the clock accordingly? Basically I’m trying to sniff the entire phone 
communication to SIM in a file and I need the correct Baud rate to do that?

Thanks,
Vishal
> On Jul 14, 2017, at 9:54 AM, Holger Freyther <[email protected]> wrote:
> 
> 
>> On 14. Jul 2017, at 18:50, Vishal Vaidhyanathan 
>> <[email protected]> wrote:
>> 
>> Hi Holger,
> 
> Hi!
> 
> please don't take a public discussion private. It is considered rude in the 
> FOSS community. But I (and others) offer consulting services too.
> 
> 
>> So I receive the ATR at 9600 Baud rate. After that I send the APDU commands 
>> in the exact order I see in Wireshark. One SIM card responds exactly as I 
>> see in Wireshark. Few other SIM cards don’t respond after ATR. So I want to 
>> know how the phone does it and want to verify that Wireshark is not missing 
>> something after ATR. This is the reason I want to know the baud rate of the 
>> phone clock.
>> 
>> Where exactly should I look at the source to figure out the Baud rate of the 
>> phone?
> 
> 
> http://git.osmocom.org/openpcd/tree/firmware/src/simtrace/iso7816_uart.c#n117
> 
> follow the usage of the fi_table and di_table

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to