OpenTP1 Version 7 Tester and UAP Trace User's Guide

[Contents][Index][Back][Next]

3.3.2 Service response data files

Organization of this subsection
(1) RPC response data file
(2) XATMI response data file

(1) RPC response data file

When using the server UAP simulator with an RPC interface, the RPC response data file stores the response data returned to the UAP making the service request to the simulate SPP. A single file contains one set of service data.

When using the client UAP simulator, the RPC response data file stores the response data returned from the test UAP.

(a) File structure

[Figure]

(b) File contents
Item Position Length (bytes) Contents
Data length 0 4 Length of the data to be returned to the UAP making the service request. (0-2147483647)
Data 4 n Data to be returned to the UAP making the service request.
(c) Notes

(2) XATMI response data file

When using the server UAP simulator with an XATMI interface, the XATMI response data file stores the response data returned to the UAP making the service request to the simulate SPP. A single file can contain one or more sets of data.

(a) File structure

[Figure]

(b) File contents
Item Position Length (bytes) Contents
Buffer type 0 8 Buffer type, specified as one of the following character strings:
  • X_OCTET
  • X_COMMON
  • X_C_TYPE
Buffer subtype 8 16 Buffer subtype, specified as a string of up to 16 characters. Specify a null character when specifying X_OCTET as the buffer type.
Service termination code 24 4 One of the following hexadecimal values of rval in the tpreturn function. The value is set in the tperrno area.

0x04000000
TPSUCCESS

0x20000000
TPFAIL
Return code 28 4 Hexadecimal value of rcode in the tpreturn function. The value is set in the tpurcode area.
Data length 32 4 Length of the data to be returned to the UAP making a service request (0-524288).
Specify zero when no data is passed. The buffer type and subtype specifications are ignored when zero is specified.
Data 36 n Data to be returned to the UAP making the service request.
(c) Notes