J
Jamil
I have a target box connected to my desktop (x86 Windows 2000) PC
through a serial cable (COM port). The target box running on different
processor and OS. The target box needs to send a specific formatted
data (2 bytes header + 128 bytes data) asynchronously through the
serial port and I've to capture it at the host PC side and save those
into a file.
I like to have the client-server model. The PC will be a server and
start a forever loop process to wait for client's (target box) data
and read its COM port and collect those data and save in a file. Note
that, client target box runs a process which sends those data after
some asynchronous event occurs.
Please refer me to any code example either in C or C++ for
implemneting the establishment of serial communication, read the data
from COM port etc. at the host PC side.
through a serial cable (COM port). The target box running on different
processor and OS. The target box needs to send a specific formatted
data (2 bytes header + 128 bytes data) asynchronously through the
serial port and I've to capture it at the host PC side and save those
into a file.
I like to have the client-server model. The PC will be a server and
start a forever loop process to wait for client's (target box) data
and read its COM port and collect those data and save in a file. Note
that, client target box runs a process which sends those data after
some asynchronous event occurs.
Please refer me to any code example either in C or C++ for
implemneting the establishment of serial communication, read the data
from COM port etc. at the host PC side.