Changes between Version 50 and Version 51 of expansion/gw16126
- Timestamp:
- 06/30/2020 10:44:10 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
expansion/gw16126
v50 v51 756 756 - HCI UART with H4 (CONFIG_BT_HCIUART and CONFIG_BT_HCIUART_H4) in order to provide a bluetooth HCI over UART 757 757 - crypto userspace API (CONFIG_CRYPTO_USER, CONFIG_CRYPTO_USER_API_AEAD, CONFIG_CRYPTO_USER_API_HASH, CONFIG_CRYPTO_USER_API_RNG, CONFIG_CRYPTO_USER_API_SKCIPHER, CONFIG_CRYPTO_USER_API*) in order to generate a random Bluetooth MAC (BDADDR) 758 * Bluetooth stack such as BlueZ (4.45+ with Experimental support (-E param on bluetoothd)) 759 760 761 The following shows how you would interact with the BLE controller via BlueZ on Ubuntu bionic: 758 * Bluetooth stack such as BlueZ (version 4.45+; may require experimental support (-E param on bluetoothd)) 759 760 This is supported with the following: 761 * Gateworks Ubuntu focal/binoic pre-built images 762 * Gateworks OpenWrt 20.06/18.0x/16.02 763 764 Examples: 765 * interact with the BLE controller via BlueZ v5.53 on Ubuntu focal: 762 766 {{{#!bash 763 767 apt-get install bluez 764 # configure bluez to run expirimental features 768 # attach HCI UART 769 dev=$(basename $(ls -d /sys/bus/usb/drivers/ftdi_sio/*/ttyUSB*)) 770 modprobe hci_uart 771 btattach -B /dev/$dev -S 1000000 -P h4 & 772 # bring up hci0 773 hciconfig hci0 up 774 # scan for BLE devices 775 hcitool -i hci0 lescan 776 }}} 777 * interact with the BLE controller via BlueZ v5.48 on Ubuntu bionic: 778 {{{#!bash 779 apt-get install bluez 780 # configure bluez to run experimental features 765 781 sed -i '/^ExecStart=/ s/$/ -E/' /lib/systemd/system/bluetooth.service 766 782 # restart bluetoothd … … 771 787 modprobe hci_uart 772 788 btattach -B /dev/$dev -S 1000000 -P h4 & 789 # bring up hci0 790 hciconfig hci0 up 773 791 # scan for BLE devices 774 792 hcitool -i hci0 lescan 775 793 }}} 776 794 777 Example :795 Example output: 778 796 {{{#!bash 779 797 root@bionic-newport:~# echo 8 > /proc/sys/kernel/printk