IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 490 forks source link

Failed to execute management command 'le on' (code: 11, error: Rejected) #359

Open roshradha opened 5 years ago

roshradha commented 5 years ago

I can't scan using bluepy. I have 2 interfaces running on my device but none of them could scan using bluepy. I'm running as root user. I have already tried all the solutions that has been listed in similar threads but none can help. When I run bluepyhelper in terminal and give "le on" I get, root@ubuntu:/usr/local/lib/python3.5/dist-packages/bluepy-1.3.0-py3.5.egg/bluepy# ./bluepy-helper 0

bluepy-helper.c version 1.3.0 built at 06:21:27 on May 1 2019

le on rsp=$mgmtcode=$mgmterrestat=hBemsg='Rejected

But scanning using hcitool works. I tried, hcitool lescan and it displays the list of scanned devices. Can anyone help me with this?