R
I request the experts of this forum to kindly answer my query:
I have written a program in C to communicate with any external hardware using the serial port.
The program displays a black screen that is divided into Command Window and a Response Window. The command can be issued from the Command Window where the cursor is present by default. I tested the program in the following manner:
Issued a string from the Command Window and checked whether the string is received back in the Response Window correctly or not by shorting Pins 2 & 3 of the serial cable. The string was received in the Response Window correctly, hence I concluded that the command string successfully passed over the RX line and was also received back on the TX line, hence my software code is correct.
Then I prepared a cross cable (Rx connected to Tx at the other end and Tx connected to Rx at the other end) and connected two PCs thru their serial ports. I started my application on both PCs. Issued a command string from Command Window of PC1. The string was received in the Response Window of PC2. Then issued a command string from PC2 and the response was received on PC1. Hence, again I assumed my code is correctly functioning.
Having done this, I wanted to communicate with a standard ADAM5000 Data Acquisition Hardware Module. The manual & literature of ADAM 5000 specifies a set of command strings to which the ADAM will respond. I tried sending the command strings to the ADAM's RS232 Port using a standard serial cable but there was no response! I tried doing the same thing with a cross cable and still there is no response. What could I have missed?
Request experts to kindly offer some valuable tips I might be missing.
Thanks and best regards
Ritika
I have written a program in C to communicate with any external hardware using the serial port.
The program displays a black screen that is divided into Command Window and a Response Window. The command can be issued from the Command Window where the cursor is present by default. I tested the program in the following manner:
Issued a string from the Command Window and checked whether the string is received back in the Response Window correctly or not by shorting Pins 2 & 3 of the serial cable. The string was received in the Response Window correctly, hence I concluded that the command string successfully passed over the RX line and was also received back on the TX line, hence my software code is correct.
Then I prepared a cross cable (Rx connected to Tx at the other end and Tx connected to Rx at the other end) and connected two PCs thru their serial ports. I started my application on both PCs. Issued a command string from Command Window of PC1. The string was received in the Response Window of PC2. Then issued a command string from PC2 and the response was received on PC1. Hence, again I assumed my code is correctly functioning.
Having done this, I wanted to communicate with a standard ADAM5000 Data Acquisition Hardware Module. The manual & literature of ADAM 5000 specifies a set of command strings to which the ADAM will respond. I tried sending the command strings to the ADAM's RS232 Port using a standard serial cable but there was no response! I tried doing the same thing with a cross cable and still there is no response. What could I have missed?
Request experts to kindly offer some valuable tips I might be missing.
Thanks and best regards
Ritika
