07-27-2005 05:49 AM
07-27-2005 07:07 AM
I'm not sure of exactly what you mean, but it sounds like you need a loop that sends a command, waits for the response and then has a case statement that takes that response and creates the appropriate command for the next time through the loop. Is this what you are asking about?
P.M.

07-27-2005 09:14 AM
hey pm
i 'm not sending the commands.rather i am waiting for the data stream (from host like mobile )having a command and then comparing the data stream with the know command set n finally once i know the which command came in data stream i will send the response to the host.again the host will send the data stream having same or other type of command n again i hv to send the data... this will will keep on repeting untill host have no more queries (command).
regrds,
nitin
07-27-2005 09:46 AM
07-27-2005 12:07 PM
07-28-2005 01:07 AM
hi!
the data stream is of stream of binary bits. This data will come from the phone output line.first i will capture this binary data stream.,In this binary stream of the data, we will have 6 byte of command. i know in advance that incoming command in this data stream will be 1 of the 4 known command .SO ,I have to know ,first ,which command is coming in the data stream(by matching the pattern of 6 known commands ) then i will send the known response to the mobile back on other line ( output line of the pci-6221 card,say,port0--line1). then host will again send 1 of the 4 known command ,after receiving the response. this process will repeat for 5 times till phone won't send any more command and hence i don't have to send any more response.
if possible pls send me the basic skelton of the same.
regards
nitin
07-28-2005 12:49 PM