View previous topic :: View next topic |
Author |
Message |
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Multiple device connected by RS232 |
Posted: Mon Oct 08, 2012 12:42 pm |
|
|
Hi!
I want to ask, is it possible to be established communication between several
controllers via RS232. If so, how the transmiter address (point) the data to certain controller? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 08, 2012 12:44 pm |
|
|
Google for this:
Quote: | RS485 network CCS compiler |
or this:
Quote: | RS485 network Microchip PIC |
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Mon Oct 08, 2012 12:47 pm |
|
|
While it is possible to setup a network using RS-232(mine's been online for about 32 years...), nowadays as Ttelmah points out RS-485 is the current choice to use.
hth
jay |
|
|
John P
Joined: 17 Sep 2003 Posts: 331
|
|
Posted: Mon Oct 08, 2012 3:24 pm |
|
|
I'm not sure whether the lack of clarity here is a result of your language or if there are basic things you don't know.
You can't have more than one RS-232 transmitter on a single line (though you can have multiple receivers). But often people say "RS-232" when they mean "serial port" or "UART" and maybe you're doing that.
How far apart are your "several controllers", what is the environment like and what is the data rate? You might or might not need RS-485. |
|
|
n-squared
Joined: 03 Oct 2006 Posts: 99
|
|
Posted: Wed Oct 10, 2012 10:00 am |
|
|
I have implemented small networks using RS232 over the years.
What you do is connect TX of controller #1 to RX of controller #2, TX of #2 to RX of #3 .. TX of #n to RX of #1, so you have a ring topology.
Of course you have to echo a received message so the other controllers will also "see" it, and you have to make sure to stop transmission when the originally transmitting controller gets its own echo.
Do this if you have no other choice in the matter.
A better course of action is to use RS485, like the pros suggested.
BR
NN _________________ Every solution has a problem. |
|
|
|