# Using serial ports

**URL:** https://discourse.julialang.org/t/using-serial-ports/81604
**Category:** Performance
**Created:** [May 24, 2022, 5:09pm UTC](https://discourse.julialang.org/t/using-serial-ports/81604 "2022-05-24T17:09:04Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [May 24, 2022, 5:59pm UTC](https://discourse.julialang.org/t/using-serial-ports/81604/4 "2022-05-24T17:59:22Z")

</div>

I have seen this behavior before as well, LibSerialPort seemed to occasionally drop specific bit patterns. I had the same problem creating an example, I’m still not sure what is wrong with it.

Julia’s IO system has odd [buffering](https://discourse.julialang.org/t/read-write-on-serial-port-mixes-input-and-output/55486) that makes it tricky to use for serial ports.

I ended up using `ccall` to call open, ioctl, and read directly as needed.

---

_[View the full topic](https://discourse.julialang.org/t/using-serial-ports/81604)._
