Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Bluetooth in the Default Linux Configuration

Your i.MX 8M NAVQ Plus kit arrives with the Linux image ready for Bluetooth operation.

Configuring Bluetooth

Linux images starting from release 1.1.5-359 automatically configure Bluetooth at boot time, and no additional actions are needed for using Bluetooth in Linux after boot. Older releases require manual Bluetooth configuration steps described below:

  1. On the i.MX 8M Plus, issue the following command from the Linux shell:

    user@imx8mpnavq:/home/user# sudo hciattach ttymxc0 any 115200 flow
    Device setup complete
  2. Initialize the BT module, validate that the initialization has completed successfully:

    imx8mpnavq:/home/user# sudo hciconfig hci0 up
    user@imx8mpnavq:/home/user# hciconfig
    hci0:   Type: Primary  Bus: UART
            BD Address: D4:53:83:C4:E5:5B  ACL MTU: 1016:5  SCO MTU: 60:12
            UP RUNNING 
            RX bytes:833 acl:0 sco:0 events:58 errors:0
            TX bytes:3232 acl:0 sco:0 commands:58 errors:0

Verifying Bluetooth in Linux

When Linux boots, the BT interface is enabled and configured in the default image installed to the kit. Step through the following procedure to configure BT in your local environment and then validate it:

  1. Power on a Bluetooth device in the vicinity, validate that the target detects it:

    user@imx8mpnavq:/home/user# sudo hcitool scan
    Scanning ...
            50:1A:A5:E5:34:8A       JABRA BT2045
            F0:F6:1C:67:F5:D4       iPhone yur
  2. Power on a BLE device in the vicinity, validate that the target detects it:

    user@imx8mpnavq:/home/user# sudo hcitool lescan
    LE Scan ...
    14:BB:6E:2F:9B:07 (unknown)
    ^C
  • No labels