hcitool lescan shows I/O error

前端 未结 10 2420
忘掉有多难
忘掉有多难 2021-02-01 01:14

I\'m trying to do a lescan using hcitool on the raspberry pi.

The command prints out

Set scan parameters failed: Input/output error. 

10条回答
  •  無奈伤痛
    2021-02-01 02:04

    Upgrading to bluez v5.43 fixed this for me.

    To upgrade to the newest bluez, you need to do a "manual" installation (not apt-get), downloading from the bluez website. I recommend this video walkthrough if you are new installing packages or need help.

    After installing the latest bluez, I had to run a couple commands before it worked.

    1. systemctl daemon-reload : Restarts the system daemon.

    2. sudo service bluetooth restart : Restarts the Bluetooth service.

    3. sudo hciconfig hci0 up : This was needed for my Raspberry Pi 3, with the built-in BT found at hci0.

    After these commands, sudo hcitool lescan and its variants all seem to work.

提交回复
热议问题