input can be bypassed by pressing the enter key on

 

the terminal which will send an empty data string to

 

the host (fires the OnTermData event handler).

 

Data might be

 

! U1 MCR 80 T1 T2+ CR + LF

 

(Refer to the Cameo manual for the exact string

 

sequence you need to send.

 

The above example sends over a 10 second request

 

for reading Track 1 and Track 2). There is no reply

 

to the host except the magstripe data.

OutputSerial

 

Parameters:

data

Function:

This instructs the ActiveTerminal to send data to the

 

terminal’s serial port. Data must be less than 232

 

characters in length for each call to OutputSerial. If

 

you are sending data to a printer attached to the

 

terminal, make sure to set the Protocol parameter in

 

the 802 RF Terminal to XON/XOFF. See the 802 RF

 

Terminal Manual for details.

Special Considerations:

After an OutputSerial call is successfully completed, the terminal will return (as data) a CR (ASCII #13 Carriage Return). This will fire the OnTermData event. If there is a problem with the serial data you will see an error message at the client and in the log (if enabled). If the data string is too long, the

OnTermIllegalCommand event will be fired.

Do not call OutputSerial for the Terminal again until a return code is received.

Do not call an Inputxxx method for the same Terminal until a return code is received.

If you need to send more than 232 characters, send the first part, wait for the acknowledge (#13) and then send the next part.

Calls to OutputSerial cannot be combined with other method calls.

6-11

Page 48
Image 48
Worth Data 802 RF user manual Special Considerations