Hi monks,
I have program that issues commands to device that are attached to COM port and collects the response and then does the pattern matching.Now , i have a command whose response takes some time and that too comes in bits and pieces.I am able to collect that response that i want ,but remaining response keeps on coming even after i completed with that command , when i issue the next commmand the response i get is the leftout response in RX buffer of the previous command. i need to discard the data in the buffer before issuing the next command.How can i do this ?
I appreciate your help
Thanks,
westar.