# Read data from any rs232 using the usb device

**URL:** <https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552>\
**Category:** Hardware\
**Created:** [12 January 2022 22:33 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552 "2022-01-12T22:33:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [12 January 2022 22:33 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/1 "2022-01-12T22:33:13Z")

</div>

Hi everyone ,  
I am trying to read data from a weigh scale.  
The scale wont show any value i used [VB.net](http://VB.net) and C# with all functions but still confused why ? do i have to configure my scale weight indicator ? if yes help me please .  
also if there is any possibility to connect any electronic device that have rs232 port to usb and read data by node-red .  
BTW i used the red-node-serialport andi configure all details but still not working .  
any suggestion or help would be great thak you guys

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 January 2022 07:55 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/2 "2022-01-13T07:55:22Z")

</div>

> [@iSssou.re](#):
>
> i used [VB.net](http://VB.net) and C# with all functions

Ii don't understand what you mean by that.

Are you getting any data out of the serial port node?

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [13 January 2022 09:06 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/3 "2022-01-13T09:06:25Z")

</div>

Hi thank you for your reply ,  
i used a **RS232 to USB Converter Cable** because my scale indicator has a RS232 port and my pc a usb port .  
after that i determened my COM port number in the device manager after that i did **the Communications Settings Baud Rate** , the **Parity** setting, the number of **Data Bits** , and the number of **Stop Bits** even i do that in the node-red serial port setting or [vb.net](http://vb.net) or C# dont get any type of data and nothing appears , except Arduino or Raspberry i dont have any problems by getting data from them even i used **[vb.net](http://vb.net) or C#** but with another serial port electronic device like a scale weight indicator still have no solution for it so i want a solution using **node-red** thank you so much

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [13 January 2022 09:24 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/4 "2022-01-13T09:24:38Z")

</div>

Hi @iSssou.re,

This is still a little fuzzy.

> node-red serial port setting or [vb.net](http://vb.net) or C# dont get any type of data and nothing appears

Are you saying that this USB serial adapter is not working in Node-Red, as well as [vb.NET](http://vb.NET) and c# applications?

If so - maybe it's the adapter that is at fault? But we can find out.

But then

> i dont have any problems by getting data from them even i used **[vb.net](http://vb.net) or C#**

So,  
Are you saying it is working in other applications apart from Node-Red?

---

<div class="post-metadata">

**Author:** ![Vonksmurf](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@Vonksmurf](https://discourse.nodered.org/u/Vonksmurf)\
**Post date:** [13 January 2022 17:52 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/5 "2022-01-13T17:52:47Z")

</div>

Hi ismail.re

Have you tried crossing the rx and tx with for example and gender change.  
It often happens with rs232 that manufacturers swap rx tx then you don't see any data.  
You can also measure it with a multimeter pin 2 to pin 5(GND) and pin 3 to pin 5.  
With usb rs232 converter both should be +/- 3.5 - 4 volts. isn't this the case cross rx and tx

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [13 January 2022 19:11 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/6 "2022-01-13T19:11:25Z")

</div>

Ofcourse my serial usb adapter is working it shows the port COM number but it shows any kind of data acquisition  
and about saying dont have no problem i mean that to get data using [vb.net](http://vb.net) or c# or node-red with atduino ofcours they all working with this device and easy to get them and showing them but other devices can not still confuse about how to do it  
and while i connect my digital scale indicator do i have to add a function in node-red to receive data or just adding the serial port node like that and waiting data to show up ?

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [13 January 2022 19:13 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/7 "2022-01-13T19:13:21Z")

</div>

hi @Vonksmurf  
i will try this solution and hope i can get any output voltage.  
thank you

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [14 January 2022 10:31 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/8 "2022-01-14T10:31:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/ac1e7edd64e065bca227677bdfae013fe2b0e29a.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e76585d2ac2f9ad4f6cba2343db96490814db843.png)  
do i have to do a function or Something to fix this ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 January 2022 11:19 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/9 "2022-01-14T11:19:48Z")

</div>

First you have to feed it into a debug node to see what you have.

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [14 January 2022 12:58 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/10 "2022-01-14T12:58:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0485198a438bb59727890a59e3340b5fe058f9b.png)  
the result i get from debug

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 January 2022 13:48 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/11 "2022-01-14T13:48:05Z")

</div>

Is that repeating continually at rapid rate? If so then there is an issue with the hardware or wiring.

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [14 January 2022 13:58 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/12 "2022-01-14T13:58:22Z")

</div>

yes repeating continually

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 January 2022 14:02 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/13 "2022-01-14T14:02:54Z")

</div>

Well there is a problem with the hardware or the wiring then.

---

<div class="post-metadata">

**Author:** ![iSssou.re](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@iSssou.re](https://discourse.nodered.org/u/iSssou.re)\
**Post date:** [14 January 2022 14:11 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/14 "2022-01-14T14:11:45Z")

</div>

idont think so because im usin this cable  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5af294e87c53b627aa923a41a3eea21474c1972.png)  
and this is my indicator

> **[diy.pdf](https://wagielektroniczne.com.pl/assets/wagielektroniczne/pdf/instruction/diy.pdf)**
>
> 812.56 KB

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 January 2022 14:20 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/15 "2022-01-14T14:20:54Z")

</div>

Or a problem with settings (baud/stop bits/parity etc)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 January 2022 14:22 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/16 "2022-01-14T14:22:37Z")

</div>

Change the serial node to output a buffer - might make more sense.

What does the manual for the scale say about the data and comm settings?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 January 2022 14:25 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/17 "2022-01-14T14:25:18Z")

</div>

Also, if you unplug the cable, does the debug stop?

---

<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:** [15 March 2022 14:26 UTC](https://discourse.nodered.org/t/read-data-from-any-rs232-using-the-usb-device/56552/18 "2022-03-15T14:26:02Z")

</div>

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