User Manual Part 4

User Guide to Q4000/QPRO
Document Number 1135-4713 Rev G
THIS DOCUMENT CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF QUAKE GLOBAL CORPORATION. IT MAY BE USED BY
RECIPIENT ONLY FOR THE PURPOSE FOR WHICH IT WAS TRANSMITTED AND WILL BE RETURNED UPON REQUEST OR WHEN NO LONGER NEEDED
BY RECIPIENT. DISCLOSURE TO UNAUTHORIZED THIRD PARTIES OR DUPLICATION WITHOUT THE EXPRESS WRITTEN PERMISSION OF QUAKE
GLOBAL IS PROHIBITED.
Page 83
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
handled in a single function called processEvent(). GPS, serial data, CAN events and
some others are handled directly from the main loop. This is shown in the figure below.
Figure 12-20: Turnkey main task loop
We have seen in the Turnkey application how processEvent() handles a power-on sequence.
Depending on the settings of the configuration parameters, it initializes the satellite and GPRS
modules, starts the GPS and sets timers to check for GPS and to transmit message timeouts.
There is a single TIMER event which occurs when any of the timers has a timeout. Depending on
the timer that expired, Turnkey may build and send a message, or it may check for a received
message (from GPRS) or process a timeout from the GPS process.
Other events are triggered, for example, when:
DTR changes state
a satellite or GPRS goes in or out of view
a message is received.
The complete list of events is discussed in Chapter 14.