Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
development:realtime:openbci [2018/10/21 15:10]
42.49.180.224 [OpenBCI]
development:realtime:openbci [2018/03/28 14:06] (current)
robert [Java implementation]
Line 8: Line 8:
  
 The FTDI chip on the OpenBCI dongle requires you to install the FTDI drivers on your machine. You may already have these installed, if you’ve worked with Arduino or other USB hardware accessories. You can download the latest FTDI drivers for your operating system [[http://​www.ftdichip.com/​Drivers/​VCP.htm|here]]. The FTDI chip on the OpenBCI dongle requires you to install the FTDI drivers on your machine. You may already have these installed, if you’ve worked with Arduino or other USB hardware accessories. You can download the latest FTDI drivers for your operating system [[http://​www.ftdichip.com/​Drivers/​VCP.htm|here]].
-====== OpenBCI ======+===== Standalone interface with openbci2ft ​=====
  
-This page describes the interface between the 8-channel [[http://​www.openbci.com|OpenBCI]] microcontroller board and the FieldTrip buffer. The OpenBCI Board is a versatile ​and affordable bio-sensing microcontroller that can be used to sample electrical brain activity (EEG), muscle activity (EMG), heart rate (EKG), ​and more. Besides the 8 ExG channels, it includes an accelerometer,​ resulting in a total of 11 channels.+You can use **openbci2ft** to transport data from the UDP network connection to a FieldTrip buffer. The **openbci2ft** application ​is written in C and takes 1 required ​and 2 optional command line arguments
  
-{{:development:realtime:​8_perspective_1024x1024.jpg?400|}}+  openbci2ft <​device>​ [ftHostname] [ftPort] 
 + 
 +For example, if you want to stream the data from a specific serial port to a remote buffer on mentat205:1972, you would type 
 + 
 +  openbci2ft /​dev/​tty.usbserial-DN0094FY mentat205 1972 
 +   
 +For spawning a local FieldTrip buffer within ** openbci2ft** at port 1234, you would use a dash (-) instead of the second hostname and write 
 + 
 +  openbci2ft /​dev/​tty.usbserial-DN0094FY - 1234 
 +   
 +Leaving out the two optional arguments spawns a local buffer on the default port 1972: 
 + 
 +  openbci2ft /​dev/​tty.usbserial-DN0094FY 
 + 
 +=== Compilation === 
 + 
 +On the command line, change to the ''​realtime/​src/​acquisition/​openbci''​ directory and type ''​make''​. Note that you might need to compile the buffer library first.
  
-The FTDI chip on the OpenBCI dongle requires you to install the FTDI drivers on your machine. You may already have these installed, if you’ve worked with Arduino or other USB hardware accessories. You can download the latest FTDI drivers for your operating system [[http://​www.ftdichip.com/​Drivers/​VCP.htm|here]]. 
 ===== Java implementation ===== ===== Java implementation =====
  
 The directory ''​realtime/​src/​acquisition/​openbci/​java''​ contains an alternative application implemented in Java, which also copies the data from the serial interface to a FieldTrip buffer. The directory ''​realtime/​src/​acquisition/​openbci/​java''​ contains an alternative application implemented in Java, which also copies the data from the serial interface to a FieldTrip buffer.