Skip to content
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

write function seems to have some bug! #22

Closed
mouryarahul opened this issue Apr 27, 2018 · 0 comments
Closed

write function seems to have some bug! #22

mouryarahul opened this issue Apr 27, 2018 · 0 comments

Comments

@mouryarahul
Copy link

Hi,

All the other functions in the package work fine except the the write function. I'm trying:

using SerialPorts
s = SerialPort("/dev/ttyUSB0", 9600)
write(s, Vector{UInt8}("Hello\n"))

But I get:

510
bytes sent!

At the other end, I receive 510 bytes with all of them '\0'.

However, if I directly do the same in Python environment, I receive correctly all the bytes.

I'm using :

versioninfo()
Julia Version 0.6.1
Commit 0d7248e (2017-10-24 22:15 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-7820HK CPU @ 2.90GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT NO_AFFINITY HASWELL)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

sjkelly added a commit that referenced this issue Oct 9, 2018
@sjkelly sjkelly mentioned this issue Oct 9, 2018
sjkelly added a commit that referenced this issue Oct 12, 2018
sjkelly added a commit that referenced this issue Oct 12, 2018
@sjkelly sjkelly closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants