Argox PA-20 Basic Programming Manual User Manual
Page 101

PT-Basic Programming Manual Ver. 1.00
100/143
69~88
PIN code.
You can use the “GET_BT_ERROR” command to get the error
code. Possible error codes and their interpretation are listed below:
GET_BT_ERROR Meaning
1
Read OK.
6
The terminal is not PT-20B.
Purpose: Set Bluetooth information.
Syntax: BT_SETLOCALSET(S1$,N1%,N2%,N3%,N4%,S2$,S3$)
Example: BT_SETLOCALSET(LocalName$,1,1,3,10,DeviceAddress$,PIN$)
Description: Several key arguments as below:
S1$
PT20B Bluetooth device name(Allow 1~16 characters)
N1%
PT-20B Bluetooth security mode, set 1(on) or 0(off)
N2%
PT-20B Bluetooth encryption mode, set 1(on) or 0(off)
N3%
PT-20B Bluetooth inquiry timeout set, the value from
1(1.28 seconds) to 48(61.44 seconds).
N4%
PT-20B Bluetooth inquiry max response, the value
from 1 to 10.
S2$
Set link device address(Allow 1~12 characters)
S3$
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:
GET_BT_ERROR Meaning
1
Get information OK.
2
Parameter error, please check your
parmeter.
5
Timeout.
6
The terminal is not PT-20B.
7
Bluetooth module power disable,
please run BT_ SART.
10
Bluetooth already connect.
Purpose: Inquiry other Bluetooth module for PT-20B to connect.
Syntax: N1%=BT_INQUIRY(N2%)
Example: Num%=BT_INQUIRY(1)
Description: This command can search other Bluetooth device for PT-20B.You
can use “BT_GETDEVICEINFO” command to get other Bluetooth
devices information.