RS232 with multiple slaves


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187

    Default RS232 with multiple slaves

    Hi

    I want all the slaves to receive the same bytes sent by the master using RS-232 at 2400 baud, no communication from the slaves are needed.
    I know that RS-232 communication are not supposed to be used with multiple slaves but maybe if I use an RS-485/422 driver as in the picture below?
    what do you all think, Is it worth trying or does anyone see any obvious problems with this solution?

    The total cable length is about 500 meters.

    Link to SP485 datasheet http://www.farnell.com/datasheets/71017.pdf

    Name:  Comm.png
Views: 2479
Size:  20.4 KB
    Last edited by Fredrick; - 3rd November 2015 at 23:51.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    Hi Fredrick,
    I don't see any issues with that. After all, differential signaling over long cables is what those chips are intended for, the RS485 standard specifies 1200m.
    You'll need decoupling caps though but I'm sure you know that.

    /Henrik.

  3. #3
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    If you're going to permanently enable the transmitter on your master you can get rid of the pullup/pulldown resistors and just have the termination resistor.

    The pullup/down are there to bias the state of the line when you disable the transmitter so that the lines are seen as an idle state.

  4. #4
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    The optimum cable for RS-485 communication is of course a dedicated RS-485 cable, but I have read that a CAT5e is also working well and are very inexpensive, but how will a 3x0.75 untwisted cable work in my case, and why will it work or not work?

    tumbleweed:
    Yes the transmitter will permanently be enable at the master, Thank you for the information.

    Henrik:
    Yes, If you mean the decoupling caps between VCC and VSS on the transceiver chips.

  5. #5
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    A twisted pair works better as the impedance is more controlled along the wire vs having them in a bundle. Also, it helps with noise immunity as any induced noise signals are fairly equal (or common) in both conductors and are cancelled out by the differential receiver. All of that helps with long distance communications.

    It's probably hard to beat the cost/availability of network cabling these days. While it's not "RS-485", many use it and it works fine.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: RS232 with multiple slaves

    For a test-setup I did I used some cheap 4-wire single strand telephone wire. 4 slaves with 30 metres of cable between each (90m total) it worked fine but it was "only" 90m and in a relatively "quite" office environment. For a real-life setup I'd use twisted pair cable, any old twisted pair cable will most likely work just fine but, like tumbleweed says, CAT5 or whatever is probably hard to beat in price and accessabillity.

    I believe CAT5 cable is has a specified impedence of ~100ohm while for RS485 it ideally should be 120ohm. If you're not running super high bit rates, close to the maximum speed of the tranceivers I don't think it'll matter much.

Similar Threads

  1. Programming multiple pics with multiple programs
    By Luckyborg in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd April 2013, 17:47
  2. I2C: slaves to alien master
    By dhouston in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2011, 12:46
  3. PIC as I2C Master/Slaves
    By Adamey in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th February 2011, 03:38
  4. I2C project - 10 slaves, 1 master
    By mikey11 in forum General
    Replies: 0
    Last Post: - 29th June 2010, 18:20
  5. master HSEROUT to mixed slaves
    By Dennis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 16:44

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts