Help with an RS-232 to Ethernet converter!

The #1 community for Gun Owners in Indiana

Member Benefits:

  • Fewer Ads!
  • Discuss all aspects of firearm ownership
  • Discuss anti-gun legislation
  • Buy, sell, and trade in the classified section
  • Chat with Local gun shops, ranges, trainers & other businesses
  • Discover free outdoor shooting areas
  • View up to date on firearm-related events
  • Share photos & video with other members
  • ...and so much more!
  • looney2ns

    Master
    Rating - 100%
    1   0   0
    Jan 2, 2011
    2,891
    38
    Evansville, In
    I have a Weather Station that use's an RS232 port to connect to serial port on my computer.

    I wanted to convert the RS232 on the station to Ethernet and purchased this: RS232 / RS485 to Ethernet Modules | USR IOT
    Buddy recommended this particular converter because he had used it for other serial conversions without issue's in the past.

    I have it setup as a TCP server. Can communicate with it fine for setup, either via ethernet or serial.

    My weather station can be communicated with by Hyperterm, this works via Serial no problems.

    I can ping the TCP server fine.

    But when i hook it up to my Weather station, and Ethernet, I can't get a response from the Weather station like I should.

    Here is the pinout on the Weather station.

    https://drive.google.com/file/d/1qWZ2d7qegEZqVjDdl6ORLeVMFc1zrN0aJQ/view?usp=sharing

    Anyone have any clues as to why the weather station will work perfectly with a computer Serial port and not this converter?

    Thanks for any ideas.
     

    Ericpwp

    Grandmaster
    Rating - 100%
    18   0   0
    Jan 14, 2011
    6,753
    48
    NWI
    Your pinout looks different from the RS-232 9 pin pinout on my phone's app.

    db9_pin_name.png


    If your converter is expecting this, that my be your problem. I don't know much about serial connections.
     

    Cameramonkey

    www.thechosen.tv
    Staff member
    Moderator
    Site Supporter
    Rating - 100%
    35   0   0
    May 12, 2013
    32,069
    77
    Camby area
    Your pinout looks different from the RS-232 9 pin pinout on my phone's app.

    db9_pin_name.png


    If your converter is expecting this, that my be your problem. I don't know much about serial connections.

    Transmit pins and receive pins should be inverted on each side. (the cable typically takes care of this)

    have you tried Putty? (its free)
    have you tried putting another device on the other end to see if you can communicate with it?

    You can build a loopback to test if it works. plug in the loopback, make sure local echo is off on your terminal app and connect. Once connected start typing. anything. the characters you type should appear on the screen. if they do, unplug the loopback and type again. The characters should no longer appear on your terminal screen. if you see that behavior you know you have proper connectivity over the wire.

    If you were closer I'd GIVE you a loopback. I have a ton of them.
     
    Last edited:

    JettaKnight

    Я з Україною
    Site Supporter
    Rating - 100%
    6   0   0
    Oct 13, 2010
    26,558
    113
    Fort Wayne
    Off hand, the station shows a full set of RS-232 signals (incl. flow control). Is that required?

    As to the "converter" you bought, everything I need to know is in the very first sentence:
    USR-TCP232-T24 series is used to TCP network packet or UDP packet with the micro-controller/
    RS232/RS485/RS422 interface data transparent transmission equipment.
    :n00b:

    Another gem:
    RS232 bound rate can set up from 300 to 256000;
     

    JettaKnight

    Я з Україною
    Site Supporter
    Rating - 100%
    6   0   0
    Oct 13, 2010
    26,558
    113
    Fort Wayne
    Transmit pins and receive pins should be inverted on each side. (the cable typically takes care of this)
    Not for RS-232.

    Pin 1 always connects to pin 1, pin 2 to pin 2, etc.

    RS-232 is meant to connect from a Terminal (DTE) to a Device (DCE). As such, the "transmit" (DTE to DCE) and "receive" (DEC to DTE) go one way, always.


    Now if you try to connect a DTE to a DTE, then yes to need to swap 2 and 3 of a 9 pin d-sub.
     

    JettaKnight

    Я з Україною
    Site Supporter
    Rating - 100%
    6   0   0
    Oct 13, 2010
    26,558
    113
    Fort Wayne
    BTW, RS-232C was an elaborate Communist plot to undermine the American computer industry. Only sheer American determination has allowed us to push through.


    You young whippersnapper engineers with your USB don't know how good you've got it.
     

    looney2ns

    Master
    Rating - 100%
    1   0   0
    Jan 2, 2011
    2,891
    38
    Evansville, In
    My hypterterm has a TCP/IP Winsock connect option. I assumed Hyper was working, because I can open two instances of it, use one instance to connect via TCP/IP, the 2nd instance to connect via serial port. Characters typed in one instance of Hyper appear in the other instance and vice versa.

    I hadn't tried putty, but I will.

    It is sufficient to only tie pins and 2 & 3 together to test loopback?
     
    Last edited:

    looney2ns

    Master
    Rating - 100%
    1   0   0
    Jan 2, 2011
    2,891
    38
    Evansville, In
    Well it is from China, just like everything else these days. :-)
    Others have used this device with success.
    Not that it could be the device is the problem.

    Off hand, the station shows a full set of RS-232 signals (incl. flow control). Is that required?

    As to the "converter" you bought, everything I need to know is in the very first sentence:

    :n00b:

    Another gem:
     

    looney2ns

    Master
    Rating - 100%
    1   0   0
    Jan 2, 2011
    2,891
    38
    Evansville, In
    Transmit pins and receive pins should be inverted on each side. (the cable typically takes care of this)

    have you tried Putty? (its free)
    have you tried putting another device on the other end to see if you can communicate with it?

    You can build a loopback to test if it works. plug in the loopback, make sure local echo is off on your terminal app and connect. Once connected start typing. anything. the characters you type should appear on the screen. if they do, unplug the loopback and type again. The characters should no longer appear on your terminal screen. if you see that behavior you know you have proper connectivity over the wire.

    If you were closer I'd GIVE you a loopback. I have a ton of them.

    I dont' have anything else with a serial port to test. The loopback test with pins 2&3 tied, using hyperterm via TCP/IP is successfull.
     

    Cameramonkey

    www.thechosen.tv
    Staff member
    Moderator
    Site Supporter
    Rating - 100%
    35   0   0
    May 12, 2013
    32,069
    77
    Camby area
    I dont' have anything else with a serial port to test. The loopback test with pins 2&3 tied, using hyperterm via TCP/IP is successfull.

    Well, we know its good up to the serial port. if the loopback test works. (text with it on and not with it off) Problem narrowed down to the device you are trying to extend.
     

    robbman

    Plinker
    Rating - 0%
    0   0   0
    Jul 9, 2016
    58
    6
    Shelby county
    All the 232 network bridges I have worked with were marked as dce or dte for the port type. You might have to make it a crossover to communicate if the bridge is dte. A beak out box that shows high/low and opens would tell if you have two dce or dte ports connected.
     

    Hop

    Grandmaster
    Site Supporter
    Rating - 100%
    16   0   0
    Jan 21, 2008
    5,089
    83
    Indy
    We use Digi port servers at work. Probably too expensive for a hobbiest. Medical machine data gets sent out a serial port into the Digi. We can test the connections using PuTTY.
     

    Cameramonkey

    www.thechosen.tv
    Staff member
    Moderator
    Site Supporter
    Rating - 100%
    35   0   0
    May 12, 2013
    32,069
    77
    Camby area
    All the 232 network bridges I have worked with were marked as dce or dte for the port type. You might have to make it a crossover to communicate if the bridge is dte. A beak out box that shows high/low and opens would tell if you have two dce or dte ports connected.


    Quick fix could be to switch to a crossover cable?
     

    JettaKnight

    Я з Україною
    Site Supporter
    Rating - 100%
    6   0   0
    Oct 13, 2010
    26,558
    113
    Fort Wayne
    Quick fix could be to switch to a crossover cable?

    I think so.

    My hypterterm has a TCP/IP Winsock connect option. I assumed Hyper was working, because I can open two instances of it, use one instance to connect via TCP/IP, the 2nd instance to connect via serial port. Characters typed in one instance of Hyper appear in the other instance and vice versa.
    So, did you connect via a straight cable and not a null modem cable? If so, then that's the problem. That would mean the bridge is a DCE, not DTE.
     

    looney2ns

    Master
    Rating - 100%
    1   0   0
    Jan 2, 2011
    2,891
    38
    Evansville, In
    Still no worky. I've tried all the above plus others.

    Here are the voltage measurements of each pin on the stations RS232 port.
    Meter negative lead hooked to pin 5 throughout the test.
    Does this tell anyone anything?

    DB9 Pin Volt measurements with meter black lead remaining on Pin 5. With nothing but the meter attached.
    1: 7mv
    2: 5.9mv
    3: 9.53vdc
    4: 9.17vdc
    5: grnd
    6: 2.2mv
    7: Negative 60mv to 299mv, always changing.
    8: Negatvie 24mv to 100mv, always changing.
    9: 2mv
     

    JettaKnight

    Я з Україною
    Site Supporter
    Rating - 100%
    6   0   0
    Oct 13, 2010
    26,558
    113
    Fort Wayne
    Still no worky. I've tried all the above plus others.

    Here are the voltage measurements of each pin on the stations RS232 port.
    Meter negative lead hooked to pin 5 throughout the test.
    Does this tell anyone anything?

    DB9 Pin Volt measurements with meter black lead remaining on Pin 5. With nothing but the meter attached.
    1: 7mv
    2: 5.9mv
    3: 9.53vdc
    4: 9.17vdc
    5: grnd
    6: 2.2mv
    7: Negative 60mv to 299mv, always changing.
    8: Negatvie 24mv to 100mv, always changing.
    9: 2mv

    It tells me that they've got the extra control pins wired up. Which is odd for any modern day system. It also tells me that this is a DTE and wants to connect to a modem, if I'm reading this right. From your readings, only pins 3 and 4 are asserted. These are signals that are to be coming FROM a computer.

    rs232-pinout-db9-dte-db9-dce.gif


    However, I could be wrong. See above. Can we see the rest on the manual for this thing?
     

    Attachments

    • rs232-pinout-db9-dte-db9-dce.gif
      rs232-pinout-db9-dte-db9-dce.gif
      20.9 KB · Views: 1
    Top Bottom