# Write and read to Serial port at the same time

**URL:** <https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [May 9, 2019, 8:19am UTC](https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056 "2019-05-09T08:19:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [May 9, 2019, 10:05am UTC](https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056/7 "2019-05-09T10:05:53Z")

</div>

if you work with arduino i not think your emulation with virtual ports is needed.

you make a arduino code what ECHO the received string.

-a- and that you can test in the arduino IDE Monitor: type some text, press enter and arduino should send it back. after that test  
-b- try same from processing with a  
[https://processing.org/reference/libraries/serial/serialEvent\_.html](https://processing.org/reference/libraries/serial/serialEvent_.html)

---

_[View the full topic](https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056)._
