New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble in the serial connection #24

Closed
Nikre93 opened this Issue May 4, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@Nikre93

Nikre93 commented May 4, 2016

Hi,
this is the error in my terminal. I don't understand what has gone wrong, someone can help me?

No handlers could be found for logger "yapsy"
USER.py
user.py: open_bci_v3...

------------SETTINGS-------------
('Notch filtering:', True)
user.py: Logging Disabled.

-------INSTANTIATING BOARD-------
Connecting to V3 at port /dev/ttyUSB0
Serial established...
Traceback (most recent call last):
File "user.py", line 98, in
log=args.log)
File "/home/pi/Desktop/OpenBCI_Python-master/open_bci_v3.py", line 88, in init
self.print_incoming_text()
File "/home/pi/Desktop/OpenBCI_Python-master/open_bci_v3.py", line 319, in print_incoming_text
c = self.ser.read().decode('utf-8')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

@teonbrooks

This comment has been minimized.

Show comment
Hide comment
@teonbrooks

teonbrooks May 5, 2016

Contributor

hey @Nikre93, what command did you try using with it? also what would you like to do with the data?

also, there's a forum that may be useful http://openbci.com/index.php/forum/

Contributor

teonbrooks commented May 5, 2016

hey @Nikre93, what command did you try using with it? also what would you like to do with the data?

also, there's a forum that may be useful http://openbci.com/index.php/forum/

@Nikre93

This comment has been minimized.

Show comment
Hide comment
@Nikre93

Nikre93 May 5, 2016

hi... i used the command python user.py -p /dev/ttyUSB0...

I would like to light up a led with a simple EMG...

Nikre93 commented May 5, 2016

hi... i used the command python user.py -p /dev/ttyUSB0...

I would like to light up a led with a simple EMG...

@teonbrooks

This comment has been minimized.

Show comment
Hide comment
@teonbrooks

teonbrooks May 5, 2016

Contributor

It looks like your syntax is correct for the python call. maybe @rceballos98 might have some ideas

if you know javascript, the OpenBCI-js-sdk may be the best solution. It has everything you need to get started and an active development team in case you have questions.

Contributor

teonbrooks commented May 5, 2016

It looks like your syntax is correct for the python call. maybe @rceballos98 might have some ideas

if you know javascript, the OpenBCI-js-sdk may be the best solution. It has everything you need to get started and an active development team in case you have questions.

@i3games

This comment has been minimized.

Show comment
Hide comment
@i3games

i3games Jun 25, 2016

It is a python Unicode decoding error. A quick workaround is to replace all occurences

c = self.ser.read().decode('utf-8')
to
c = board.ser.read().decode('utf-8', errors='replace') # TODO

https://docs.python.org/2.7/howto/unicode.html#

i3games commented Jun 25, 2016

It is a python Unicode decoding error. A quick workaround is to replace all occurences

c = self.ser.read().decode('utf-8')
to
c = board.ser.read().decode('utf-8', errors='replace') # TODO

https://docs.python.org/2.7/howto/unicode.html#

@jfrey-xx jfrey-xx closed this in 8955dc4 Feb 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment