Access equipment through Serial Port

  • Thread starter Thread starter Stanley Wan
  • Start date Start date
S

Stanley Wan

Hello all,

I have written a console program which is used to send and
recive data from a machine. I have used the HyperTerminal
to check the machine and get the wanted result. But my
program cannot get anything even though the port setting
is the same as HyperTerminal. Firsty, the machine must get
the operation signal, i.e. 3 characters(e.g. ABC). And
then the machine receive 2 bytes numerial(Hex) input
($010C) and return unfixed length of result to computer.
So I send 3 ascii code of characters to the machine, and
then i use 'byte' for the input in my program. Is
HyperTerminal pre-set some settings that i am not realize?
or my implementation is wrong. Thank you for anyone.

Stanley
 
Hello Stanley,

You should probably post a code snippet to demonstrate how do you read from
the COM port.
I'm afraid your question cannot be answered without these details.
 
Back
Top