DEVICE DRIVERS
ECR Environment Variables
116 M
X
800 SERIES PROGRAMMERS GUIDE
The M
x
800 series of terminals OS has provided a function that conveniently does
this for the application called svcAlarm(). This function must be used in
conjunction with the svcSetAlarmCallback() function. When the application
no longer needs to be notified of an Alarm signal, it must unregister its callback
function with using svcReleaseAlarmCallback().
ECR
Environment
Variables
There are required environment variables set when the ECR connection is
established. They reside in config.usrx (where x is number of user account 1-
8) and they follow INI parser rules. Some are set in the terminal’s System Mode
and others are set by the Operating System. All environment variables can be set
or retrieved using the putEnvFile() and getEnvFile() function calls
respectively. The definition and implications of each environment variable are as
follows:
I4683
Indicates the port selected. If the terminal is configured in tailgate mode, then this
corresponds to the port of the poll address that the terminal responds to. If the
terminal is configured in feature C mode, then it is set to RS232.
The legal values are summarized below:
O4683
Indicates the application and parameter ID numbers. These numbers are sent
during a download in the online packet (01.XXXXYYYY). It is an 8 byte string
where XXXX and YYYY are defined as follows:
2A23 tailgate port responding to poll address 0x68.
2B23 tailgate port responding to poll address 0x69
2A25 tailgate port responding to poll address 0x64
2B25 tailgate port responding to poll address 0x65
R232 Feature C (rs232) port communications with ECR
NOTE
This environment variable can be set in system mode when configuring the ECR
connection. It must be set by the application if it is opening the ECR connection.
XXXX YYYY
Application Version Parameter ID
Application Version
is 4 bytes, which can contain any 4 byte alpha-
numeric string.
Parameter ID
is 4 bytes, which can contain any 4 byte alpha-
numeric string.