Download IPM User Manual
Transcript
Control Protocol TABLE 4-4. Generic Response Message Item Size (Bytes) Range of Values Message ID 2 ID of associated call message Message Type 2 AG_RCP_RESPONSE Message Length 2 0 Status 2 AG_RCP_ACK AG_RCP_NACK AG_RCP_BAD_PARAMS AG_RCP_UNKNOWN_ID Description AG_RCP_ACK: call message processed successfully; also value used in call messages AG_RCP_NACK: an error occurred in processing the call message AG_RCP_BAD_PARAMS: bad parameters were passed in the call message AG_RCP_UNKNOWN_ID: unknown message ID was passed in the call message Parameter Logicals Redux-defined logical parameters have been used for all message parameters except those that require a user-selected numerical value, such as an IP address. The logicals are defined in the .h files included in the RS-160 CD. The Redux logicals are all named with the prefix “AG_”. The name allows the system designer to devise his own naming system with concern for conflicting with the Redux naming scheme. RCP Example Program The RCP example program eases the task of creating host code to interact with the RS-160. It implements construction of all the call messages and processes all of the response messages. The example program runs on a PC and has a simple user interface to allow the system developer to experiment with the RCP commands. The program runs on a PC Running Window 2000 or Windows XP, and compiles with MS Visual C++ 6.0. The files supplied include a MSVC6.0 workspace and project files. The supplied directory structure is shown in Table 4-5. The project is organized into four libraries: • Uart library - this library implements the UART communication layer. 4-6 RS-160 User’s Manual (Rev. 3)