What is the difference between Null Modem cable and Straight Through Cable...???

             The null modem cable is frequently called a Crossover cable. It is used to allow two serial Data Terminal Equipment (DTE) devices to communicate with each other without using a modem or a Data Communications Equipment (DCE) device in between. For this to happen, the Transmit (TXD) pin of one device needs to be connected to the Receive (RXD) pin of the other device.  To enable handshaking between the two devices, the Request to Send (RTS) pin of one device must be connected to the Clear to Send (CTS) pin of the other device. Because these pins are "crossed" on the two cable terminals, the name crossover cable is used.


                            DB9 - Null Modem Cable (Female - Female Connectors)



Null Modem Cable with Handshaking



               A straight-through cable is used to connect a DTE device to a DCE device. The TXD-RXD and RTS-CTS pins are not cross-connected in this case, hence the term straight through cable.

Simple Straight Through Cable


DB9 - Straight Through Cable(Male - Female Connectors)
               The built-in serial port on a PC is a DTE device. Modems and printers are examples of DCE devices.  Note that an instrument with serial interface could be either a DTE or a DCE device.  It is best to check the user manual of the instrument to find out the device type.  For more information regarding DTE and DCE devices, please see the links below. 

To tell if your cable is null modem or straight though, you can search the part number at ni.com, the product description will tell if it is null modem. Alternatively you can use a hand held DMM to test continuity on the individual pins of your serial cable. If every pin is electrically connected to the corresponding pin on the other end, i.e.: pin 1 to pin1, pin 2 to pin 2, etc. then the cable is straight through.



What is the difference between DCE and DTE ???

           DTE is the source or destination of digital data, while DCE is the equipment used to transmit or receive the data. DTE stands for Data Terminal Equipment, while DCE stands for Data Communications Equipment.

          Examples of devices that are DTEs include computers, printers and routers. They are all devices that act as the source or destination for data, but they are not concerned with the communication of data between devices. The most common usage of the word is in relation to RS-232C standard serial communications.
          DCE, on the other hand, is concerned with the communications aspect of data. This means it communicates with a DTE. So a DCE takes data from a DTE, converts it into a signal that can be transmitted, and transmits it, usually to another DTE.
         One of the most common examples of a DCE device is a modem. It communicates data from the internet to a DTE, which could be a computer, a tablet or a smartphone. Other DCE examples include ISDN adaptors,network interface cards. Also, as well as being responsible for the communication, DCE devices are often responsible for the timing over a serial link too.
Some examples of DTE and DCE devices:
1.PC - PCI Cord - DTE

2.DCE and DTE Pinout:


3.Communication Network:




Sources : www.reference.com