Cyton board system is not streaming data in the OpenBCI_GUI. Data streams fine over the COM port, but does not stream on the OpenBCI_GUI (specifically in processing). Tested this with PuTTY. I have verified that the OpenBCI system is properly configured via the radio configuration utility on the GUI (Get Channel returns Success, Host and Device on Channel number: 4). I have verified that the board is up to date with the latest firmware. All processes are running as admin.
My hunch is that it may be an issue with the OpenBCI hub (see the following below), however it is strange that the device is properly streaming over the COM port and is not working on the GUI.
opening socket failed!
> address:127.0.0.1, port:51000 [group:null]
> Address already in use: Cannot bind
I am attempting to use the OpenBCI_GUI processing sketch on lab computers at a university, and the address 127.0.0.1:51000 is being used by one of the university's role management programs.
Cyton system successfully starts when "Start Stream" is pressed.
Windows 10
v4.1.7
No, Processing GUI
Cyton
No
Console Log Started at Local Time: 2020-01-12_14-29-04
Screen Resolution: 1920 X 1200
Welcome to the Processing-based OpenBCI GUI!
For more information, please visit: https://openbci.github.io/Documentation/docs/06Software/01-OpenBCISoftware/GUIDocs
Launching application from local data dir
OpenBCI_GUI: hubStart: OS Detected: Windows
COLIN DEBUG
java.lang.ProcessImpl@4987842d
22.134
44.166
47.43
50.796
54.264
57.732002
61.199997
64.668
69.666
72.93
76.296
79.662
83.028
86.495995
89.862
93.228
96.696
100.164
103.53
106.998
110.364
113.83199
117.3
120.666
124.133995
132.59999
135.966
139.434
142.90201
146.268
149.63399
153.0
156.264
159.62999
163.2
166.668
170.03401
173.40001
176.97
180.336
183.702
187.17001
190.53601
194.106
197.574
200.94
204.306
207.672
211.14
214.506
217.872
221.238
224.604
227.97
231.336
234.70201
238.06801
241.434
244.902
248.37
251.634
255.10199
258.672
261.834
265.302
268.668
272.136
275.604
279.174
282.642
285.906
289.272
292.638
296.10602
299.472
302.838
306.20398
309.67203
313.038
316.50598
319.872
323.34
TopNav: Internet Connection Successful
326.70602
330.174
333.53998
337.008
340.374
343.842
348.73798
351.9
355.368
358.734
362.202
365.568
368.934
372.30002
375.666
379.032
382.398
385.866
389.53802
393.108
396.37198
399.738
403.206
406.47
410.04
413.406
416.772
Local Version: 500, Latest Version: 417
GUI is up to date!
420.24
423.60602
427.074
430.44
433.908
438.702
441.04797
444.414
447.78
451.24802
460.632
opening socket failed!
> address:127.0.0.1, port:51000 [group:null]
> Address already in use: Cannot bind
OpenBCI_GUI::Setup: Is RX mulitcast: false
OpenBCI_GUI::Setup: Has RX joined multicast: false
OpenBCI_GUI::Setup: Sample Data exists in Documents folder.
ControlP5 2.2.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
OpenBCI_GUI::Control Panel: Playback history file not found or other error.
OpenBCI_GUI::Setup: Setup is complete!
468.18
Instantiating hub object...
Hub: CheckHubInit: The GUI is connected to the Hub!
sourceList: click!
setInterface: curInterface: -1
channel count set to 8
Setting Latency to 10000
Setting WiFi Internet Protocol to udpBurst
Setting WiFi style to dynamic
[DEFAULT]: Protocol Serial Selected for Cyton
setInterface: curInterface: 0
Setting sample rate for Cyton to 250Hz
sample rate set to: 250
serialList: click!
[DEFAULT]: OpenBCI Port Name = COM7
ControlPanel — port is open: false
Settings: LogFileMaxDuration = 60 minutes
initButtonPressed: Calling initSystem()
=================================================
|| INITIALIZING SYSTEM ||
=================================================
OpenBCI_GUI: initSystem: -- Init 0 -- 312204
OpenBCI_GUI: initSystem: Preparing data variables...
OpenBCI_GUI: initSystem: Initializing core data objects
OpenBCI_GUI: initSystem: -- Init 1 -- 312207
OpenBCI_GUI: initSystem: Initializing FFT data objects
OpenBCI_GUI: initSystem: -- Init 2 -- 312214
OpenBCI_GUI: initSystem: Closing ControlPanel...
OpenBCI_GUI: initSystem: Initializing comms with hub....
OpenBCI_GUI: hub : Sent connect to Hub - Id: COM7
OpenBCI_GUI: initSystem: -- Init 3 -- 313215
ChannelController: createChannelSettingButtons: creating channel setting buttons...
comPorts = [COM1, COM3, COM7]
WM: Powering 3 widgets up, and remapping.
WM: Activating widget [0]
WM: Activating widget [1]
WM: Activating widget [2]
OpenBCI_GUI: initSystem: -- Init 4 -- 314679
InitSettings: Saving Default Settings to file!
SoftwareSettings: 3 active widgets saved!
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\CytonUserSettings.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
InitSettings: C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\CytonUserSettings.json not found or other error.
OpenBCI_GUI: initSystem: -- Init 5 -- Load settings error: File not found. 314684
[DEFAULT]: The new data source is LIVE (from Cyton ) and NCHAN = [8]. User Settings Error: Default Settings Loaded.
[DEFAULT]: Attempting to establish a connection with your OpenBCI Board...
openBCI_GUI: haltSystem: Halting system for reconfiguration of settings...
OpenBCI_GUI: stopRunning: stop running...
Closing any open SD file. Writing 'j' to OpenBCI.
Disconnecting serial...
[DEFAULT]: Init timeout. Verify your Serial/COM Port. Power DOWN/UP your OpenBCI Board & Dongle, then retry Initialization.
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
OpenBCI_GUI::Control Panel: Playback history file not found or other error.
Any help is greatly appreciated.
Quick update, I'm almost certain the issue lies with the opening socket failed! error I mentioned above. I tried this on my personal computer to be certain and this seems to be the issue.
I tried killing the process using admin command prompt, but it still doesn't appear to like me:
C:\WINDOWS\system32>netstat -a -n -o | find ":51000"
UDP 127.0.0.1:51000 *:* 17340
C:\WINDOWS\system32>taskkill /F /PID 17340
ERROR: The process with PID 17340 could not be terminated.
Reason: There is no running instance of the task.
Edit: Tried with killing child processes too /T, no dice.
Another update, I was able to kill the process with tskill 17340 and it apparently allowed the hub to properly bind to the port. However, I am still unable to stream data.
Console Log Started at Local Time: 2020-01-12_17-34-37
Screen Resolution: 1920 X 1200
Welcome to the Processing-based OpenBCI GUI!
For more information, please visit: https://openbci.github.io/Documentation/docs/06Software/01-OpenBCISoftware/GUIDocs
Launching application from local data dir
OpenBCI_GUI: hubStart: OS Detected: Windows
COLIN DEBUG
java.lang.ProcessImpl@cf87c7f
24.378
47.634003
51.0
54.468
57.936
61.404
64.872
68.238
71.604004
74.97
78.437996
81.804
85.17
88.536
91.902
95.37
98.736
102.102005
105.57
108.936
112.404
115.77
119.238
122.604004
125.96999
129.336
132.804
136.272
139.63799
143.106
146.574
150.042
153.51
156.978
160.344
163.81201
167.17801
170.646
174.012
177.48
180.84601
184.31401
187.68001
191.04599
194.51399
197.88
201.348
204.816
208.284
211.752
215.22
218.68799
222.156
225.62401
229.092
232.458
235.926
239.394
242.86201
246.228
249.696
253.062
256.53
259.99802
263.466
267.138
270.60602
273.972
277.338
280.806
284.274
287.64
291.108
294.47403
297.94202
301.41
304.87802
308.244
311.61002
315.078
318.444
TopNav: Internet Connection Successful
321.91202
325.38
328.74597
332.21402
335.682
339.15002
342.516
345.882
349.35
352.716
356.082
359.448
362.91602
366.384
369.852
373.32
376.686
380.052
383.418
386.784
390.252
393.822
397.18802
400.554
403.91998
407.286
Local Version: 500, Latest Version: 417
GUI is up to date!
410.65198
414.12
417.58798
420.954
424.32
427.686
431.154
434.62198
437.988
441.456
444.92398
OpenBCI_GUI::Setup: Is RX mulitcast: false
OpenBCI_GUI::Setup: Has RX joined multicast: false
OpenBCI_GUI::Setup: Sample Data exists in Documents folder.
ControlP5 2.2.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
OpenBCI_GUI::Control Panel: Playback history file not found or other error.
OpenBCI_GUI::Setup: Setup is complete!
454.92
Instantiating hub object...
Hub: CheckHubInit: The GUI is connected to the Hub!
sourceList: click!
setInterface: curInterface: -1
channel count set to 8
Setting Latency to 10000
Setting WiFi Internet Protocol to udpBurst
Setting WiFi style to dynamic
[DEFAULT]: Protocol Serial Selected for Cyton
setInterface: curInterface: 0
Setting sample rate for Cyton to 250Hz
sample rate set to: 250
serialList: click!
[DEFAULT]: OpenBCI Port Name = COM7
ControlPanel — port is open: false
Settings: LogFileMaxDuration = 60 minutes
initButtonPressed: Calling initSystem()
=================================================
|| INITIALIZING SYSTEM ||
=================================================
OpenBCI_GUI: initSystem: -- Init 0 -- 19856
OpenBCI_GUI: initSystem: Preparing data variables...
OpenBCI_GUI: initSystem: Initializing core data objects
OpenBCI_GUI: initSystem: -- Init 1 -- 19859
OpenBCI_GUI: initSystem: Initializing FFT data objects
OpenBCI_GUI: initSystem: -- Init 2 -- 19866
OpenBCI_GUI: initSystem: Closing ControlPanel...
OpenBCI_GUI: initSystem: Initializing comms with hub....
OpenBCI_GUI: hub : Sent connect to Hub - Id: COM7
OpenBCI_GUI: initSystem: -- Init 3 -- 20867
ChannelController: createChannelSettingButtons: creating channel setting buttons...
comPorts = [COM1, COM3, COM7]
WM: Powering 3 widgets up, and remapping.
WM: Activating widget [0]
WM: Activating widget [1]
WM: Activating widget [2]
OpenBCI_GUI: initSystem: -- Init 4 -- 22364
InitSettings: Saving Default Settings to file!
SoftwareSettings: 3 active widgets saved!
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\CytonUserSettings.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
InitSettings: C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\CytonUserSettings.json not found or other error.
OpenBCI_GUI: initSystem: -- Init 5 -- Load settings error: File not found. 22370
[DEFAULT]: The new data source is LIVE (from Cyton ) and NCHAN = [8]. User Settings Error: Default Settings Loaded.
[DEFAULT]: Attempting to establish a connection with your OpenBCI Board...
openBCI_GUI: haltSystem: Halting system for reconfiguration of settings...
OpenBCI_GUI: stopRunning: stop running...
Closing any open SD file. Writing 'j' to OpenBCI.
Disconnecting serial...
[DEFAULT]: Init timeout. Verify your Serial/COM Port. Power DOWN/UP your OpenBCI Board & Dongle, then retry Initialization.
The file "C:\Users\zhzbme\Documents\OpenBCI_GUI\Settings\UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
OpenBCI_GUI::Control Panel: Playback history file not found or other error.
Success! Turns out I was using an older version of the OpenBCI Hub! If you have similar issues to mine, ensure you are using OpenBCIHub-v2.1 or newer! :)