dimorphic / bb8

Sphero Star Wars BB8 controlled via Xbox controller and Myo armband! The droid you're looking for!
GNU General Public License v3.0
17 stars 3 forks source link

Simple test #4

Open DanielSSilva opened 6 years ago

DanielSSilva commented 6 years ago

Hey man, really nice project here! I've been trying to pair my BB9-e with Raspberry without any luck, and so far your project was the one that got me further... I would like to know if you do know if it's possible to control it with the xbox controller connected to the raspberry. because the program launches but it just hangs on the scan.js part..

dimorphic commented 6 years ago

Hey @DanielSSilva !

Thanks and sorry for the late reply, first of all :) Secondly, the project should run on any env capable of running Node.js (tested on unix/OSX so far), so yea, a Raspberry should be fine.

I've also got a BB9e about 1 month ago or so, did a quick test back then and i was not able to connect to it as to a BB8 device; was getting the correct UUID in scan.js, but failing on connect.

It seems that BB8 and BB9e are not using the same BLE packets (hopefully only the connect part - Disney really guys, again ?) and the BB9e device was not yet supported by the internal dependency package sphero.js at that time. I haven't had the time to properly look into this lately :(

Need to check & upgrade sphero.js if it's the case, or end up once again reverse engineering the BLE packets sent by/to BB9e, as i did when i first started this project (BB8 was not supported initially either, but was added later).

Regarding the scan.js, be sure to get the latest update on this, as i've refactored a bit that part; nevertheless you see your BB9e device UUID (or any other BLE device nearby). Another note: in my initial BB8 reverse engineering, i had to either open the official mobile app and try to connect or actually shake the device in order to 'wake it up', and make it show either on scanning or when trying to connect. That might help sometimes in 'debugging' as BB8/BB9e might be in battery saving mode / sleeping while standing / in dock.

I'll open a separate ticket for the BB9e connect issue ( #5 ) and maybe someone or I will have some time for it. Hope i've answered your questions. :)

Cheers 🍺

igbopie commented 6 years ago

Hey @DanielSSilva @dimorphic , I can make it work with my lib. I just need the bluetooth prefix :) I have created an issue on my project https://github.com/igbopie/spherov2.js/issues/12