<br><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 17, 2012 at 2:02 AM, Ritesh Harjani <span dir="ltr">&lt;<a href="mailto:ritesh.harjani@gmail.com" target="_blank">ritesh.harjani@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yann, <br><br><br><div class="gmail_quote"><div class="im">On Mon, Dec 17, 2012 at 3:12 PM, Yann Droneaud <span dir="ltr">&lt;<a href="mailto:ydroneaud@opteya.com" target="_blank">ydroneaud@opteya.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le lundi 17 décembre 2012 à 12:41 +0530, Ritesh Harjani a écrit :<br>
<div>&gt; Hi Everyone,<br>
&gt;<br>
&gt; When this command (at+cfun=1,1) is executed on phone, it does a<br>
&gt; reboot. I want to know which and how this command calls the kernel<br>
&gt; level functions.<br>
&gt; I googled this, but seems like all the data explains only about AT<br>
&gt; command and not as to how this reboot process is done.<br>
&gt;<br>
<br>
</div>The kernel alone is not responsible of interpreting Hayes commands (AT).<br>
<br>
According to ETSI TS 100 916 V7.4.0 (1999-11) Technical Specification<br>
Digital cellular telecommunications system (Phase 2+); AT command set<br>
for GSM Mobile Equipment (ME) (GSM 07.07 version 7.4.0 Release 1998),<br>
Section 8.2 Set phone functionality +CFUN (found through by<br>
<a href="http://wiki.openmoko.org/wiki/Hardware:AT_Commands" target="_blank">http://wiki.openmoko.org/wiki/Hardware:AT_Commands</a> ), this command<br>
(AT+CFUN=1,1) is one of the command a &quot;baseband&quot; must implement.<br>
<br>
&gt;And this command is asking for a reboot. So what you describe seems more<br>
&gt;likely to be a hardware problem.<br></blockquote></div><div><br>On Android phones(some of them) there are essentially two processors. The <i>Application Processor (AP)</i> where your Android operating system (AOS) and user interface (UI) lives, and the <i>Baseband/Cellular Processor (BP/CP)</i>
 where all the GSM and other high-tech communication magic happens, 
including the modem we wish to communicate with. <br>Here, AP and BP communicates via UART (serial 
line), USB, SPI or through shared RAM and/or a combination of these. 
Therefore there will always be some path directly accessible from the 
outside that we should be able to use to communicate directly with the 
BP. <br><br>So, what I am asking for is not any hardware problem. What I have figured out that, this command (at+cun=1,1) calls for sysrq reset which does a emergency restart. <br>But, I wanted to know the exact path that it follows before calling Sysrq key. <br>
</div></div></blockquote><div><br></div><div>Did you try &#39;strace&#39;?</div></div></div>