Atid AT870 Руководство - Страница 13

Просмотреть онлайн или скачать pdf Руководство для КПК Atid AT870. Atid AT870 16 страниц. Rf-id bluetooth
Также для Atid AT870: Краткое руководство (12 страниц), Руководство пользователя (11 страниц)

Atid AT870 Руководство
● Bluetooth Manager Reference Guide
1.4 API Reference for Application Developer
Your AT870 will get to be connected to a printer after the Step7.
To control Bluetooth Printer with the user's application, you should set your AT870 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.
Make your AT870 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.
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:"),
dcb.BaudRate
dcb.StopBits
dcb.ByteSize
-. Printing data (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 are 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.
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL
);
= CBR_9600;
= ONESTOPBIT;
= 8;