<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Holger,</div><div class=""><br class=""></div>Well I looked into the code and figured ATMEL MCU used here takes Fi/Di as an input parameter for setting it’s UART. My question how do you figure the phone clock speed and baud rate?<div class=""><br class=""></div><div class="">I know that <b class="">Baud Rate = Phone clock speed/(Fi/Di). </b>So I need to know these parameters to sniff communication.</div><div class=""><br class=""></div><div class="">My Goal is to sniff the entire process of phone communication with SIM and store in a File. For that I need to know the phone’s clock speed and Baud rate of UART at different times.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vishal<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 14, 2017, at 10:23 AM, Holger Freyther <<a href="mailto:holger@freyther.de" class="">holger@freyther.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">On 14. Jul 2017, at 19:13, Vishal Vaidhyanathan <<a href="mailto:Vishal.Vaidhyanathan@privoro.com" class="">Vishal.Vaidhyanathan@privoro.com</a>> wrote:<br class=""><br class="">Hi,<br class=""></blockquote><br class="">Hi!<br class=""><br class=""><br class=""><blockquote type="cite" class="">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?<br class=""></blockquote><br class="">Right.<br class=""><br class=""><blockquote type="cite" class="">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?<br class=""></blockquote><br class="">You are right. If you look at process_byte it will not forward PTS related bytes (goto out_silent). At least in the debug output of the SIMtrace you should be able to see fi/di changes.<br class=""><br class="">holger<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>