I have one use case to be programmed.
I have one modem device. I connect to it via hyperterminal.
Use case 1:
If I just sent 'AT' as a command then I get 'OK' as a response.
I have associated this use case with one VC++ Dialog. If I enter AT Command in one text box, I am able to display the output in another text box.
I call this AT command sequence as solicited AT Command request.
Use case 2:
I have one Unsolicited AT Command like 'AT+SIGNALSTRENGTH'
If I enter this command in hyperterminal once then I get unsolicited responses i.e. I get responses from the device randomly whenever state of device is changed. Hyperterminal is capturing these responses and displaying on screen. Whenever signal strength is changed then device will send notification to hyperterminal. I want to program this use case in VC++ MFC i.e. I want to display all the return values. Code returned for use case 1 does not support unsolicited response. How can we capture and print unsolicited responses.
Can anyone point me to mechanism with which I can program this?
If it would have been possible, I would have assigned 5000 points for this question.