Shop OBEX P1 Docs P2 Docs Learn Events
Long Range transmission — Parallax Forums

Long Range transmission

ChupaChupa Posts: 4
edited 2006-08-23 15:58 in BASIC Stamp
I’m interested in communicating between stamps over a long distance. Say 100 meters or so. Would it be ok to use the built in serial transmission to accomplish this? Or would I need to come up with something fancier to transmit over this distance? I would most likely be using cat5e cable. Any thoughts?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-21 20:43
    100 meters == 300 feet (more or less). You'll need a MAX232 chip on each end, should work at 9600 baud. And yes, you'd use the SERIN/SEROUT commands.

    An alternative is to use RS423 chips (sorry, don't have any numbers) which should be good to 4,000 feet (1300 meters).
  • ChupaChupa Posts: 4
    edited 2006-08-21 20:54
    ok, great! thanks for the quick reply!
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-08-21 21:30
    Allan et al -

    I suspect the reference should have been to RS-422 not RS-423.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-21 21:34
    RS-232 would be Single-Ended and RS-485 would be differential...I think at that distance RS-485 sounds like a better bet.· RS-423 is, as a side-note, also Single-Ended.· And while RS-422 & RS-485 have mostly the same specifications, RS-422 runs at lower voltages.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2006-08-21 22:08
    There was a recent thread about RS485:
    http://forums.parallax.com/showthread.php?p=595191

    RS485 is half duplex differential on one pair of wires and RS422 is full duplex differential on two pairs of wires. Both operate from a single 5 volt supply without a voltage multiplier or +/- power supply, which makes RS485 or RS422 chips simpler as well as more capable for distance and speed. Fault protection is a desireable feature no matter what protocol you select.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-21 22:40
    Tracy,

    ·· Please feel free to correct me if I'm wrong...It has been awhile.· I thought RS-422 was a single-driver, multi-receiver network, whereas RS-485 is multi-driver, multi-receiver?· I guess I always thought the RS-485 was the better differential scheme, but if I am incorrect I need to do a little more homework, because I need to update and old project using it.· That project used half-dulplex communication, but with the Propeller may in fact become a full duplex scheme.· Oh, it's been too long...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2006-08-22 01:40
    Hi Chris, Sorry for the confusion. You are right about those aspects of RS-422 and RS485. That should not be a contradiction with what I said.

    In RS485, the driver is capable of going into a tri-state mode, so the same pair of wires can both transmit and receive, which makes it most suitable for a multdrop system with both multiple drivers and receivers. A simple RS485 system operates with one driver and one receiver operating in turn over a single pair of wires, i.e. half duplex. The RS422 setup would requrie two pairs of wires, with one pair dedicated to each direction, but both directions could be talking at the same time, i.e. full duplex.

    There are other details of the specifications, such as the impedance levels and common mode mode voltages allowed and the number of receivers. RS485 receivers are supposed to have higher input resistances and therefore the system can have a larger fanout.

    A lot of modern driver chips are advertised as good for either RS485 and RS422, because they include the tristate enable for the driver, which is the essential difference. For RS485 you use it, but for RS422 you leave it enabled all the time and treat driver and receiver sections of the chip separately. As receivers they have quite high input resistances and leave it up to you to add an impedance matching line termination if and where necessary.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com

    Post Edited (Tracy Allen) : 8/22/2006 1:49:14 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-22 02:42
    Tracy,

    ·· Thanks for elaborating...I used an RS-485 system in one application (Alarm System) which had remote panels.· These required both isolation and distance.· I figured as long as we were on the subject I would make sure my memories were right.· I guess I will stick to RS-485 for simplicity and since I've used it at least once before.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-22 13:14
    Yup, sorry, I mis-spoke earlier. RS-485 is definitely the superior technology. Now, anybody have any recommendations for RS-485 Drivers/Recievers/Transcievers?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-22 15:17
    Allan,

    ···We built the network part of·a security·system (with help from·some colleagues) back in 1997 (even though the main system had been ready since 1994)...I almost think we used chips from Maxim, but that may be just because there is so much talk about them.· I know at the time I was using at least 1 Maxim part consistently (MAX232) and several Dallas chips in various designs.· Of course, that system (if still in operation) is in NY so I have no way to go back to it and see what we did.· But check the Maxim website as they have RS-485 ICs.· I will be doing this myself to upgrade another system to have network (remote station) capability.· I will, of course, be testing the system in my own place with cables strewn all over.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-08-22 15:55
    The RS-422 and RS-485 drivers are an industry staple. Many manufactures have them is a variety of options: separate recievers and tranmitters in multiple sets, single tranciever pairs, and much more. Try the SN75176 or Maxim's series.

    I suspect you should consider the Isolation features if you really want to 100 meters. Dr. Tracy Allen was discussing this in another thread and apparently there can be huge differences in ground at separate locations. Also, long wires may invite a lighning strike to enter your locations. There is one $10 chip that includes an isolaton transformer and it seems far superior for that purpose.

    If isolation is not a consideration, it is mostly about how many lines? If you want to mimic RS-232 with handshaking in RS-422, you will require two TX and two RX. This is not a bad choice as Local Area Network cable provides 4 twisted pairs with modular wiring connectors. Being able to plug and unplug really adds to convience.· You would only be using two twisted pairs, so the others could be grounded or provide the remote site with DC.· You might even get away with using 4 wire telephone line at slow speeds [noparse][[/noparse]the twisted pair may bean ideal, but not absolutely needed]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 8/22/2006 4:00:06 PM GMT
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2006-08-22 15:58
    The chip I've used recently is the LT1785 from Linear Tech. The old standby is the SN75176. A lot of the development from the chip makers has gone into fault tolerance.
    In this recent thread,
    http://forums.parallax.com/showthread.php?p=595191
    there was discussion of the MAX1490, which is an isolated (1600 volt!) RS485 tranceiver hybrid.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-08-23 15:58
    One problem with 'transciever chips' is that they often provide only half-duplex.
    They only use one twisted pair, but you have to tell the chip that it should be in transmit or recieve mode.
    Generally, you have to provide a Master / Slave relationship to know when a transmit or recieve is okay.

    Full-duplex is much nicer, but twice the wire and all the transmitters and receivers remain constantly available.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.