-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable to detect my Sphero Bolt; toy not found exception #7
Comments
Can you connect to sphero using mac address? This example. |
Did you enable bluetooth sharing? |
Bluetooth sharing is enabled on the vm, still same result. |
Um... You should execute python with root privilege for using bluepy. |
sudo python3 examples/find_toy.py |
Ok. from bluepy.btle import Scanner, DefaultDelegate
class ScanDelegate(DefaultDelegate):
def __init__(self):
DefaultDelegate.__init__(self)
def handleDiscovery(self, dev, isNewDev, isNewData):
if isNewDev:
print("Discovered device", dev.addr)
elif isNewData:
print("Received new data from", dev.addr)
scanner = Scanner().withDelegate(ScanDelegate())
devices = scanner.scan(10.0)
for dev in devices:
print("Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi))
for (adtype, desc, value) in dev.getScanData():
print(" %s = %s" % (desc, value)) This is copy-paste from bluepy docs. |
Well, I think we may have found the problem. After running sudo python3 blue_test.py: Traceback (most recent call last): |
See this issue. Maybe it help you. |
I think it was a hardware issue more than anything. This package works with the pi3, which I got and tested it on this week. I'm guessing it was an issue with my computer's hardware or the vm. |
This should help with this issue: IanHarvey/bluepy#218 (comment) In my venv, the |
I am running PySphero on an Ubuntu 20.04 LTS with Python 3.8.10
|
I am running PySphero on an Ubuntu 18.04 LTS installation in VMware, on Python 3.6.
When running examples/find_toy.py, I cannot find my sphero bolt; after a second it just gives a toy not found error. I know it's not my hardware as using the Sphero EDU app in windows on the same machine I can connect to it without error. is there something I need to do aside from installing bluepy and pysphero to get it working? Bolt was the one toy this was tested and found to work on I believe.
The text was updated successfully, but these errors were encountered: