pluxbiosignals / unity-android-sample

Interaction between Android systems and PLUX devices is extremely easy, using the available Unity/Android API. This repository contains a demonstration of this type of integration through an intuitive Sample APP.
Apache License 2.0
0 stars 2 forks source link

Manual connection problems (Oculus Quest) #3

Closed jdevoldere closed 4 years ago

jdevoldere commented 4 years ago

So since automatic connection wasn't working for me (see https://github.com/biosignalsplux/unity-android-sample/issues/2) I attempted manual connection but I experience the following issues:

First it connects to 00:00:00:00:00:00 a couple of times before connecting to the specified address.

IsSensorConnected() returns false inside of OnDeviceConnection, which somehow gets triggered multiple times per second and acquisition (which gets started by OnDeviceConnection in my script) isn't functional as OnNewDataEvent doesn't get triggered.

However after waiting for a minute or so OnNewDataEvent finally prints values, albeit at pace of only once per 10th of a second.

Here is my script: https://pastebin.com/PqhjZB63

I made some changes compared to the one I posted in the aforementioned GitHub issue:

jdevoldere commented 4 years ago

I just realized my understanding of OnDeviceConnection was wrong. I will edit my post.