OpenViBE forum

The OpenViBE community
It is currently Tue Nov 13, 2018 3:45 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Dec 25, 2017 1:38 am 
Offline

Joined: Wed Aug 09, 2017 2:51 am
Posts: 7
Hi everyone. Recently I have been trying to send data from OpenViBE to Python by adding a TCP writer in the program. The data I want to send is the classification results in motor imagery with csp, receiving online EEG data from EMOTIV EPOC. When I try to connect the python server with the TCP writer using the same ‘port’, some errors are listed. And no data are sent or obtained. I am using OpenViBE 2.0 on win7.

[ ERROR ] {Error description} : {Box algorithm <TCP Writer> initialization failed}, {Error type} : {ErrorType::Internal (code 2)}, {Error location} : {C:\ovm\sdk\kernel\src\kernel\player\ovkCSimulatedBox.cpp::105}
[ ERROR ] {Error description} : {Failed to initialize player}, {Error type} : {ErrorType::Internal (code 2)}, {Error location} : {C:\ovm\sdk\kernel\src\kernel\player\ovkCPlayer.cpp::212}
[ ERROR ] The player could not be initialized.

For the time being, I am using the same computer to run OpenViBE and python server, so I don’t have to set the ‘IP’ and just set the ‘port’. However, if I want to run OpenViBE and python server in two computers, how can I set the ‘IP’ in the TCP writer?

Thank you very much for your kind help in advance.
Attachment:
微信图片_20171225093621.jpg
微信图片_20171225093621.jpg [ 205.13 KiB | Viewed 765 times ]

Attachment:
微信图片_20171225093855.jpg
微信图片_20171225093855.jpg [ 122.24 KiB | Viewed 764 times ]


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 27, 2017 12:04 pm 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 762
Location: INRIA Rennes, FRANCE
Hello,

the TCP Writer is designed to be a server that clients connect to. Here's the documentation.

http://openvibe.inria.fr//documentation ... riter.html

Basically you cannot have the python script as a server for the two to work together. Instead it should be a client.

There is no IP address in the TCP Writer config due to its server nature. The IP is that of the host computer. Machines on different computers can connect to the writer using the host computers ip address if the routing and firewalls permit.


Best,
Jussi


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 28, 2017 1:14 pm 
Offline

Joined: Wed Aug 09, 2017 2:51 am
Posts: 7
Thank you very much for your help. We finally connected OpenViBE to Python and got the data we need.

Have a nice holiday. :D

Best,
Chandler


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maël Soucaze.