Bluetooth serial communication parameters set up skills
Addtime:2009-7-27 17:00:48 Hits:3198

Deyang FOURSTAR electronic technology Co., Ltd.  

 2009-7-2 

    Bluetooth serial port adapter FS-BT485A in application of on its serial baud rate, parity bits, stop bits, and so communication parameters are set up so that it and it connected devices serial communication parameters are the same, to achieve transparent transmission of data.

    The UART Bluetooth chip of data bits are fixed 8 bit , and a different device serial communication parameters but it is, , 5 6 7 , , 8 bit data bits, parity bit and so on a wide variety, how to set the Bluetooth communication parameters match? Generally speak, if a serial-byte length of the same.

Example 1:

Mitsubishi series FX in of serial data PLC format: 7E1 (7bit, even parity, 1), a stop bit

Bluetooth does not support 7 bit, so need to set up as: 8N1 (8bit, with no parity, 1a stop bit)

Both data length is the same, namely:

7E1 = 1 a start bit (fixed) + 7 bit + 1 a even parity bit a + 1 stop bit= 10

8N1 = 1 a start bit (fixed) + 8 bit + no parity bit a + 1 stop bit= 10

Example 2:

CPM1A Omron PLC series of serial port data is formatted as: 7E2 (7bit, even parity, 2 a stop bit)

Bluetooth does not support 7 bit, so need to set up as: 8E1 (8bit, even parity, 1 a stop bits),

Both data length is the same, namely:

7E2 = 1 a start bit (fixed) + 7 bit + 1 a even parity bit + 2 stop bits= 11 bit

8E1 = 1 a start bit (fixed) + 8 bit + 1 a even parity bit + 1 stop bit a = 11 bit

 

    Where 1 is a start bit UART serial communication fixed default format!

    For 8 bit serial support Bluetooth serial port, owing to 8 bit, which does not exist for the above questions, simply add a Bluetooth serial port parameters set to and the connected equipment in the same serial port parameters.

    Some communication software or device on serial port parameters (baud rate, data bits, parity bits, stop bits), users cannot learn that, at which point you may need to use the serial port monitor software to read the serial port parameters.