2ndClemens / 51515-ble-remote

Web-Bluetooth LE Remote Control for Lego Mindstorms 51515 and Spike Prime
1 stars 0 forks source link

Stuck Connecting to GATT Server... #1

Open FalkoJoseph opened 3 years ago

FalkoJoseph commented 3 years ago

Hi,

I'm trying to get your app to work, but it can't seem to connect my 51515 with the webapp. Even though I've got the Python code running on the robot with no problem.

I've succesfully managed to get it to pair in Chrome, but now in the console logs it says: "Connecting to GATT Server...". When trying to connect to the GATT server it just turns off after a minute or so.

Do you have any idea to fix this? :)

Thanks! Very nice work btw.

2ndClemens commented 3 years ago

Hi FalkoJoseph, thanks for trying this out. I havn't got my 51515 with me right now but I will check next Thursday if it is still running here. In the Connect popup you see the 51515 and you can pair with it, right? And after that nothing happens? I hope I'll have time to work on it some more. I would like to change it so that the 51515 and javaScript just exchange json data so people can customize it more easily for their use.

FalkoJoseph commented 3 years ago

Hi FalkoJoseph, thanks for trying this out. I havn't got my 51515 with me right now but I will check next Thursday if it is still running here. In the Connect popup you see the 51515 and you can pair with it, right? And after that nothing happens? I hope I'll have time to work on it some more. I would like to change it so that the 51515 and javaScript just exchange json data so people can customize it more easily for their use.

Hi @2ndClemens thanks for the quick reply!

Yes, it connects in the popup and appears as "robot". When I click "connect" afterwards, nothing happens however. The console then shows the connecting to GATT message.

I'm actually trying to build a bridge between the 51515 with NodeJS/JavaScript as well, hence why I'm giving your code a try to see how you've done it. There's very few documentation and integrations for the 51515 sadly.

I already got it to work now to send instructions from my PC to the 51515 over the Bluetooth serial port via Python. The only thing I'm still figuring out is how to read data from the 51515 or emit events and send it back to the PC. That way it would be a 2-way communication system.

If all of that works I can build an API wrapper around it for NodeJS. :-)