Shop OBEX P1 Docs P2 Docs Learn Events
Your longest serial cable connection — Parallax Forums

Your longest serial cable connection

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2013-07-31 01:32 in General Discussion
Okay, I finally finished my DIY setup that allows me to program a Propeller by wire at a distance. It starts with an RS232 interface at the PC and switches to RS422
50 meters of CAT5 cable _____________ RS422 to ttl at the Propeller.

It works quite well for 50 meters, but the RS422 literature claims 4000 feet is quite possible at 115,200 baud. If you take a few RS422 trancievers and build a repeater station for less than $5USD, you might double that distance. More repeaters, and more distance.

What is the longest serial cable you have ever done? For me, the 50 meters is more than enough; so is the 115,200 baud --- but much more is possible.
And what did you find it useful for?

Comments

  • Heater.Heater. Posts: 21,230
    edited 2013-07-29 11:55
    I think it was either 2 or 4 kilometers over bog standard telephone grade twisted pair at 768K Baud. Of course we were not using RS232 or RS422 chips but a DSL chipset from Infineon. Since then they have upgraded that to 2M Baud.

    Funny story: The hardware guys decided they had to test their creation. So they rented a drum of a kilometer or so of telephone cable. You know, cable as thick as your wrist with 20 or 40 or whatever twisted pairs in it. Loop those back a few times and you can easily test your range limits. Their lab was one floor up in the building so they wheeled that huge drum into the lift to get it up there. For months after that the lift stopped short of each floor by one foot as they had seriously overloaded and stretched the lift cable.

    Oh you mean from the Prop? About a meter:)
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-07-29 14:00
    @Heater,

    Had a gentleman call our tech shop a while back to ask how much faster a 50' serial cable would be over a 100' serial cable. The reply was "50' faster". The caller thanked us and hung up.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-29 14:06
    If you go from USB to ttl to RS422 at the computer end, 3Mbps may be quite feasible at 4000 feet. I guess 200 feet of 20 twisted pairs would allow me to fully bench test one twist pair... but I really would like all three together -- full-duplex and the Reset.

    I have only located one USB to ttl breakout device that might do it. Sparkfun has one for $20 USD and it would require to use 3.3 ttl to RS422 chips or you have to hack the device to interface and provide power to +5V ttl.

    I initally had a serious crosstalk problem with my simple DIY wiring of a MAX232 to sn75179 chips. Keep your Rx away from your Tx and Not parallel.

    Do lift cables really stretch? I wonder as I always considered that the floor stop sensor was pulled out of alignment by an overload... maybe as a telltale warning to prevent repeated overloads.
  • CuriousOneCuriousOne Posts: 931
    edited 2013-07-29 14:09
    basic stamp>rs-422>900 meters of CAT5E UTP cable>rs-422>another basic stamp.

    Direct connection: PIC16F870>20 meters CAT5E UTP cable>PIC16F628A.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-29 14:13
    BasicStamp to BasicStamp at 900 meters! Very impressive. Was thay for programing?

    I've always felt that MAX232 and RS232 are a waste of time. Computer should have and RS422 full-duplex port.

    I am actually using 3 twisted pairs to program the Propeller.
  • northcovenorthcove Posts: 49
    edited 2013-07-29 14:39
    I have only located one USB to ttl breakout device that might do it. Sparkfun has one for $20 USD and it would require to use 3.3 ttl to RS422 chips or you have to hack the device to interface and provide power to +5V ttl.

    Try these USB-422 adapters from FTDI. I use them everywhere. The PCB w/o cable version is really handy because it has pads to solder your own cable onto and access the +5VDC.

    http://www.ftdichip.com/Products/Cables/USBRS422.htm
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-29 14:49
    Those FTDI USB-422 adapters with DO IT ALL... WOW. I thought they only had Rx and Tx.

    I built a 6-wire setup that has the Reset that is need to program the Propeller from afar.... not just Rx and Tx. (Maybe Parallax will consider producing these long-distance programers).

    One still has to build a special device at the Propeller end to provide the open-collector for Reset.
  • SRLMSRLM Posts: 5,045
    edited 2013-07-29 15:30
    @Heater,

    Had a gentleman call our tech shop a while back to ask how much faster a 50' serial cable would be over a 100' serial cable. The reply was "50' faster". The caller thanked us and hung up.

    As it turns out, light travels about 1 foot in 1 nanosecond (in free space). So, you could have said 50 nanoseconds! The savings really add up.
  • kwinnkwinn Posts: 8,697
    edited 2013-07-29 17:23
    SRLM wrote: »
    As it turns out, light travels about 1 foot in 1 nanosecond (in free space). So, you could have said 50 nanoseconds! The savings really add up.

    Electrical signals in conductors are a bit slower so probably closer to 70 - 80 nanoseconds.
  • CuriousOneCuriousOne Posts: 931
    edited 2013-07-30 11:39
    No, that connection was just for fun.

    I had a roll of 1000ft (305 meters) of CAT5E cable lying next to my table, where two stamp boards were testing RS-422 connection. So I was curious, whenever it will work over such long cable. Used one pair - it worked, connected with another pair in series - works, connected with 3rd pair in series - hey, works again! I was not able to test 1200 meters (4nd pair) because this cable was missing it! this was factory run error leftower, so I bought it for very low price, don't remember exactly, around $15 I think.
  • pacmanpacman Posts: 327
    edited 2013-07-30 16:24
    One site (a LONG) time ago we had RS232 running over 'standard' phone cable for about 2.3kms.

    I think it was something like 300 baud (might have been even slower)...
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-31 01:32
    There are stories of RS232 making very long runs if the baud rate is slowed down enough. You can even get down to 75 baud, if you must. But there are also a lot of observation that fluorescent light ballast seem to interfere, and motors with stops and starts -- like a/c and refrigerators.

    With the RS422, you don't have to slow down as much and all that electrical interference is nearly eliminated. I just wonder about lightning strikes with all that wire being put out and about.
Sign In or Register to comment.