Changes between Version 50 and Version 51 of expansion/gw16126


Ignore:
Timestamp:
06/30/2020 10:44:10 PM (7 months ago)
Author:
Tim Harvey
Comment:

added ubuntu focal example

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16126

    v50 v51  
    756756  - HCI UART with H4 (CONFIG_BT_HCIUART and CONFIG_BT_HCIUART_H4) in order to provide a bluetooth HCI over UART
    757757  - 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
     760This is supported with the following:
     761 * Gateworks Ubuntu focal/binoic pre-built images
     762 * Gateworks OpenWrt 20.06/18.0x/16.02
     763
     764Examples:
     765 * interact with the BLE controller via BlueZ v5.53 on Ubuntu focal:
    762766{{{#!bash
    763767apt-get install bluez
    764 # configure bluez to run expirimental features
     768# attach HCI UART
     769dev=$(basename $(ls -d /sys/bus/usb/drivers/ftdi_sio/*/ttyUSB*))
     770modprobe hci_uart
     771btattach -B /dev/$dev -S 1000000 -P h4 &
     772# bring up hci0
     773hciconfig hci0 up
     774# scan for BLE devices
     775hcitool -i hci0 lescan
     776}}}
     777 * interact with the BLE controller via BlueZ v5.48 on Ubuntu bionic:
     778{{{#!bash
     779apt-get install bluez
     780# configure bluez to run experimental features
    765781sed -i '/^ExecStart=/ s/$/ -E/' /lib/systemd/system/bluetooth.service
    766782# restart bluetoothd
     
    771787modprobe hci_uart
    772788btattach -B /dev/$dev -S 1000000 -P h4 &
     789# bring up hci0
     790hciconfig hci0 up
    773791# scan for BLE devices
    774792hcitool -i hci0 lescan
    775793}}}
    776794
    777 Example:
     795Example output:
    778796{{{#!bash
    779797root@bionic-newport:~# echo 8 > /proc/sys/kernel/printk