
Bluetooth Practice
Bluetooth Configuration
The parameters can be accessed via GET_NET_PARAMETER$ and
SET_NET_PARAMETER.
SPP Application
1. Set COM port (SET_COM_TYPE)
Assign either COM1 or COM2 to Bluetooth communication, e.g.
SET_COM_TYPE(2,5)
2. Configure COM port (SET_COM)
SET_COM(N%, Baudrate%, Parity%, Data%, Handshake%) – To determine which
SPP mode to initialize, use the second parameter regarding baud rate setting.
To initialize SPP Master mode, call SET_COM(2,4,1,1,1).
To initialize SPP Slave mode, call SET_COM(2,1,1,1,1).
Parameters Values Remarks
#1: N% 2 Indicates Bluetooth COM port is to be set.
#2:
(Baudrate%)
1: 115200 bps
2: 76800 bps
3: 57600 bps
4: 38400 bps
5: 19200 bps
6: 9600 bps
7: 4800 bps
8: 2400 bps
The baud rate setting is NOT applicable to Bluetooth.
Simply assign 1 for SPP Slave;
4 for SPP Master;
5 for DUN.
#3:
(Parity%)
1: None
2: Odd Parity
3: Even Parity
The parity setting is NOT applicable to Bluetooth.
Simply assign 1 for Bluetooth.
#4:
(Data%)
1: 7 data bits
2: 8 data bits
The data bits setting is NOT applicable to Bluetooth.
Simply assign 1 for Bluetooth.
#5:
(Handshake%)
1: None
2: CTS/RTS
3: XON/XOFF
4: Wedge Emulator
The handshake setting is NOT applicable to Bluetooth.
Simply assign 1 for Bluetooth SPP/DUN, or, assign 4 for
Bluetooth Wedge Emulator.
Kommentare zu diesen Handbüchern