User`s guide

Chapter
5
BASIC
Commands
143
3. Open COM port (OPEN_COM)
To initialize the Bluetooth module and set up connection, call OPEN_COM(2).
4. Detect Connection
To detect if the connection is completed, call GET_NET_STATUS(8). For example:
LOOP003:
IF GET_NET_STATUS(8) = 0 THEN GOO LOOP003
BEEP(4400,4)
CLS
PRINT “Connect OK”
5. Data Transmission
To transmit/receive data, call WRITE_COM(2) and READ_COM$(2) respectively.
6. Detect Connection
To detect if the connection is maintained, call GET_NET_STATUS(8). For example:
IF GET_NET_STATUS(8) = 0 THEN
BEEP(3300,4)
CLOSE_COM(2)
END IF
7. Close COM port (CLOSE_COM)
To disable the Bluetooth module, call CLOSE_COM(2).
PAN Application
All the program codes are compatible with TCP/IP Networking.
Keyboard Emulator
The program “Serial to Keyboard Converter” is developed by 3rd party. It is a utility to let
users convert Bluetooth SPP data to keyboard input.