# Driver TCP - ETX CharacterBased

**URL:** <https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985>\
**Category:** Ignition\
**Created:** [July 28, 2016, 9:08am UTC](https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985 "2016-07-28T09:08:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [July 28, 2016, 9:08am UTC](https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985/1 "2016-07-28T09:08:56Z")

</div>

Hello,

I have connected Ignition with a devices by using the TCP driver. The message delimiter type is “CharacterBased” and the character si ETX (End Of Text - 0x03).

Which is the right way to write this character in ignition gateway? (Normally I use carriage return, \r, or new line feed, \n.

Regards

---

<div class="post-metadata">

**Author:** ![Brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Brian](https://forum.inductiveautomation.com/u/Brian)\
**Post date:** [July 28, 2016, 4:18pm UTC](https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985/2 "2016-07-28T16:18:25Z")

</div>

Well, I’m not using the TCP driver, but I’m working on a similar problem using the serial driver and scripting. Try using this:

```auto
chr(0x03)
```

It worked for me.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 28, 2016, 4:35pm UTC](https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985/3 "2016-07-28T16:35:39Z")

</div>

You should be able to use unicode escape sequences in the config: \u0003

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [July 29, 2016, 9:14am UTC](https://forum.inductiveautomation.com/t/driver-tcp-etx-characterbased/11985/4 "2016-07-29T09:14:40Z")

</div>

Using the code \u0003 and setting “Message Delimiter type” to PackedBased is running.

Thanks!
