3.1.1
RC Description
This embedded application or something very similar has to be running in the target
module to ensure that the download will have a connection to work with.
The first consideration in the script is to establish a data channel. It is possible to
establish two instances of a data channel within a script. Either instance can be
used. The example script uses channel 1.
Note that if you chose channel 0, atsnd() cannot be used while channel 0 is in data
mode.
This example does not feature any security mechanism. It simply uses auto answer
on channel 1 and attempts to put any incoming call into RC mode.
This example polls the channel status byte and tests for DCD active to determine if
a CSD connection has been made. It continues to poll the status byte for DCD after
RC mode is entered to see when the connection drops.
While the module is in RC mode, this script does not execute MyScript (). It assumes
that the need for upgrading a script means that the old script should not run.
After the connection drops, the script resets the module, so that the newly
downloaded script can run.
Note: It must be noted that the script shown below can only handle ONE call at any
given time, be it a voice or data call. If the GR64 is handling a voice call, it CANNOT
handle a data call from a user attempting to download a script, until the voice call is
cleared (and vice versa).
RemoteMode ()
{
int
state =
/* Check to see if the channel is connected */
if
{
/* Setup
if
{
}
Gx64 APPLICATION NOTE
EA Remote Download
Page: 10/22
state;
chsts
(1) & 0x02;
(state)
Remote Control mode */
(rc
(1) == 1)
prtf
("Entered RC mode, waiting for CSD call to end\r\n");
state =
chsts
(1) & 0x02;
while
(state != 0)
{
dlys
(1);
state =
chsts
(1) & 0x02;
}
prtf
("Exited RC mode.
rst
(0);
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulged without prior written agreement.
Ce document est la propriété exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation préalable
Resetting module.\r\n");
Need help?
Do you have a question about the GR64 and is the answer not in the manual?
Questions and answers