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: 201
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 !!

mhadji05
Posts: 6
Joined: Tue Mar 16, 2021 9:37 am

Re: TCP TAGGING

Post by mhadji05 »

I m trying to run Hello Bidirectionnal and Brain hero but OpenVibe has the following warning: Scenario contains unknown box algorithm(s)

How can I run this example. I cant find the Hello Bidirectionnal box on the side. Why?

Any idea?

Thanks.

Thomas
Posts: 22
Joined: Wed Mar 04, 2020 3:38 pm

Re: TCP TAGGING

Post by Thomas »

Hi Marios,

The Brain Hero unity app is at its early stage of development, and not integrated in OpenViBE yet, so you will not be able to use it until a future release of OpenViBE.

The Hello Bidirectionnal box is present on the development branches of the code base on our gitlab.
You need to checkout the development branch of each repository (meta, sdk, designer and extras) and build OpenViBE. Some instructions on how to build OpenViBE here!

Hope this helps.

Cheers,
Thomas

mhadji05
Posts: 6
Joined: Tue Mar 16, 2021 9:37 am

Re: TCP TAGGING

Post by mhadji05 »

Because I'm new to OpenVibe can someone give me more straight forward - specific instructions on the procedure i need to follow to run the Hello Bidirectionnal project?
Is there any tutorial or documentation?
I cant find something.

Any help I will appreciate it.
Untitled.png
Untitled.png (20.03 KiB) Viewed 132 times

mhadji05
Posts: 6
Joined: Tue Mar 16, 2021 9:37 am

Re: TCP TAGGING

Post by mhadji05 »

Can someone explain me how can I make my own box such as the Hello Bidirectional Game in the picture below?
If I understand right this box missing and must be created. How can I create this box?

Please if someone knows this answer let me know!

Thanks.
Untitled.png
Untitled.png (19.9 KiB) Viewed 116 times

Thomas
Posts: 22
Joined: Wed Mar 04, 2020 3:38 pm

Re: TCP TAGGING

Post by Thomas »

Hi Marios,

Sorry for the mistake in my previous message, the biderectionnal game box is not yet in the development branch.
To use it now, you need to build OpenVibe with the following branches for each repo:
- meta: development
- sdk: development
- designer: development
- extras: 61-feature-bidirectionnal-unity-games (where you got the scenario from)

Instructions on how to get the sources from git: http://openvibe.inria.fr/repo-instructions/
After you have run the "git submodule update", you can checkout each repo to the right branch with the command "git checkout <branch_name>"

You can then follow the build instructions: http://openvibe.inria.fr/build-instructions/

The biderctionnal game box shouldn't be missing anymore from this freshly built version of OpenViBE.

Hope this helps.

All the best,
Thomas

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

Re: TCP TAGGING

Post by Thibaut »

Hi,
Now it's on development branch
THibaut

mhadji05
Posts: 6
Joined: Tue Mar 16, 2021 9:37 am

Re: TCP TAGGING

Post by mhadji05 »

Dear @Thibaut

When will it be integrated into the executable OpenVibe for windows?

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

Re: TCP TAGGING

Post by Thibaut »

Hi,
For the next release we don't have an exact date yet sorry^^
Thibaut

Post Reply