sethuraman447
Posts: 10
Joined: Sat Oct 17, 2015 8:55 am

Set scan parameters failed: Input/output error.

Thu Oct 29, 2015 12:31 pm

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

The command prints out

Set scan parameters failed: Input/output error.

I'm not sure, what exactly happens here.

I'm using a BLE dongle.

However, if I restart my machine, it shows the a MAC address after I issue the lescan command, and starts showing the same error after I issue the lescan command a couple of more times. Is it like, the lescan command cannot be issued more than once?

nirmankarta
Posts: 1
Joined: Fri Jun 03, 2016 4:55 pm

Re: Set scan parameters failed: Input/output error.

Fri Jun 03, 2016 5:00 pm

try:

Code: Select all

hciconfig hci0 down
hciconfig hci0 up
and check the status afterwords.

if this doesn't work or it hangs in DOWN status, try:

Code: Select all

service bluetooth restart
service dbus restart
(all commands as superuser)

And close all application that may access bluetooth. For example hcidump.

If that doesn't work you normally have to unplug it. But there is another dirty hack to do this. It works by setting the authorized to 0 and than 1 again. This forces the usb dongle to init.

Code: Select all

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 0a5c:21e8 Broadcom Corp. 


cd /sys/bus/usb/devices/

grep -i -s -r 0a5c *
…
1-1.2/idVendor:0a5c
…

cd 1-1.2

echo 0 > authorized
echo 1 > authorized
Source: http://stackoverflow.com/questions/2206 ... -i-o-error

svoss
Posts: 3
Joined: Fri Aug 23, 2019 10:38 am

Re: Set scan parameters failed: Input/output error.

Fri Aug 23, 2019 3:38 pm

hello, iam getting the same error and another

as superuser, did

Code: Select all

hciconfig hci0 down
hciconfig hci0 up
did not change anything

Code: Select all

service bluetooth restart
service dbus restart
sudo hcitool lescan
thows:
Set scan parameters failed: File descriptor in Bad State

hcitool dev gives one MAC Adress
any ideas?

svoss
Posts: 3
Joined: Fri Aug 23, 2019 10:38 am

Re: Set scan parameters failed: Input/output error.

Fri Aug 23, 2019 3:42 pm

nevermind. make sure to put hci 0 up again after the last commands ! (facepalm myself)

Return to “Troubleshooting”