RS 232 အေၾကာင္းကိုေတာ့ ကၽြန္ေတာ္ ေတာ္ေတာ္မ်ားမ်ား ေျပာၿပီးသားပါ။ RS 485 ကလည္း 232 လိုပဲ Tx, Rx သံုးပါတယ္။ ဒါေပမယ့္ သူ႔မွာ Tx နဲ႔ Rx ကို ခ်ိတ္ထားတဲ့ေနာက္ cross wire တစ္ခုပါပါတယ္။ RS 485 မွာ Master နဲ႔ Slaves ဆိုၿပီးရွိပါတယ္။ RS 232 ကေတာ့ peer-to-peer communication ပါပဲ။ 1 Master နဲ႔ 1 Slave ပဲရပါတယ္။ ေအာက္မွာ ပံုနဲ႔ျပထားပါတယ္။ Slave ၃၀ ေက်ာ္အထိ ခ်ိတ္လို႔ရတယ္လို႔ ေျပာပါတယ္။ သူက Bus Topology နဲ႔သြားပါတယ္။ တကယ္ေတာ့ slave ကေန Handshaking မလာပဲနဲ႔ Master ကေန control signal တစ္ခုကိုပဲ ေပးတာပါ။ Handshaking လာခ်င္ရင္ေတာ့ slave devices ေတြမွာprogram သပ္သပ္ေရးေပးရပါတယ္။ Machine ေတြက slaves ေတြျဖစ္ၿပီး CPU က master ျဖစ္မွာပါ။ slave to slave ေတာ့ communicate လုပ္လို႔မရႏိုင္ပါဘူး။
Subscribe to:
Post Comments (Atom)




2 comments:
RS 232 is voltage signal and since it swings from +15 to -15V it can go for 3 to 5 meters.
RS 232 related hardware
D-SUBs 9/25 pins
female or male connector
Terms to know
DTE to DTE (PC to Modem)
DTE to DCE (PC to PC)
DTE-DTE is called null modem cable.
RS 485 is current loop and it can go longer distance. It is named current loop for the signal being current and not voltage signal.
I am installing a RS232 sensor and a data logger. The cable length is about 15-20 meters. The voltage range given in the sensor spec is 8-28 VDC. Will it work? Kindly advice.
Post a Comment