Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not scan BLE devices. Check BLE controller - Ubuntu 22.04 #42

Open
suoko opened this issue Apr 14, 2024 · 3 comments
Open

Can not scan BLE devices. Check BLE controller - Ubuntu 22.04 #42

suoko opened this issue Apr 14, 2024 · 3 comments

Comments

@suoko
Copy link

suoko commented Apr 14, 2024

I'm trying connecting wedo 2.0 but have this error:

2024-04-14 14:22:35,923 Started scratch-link
2024-04-14 14:23:20,919 Start session for web socket path: /scratch/ble
2024-04-14 14:23:21,039 Can not scan BLE devices. Check BLE controller.

I started bluepy_helper_cap, I tried "hciconfig hci0 down" and "hciconfig hci0 up", I tried connecting the device with the OS BT pairing first (it does connect), I tried the dev version, but nothing

Can anybody suggest a solution ?

I got this when running with -d
Failed to execute management command 'le on' (code: 20, error: Permission Denied)

but can't run scratch_link with sudo. How do I give correct permissions ?

@suoko
Copy link
Author

suoko commented Apr 14, 2024

Also tried:
sudo setcap 'cap_net_raw,cap_net_admin+eip' /home/user/.local/bin/bluepy_helper_cap
scratch_link -r 2 -s 3

@suoko
Copy link
Author

suoko commented Apr 17, 2024

I found this node project which works
https://github.com/zdila/scratch-link-ble-linux

@markakis-sch
Copy link

markakis-sch commented Apr 17, 2024

What do you mean "works"? Last year I tried the zdila/scratch-link-ble-linux project with a WeDo 2.0 and all I managed to do was to connect and change the color of the led light. It was impossible to get the motor to work or a sensor to work. What did you manage to do? Pyscrlink works fine for me on Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants