I currently in stage of developing a dos based program that could replace our current windows based terminal emulator program. This program is capable to send & receive character in ASCII format and view the data in command line. This program is targetted to provide communication between PC and external electronic device via serial port. I need to program in Borland C since this program will link with other subroutines in this format.
Example communication is :
User send command "C 1" ( i.e C-space-1 )
and the external device will respond with :
<< GRIPS >>
[GRIPS] Interrupt Disable
[GRIPS] Wait Disable
[GRIPS ] -> [OK]
+-[REGISTER(IC501) ] -> o
if the external devices is fail, no respond will be received.
Communication protocol will use COM1 with 38400 baud, No parity, 8 data bits & 1 stop bits.
I am relatively new in port communication within Borland C environment. Hopefully I can get example in order to complete this program.