Using two Cyton on a single computer at the same time
Hello, I wanna to use two Cyton on a single computer at the same time and use lsl_stream to receive data from different COM(COM4、COM5). But I meet something wrong with this, details as follow:
I am receiving data from COM5 and meet something wrong when I try to begin to receive other data from COM4
-------INSTANTIATING BOARD-------
Connecting to V3 at port COM4
Traceback (most recent call last):
File "openbci_matlab.py", line 168, in
main()
File "openbci_matlab.py", line 163, in main
lsl = StreamerLSL()
File "openbci_matlab.py", line 37, in init
self.board = bci.OpenBCIBoard(port, daisy=args.d)
File "C:\Users\67544\Desktop\SSVEP\OpenBCI_MATLAB-master\Matlab-Python\open_bci_v3.py", line 75, in init
self.ser = serial.Serial(port= port, baudrate = baud, timeout=timeout)
File "E:\Anaconda3\lib\site-packages\serial\serialwin32.py", line 31, in init
super(Serial, self).init(*args, **kwargs)
File "E:\Anaconda3\lib\site-packages\serial\serialutil.py", line 240, in __init__
self.open()
File "E:\Anaconda3\lib\site-packages\serial\serialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM4': PermissionError(13, '拒绝访问。', None, 5)
How can I resolve the problem? Actually, I have done it that using two Cyton on a single computer at the same time before.
Comments
The last line states "PermissionError". Can you open COM4 when that is the only port you use? (Starting with COM4 instead of COM5.) Does the reverse situation happen if COM5 is the 2nd port opened?
Have you tried running your app as Administrator, which bypasses most file permission issues?
Finally, I assume your two Cytons are on different radio channels.
William
Actually I have tried that your says. Finally I found two Cytons are on the same radioo channels. So it whether to means that I can't use two Cyton one a single computer?
Before running your experiment, you need to put each Cyton/Dongle on a unique radio channel. So that they do not conflict. You need to turn off BOTH of them and unplug BOTH dongles. Then plug in the dongle you want to change, and turn on it's Cyton.
Expand section 5:
https://docs.openbci.com/docs/01GettingStarted/01-Boards/CytonGS#5-optional-settings
Then Change Channel. Put adhesive stickers on both dongles and both Cyton's, indicating which channels they are set to.
Thank you for your help! I would try to do it. Regards.