Casio IT-2000D PDAs & Smartphones User Manual


 
174
Transmission of Command
Transmits a command represented by a single ASCII code to the OBR. Various options including
"Readout mode", "Data transfer format", etc., can be set for this transmission. This setup does not
have to be made each time the power is turned on if it is written in the EEPROM.
For information about the setup procedure refer to "Setting Operation Mode".
SYNTAX
#include "obrlib.h"
int OBR_Send (char Cmd);
INPUT
Cmd = Transmission command (refer to the Command List.)
OUTPUT
= 0 : Normal termination
= 1 : Transmission buffer-full error
= 2 : CTS does not turn to ON.
= 3 : Receives NAK from scanner.
= 4 : No response from scanner
Note :
Do not read another barcode during command transmission to the OBR.
Acknowledgment of Received Data
Returns the number of characters in the first barcode stored in the reception buffer.
SYNTAX
#include "obrlib.h"
int OBR_Stat();
INPUT
None
OUTPUT
The absolute value shows the number of characters in the received barcode (not
including a CR). The sign indicates whether the data is a complete barcode or not.
< 0 Incomplete barcode
> 0 Complete barcode
Note :
After acknowledging that the barcode has been received, read it using the OBR_Read function.