e-sr / moonboard

GNU General Public License v3.0
98 stars 43 forks source link

moonboard app doesn´t send anything to led #32

Open smai86 opened 3 years ago

smai86 commented 3 years ago

Hello,

got the problem that my iphone 5 won´t send any signal to the LEDs. Im using a pi zero with fresh installed os...

Any Ideas?

Thanks! Steffen

8cH9azbsFifZ commented 3 years ago

Did you check whether the bluetooth command transfer works on the raspi?

domenko commented 3 years ago

Did you check whether the bluetooth command transfer works on the raspi?

I am sorry if this is an obvious answer perhaps, but how does one go about checking that? I am a relative novice when it comes to RasPi and coding ...

I have gotten so far that my RasPi is installed, working, services seem to be running (used ps aux command), I've made a custom layout for the LEDs (every second is lit, as I needed), the test script runs through, seemingly ok, yet the Moonboard app can not find the LED box.

Any advice would be much appreciated, thank you and best regards!

8cH9azbsFifZ commented 3 years ago

So if the test script runs fine I assume your installation is basically working. With the current raspian I have a problem starting the services, too. My workaround is given here:

https://github.com/8cH9azbsFifZ/moonboard/blob/master/scripts/fix_startup.sh

Can you try this and check whether you can find the board afterwards in the moonboard app?

domenko commented 3 years ago

Thanks for your swift response! I have tried running the fix_startup.sh before and just tried again after a fresh reboot of the raspi. The app has been searching for a MoonBoard for several minutes without success.

It hasn't informed me that it can't find anything as it normally would neither though. I have paired and connected my phone with the raspi before, but NOT while I'm trying to connect it with the Moonboard app.

I am using an iPhone XS Max if that is of any consequence. :)

FabianRig commented 3 years ago

I encountered the same issues with an iPhone and some Android devices, too. I couldn't get it to work reliably so I wrote my own Python based solution which showed similar issues on iPhones (but not on Android devices). There are quite a few reports concerning iPhones, BLE, and Rasperry Pis... Therefore, I think the problem might be in the BLE layer.

My solution was to create a new project based on an Arduino. It's been working flawlessly for 2 months and I decided to publish it. If you want, you can check out the repository (https://github.com/FabianRig/ArduinoMoonBoardLED).

domenko commented 3 years ago

Thanks Fabian, it sounds interesting and I will look into it as well!

avzh72 commented 2 years ago

Thanks Fabian. It works. Wonderful!

FabianRig commented 2 years ago

Great, I'm glad to hear that. :-) Have fun using it!

domenko commented 2 years ago

I didn’t think to reply here as you closed our thread before I finished the project, Fabian. I can happily report thay the Disco Shed was a success and everything works superbly. Thanks for everything!