SECTION 5
Communications and Device Support
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 5-13
ENDS=x,m,nnn
Indicates the end of a TCOM session where:
x = Session status. It is a single character code.
m = Stage of the communications session.
nnn = Protocol error code.
This code is also the return value of PSROM0C.EXE.
The following table shows the valid values for (x).
Code Meaning
G"
Good session.
T"
Unexpected end of transmission.
H"
An incorrect file header was encountered.
F"
A file error was encountered.
L"
Communication aborted before first file header
The following table shows the valid values for (m).
Value Meaning
5
SignĆon started.
4
Data send started.
3
TurnĆaround started.
2
Data receive started.
1
SignĆoff started.
0
Session complete.
See the following
Protocol Errors
for valid values for (nnn).
UP=d:\pathname\filename,nnn
Indicates that a file upload was attempted where:
nnn = Error code.
Valid values:
0 indicates a successful upload.
Example:
UP=C:BYTRXN.DAT,0
Protocol Errors
With the session status code returned by PSROM0C.EXE, an application can
interrogate the Communications Log file to get the specific protocol error that
occurred. The valid Protocol error code for (n), as indicated in the End of TCOM
Session parameter ENDS=," are listed.
Table 5Ć1
NPCP Protocol Errors
Error # Meaning
0
No error.
1
MININET.EXE is not installed.
6
User aborted communications by pressing EXIT.
11
An invalid parameter was specified in the control file.
5. Communications
and Device Support