User Manual Part 5

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 106
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
In Figure 12-44, note that in the main application task loop, there a case statement to handle the
APL_FTP_STATE_MSG. This prints a message to the Logger port when the FTP transfer is
complete.
Figure 12-44: DemoAppREMOTE - Event for FTP Load Successful
As the foundation code goes through the process of downloading the file, the various states are
printed out to the Logger. Here are the examples of the states:
FTP_STATE_READY, // Initial state of the state machine
FTP_STATE_INITIALIZE, // Request received state. Starts initialization
FTP_STATE_CONTEXT_ACTIVATED, // State after network context is activated
FTP_STATE_CONNECTION_ACTIVATED, // State after socket connection is activated
FTP_STATE_DOWNLOAD, // State before file is downloaded
FTP_STATE_CONNECTION_CLOSE, // State where connection is closed
FTP_STATE_STOP // State before returning to ready state
After the file is downloaded, the new application must execute a modem reboot. An example of
this call is:
SYS_pwrDownmodem ( s32 duration );