development:realtime:modulareeg - FieldTrip

"phil" <[email protected]>
Newsgroups gmane.comp.science.openeeg.general
Message-ID <EF2D5B6EDA7F4A6193C2769B615DBE62@GX280NOTSFF>
http://fieldtrip.fcdonders.nl/development/realtime/modulareeg

Modular EEG (OpenEEG project)
This page describes the interface between the 2-6 channel Modular EEG amplifier of OpenEEG project and the FieldTrip buffer. 

TODO: Stephen, add some pictures and other stuff here, please. 

We provide two standalone tools (see realtime/datasource/modeeg) to grab data from the serial port, and stream it to a FieldTrip buffer. The first one is called modeeg2ft and allows to specify which channels to stream and save in a configuration file like this: 

[select]
1=Left
2=RightYou would then call the application like this: 

modeeg2ft COM5: config.txt  nameOfGDF  localhost  1972where COM5: is the serial port on which the amplifier is connected (use something like /dev/ttyS0 on Linux), config.txt is the name of the configuration file, nameOfGDF is the name of the GDF file where data should be saved to (extension .gdf will be added automatically), and localhost and 1972 are the address and port number of the buffer server (actually, these are the defaults for the last two arguments, so you can leave them out). In case you want to have the buffer server inside this application, replace the hostname by a minus (-). 

The second tool is called modeeg2ft_2chn and is basically a simplication of modeeg2ft: For this, always two channels are read, and there is no need for a configuration file. Just call for example 

modeeg2ft_2chn COM5:  nameOfGDF  localhost  1972If you don't want to save data to GDF, you can replace the second argument (nameOfGdf) by a minus (-). 

Compilation
On the command line, change to the realtime/datasource/modeeg directory and type make. The Makefile will also work with the MinGW compiler on Windows. Note that you might need to compile the libbuffer library first. 

Support for Mac OS X
Using a USB cable
If your ModEEG uses the FT232RL USB-to-serial converter, you may have to install a driver to access it. 

First check 

ls -al /dev/*usbserial*If that is empty, download and install the driver from http://www.ftdichip.com/Drivers/VCP.htm. After that, you should see 

powermac> ls -al /dev/*usbserial*
crw-rw-rw-  1 root  wheel   10,   5 Feb 27 16:16 /dev/cu.usbserial-A9003PV6
crw-rw-rw-  1 root  wheel   10,   4 Feb 27 16:13 /dev/tty.usbserial-A9003PV6Using Bluetooth
The device that we have at the Donders has a "BlueSmirf FireFly" bluetooth interface. To use it, go to "setup Bluetooth device" in the menu bar. After switching on the amplifier, you will see a FireFly-B106 device. Connect to the device using the passcode 1234. After that you can connect the modeeg2ft application to the serial port at /dev/tty.FireFly-B106. 

External links
  a.. http://openeeg.sourceforge.net/doc/
development/realtime/modulareeg.txt · Last modified: 2012/03/01 17:38 by robert

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.