beautypg.com

A19. bluetooth commands, A20. usb commands, A21. simulator (only for pc simulator) commands – Argox PA-20 Basic Programming Manual User Manual

Page 116: Bt_start, Bt_stop, Bt_open, Bt_close, Bt_write, Bt_read, Bt_getlocalinfo

background image

PT-Basic Programming Manual Ver. 1.00

115/143

A19.

Bluetooth commands

Command

description

BT_START

Bluetooth module power enable.

BT_STOP

Bluetooth module power disable.

BT_OPEN

Bluetooth connect.

BT_CLOSE

Bluetooth disconnect.

BT_WRITE

Write characters to Bluetooth module.

BT_READ$

Read characters from Bluetooth module.

BT_GETLOCALINFO$

Get Bluetooth information.

BT_SETLOCALSET

Set Bluetooth information.

BT_INQUIRY

Inquiry other Bluetooth module for PT-20B to

connect.

BT_GETDEVICEINFO

To get other bluetooth device information

after the search.

BT_DISCONNECTALERT

For bluetooth disconnect alert.

GET_BT_ERROR

To get the bluetooth error code.

A20.

USB commands

Command

description

USB_OPEN

To initialize and enable USB port.

USB_CLOSE

To close the USB port.

USB_READ$

To read specific number of bytes from USB

port.

USB_WRITE

To write specific number of bytes to the PC

side.

A21.

Simulator (Only for PC simulator) commands

Command

description

COPYFILETOPDT

To copy a file from PC side to PDT.

BACKUPDATAFILETOPC

To backup a file from PDT to PC.

SIM_SETSCANNERTYPE

To setting scan module type.