8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: GSM Discussion :: Embedded GSM Development
 
<< Previous thread | Next thread >>
communication between GSM modem and PIC microcontroller
Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
monika
Tue Apr 08 2008, 10:36PM
 User Offline
Registered Member #7028
Joined: Fri Apr 04 2008, 03:31AM

Posts: 9
Thanked 0 times in 0 posts
i m using a maestro modem which supports both text and PDU mode. and i m interfacing it with PIC 917.

i m able to send AT-commands using hyperterminal with the modem but when i communicate with the microcontroller, i m not able to get the response of AT-commands.
i m sending a string like this:
putc("AT \r\n");

but it is not giving the required response.....it is not giving OK...
what should i do????
Plz help me on this....

Back to top


shyam
Wed Apr 09 2008, 12:03AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
u r using putc ?????
is it meant to send char or string please check and reply!!!


lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


monika
Wed Apr 09 2008, 03:20AM
 User Offline
Registered Member #7028
Joined: Fri Apr 04 2008, 03:31AM

Posts: 9
Thanked 0 times in 0 posts
i m displaying the output on LCD, for that i have written a code.....
which u can see in the attachment.....
plz tell me where i m wrong.....

one more thing i want 2 know....if i will send msg, then can i write the code for text mode for reading the msg ( no need 4 PDU mode,bcoz my modem supports text mode 2)

include.pdf
Back to top


Ajay
Wed Apr 09 2008, 08:32AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3315
Thanked 611 times in 578 posts
first do check what shyam said.
There are few mistakes you might missed out. There is only carriage return while sending at command. So you don't need \n
also i think you have given space between at and \r which could be the point of error.

to enable text mode do read your modem's manual carefully.

instead of using putc use puts

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


monika
Wed Apr 09 2008, 09:50PM
 User Offline
Registered Member #7028
Joined: Fri Apr 04 2008, 03:31AM

Posts: 9
Thanked 0 times in 0 posts
i already did that. i compiled my code without /n. but result was same. No response of AT-command is comming. and there is no space b/w at and /r.

i can't understand what is the problem with my code.....is there any mistake plz guide me...
Back to top


shyam
Fri Apr 11 2008, 11:15PM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
first of all please check if ur modem and controller can communicate properly..

u have tested modem with the PC ...

now test ur controler the same way see if u can reeive data from PIC(controller) to the hyperterminal..



lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


monika
Sun Apr 13 2008, 03:37PM
 User Offline
Registered Member #7028
Joined: Fri Apr 04 2008, 03:31AM

Posts: 9
Thanked 0 times in 0 posts
yes i have tested PIC with hyperterminal..and it is responding fine..
problem arises when i interface modem with PIC.then there is no response on LCD.

my hardware connections are ----

for DB-9 connector-
pins 1,4,6 are connected.
pins 7 and 8 are connected.
5 is ground.
pin 2 is connected to TX of MAX and pin 3 is connected to RX.

Plz check the connections and guide me accordingly....
Back to top


monika
Thu Apr 24 2008, 08:21PM
 User Offline
Registered Member #7028
Joined: Fri Apr 04 2008, 03:31AM

Posts: 9
Thanked 0 times in 0 posts
can anybody guide me what can can be the correct schematic for interfacing GSM modem with PIC microcontroller......

i hv done the above mentioned connections bt these are not working when used with modem. these are working fine with hyperterminal.
Back to top


Ajay
Fri Apr 25 2008, 05:13AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3315
Thanked 611 times in 578 posts
make DTR and RTS pin of DB9 connector on board high.. and then try sending at commands..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


shyam
Fri Apr 25 2008, 05:28AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
does your maestro modem have a serial DB9 intervace or did it come with some special cable???


lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems