8.14.6 Attaching UART for Bluetooth
The ATWILC3000 Bluetooth driver provides the UART interface and is connected via a Teletypewriter (TTY) device. It is connected to the BlueZ stack.
The following command is used to attach the device. Ensure that the
/dev/ttyS1
folder is available on the target platform. The user must set
the Bluetooth firmware baud rate at 115200 and enable noflow control.
$ hciattach ttyS1 any 115200 noflow
Ensure that the Host Control Interface (HCI) is created.
$ hciconfig -a
hci0: Type: BR/EDR Bus: UART
BD Address: AB:89:67:45:23:01 ACL MTU: 1021:9 SCO MTU: 255:4
DOWN
RX bytes:574 acl:0 sco:0 events:27 errors:0
TX bytes:411 acl:0 sco:0 commands:27 errors:0
Features: 0xff 0xff 0xcd 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT