# TCP/IP driver Message delimiter type

**URL:** <https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154>\
**Category:** Ignition\
**Created:** [April 4, 2013, 10:17am UTC](https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154 "2013-04-04T10:17:15Z")\
**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:** [April 4, 2013, 10:17am UTC](https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154/1 "2013-04-04T10:17:15Z")

</div>

Hi,

I am using the TCP driver . It works fine with a barcode scan.

Now I send it intructions to the BCS and it answer me. The problem is when the BCS answer me with more than one packet because the “message delimiter type” is “Packet Based” and always have the last packet BCS has sent to me.

any idea?

thanks!

---

<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:** [April 4, 2013, 11:12am UTC](https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154/2 "2013-04-04T11:12:25Z")

</div>

Ok,

I have seen I have to configure the “message delimiter type” as “character based”. But know the problem is the final character of the message is [CR] (carriage return).

This character is 13 in ASCII code.

I have written in the field delimiter message the following: chr(13), CR, [CR], “CR”, “[CR]”.

Thanks

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 9, 2013, 10:52pm UTC](https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154/3 "2013-04-09T22:52:11Z")

</div>

Try using a \r as the delimiter. That is the how the carriage return is represented in Java.

\t is tab  
\b is backspace  
\n is newline  
\r is carriage return  
\f is form feed

---

<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:** [April 17, 2013, 1:35pm UTC](https://forum.inductiveautomation.com/t/tcp-ip-driver-message-delimiter-type/6154/4 "2013-04-17T13:35:23Z")

</div>

Thanks Dave,

with \r is OK.
