# Cannot read Tim551 Laser data from node red tcp in node

**URL:** <https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355>\
**Category:** General\
**Created:** [28 February 2020 07:29 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355 "2020-02-28T07:29:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [28 February 2020 07:29 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/1 "2020-02-28T07:29:50Z")

</div>

Cannot read Tim551 Laser data from node red **tcp in node**. Flow is shown below. any help would be really appreciated!

 ![nndoe](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/73045dd6f30ec04d23a5253b2720b69dfb809829.jpeg)

send command in function node: msg.payload = "\02"+"sRN LMDscandata"+"\03";

But nothing receives.

---

<div class="post-metadata">

**Author:** ![homeplayer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/homeplayer/32/12388_2.png) [@homeplayer](https://discourse.nodered.org/u/homeplayer)\
**Post date:** [28 February 2020 07:35 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/2 "2020-02-28T07:35:45Z")

</div>

The red triangle on the function node tell's you there is a programming error

---

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [28 February 2020 07:39 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/3 "2020-02-28T07:39:01Z")

</div>

@homeplayer is there any syntax error here? that triangle because of this \02 and \03 right? ![nndoe](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/f/ef4118ff866c194b60a3e063b69b0661eb49f809.jpeg)

thanks for the reply. but I have noticed that correct command goes to the sensor and it sending data stream. but my tcp in node cannot receive it.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [28 February 2020 07:59 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/4 "2020-02-28T07:59:21Z")

</div>

Use double backslashes like "\\02"

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [28 February 2020 08:05 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/5 "2020-02-28T08:05:13Z")

</div>

As you are sending a command and waiting for a reply, maybe use the tcp-request node instead

---

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [28 February 2020 08:15 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/6 "2020-02-28T08:15:44Z")

</div>

@dceejay yeah it worked. thanks a lot. here is the flow for those who wanna learn..

thanks a lot everyone!

 ![nndoe](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e42aa5b85559f45ddd4875bd8b5f23de294501cf.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 March 2020 08:15 UTC](https://discourse.nodered.org/t/cannot-read-tim551-laser-data-from-node-red-tcp-in-node/22355/7 "2020-03-13T08:15:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
