AT870 User Reference
44
GENERIC_READ
|
GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL
);
dcb.BaudRate
= CBR_9600;
dcb.StopBits
=
ONESTOPBIT;
dcb.ByteSize
=
8;
-. Printing data from AT870 (Windows API WriteFile Function)
Make the Bluetooth Printer print the data from AT870 to use the Writefile function.
-. Reading data from printer (Windows API ReadFile Function)
Make AT870 read the data from the Bluetooth Printer to use the ReadFile Function
Ex ) Bluetooth Data : MSR Data Etc…
Note: If there is some problem with your bluetooth printer when you use your program which
is coded with the Library Function provided from the printer manufacturing
company, you should contact someone working in that company for further
information
Checking up the communication between the Bluetooth printer and the demo program
Try to type data with keyboard in the program that is displayed on the screen (Figure 18), or the
demo program will transmit your data to the Bluetooth printer, than the printer will print the data. It is
no matter to try this test even after turning on your AT870 when its power is off.
4.5 Disconnecting Bluetooth Printer(SPP) from AT870
Use the BT_Manager to disconnect the Bluetooth printer from your AT870, when you are under the
following case:
1. To close BT_Manager after it is connected to a printer.
2. If you don’t want to use the printer anymore, and stop to support power to the Bluetooth chip
modulated in AT870 to save more power.
3. If you want to connect your AT870 to another printer.
Start > Program > Tap BT_Manager
Figure 9. Click BT_Manager
To disconnect bluetooth printer from
AT-570:
1. Execute
BT_Manager.
2. Click
the
“Open”button.
3. Select 9600bps, and select 1 in
the Mode Select box.
4. Click the DisConnect button.