Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 3rd June 2009, 06:13 AM   #1
Default modem communication

hi all,

i want to test whether my modem is responding to the AT commands or not?

suppose if i send the command "at+crsm=?"
it will send me the response "OK"

my modem is connected to the PIC24F through UART interface..

can anyone tell me how to proceed further...

should i have to send AT command from the code

if i write
buf[] = " at + cmgs=?"

and send it
sendUART(buf[i]);

and if i do
buf1[] = receiveUART();

will i get the response in buf1[] buffer

Thanks
Puneet
puneetnepsam is offline  
Old 3rd June 2009, 07:54 AM   #2
Default

hi
Maybe this link will help:
Basic Hayes AT Command Set
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 3rd June 2009, 08:17 AM   #3
Default

i am asking code wise...

can i send the AT command through my code or i have to send the AT command by some other means?
puneetnepsam is offline  
Old 3rd June 2009, 08:24 AM   #4
Default

Quote:
Originally Posted by puneetnepsam View Post
i am asking code wise...

can i send the AT command through my code or i have to send the AT command by some other means?
hi,
I write in assembler not 'C'.

You do have to send the Modem Command codes to the modem in order to initialise it.
Use the 'AT'-tention command prior to a command and if your PIC program can handle it, switch on the modems 'Echo'.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 3rd June 2009 at 08:24 AM.
ericgibbs is offline  
Old 3rd June 2009, 05:10 PM   #5
Default

Quote:
Originally Posted by puneetnepsam View Post
i am asking code wise...

can i send the AT command through my code or i have to send the AT command by some other means?
I have some sample C code on my site sending and parsing AT commands. It's for Xbee, but it's similar enough to get an idea.
__________________
/felis

http://www.circuitsathome.com
felis is offline  
Old 4th June 2009, 04:27 AM   #6
Default

hi felis,

can u please send me the link so that i can have a look on the sample code....
puneetnepsam is offline  
Old 4th June 2009, 03:56 PM   #7
Default

Circuits@Home Playing Xbee. Part 2 - Command mode.
__________________
/felis

http://www.circuitsathome.com
felis is offline  
Reply

Tags
communication, modem

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Modem to modem connection. john1 General Electronics Chat 16 7th May 2009 03:28 AM
Is there any serial to serial comunication between modem and modem through RS232? shermaine General Electronics Chat 13 17th January 2009 08:48 AM
GSM modem devilmp5 Micro Controllers 3 27th August 2008 11:15 PM
fsk modem ulot General Electronics Chat 1 23rd August 2008 10:40 PM
PC communication using modem bogdanfirst Electronic Projects Design/Ideas/Reviews 7 29th May 2004 08:24 AM



All times are GMT. The time now is 09:08 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker