RS232 cable length

Discussion in 'C-Bus Wired Hardware' started by brodsky, Mar 26, 2008.

  1. brodsky

    brodsky

    Joined:
    Mar 10, 2005
    Messages:
    138
    Likes Received:
    0
    Hi,

    Can anyone tell me what the cable length of the new RS232 cable for the B&W touch screen is?:confused:

    From what I know the max. length for RS232 is about 10 meters, but is that true?

    Problem: We have a site where we need to control some equipment via RS232 and I want to use the new touch screen's serial port for that, rather than a PCI/PAC, but is in an auditorium and the distance is exceeds 10 meters.

    Suggestions?:rolleyes:

    Thanks
    Brodsky
     
    brodsky, Mar 26, 2008
    #1
  2. brodsky

    Darpa

    Joined:
    Apr 30, 2006
    Messages:
    426
    Likes Received:
    0
    Location:
    Australia
    There are several different technologies that allow you to extend RS232 comms over vast distances, all depending on which technology you choose (and also how much you're willing to spend :rolleyes: ).

    There is simple RS232 to Cat5e and back again adaptors, which can extend the range up to around 100m safely.

    There is dedicated RS232 extenders, and RS232 to RS485 (and back again) units that allow range to be extended into the hundreds of meters safely.

    And then there is the serial to fibre-optic ones, which can generally extend the range into the range of tens of kilometres/miles, depending on the quality of the equipment.


    I'd suggest the middle option, either using simple RS232 extenders over a good quality shielded cable, or use RS232 to RS485 adaptors, and run RS485 over the long distances.
    Using these devices, you wont have very high comms speeds, but you should be able to achieve 9600 no problem, which should be more than enough for simple RS232 controls.
    Also, do you need two-way comms? or is one way enough for your needs? Ie; are you simply sending commands to a device? (One way), or do you need the device to also feed back information about itself and it's state? (two way). One way comms can be extended much further much more easily, as well as being able to do so at a cheaper cost.

    Let me know what technology you're interested in, and how much you can afford to spend, and I'll see what info and brochures I can find for you.

    I'd also recommend keeping any cables from the units to the adaptors/extenders as short as possible, around 1 metre would be fine, as this will ensure more reliable comms.

    Cheers,
    Darpa
     
    Last edited by a moderator: Mar 26, 2008
    Darpa, Mar 26, 2008
    #2
  3. brodsky

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    I run RS232 over cat5 at home using DB25-rj45 adapters (no extenders or special converters). I cover cable distances of approx 25m+ with no issues. The connection speed is about 19200.

    You should be able to go anywhere within a house on cat5 with no problems as long as the speed is not getting up very high.

    Mick
     
    znelbok, Mar 26, 2008
    #3
  4. brodsky

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    Couple of comments:

    First - the speed and cable type on an RS-232 link determine the distance you can use. IN GENERAL, running 9600 bps or 19200 bps you will probably achieve about 20m. The full standard (EIA-232C) is available only (as far as I know) as a paid-for standard so getting a copy for reference is a bit painful.

    Secondly - you can run much higher speeds over RS-422. There is a lot of reference make to RS-485, often you need to be careful because RS-485 is NOT the same as RS-422. RS-422 is for balance point-point links - and an RS-232 to RS-422 converter can be used at each end. These are readily available and fairly cheap. On the other hand, RS-485 uses the RS-422 signalling voltages, but RS-485 is a MULTI-DROP system, and needs proper software to achieve anything useful. The classic use in the bad old days for RS-485 was airline ticketing terminals - one cable run, drop lots of terminals or ticket printers on (each with its own device address), and some big magical lump of software somewhere found them and sent stuff to the right one.

    Moral of the story:
    - RS-232 if used for low speed data should be Ok for moderate distances, 20m probably ok, and can probably push that a bit but it will depend on luck and cable type

    - RS-422 for longer distances

    - RS-485 is often confused for RS-422, converters to RS-485 might be OK but check very very very carefully.
     
    ashleigh, Mar 26, 2008
    #4
  5. brodsky

    froop

    Joined:
    Dec 23, 2007
    Messages:
    124
    Likes Received:
    0
    Location:
    Melbourne, Australia
    There are a lot of variables that will affect your maximum distance, including:

    • Device voltage levels. (The spec calls for voltages of +/-5V to +/-15V)
    • Baud rate
    • Cable resistance
    • Cable capacitance
    • Interference

    Using a device that uses 5V signal levels at 115kbps over a 20m run of cat3 will likely be unstable at best.

    Using two devices with 15V signal levels at 9600kbps over cat5e may well get you as much as 50m.

    Certainly the best option if you want a high speed serial over a long distance is to use rs232-rs422 converters as Ashleigh suggested, or possibly also rs232 over TCP/IP.

    I've used Quatech remote serial device servers. Little black box with two RS232 DB9 and one TCP/IP RJ45. Load a device driver on my Windows box, and presto COM3 and COM4 are available over the network. Wireless versions also available.
     
    froop, Mar 27, 2008
    #5
  6. brodsky

    brodsky

    Joined:
    Mar 10, 2005
    Messages:
    138
    Likes Received:
    0
    Thanks for all the info guys.
    I'll try it out and let you know what the outcome is.


    Regards,
    Brodsky
     
    brodsky, Apr 4, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.