Automatic Connection Restoration
: Your SmartAT-870 will get to be connected to a printer after
the Step7. Make a mental note that BT-Manager is coded only for Hardware support to connect your
SmartAT-870 to a printer. On this understanding you may know that SmartAT-870 will restore the
former connection after the following case:
1. After you turn on your SmartAT-870 to restart.
2. After you perform a reset or hard reset activity.
Note:
Use the BT_Manager, 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 SmartAT-870 to save more power.
3. If you want to connect your SmartAT-870 to another printer.
4.4 Reference for Application Developer
Check up the connection of SmartAT-870 to a Bluetooth Printer after the step7
To control Bluetooth Printer with the user’s application, you should set your
SmartAT-870 as COM3 and 9600bps rate.
Application developer, if they need to make the program to control the Bluetooth printer, they
must follow the below steps:
1.
Make your SmartAT-870 connected to a Bluetooth Printer through the BT_Manager. the
BT_Manager program is only for hardware connection support, so you will never use it as far
as the Bluetooth Printer is not changed.
2.
If you make program with the EVC++ Tool, you need to set the Port as COM3 and Baud rate
as 9600bps.
Ex ) EVC++ Source
-. Open ( Windows API CreateFile Function)
g_BT_Handle =
CreateFile(_T("COM3:"),
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 SmartAT-870 (Windows API WriteFile Function)
Make the Bluetooth Printer print the data from SmartAT-870 to use the Writefile function.
-. Reading data from printer (Windows API ReadFile Function)
Make SmartAT-870 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
SMARTAT-870 User Reference
50