# Sending string command to DCCpp

**URL:** <https://discourse.processing.org/t/sending-string-command-to-dccpp/4695>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [October 20, 2018, 8:43pm UTC](https://discourse.processing.org/t/sending-string-command-to-dccpp/4695 "2018-10-20T20:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rva1945](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rva1945](https://discourse.processing.org/u/rva1945)\
**Post date:** [October 20, 2018, 8:43pm UTC](https://discourse.processing.org/t/sending-string-command-to-dccpp/4695/1 "2018-10-20T20:43:12Z")

</div>

Hi:

I’m using DCCpp for controlling my trains. Everything works fine but now I want to use a controller that I designed for controlling the turnouts and throttles. Yes I know there is a Processing Controller already working and in fact I tried it.  
Mine has a power button that sends “\<1\>” to the serial (to turn DCC on) port just like the Processing Controller does…but nothing happen. If I use the monitor feature in the Arduino IDE and send \<1\> from the keyboard, it works.

So I guess it has something to do with a carriage return or something.

How do I send the character 13 or 10 (line feed) to the serial port? In the Reference I didn’t find something like chr(13) as in some languages.

Thanks

---

<div class="post-metadata">

**Author:** ![rva1945](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rva1945](https://discourse.processing.org/u/rva1945)\
**Post date:** [October 20, 2018, 8:50pm UTC](https://discourse.processing.org/t/sending-string-command-to-dccpp/4695/2 "2018-10-20T20:50:53Z")

</div>

FIXED.

Added “\r” to the string and it worked!
