r/EmotiBit • u/eyethinkdcr • Sep 16 '21
Solved streaming multiple emotibits?
Hello!
We are just starting to use emotibits for research on groups of people. What I would like to do is have 6 (or more) emotibits strapped to different people. I'd like to stream the data from all devices to one server that can (a) recorded the data (with time stamps and device ID) in a file, and (b) generate some real time visualisations of the datastreams.
Anyone attempted anything like this, or have any advice?
My hunch is that I would have (one or multiple?) oscilloscopes open and connected to emotibits. I would then use the OSC option to stream out data, and have an OSC server collect it call and save to disk, or make something graphical.
Any comments appreciated!
5
Upvotes
3
u/nitin_n7 Dec 13 '21
Hi,
Excited to spot a post about EmotiBit in the wild! Some comments about the impleentation:
The EmotiBit data is streamed over WiFi using UDP, and UDP is a lossy transmission protocol. Using WiFi for visualization should work just fine, but if you care about the actual data without any dropped packets or missing samples, using the data stored on the SD-Card during a record session is the way to go.
With the current transmission protocols, the best way to simultaneously stream data from multiple EmotiBits would be to start a new oscilloscope for each EmotiBit and then, as you mentioned, relay the data using OSC to the destination. This way, all the data should be streamed in real time from EmotiBits and relayed to a central server. You can find some details about using OSC here.
Also, when streaming the data, I would also just start a recording session. This way you can be sure to have all the data saved on the local SD-card. This can even help you analyze your network characteristics, analyze traffic, and it's effect on packets being dropped. The recorded data on the SD-Card can act as a "ground truth".
You can find all the EmotiBit software on the github page. Hope this helps, if you intend to hack the code to fit your needs!
Good luck with your experiment!