Gewehr88,
Thank you for answer me again!
I use Clear Terminal. I believe that Clear Terminal is similar to Tera Term.
I still have problem with reading from RS-232/RS485.
I have enable either "ttyf:" or "ittyf:". My program look like below:
rs232_dev = fopen("ITTYF:", NULL);
if(rs232_dev != NULL)
{
fprintf(rs232_dev, "Please type something. \n");
fflush(rs232_dev);
while(1)
{
fread(read_buf, 1, 18, rs232_dev);
write(rs232_dev, read_buf, 18);
fflush(rs232_dev);
}
}
Note, this program can get data from OSJTAG (through P&E Terminal Window) which is connected to UART5 too, but can not get data from RS-232/RS-485 (through Clear Terminal). It can send data to both P&E Terminal Window and Clear Terminal. Do you see anyting wrong with my program? Or do you mind share your source code here to show how do you get fread() work?
Lisa