Sony Ericsson RC function Application Note page 10

For remote script downl
Hide thumbs Also See for RC function:
Table of Contents

Advertisement

Remote script download using RC intrinsic function
else
{
}
}
if
(first == 0)
{
/* disable remote control and reset the module */
prtf
rc(0);
rst(0);
}
}
ExecuteMyScript()
{
return(0);
}
main ()
{
int
chlerr;
char
chlsts;
int
APPS_NETWORK_STATUSBYTE = 10;
int
AT_NET_REGISTERED = 1;
prs(0);
prtf("\r\n Waiting for Network
while(gtb(APPS_NETWORK_STATUSBYTE) != AT_NET_REGISTERED)
{
dlys(1);
}
prtf("\r\n Now
while
(1)
{
prtf
Rslt = ExecuteMyScript ();
prtf
if
(Rslt == 0)
{
}
else
LZT 123 7799 R1B
/* check status of call every second */
dlys
(1);
prtf
("online status NUMBER 1 =
st = chsts(1);
st = st & 0x02;
("disable
rc\n");
registered!");
("\r\n - Executing My
("\r\n >>>
ExecuteMyScript
prtf
("\r\nOK!");
%d\n", st);
registration...");
Script...");
result: %d",
Rslt);
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Use of the rc function for remote script download

Table of Contents