OpenEEG Driver issue

Obtaining data from various hardware devices
Post Reply
MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

OpenEEG Driver issue

Post by MGR »

Hi,

i just finnished to connect my 6 channels Modular EEG and i'm trying to connect it to the computer.

I bought all from Olimex, with Firmware 2 (P2 packets).
I also use a serial-usb adaptator (marked as Arduino product).

Once the driver installed, i get a COM 3 virtual port over usb.

I can "connect" OpenVibe to COM 3, but when i start acquisition, i get the same 5s timeout !
"did not recieve anything from the driver"

I did try to monitor COM 3 input, and i can see that data are recieved !
the Transmission led is also blinking so we can assume that something is comming into the COM 3 port.
P2 packets are 17bytes messages, that we can clearly identify with a serial activity monitor tool..

I got the same problem using ElectricGuru that also supposed to support Modular EEG.

I assume that it must be related to the serial usb converter,
so do you have suggestion conserning a serial - usb converter which will work ?
Which one did you use ?

EDIT :
same problem under Linux : i can connect ttyUSB0 but when i start acquisition,
i get the 5000ms timeout "nothing recieved from the driver"
when using jpnevulator i can see data recieved on ttyUSB0..
so there is data but OpenVibe do not recognize it..

Any Help ?

Thanks !

Best regards

Thomas

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: OpenEEG Driver issue

Post by lbonnet »

Hi MGR, welcome on the forums!

As specified in the list of supported acquisition devices the OpenEEG driver is a community driver.
I don't have any openEEG device to test and help you directly.

Do you have some C/C++ knowledge and spare time to debug the driver on your side ?
The file is [openvibe-application/acquisition-server/trunc/src/openeeg-modulareeg/ovasCDriverOpenEEGModularEEG.cpp]
I can provide you support to understand the code. The main "acquisition" principles are quiet simple; the connection, reading and writing on the port may be tricky.


Laurent-

EDIT : let's use this topic, to avoid cross posting with this one :)
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

Re: OpenEEG Driver issue

Post by MGR »

Hi,

thanks for you answer,

i already tried to start digging into the driver,
but i did not find the place from where is thrown the message
"nothing recieve from the driver" conserning the 5000ms timeout.
I thought it was a good start to debug but i can't find where input data
are monitored in the driver..
Any clue ?

Since i think the driver, or the usb-serial device, is the problem,
may be you know somebody who succeeded in using openeeg,
and who could tell me which usb-serial converter is best to use..
(nothing about that on openeeg website, and no answer on the mailing list)

Another observation :
When i plug the device, Tx (transmitting) led is off on my serial-usb.
When i click "connect" on openvibe server, the connection suceed on COM 3,
and the Tx led sart to blink on my usb-serial device :
it is sending data as soon as the COM port is opened by openvibe !
Then, if i click "Read", i get the 5000ms timeout "no data...".
So maybe the problem is that my device does not wait "Read" click to send data,
it start as soon as i click "connect" => when i click "read" it will probably start reading
in the middle of a message, and this is maybe why i have this "no data recieved from the driver"
(which should be more something like "unreadable data recieved from the driver" if i'm right).

=> is there a way to combine both "connect" and "read" button of the Acquisition server in one action ?
I'm ok to dig into cpp code, but if you could help me to start (files concerned ?)

I'm not sure this is the problem but maybe it could help..

I'll also try to find another serial-usb adaptator,
but most of them are based on FTDI cheap, so is mine.

Thanks a lot for your help !

Best Regards,

Thomas

MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

Re: OpenEEG Driver issue

Post by MGR »

Hi Michael (he MP me to know if i founded a solution),

i submited the problem to the OpenEEG mailing list and
Dr Seidel answered me that he is using a UART -> USB insted of
a serial -> USB.

I just buy a UART -> USB on ebay (~3$) and i'm waiting it so i can try...
http://www.ebay.com/sch/i.html?_trkparm ... p=15&_sc=1

There is a change to do in order to connect it to the digital board :
Here is the Dr Seidel mail that explain it
keep in mind that the adapter I recommended is only a USB-UART
converter. So you have to remove IC106 (the UART to RS232 chip)
and connect the adapters TXD and RXD to (the IC106) Pins 12 and 11 respectively

As people said before, you always have to connect ground as well. As
this implies that you do have a connection to the computers powersource
already, I opted for a Battery less system, in particular as the battery
is drained rather quickly. But that is a decision YOU have to take for
yourself. I usually use a laptop unplugged, so I am still reasonable
safe from power mains. If you want to do this, you can get 5V from the
adapter I recommended, but you have to remove IC 7805 as described in
the wire diagram.

I'll tell you if it is working for me

Best Regards,

Thomas

chipaudette
Posts: 2
Joined: Sat Dec 21, 2013 3:51 pm

Re: OpenEEG Driver issue

Post by chipaudette »

I'm having the same problem when using an Arduino to send data to OpenViBE. I,too, get the 5000ms timeout. I, too, have confirmed (as well as I can) that the Arduino is sending out data and that it is formatted correctly in the OpenEEG/ModularEEG P2 format.

Has anyone been able to get an Arduino (I'm using the Uno) to connect to OpenViBE?

As an aside, I also have the Olimex OpenEEG SMT. It works fine in OpenViBE.

Chip

Post Reply