TCP TAGGING

Obtaining data from various hardware devices
Post Reply
arianna
Posts: 3
Joined: Mon Dec 14, 2020 11:39 am

TCP TAGGING

Post by arianna »

Hi everyone. I would like to use openvibe scenario for 2 things: stream EEG signal + receive stimulations events from unity.
According to the documentation, the suggested approach to save EEG marker is to use TCP tagging. Do you agree?
I am trying to implement the code in Unity to send information to the acquisition driver via TCP tagging.
documentation reports:

Once the port is open, you can send triplets of uint64 numbers (24 bytes in total) to the AS while the TCP Tagging connection is open. The interpretation of these three numbers depends on the OpenViBE version as follows.

OV 2.0.1 and later tag format to send to the server:

[uint64 flags ; uint64 stimulation_identifier ; uint64 timestamp] ...

(http://openvibe.inria.fr/tcp-tagging/).

On C# code I have something like: Byte[] sendBytes = Encoding.UTF8.GetBytes("yah!! it works");
mySocket.GetStream().Write(sendBytes, 0, sendBytes.Length);

Can anybody help me to understand ho to write the code in order to receive a stimulation in openvibe? My final goal is to look at the EEG with signal display and see the stimulations coming from unity on it.
Thank you VERY VERY VERY MUCH for your help !!!!

Thibaut
Posts: 183
Joined: Wed Oct 31, 2018 9:14 am

Re: TCP TAGGING

Post by Thibaut »

HI,
Je have made two hello world game on unity one to receive data from openvibe on to send to openvibe, I must make a third to have bidirectionnal transmission but not yet. This hello world use lsl more easy to use than TCP.
You can check that at this address : https://gitlab.inria.fr/openvibe/unity-games with https://gitlab.inria.fr/openvibe/unity- ... llo-sender and https://gitlab.inria.fr/openvibe/unity- ... ello-world.
PS it's useless to send me a private message I check the new message in forum often.
Thibaut

arianna
Posts: 3
Joined: Mon Dec 14, 2020 11:39 am

Re: TCP TAGGING

Post by arianna »

Thank you very much for your answer and help !!

Post Reply