Sunday, May 25, 2014
TCP/IP (Transmission Control Protocol/Internet Protocol)
TCP/IP (Transmission Control Protocol/Internet Protocol) is the basic communication language or protocol of the Internet. It can also be used as a communications protocol in a private network (either an intranet or an extranet).
TCP/IP is a two-layer program. The higher layer, Transmission Control Protocol, manages the assembling of a message or file into smaller packets that are transmitted over the Internet and received by a TCP layer that reassembles the packets into the original message.
The lower layer, Internet Protocol, handles the address part of each packet so that it gets to the right destination. Each gateway computer on the network checks this address to see where to forward the message. Even though some packets from the same message are routed differently than others, theyll be reassembled at the destination.
TCP/IP uses the client/server model of communication in which a computer user (a client) requests and is provided a service (such as sending a Web page) by another computer (a server) in the network. TCP/IP communication is primarily point-to-point, meaning each communication is from one point (or host computer) in the network to another point or host computer.
Reference
Thursday, May 15, 2014
What is a RS232 to RS485 converter?
The main differences between these RS232 to RS485 converter units are that some of them can have a DB9 connector whereas others have a terminal screw header or RJ11 connector, some are isolated some are not, some has more than one RS485 port, some has LED lights for indicating RX/TX data flow, some are port-powered and some needs an external power supply, some are industrial strength, some are consumer products.
The RS232 to RS485 itself, regardless of what model you choose, is simply a device which can convert standard RS232 data signals into RS485 signals and vice versa. Most RS232 to RS485 converters can convert data in both directions, from RS232 to RS485 and from RS485 to RS232, this is also called a bi-directional converter.
When should I use a RS232 to RS485 converter?
RS232 to RS485 converters are mostly used in industrial and commercial environments. The reason is that the RS485 converter can be used for multi-drop networks, meaning that you for example can connect multiple RS485 devices to one computer. Up to 32 devices can be connected in one network to communicate on a single pair of wires (plus a ground wire), and the number can even be increased by using RS485 repeaters. This type of communication is called half-duplex communication. Most quality RS485 converters can communicate in this manner of up to 4000 feet (1200 meters). The RS485 converter is also fairly resistant to noise which is one more reason why it is favored in industrial environments.
Examples of uses for a RS232 to RS485 converter could be for connecting cameras, scales, meters, scanners, PLCs or most other industrial equipment to a computer.
Connecting a RS232 to RS485 converter.
The RS232 to RS485 converter can be used for point-to-point connections (connecting one RS232 to RS485 converter directly to another RS232 to RS485 converter) and point-to-multipoint networks (connecting one RS232 to RS485 converter to multiple RS232 to RS485 converters.
In a RS485 network only one slave and one master can communicate at a time, either transmitting or receiving, but not at the same time, so you might wonder how this is accomplished. Simply speaking the slaves (also called nodes) must be addressed, for example node 1 has address 001, node 2 has address 002 and so forth. These addresses are usually assigned and controlled by software, either the software running at the RS485 master (PC), or software programmed in each of the slaves. Sometimes the equipment connected at the RS485 slaves is addressable by hardware instead of software. Finally, some RS232 to RS485 converters are addressable (by DIP switches) itself, this is however not used very often.
Source
Sunday, May 4, 2014
Interfacing the Serial / RS232 Port
The Serial Port is harder to
interface than the Parallel Port. In most cases, any device you connect to the
serial port will need the serial transmission converted back to parallel so that
it can be used. This can be done using a UART. On the software side of things,
there are many more registers that you have to attend to than on a Standard
Parallel Port. (SPP)
So what are the advantages of using serial data transfer
rather than parallel?
1.Serial Cables can be longer than Parallel cables.
The serial port transmits a 1 as -3 to -25 volts and a 0 as +3 to +25 volts
where as a parallel port transmits a 0 as 0v and a 1 as 5v. Therefore the serial
port can have a maximum swing of 50V compared to the parallel port which has a
maximum swing of 5 Volts. Therefore cable loss is not going to be as much of a
problem for serial cables than they are for parallel.
2.You dont need as
many wires than parallel transmission. If your device needs to be mounted a far
distance away from the computer then 3 core cable (Null Modem Configuration) is
going to be a lot cheaper that running 19 or 25 core cable. However you must
take into account the cost of the interfacing at each end.
3.Infra Red
devices have proven quite popular recently. You may of seen many electronic
diaries and palmtop computers which have infra red capabilities build in.
Therefore serial transmission is used where one bit is sent at a time. IrDA-1
(The first infra red specifications) was capable of 115.2k baud and was
interfaced into a UART. The pulse length however was cut down to 3/16th of a
RS232 bit length to conserve power considering these devices are mainly used on
diaries, laptops and palmtops.
4.Microcontrollers have also proven to be
quite popular recently. Many of these have in built SCI (Serial Communications
Interfaces) which can be used to talk to the outside world. Serial Communication
reduces the pin count of these MPUs. Only two pins are commonly used, Transmit
Data (TXD) and Receive Data (RXD) compared with at least 8 pins if you use a 8
bit Parallel method (You may also require a
Strobe).
**Reference**
http://iie.fing.edu.uy/~nantonie/Integrados-Componentes-Docs/PC/Conectores&Interfaces/RS232/RS232_5/serial.html
Subscribe to:
Comments (Atom)