-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ble.recon module crashes on Raspberry Pi 3 #861
Comments
Looking at the README in the gatt repo, I also tried to set
But it still doesn't work :( |
I'm unclear on the relationship between bettercap/bettercap and bettercap/gatt, but I'm running a Rpi 3B and observing the same error message ( What's interesting is that a previous build of my binary (~month ago) did not exhibit this behavior. For that binary, my go.mod was pinned to the following version of gatt. Healthy binary on RPI 3B+ github.com/bettercap/gatt v0.0.0-20191018133023-569d3d9372bb Environment of failure
|
Wondering whether there is need for some EINTR retry handling somewhere in these libraries or a dependency? Edit: Wonderig if Golang 1.14 could be at play / interacting with bettercap/gatt with unexpected EINTR though the OP was using 1.16... |
FWIW I tried both a full reboot of the rpi, and:
And continued to receive Downgrading Go fixed my issue.
|
does this happen on the latest stable version of bettercap? |
I'm trying to use the
ble.recon
command, but just after the first nearby devices show up, the module stops working:bettercap
says that all the discovered devices were lost and I can't go on.I use a Raspberry Pi 3 (environment details below), and I have zero problems enumerating, reading and writing characteristics on BLE devices using
hcitool
andgatttool
.Environment
bettercap v2.24.1 (built for linux arm with go1.16.2)
go version go1.16.2 linux/arm
BlueZ (5.50-1.2~deb10u1+rpt2)
Linux raspberrypi 5.10.17-v7+ armv7l GNU/Linux
Command line arguments: none.
Caplet code you are using or the interactive session commands:
ble.recon on
Full debug output while reproducing the issue (
bettercap -debug ...
):Steps to Reproduce
ble.recon on
ble.enum MACADDRESS
Expected behavior:
Successfully enumerating characteristics on a found BLE device
Actual behavior:
All found devices are lost and I can't go on
As far as I noticed, it seems that everything stops working as soon as this error shows up:
How can I get
gatt.log
to figure out what's happening?The text was updated successfully, but these errors were encountered: