Argox PA-20 Basic Programming Manual User Manual
Page 97

PT-Basic Programming Manual Ver. 1.00
96/143
run BT_SART.
Purpose: Bluetooth connect.
Syntax: BT_OPEN
Example: BT_OPEN
…
…
BT_CLOSE
Description: This command can connect to other Bluetooth device.Befor use this
command, you have to set the target Bluetooth MAC address by
using “BT_SETLOCALSET” command.
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
Bluetooth connect ok.
5
Connect timeout.
6
The terminal is not PT-20B.
7
Bluetooth module power disable, please
run BT_ SART.
10
Bluetooth already connect.
Purpose: Bluetooth disconnect.
Syntax: BT_CLOSE
Example: BT_OPEN
…
…
BT_CLOSE
Description: This command can disconnect Bluetooth. If you want to
disconnect, you can use “BT_STOP” or this command.
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
Bluetooth disconnect ok.
5
Connect timeout.
6
The terminal is not PT-20B.
7
Bluetooth module power disable,
please run BT_ SART.