IDP/RS-232

From ESS-WIKI
Jump to: navigation, search
{Note: This test procedure uses a half-duplex RS232-USB converter cable for connecting the target and host systems.
-->A PUTTY or similar software will be required for this test. 
-->This test procedure assumes BIOS, or any hardware jumper settings are configured properly to have the ports under test behave as Serial/RS232 ports}

1. We test the RS232 port on the target board by connecting a RS232-USB converter cable from target to a host system and transfer data(messages) between the both systems (target and host)
2. Next,  Manually examine the target board for all the available Serial ports (COM ports)
3. Boot into the target system using a VGA/PuTTY software (target IP address) for the terminal display(with serial line speed of 115200 in PuTTY).
4. Now, connect the target system(RS232) to a host sytem (USB) using a RS232-USB cable. On the host, find the appropriate usb device it is connected on (say /dev/ttyUSB*) and modify the 
      access permissions to 777:
 $ sudo chmod 777 -v /dev/ttyUSBx
5. The speed we select in putty terminal for RS232 connection should match the baud rate of the RS232 of target. Check the baud rate of a RS232 device in target by the following command:(assuming ttyS0 is the device for RS232 port as reference)
 $ stty -F /dev/ttyS0


6. From the host, create a Putty terminal to the target through the USBx device we just created
 select Serial line: /dev/ttyUSBx
 Speed: 9600
7. We still need to know which RS232 port belongs to which /dev/ttyS* device. From the target terminal echo a message into each of the ttyS* devices and see which device prints the message in  
   the host putty terminal
 $ echo "message" > /dev/ttyS*
8. Once you find out which (ttyS*)device is used for your RS232 port, you can now read from host by using "cat" on the target
 $ cat /dev/ttyS* 
{Note: replace * by the correct number: 0, 1, 2, etc.. }
Now, when you type on the host terminal, you should be able to see that message on the target's terminal.

9. If you can both echo (write out) and cat (read in) messages from a RS232 port, then this test is a PASS.


RESULT

 Use the web interface to report that if this manual test passed/failed