
PT-Basic Programming Manual Ver. 1.00 100/143
You can use the “GET_BT_ERROR” command to get the error
code. Possible error codes and their interpretation are listed below:
The terminal is not PT-20B.
Set Bluetooth information.
BT_SETLOCALSET(S1$,N1%,N2%,N3%,N4%,S2$,S3$)
BT_SETLOCALSET(LocalName$,1,1,3,10,DeviceAddress$,PIN$)
Several key arguments as below:
PT20B Bluetooth device name(Allow 1~16 characters)
PT-20B Bluetooth security mode, set 1(on) or 0(off)
PT-20B Bluetooth encryption mode, set 1(on) or 0(off)
PT-20B Bluetooth inquiry timeout set, the value from
1(1.28 seconds) to 48(61.44 seconds).
PT-20B Bluetooth inquiry max response, the value
from 1 to 10.
Set link device address(Allow 1~12 characters)
Set PIN code(Allow 4~16 characters)
You can use the GET_BT_ERROR command to get the error code.
Possible error codes and their interpretation are listed below:
Parameter error, please check your
parmeter.
The terminal is not PT-20B.
Bluetooth module power disable,
please run BT_ SART.
Bluetooth already connect.
Inquiry other Bluetooth module for PT-20B to connect.
This command can search other Bluetooth device for PT-20B.You
can use “BT_GETDEVICEINFO” command to get other Bluetooth
devices information.
Komentarze do niniejszej Instrukcji