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 93
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
12.4.2.2 Receiving data from the MTS or Logger port
DemoAppSERIAL demonstrates how to receive data from the AUX port. In order to also receive
data from either the Logger or MTS port, it is necessary to set the serial port mode in the
application. There are two options for port mode: PORT_MODE_PROTOCOL and
PORT_MODE_APL.
PORT_MODE_APL passes all serial port data to the application.
PORT_MODE_PROTOCOL gathers bytes together in packets, passes them to all
foundation tasks and then to the application. This mode is preferred to allow OSI packet
processing and special character trapping.
The following describes how the application is set up to receive data from the MTS port:
1. In Figure 12-30, the MTS port mode is set to PORT_MODE_PROTOCOL on line 916.
Figure 12-30: DemoAppSERIAL - Setting serial port mode