Btset (ascii) – NavCom Sapphire Rev.J User Manual

Page 81

Advertising
background image

Sapphire Technical Reference Manual Rev. J

81

1.22 BTSET (ASCII)

SF-3050

Sapphire

SF-3040

This command allows a user to set parameters in the Bluetooth module.

Command:

[BTSET] RESET | ON | OFF | PIN | DELPIN | SETPIN, <pin> | ADDR | DISCONNECT|
CLEARMAP

Table 56: [BTSET] Command Action Keywords (Subcommands)

Keyword

Profile Action

RESET

Resets Bluetooth (software reset); Causes the Bluetooth device to drop the
connection and reboot

ON

Turns on Bluetooth (causes a software reset of Bluetooth firmware)

OFF

Turns off Bluetooth (Bluetooth enters

“deep sleep” power-saving mode and no text

message is output)

PIN

Requests the system PIN code

DELPIN

Deletes the system PIN code (encryption no longer available)

SETPIN

Sets the PIN code (also known as passkey code) for authorized connections

ADDR

Requests Bluetooth device address (6-byte string of hex numbers in the format
“xx.xx.xx.xx.xx.xx”)

DISCONNECT

Disconnects the Bluetooth device and makes it available to pair with another
device.

CLEARMAP

This keyword, used for the SF-3040, clears the stored port connection information.

The Bluetooth module can be in two modes:

Command Mode

– in this mode, the module receives commands (e.g., SETPIN,

DELPIN).

Data Mode

– in this mode, the module has an active data connection with a

connected device; it does not receive commands because commands would be
interpreted as data that need to be passed to the connected device.

When the Bluetooth module is in

“data mode,” the keywords are

ON/OFF/DISCONNECT. The remaining keywords return NAK -

“BT module in data

mode

”.

Examples: [BTSET]ON

Turns on Bluetooth

Default: ON

Turning on Bluetooth is associated with a software reset of the Bluetooth firmware,
so the system returns the same output as with the RESET command. When
Bluetooth is ON, another in-range Bluetooth electronic device should be able to
detect the existence of the system.

Examples continued on next page…

Advertising