CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Multiple device connected by RS232

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

Multiple device connected by RS232
PostPosted: Mon Oct 08, 2012 12:42 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 08, 2012 12:44 pm     Reply with quote

Google for this:
Quote:
RS485 network CCS compiler

or this:
Quote:
RS485 network Microchip PIC
temtronic



Joined: 01 Jul 2010
Posts: 9196
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Oct 08, 2012 12:47 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 08, 2012 3:24 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 10, 2012 10:00 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group