running GUI on Raspberry Pi 3

edited February 2017 in OpenBCI_GUI
Hi,

I have 32 bit board and I want to use it in RPi3. However, I am confused about downloading which gui of OpenBCI and how to start up it. Can anyone please inform me about those issues (by telling the steps that I should follow :) ) Because I had downloaded every type of GUI however I cannot start up all of them. So I need some help :) Thank you very much.

Comments

  • wjcroftwjcroft Mount Shasta, CA
    This is the GUI you want,


    This is a general how to build document, but adjust to fit locations above.

  • edited February 2017
    imageimage

    Hi, I had downloaded the GUI that you said however when I run it I got those red errors while the dongle is trying to conncet my 32 bit board. I am running the GUI from Processing. How can I solve this problem and make dongle to connect my board on RPi3 and see  my EEG signals?imageimage 
  • wjcroftwjcroft Mount Shasta, CA
    It could be a permissions issue. Try running app as superuser (root), with sudo, or "sudo bash" to get a root shell.


    It should also be possible to adjust the OS permissions somewhere, let us know if you find a way to run without root.

    You can also log a comment on the Github issue link mentioned in that thread above.

  • We are currently running OpenBCI on Raspberry. Previously OpenBCI GUI was giving a java exception "Waited 100ms". We solved this issue by deleting all images from the GUI. Now when we execute the GUI, it gives following error after the first loading screen.

    OpenBCI_GUI.pde: attempting to open serial/COM port for data output = /dev/tty.usbmodem1411
    OpenBCI_GUI.pde: could not open /dev/tty.usbmodem1411
    attempting to load images for presentation...
    images loaded
    DONE loading images!
    java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:211)
    at processing.net.Client.<init>(Unknown Source)
    at OpenBCI_GUI$OpenBCI_Ganglion.startTCPClient(OpenBCI_GUI.java:8485)
    at OpenBCI_GUI$OpenBCI_Ganglion.<init>(OpenBCI_GUI.java:8445)
    at OpenBCI_GUI.systemUpdate(OpenBCI_GUI.java:776)
    at OpenBCI_GUI.draw(OpenBCI_GUI.java:420)
    at processing.core.PApplet.handleDraw(PApplet.java:2418)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:907)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)


    We decided to ignore this error and continue. We configured as following picture.

    image

    After pressing START SYSTEM button, the following text appears. But system does not connect to the OpenBCI board. Have you got any suggestions ? This is our senior project and we are short on time. Any help and suggestion would be appreciated.


    Instantiating Ganglion object...
    OpenBCI_GUI: mousePressed: mouse pressed
    CPmousePressed
    click
    OpenBCI_GUI: mousePressed: mouse pressed
    CPmousePressed
    click
    OpenBCI_GUI: mousePressed: mouse pressed
    CPmousePressed
    ControlPanel — port is open: false


    =================================================
    ||             INITIALIZING SYSTEM             ||
    =================================================

    OpenBCI_GUI: initSystem: -- Init 0 -- 22596
    timeOfInit = 22596
    OpenBCI_GUI: initSystem: Preparing data variables...
    OpenBCI_GUI: initSystem: -- Init 1 -- 22611
    Init FFT Buff – 0
    Init FFT Buff – 1
    Init FFT Buff – 2
    Init FFT Buff – 3
    Init FFT Buff – 4
    Init FFT Buff – 5
    Init FFT Buff – 6
    Init FFT Buff – 7
    OpenBCI_GUI: initSystem: -- Init 2 -- 22641
    OpenBCI_ADS1299: prefered_datamode = 1, nValuesPerPacket = 8
    OpenBCI_ADS1299: a
    nEEGValuesPerPacket = 8
    nEEGValuesPerOpenBCI = 8
    (2) nEEGValuesPerPacket = 8
    (2) nEEGValuesPerOpenBCI = 8
    missedDataPacket.values.length = 8
    OpenBCI_ADS1299: b
    OpenBCI_ADS1299: i = 22643
    OpenBCI_ADS1299: openSerialPort: attempting to open serial port: /dev/ttyUSB0
    OpenBCI_ADS1299: openSerialPort: port is open (t)? ... true
    OpenBCI_ADS1299: j = 22650
    OpenBCI_GUI: initSystem: -- Init 3 -- 22650
      3a -- 22650
      3b -- 22650
    null
    widgetOptions List not built yet...
    ChannelController: createChannelSettingButtons: creating channel setting buttons...
    null
    widgetOptions List not built yet...
    8
    null
    widgetOptions List not built yet...
    null
    widgetOptions List not built yet...
    null
    widgetOptions List not built yet...
    null
    widgetOptions List not built yet...
    widgets.size() = 6
    widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    wm.widgetOptions.size() = 6
    widgetOptions:
    [Time Series, FFT Plot, Head Plot, Accelerometer, EMG, Widget Template 1]
    Powering 3 widgets up, and remapping.
    Activating widget [0]
    Activating widget [1]
    Activating widget [2]
      3c -- 36796
    openBCI: openNewLogFile: opened ODF output file: SavedData/OpenBCI-RAW-2017-02-24_00-03-47.txt
    WOOHOO!!!
    OpenBCI_GUI: initSystem: -- Init 4 -- 37333
    OpenBCI_ADS1299: systemUpdate: [0] Sending 'v' to OpenBCI to reset hardware in case of 32bit board...
    openBCI_GUI: haltSystem: Halting system for reconfiguration of settings...
    OpenBCI_GUI: stopRunning: stop running...
    OpenBCI_ADS1299: startDataTransfer(): writing 's' to the serial port...
    Closing any open SD file. Writing 'j' to OpenBCI.
    OpenBCI_ADS1299: closeSerialPort: closed
  • @wjcroft Do you have any idea about this issue because we are running out of time and we really want to connect our project with your device 
  • wjcroftwjcroft Mount Shasta, CA
    edited March 2017
    Are you still getting the error you mentioned above, 

    OpenBCI_GUI.pde: attempting to open serial/COM port for data output = /dev/tty.usbmodem1411
    OpenBCI_GUI.pde: could not open /dev/tty.usbmodem1411
    attempting to load images for presentation...
    images loaded
    DONE loading images!
    java.net.ConnectException: Connection refused (Connection refused)

    This means the serial port is not opening. Likely a permissions problem as I said before.
    Be sure you are using the correct /dev/ device. Try connecting to it as super ussr with a terminal emulation program, then type '?'. This should produce some output from the firmware.

  • wjcroftwjcroft Mount Shasta, CA
    Is this Cyton or Ganglion? I saw your other post on the Ganglion category. Yet the channel count shows 8 above and you are trying to access tty ports. Ganglion requires considerably more work for the Bluetooth setup.

    We know Cyton has worked on Raspberry because Jeremy Frey was using it with OpenViBE.

  • No, it is a 32 bit Cyton so should I take into account your previous reply for troubleshooting? Don't I?
  • wjcroftwjcroft Mount Shasta, CA
    Try connecting with terminal emulator.
  • We used the super user method but the result was same, we used putty to connect the serial port /def/ttyUSB0. Putty is able to connect but we could not send/receive any commands to port. What is your advice?
  • wjcroftwjcroft Mount Shasta, CA
    Does this Cyton work ok on a laptop?
  • Yes it works well in both older and new GUIs.
  • Is it possible for making a Skype call with us ?
  • UPDATE: After connecting dongle with putty if we turn off and turn on the Cyton, some chars symbols appear on terminal, however we dont have any idea such as in the photo:

    image
  • wjcroftwjcroft Mount Shasta, CA
    Did you set the baud correctly to 115200 8-N-1 ??
  • yes, is this can be caused by ftdi problem ? which version of ftdi driver should I install on RPi3 and which steps should I follow? We had to get a real stream on RPi 3 by your GUI, and we want detailed explanations, if it is not caused by ftdi, should I do something specific for linux or if so how can I beat permissions of RPi3 ? Please, can you use more detailed responses because we are running of time :)

    Thanks for any help 
  • Or just an advice if you have a rpi3 on your company & house please can you record a short video that sets up Cyton 32 bit all from beginning to real time data stream on GUI by steps. Not too long and tiring for you :) We will be very happy for any this type of helps
  • wjcroft  can you please help us about this issues because we are running out of time 
  • ANY HELPS IDEAS COMMENTS PLEASE BECAUSE WE ARE IN VERY BIG TROUBLE PLEASE @wjcroft
  • thanks everybody for helps :)

    if somebody asks similar question, I hope you should not help
  • I cannot even get openbci_gui to run but it seems you succeeded. can you help me at least running gui ?
Sign In or Register to comment.