Skip to content

Termination character - might be '\r' #2

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

Open
benjaminaigner opened this issue Mar 21, 2017 · 1 comment
Open

Termination character - might be '\r' #2

benjaminaigner opened this issue Mar 21, 2017 · 1 comment
Assignees

Comments

@benjaminaigner
Copy link

On some setups (e.g. Debian + Minicom),
commands are not recognized at all.

Changing the variable "term" to '\r' fixes this issue.

@cversek
Copy link
Member

cversek commented Mar 21, 2017

Unfortunately, termination characters are platform specific. I usually use Linux where the line termination norm is '\n', on OS X I believe it is '\r', on Windows it's '\r\n', and many serial terminal programs also use '\r\n' by default. Feel free to change this line to suit your preference or change what the serial terminal program sends. I generally use pyserial on linux to send commands and I always have to explicitly send '\n'.

I'll leave this issue open, since it would be nice to have a way to configure the line termination without editing the library code.

@cversek cversek self-assigned this Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants