Possible Duplicate:
End of response to an AT command
I'm trying to work with a CDMA modem and I'm having issues with knowing when a response is over. Currently I'm simply setting a timeout for each command. However, I just switched to a new modem (same model) and everything is taking a different amount of time. There has to be a better way to handle this.
The manual says it has 'Hardware Handshaking' and lists the following pins for the UART: RXD, DSR, CTS, RING, DCD, TXD, DTR, and RTS. TXD and RXD are obvious. I assume that RTS and CTS have more to do with the available serial buffer than they do with command execution and DCD (Data carrier detect) and RING have to do with the cell connection itself. Would DTR be an indicator that the modem is sitting idle?
Is there some other in-band way of knowing that the modem has sent all that it is going to?
For the really brave/helpful, here's a link to the manual: http://www.janus-rc.com/Documentation/terminus_cf_user_guide.pdf