Casio IT-2000D PDAs & Smartphones User Manual


 
171
Reception Buffer
This library uses two reception buffers, as shown below, so that during the processing (read) of one
of the received barcodes the next barcode can be successfully received.
Fig. 7.18
The following explains the operation sequence by which codes are put into the reception buffer.
When the first barcode is received, it will be temporarily stored in Buffer A.
When the second barcode is received, it will be temporarily stored in Buffer B.
When the third next barcode is received, it will be temporarily stored in Buffer A.
When the fourth barcode is received, it will be temporarily stored in Buffer B.
With this library the received barcodes are distributed alternatively to the two buffers as described
above. If one of the received barcodes is not read, it will be overwritten by a new barcode.
This necessitates any received data to be acknowledged with the OBR_Stat function, then read
using the OBR_Read function after acknowledgment.
Note :
If programming with this library, first make the OBR_Open function call. The OBR_Open
function will turn on the power supply to the COM port and initialize it. It enables the operation
of other functions (OBR_Send, OBR_Read, etc.) and maintains the power supply to the COM
port. Therefore, always call the OBR_Close function so that the COM port is turned off and
freed before completing the use of the OBR (i.e. application).
From the above list, only the OBR_Send function operates (takes different arguments or
return values) specifically according to the type of barcode reader. This is because the
OBR_Send function is used to set up a selected OBR. Possible setup contents vary according to
type of barcode reader. The descriptions in this manual are organized according to type of
barcode reader, and the functions other than OBR_Send operate without discriminating the type
of barcode reader.
The DT-9650BCR and DT-9656BCR have an EEPROM in which the setup contents can be
written and stored. This eliminates the need to perform setup each time the power is turned on.
Buffer : A
Buffer : B