Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Design Idea-serial port checks data address, sorts according

Status
Not open for further replies.

ifithegr8

Member level 1
Joined
Jan 26, 2009
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
1,485
Design Idea

i have 4 devices(weight indicator) that transmitt string contanig Adress of device i.eA or B and weight .if i connect all TX pins of devices and feed into RX pin of PC and they had to communicate to computer via RS232 port.
now i want to know is it possiable that i make some calculations in computer side that when serial port recives data it checks its address and sotre data in diff arrays according to adress.

one confusion in my mind is that devices send data simultaniusly so will there be any overlaping??


or else please send me some idea
 

yashrolyan

Newbie level 4
Joined
Jul 4, 2009
Messages
5
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,323
Re: Design Idea

1) if u will connect TX pin of all devices together then there shall be a overlapping resulting data corruption because at a time only one bit can there on bus. and in ur case all four weighing indicator will try to send their respective data on bus which will cause data overlapping so data corruption. that means u can not joint all TX line together in RS232 because RS232 provides on-to-one communication only.
For ur application u can do two one of thest two things
i) either use a string protocol at both end containing weight and address of deices, ur weighing indicator will work as slave and PC will work as master.PC will initiate the communication and will send a address of slave to which it want to communicate then the slave device containing the right will respond and wil send the data.by this process u can talk to individual indicator and can avoid overlaping


ii) to some different kind of protocol like RS485 or I2C................


best of luck
 

madicalphy

Member level 4
Joined
Jul 22, 2007
Messages
68
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Activity points
1,630

ifithegr8

Member level 1
Joined
Jan 26, 2009
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
1,485
Design Idea

but the problem is that my devices send data simultaneously i donot have to initiate transfer
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top