Path: blob/next/external/cache/sources/rtk_hciattach/Readme.txt
8656 views
The document describes how to support Realtek UART Bluetooth driver in Linux system.12The supported kernel version is 2.6.32 - 4.1534The default serial protocol of Realtek Bluetooth chip is Three-wire (H5) protocol5with flow control on, parity even and internel 32k clock.67The default baud rate is 115200.89To support Three-wire (H5) protocol, you need to install Realtek hci_uart driver10and rtk_hciattach tool.11121. make sure your UART setting is correct.13host tx - controller rx14host rx - controller tx15host rts - controller cts16host cts - ground17NC - controller rts18192. Install Bluetooth kernel driver and rtk_hciattach tool20$ sudo make install21If you encounter an error like "depmod: ERROR: Bad version passed /lib/modules/...",22please change the lines "depmod -a $(MDL_DIR)" to "depmod -a $(shell uname -r)"23243. Initialize Realtek Bluetooth chip by rtk_hciattach25$ sudo rtk_hciattach -n -s 115200 ttyUSB0 rtk_h52627for H4 protocol chip28$ sudo rtk_hciattach -n -s 115200 ttyUSB0 rtk_h42930Tips: ttyUSB0 is serial port name in your system, you should change it31according to hardware such as ttyS0.32334. Uninstall34$ sudo make uninstall3536If you want to change the parameter such as baud rate and pcm settings, you37should modify rtl8xxx_config file.38394041