artificial-intelligence-class / spherov2.py

Unofficial Python API for all Sphero toys
MIT License
64 stars 24 forks source link

cannot connect the Sphero 2.0 / SPRK #32

Open Wangcasc opened 1 year ago

Wangcasc commented 1 year ago

I have tried many times, but I can't find my Sphero 2.0/SPRK. I can successfully connect and control with Sphero edu software, but the author's code will report an error as follows:

line 84, in find_ toy

raise ToyNotFoundError

spherov2.scanner.ToyNotFoundError

I hope to get help. Thank you very much

ateaford commented 1 year ago

I have tried many times, but I can't find my Sphero 2.0/SPRK. I can successfully connect and control with Sphero edu software, but the author's code will report an error as follows:

line 84, in find_ toy

raise ToyNotFoundError

spherov2.scanner.ToyNotFoundError

I hope to get help. Thank you very much

I am getting this same error while trying to scan for my Sprk+

superfashi commented 1 year ago

I don't have the device so I unfortunately cannot help. However, can you post the code you used for this?

Wangcasc commented 1 year ago

       Oh, thank you for your reply. I have given up calling your module. It seems that some underlying module versions are incompatible. In fact, I have been trying to debug for a long time, but the later I get, the more py files I need to change. Later, I went to find the communication protocol of sphero 2.0, and successfully communicated and controlled with pyblz module.        Thank you for your open source. There are few resources in this area. I have learned a lot by parsing your modules. I am still an entry-level student, so it is difficult for me to do well in packaging like you. Besides, sphero is too expensive. I hope that I can continue to learn if you have a try on sphero 2.0 in the future.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年3月16日(星期四) 晚上7:32 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [artificial-intelligence-class/spherov2.py] cannot connect the Sphero 2.0 / SPRK (Issue #32)

I don't have the device so I unfortunately cannot help. However, can you post the code you used for this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dogtopus commented 10 months ago

I'm always under the impression that SPRK (not +) is a cursed inter-generation product that's Bluetooth Classic only but supports the later binary-based protocol?

Sadly there isn't a maintained, cross-platform Bluetooth Classic library for Python at this point, or it can be added as an adapter if the BLE binary protocol is indeed similar enough to the protocol supported by SPRK