It is easy to send 6000 commands to your AT card with Motion OCX by using the Comm6000 control's SendCommand method. But how do you receive the responses from the commands you send?
If you are using a terminal, the responses will go there by default. Otherwise, you can pop up the Comm6000's properties and set PollResponse to TRUE.
Then, add a subroutine for the Response event of the Comm6000 control. This subroutine will automatically be called whenever the AT card has a response in its buffer and will store it in a string variable called lpszresponse. You can read or display this variable to see the response to your command.
Please refer to pages 9 and 14 in the Motion OCX Toolkit User Guide for more information.
0 Comments