Andrew Stormdog
2007-11-02 13:58:36 UTC
Hello,
I'm trying to build a program which talks with a device using COM port. But
I can't to do even simplest things with it. For some reason, none of receive
events works and even manual ReadStr function doesn't return anything.
Though I know there is a response. I checked this using third-party tools.
The strangest thing is if I send multiple commands to the COM port(and each
command returns a response) and quit my test application, then open commspy
project(from codeproject, which using simple ReadFile\WriteFile commands) I
get ALL responses immediately.
I tried to play with Timeout parameters, but this doesn't help.
What am I doing wrong?
Best Regards,
Andrew
I'm trying to build a program which talks with a device using COM port. But
I can't to do even simplest things with it. For some reason, none of receive
events works and even manual ReadStr function doesn't return anything.
Though I know there is a response. I checked this using third-party tools.
The strangest thing is if I send multiple commands to the COM port(and each
command returns a response) and quit my test application, then open commspy
project(from codeproject, which using simple ReadFile\WriteFile commands) I
get ALL responses immediately.
I tried to play with Timeout parameters, but this doesn't help.
What am I doing wrong?
Best Regards,
Andrew