# Hello I need connect with TCP client and get data (I have Sick Thickness Sensor , i want to collect data through tcp client (message is \<STX\> MEASURE B \<ETX\> )

**URL:** <https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818>\
**Category:** General\
**Created:** [18 November 2022 10:04 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818 "2022-11-18T10:04:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TANNY786](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tanny786/32/70953_2.png) [@TANNY786](https://discourse.nodered.org/u/TANNY786)\
**Post date:** [18 November 2022 10:04 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/1 "2022-11-18T10:04:15Z")

</div>

Hello.

SICK THICKNESS SENSOR  
(Send Message MEASURE B )

I want to checking TCP client in Herclus software , its comming for ref image

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a616e9860dc3d0cfab2e44eff34549dcc8651a57.png)

1. Node red side i am using TCP client module for ref image setting  

2. Node red side i am getting error Ref img.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68b0001ad47850a643740aa457c37ce3f70701ef.png)

Please Help me any one how to read TCP Client data

[Post Edited by Moderator to make it readable]

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [18 November 2022 13:51 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/2 "2022-11-18T13:51:40Z")

</div>

Hello! Looks like you have inserted your entire post into block quotes, which has killed your image attachments. Please try once more and make sure the preview pane shows your images.

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [18 November 2022 14:57 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/3 "2022-11-18T14:57:34Z")

</div>

Thank you for editing your post. Looks like you have configured your TCP node to look for a port setting to be found in `msg.5010` rather than statically configured for port 5010. Also, doesn't the first image show the sensor refusing your connection attempts?

---

<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:** [18 November 2022 17:29 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/4 "2022-11-18T17:29:20Z")

</div>

What/which is that TCP client node ? Is there any reason why you aren't using the built in core TCP nodes ? Also which way round is this supposed to be - are you connecting to Node-RED or is Node-RED connecting to the device ?

---

<div class="post-metadata">

**Author:** ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Post date:** [21 November 2022 00:15 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/5 "2022-11-21T00:15:22Z")

</div>

Sending/Receiving through Node-RED built in TCP nodes have worked flawlessly for me. We talk to pretty much anything, barcode readers, weighing equipment, other PCs using Node-RED too.

---

<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:** [20 January 2023 00:16 UTC](https://discourse.nodered.org/t/hello-i-need-connect-with-tcp-client-and-get-data-i-have-sick-thickness-sensor-i-want-to-collect-data-through-tcp-client-message-is-stx-measure-b-etx/70818/6 "2023-01-20T00:16:19Z")

</div>

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