Hi am trying to find out the required AT command set for a microcontroller to connect through rs232 to a modem and call a number. i can do so with hyperterminal with ATDT then number. is this sufficient for the pic to send this.
With AT set do i need to ECHO (E1)? Set Baud rate? Set Asyncronous(&Mn)
Any HELP please
Of course you have to set correct baudrate, number of bits etc. Some modems may support automatic baudrate detection, but don't rely on it.
When working with modems, start with making sure that you can send a simpel "AT" command, and receive an OK back. If the modem has echo enabled, you will get both an AT and an OK string from the modem.
Rembember that most modems wants a two-character \r\n end-of-line.
"Rembember that most modems wants a two-character \r\n end-of-line."
Incorrect.
Modems expect a single command line termination character - this is specified by register S3, and is usually CR.
There is also the response formatting character, specified by S4, that the modem sends at the end of its responses - this is usually LF.
Thus, at the end of a command you send CR, the modem echoes the CR and appends LF.