CITIZEN OPOS DRIVER 1.8 Application Development Guide
Service Object (SO)
Service Object is called by Control Object and executes the function specified by OPOS for each device. It is implemented as automation server and provides the set of methods called by CO. This driver provides the processing dependent on the CITIZEN POS printer and cash drawer connected to the printer.
1.6. CITIZEN OPOS Driver Registry Structure
In order for Control Object to be connected to Service Object exactly and initialize the corresponding device, the OPOS control requires data for the system registry. The registry has a hierarchical structure with levels called “key”. Each key consists of the following.
・Additional key (also called
・Named value (“Data” of string, binary, or
・One “default value” defined by
OPOS defines only string data.
The following is a registry structure taking
[HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail] @=""
[HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceInfo]
[HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceInfo\OposCCOs] "Version"="1.8.001"
"Company"="Research Computer Services, Inc; Dayton OH" "Directory"="C:\\Program Files\\CITIZEN\\CITIZEN Service Objects\\" "Author"="Curtiss R. Monroe"
@="OPOS Common Control Objects
[HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS] @=""
[HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS\CashDrawer] @=""
"Pin3"="001"
"StatusBackInterval"="200"
"Service"="C:\\Program Files\\CITIZEN\\CITIZEN Service Objects\\CBMTSO.dll" "Port"="COM1:"
"BaudRate"="19200"
"HandShake"="000"
"BitLength"="008"
"Parity"="000"
"ServiceObjectDescription"="Citizen Systems Service Object for
"DrawerName"="CTS2000.CITIZEN.CD1"
"DeviceDescription"="Citizen Systems Thermal POSPrinter's Cash Drawer 1" "OnTime"="005"
8