luisqtr / exciteometer

The Excite-O-Meter is a user-friendly Unity plugin for XR creators to integrate physiological user information in the development and evaluation of XR content. Specifically, it allows to record, analyze, and visualize validated metrics of heart activity from the chest strap sensor Polar H10 and movement trajectories from VR headsets.
http://exciteometer.eu/
GNU General Public License v3.0
43 stars 4 forks source link

Excitometer crashes when pairing Polar H10 #10

Closed GeorgeFejer91 closed 1 year ago

GeorgeFejer91 commented 1 year ago

Hi there, I tried connecting my Polar H10 device via bluetooth. It recognizes the device succesfully in step 1. In step 2 I connect to a server and tell it to record heart rate changes. It advances to step 3 and starts logging data, at which point the program suddenly stops and vanishes. What can I do to make my heartrate data discoverable by the LabRecorder via the LSL protocol? Best, George

luisatheelke commented 1 year ago

Hi George, I have a very similar problem. I've been using the repository for a bit already, but now all of a sudden it doesn't work anymore without me changing anything. Step 1 to 2 also work for me without any problems. When I start my application in Unity the data stream is there for a very short time and then suddenly stops without an error message. Have you by any chance found a solution?

GeorgeFejer91 commented 1 year ago

I have asked the developers to look into it, and @luisqtr said he would double-check it over the weekend. I also tried the Android app, which in turn was actually working, and I could discover the data in the LSL stream when creating a local hotspot networking. I also tried tethering my phone directly to the Ethernet network, but for some reason the data could not be discovered by all the laptops, which a bit annoying because I am also trying to record EEG and body-posture in a multi-laptop hyperscanning setup. Hence, it would be great to have it working on a proper PC. Let's see.

luisqtr commented 1 year ago

Hi both, Thanks for reporting the situation.

I looked into the video that George shared via email and it seems that you are not using the Polar H10 but it says Polar Pro.

@luisatheelke @GeorgeFejer91 Can you please confirm if you are using a sensor different to the Polar H10? Or if you are using the Polar H10 but latest versions of the chest strap show the name as "Polar Pro"?

image

In the code, when you search for devices and press the button "Continue", the application should automatically send you to the tab 3) Setup Polar H10 if the BT device starts with the name Polar H10. Otherwise it sends you to the tab 2) Connect to server where you can explore the services that the Bluetooth Low Energy (BLE) device can provide. However, the data shown in the step 2 is not automatically forwarded through LSL, it is just to see if the app can actually subscribe to BLE services (the same behavior happens with the example code used to build the Excite-O-Meter).

Possible solution: If you are not using the Polar H10, the video that George sent shows that the same app may be used to capture data from the Polar Pro. Since I don't have access to that sensor, the easiest is if I make available of the source code of the Excite-O-Meter for Windows, so that you can explore adding compatibility to the Polar Pro based on the example I built for Polar H10.

99bits commented 1 year ago

Please can you provide the source code so that we can add support for other sensors. Thank you.

luisqtr commented 1 year ago

Sure. The code for the apps Excite-O-Meter | Devices are here:

Please fork a repository and create a PR when you add support to more sensors so that I can push them to the main repo. 😀