GSM not responding to pic

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Re: GSM not responding to pic

Postby robosang » Tue Mar 13, 2012 8:54 pm

Well, is not straight forward. I don catch fish and give it to you, you need to learn how to catch fish :mrgreen:

1st, understand RS232. After that you will understand, that the GSM modem is meant to connect to computer COM port, and you can send command to ask GSM modem to send text message and also retrieve message from it.

Now you want to replace computer with microcontroller. So the microcontroller will need to have the role of computer with RS232 standard. The whole system is not working, you need to verify the which part is not working, which I call debug. You need to shrink the unknown factor. So verify the microcontroller part.

In order to communicate with computer, the TX and RX line must be cross back acting like a modem. The pin on DB9, pin 3 and pin 2 must be swapped. Program the microcontroller to send something, a simple "a" ASCII to UART after reset is good enough to verify thing. Connect the microcontroller with the DB9 to Computer COM port. Open a terminal windows (HyperTerminal, X-CTU, Serial Monitor on Arduino IDE, etc) set the correct baud rate, and reset the microcontroller and if everything is correct, you should see "a" coming out on terminal window. If it does not work, it should be MAX232 or microcontroller problem. Then we can minimize smaller scope to debug :mrgreen:
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: GSM not responding to pic

Postby wan88 » Wed Mar 14, 2012 2:37 pm

robosang WROTE:Well, is not straight forward. I don catch fish and give it to you, you need to learn how to catch fish :mrgreen:

1st, understand RS232. After that you will understand, that the GSM modem is meant to connect to computer COM port, and you can send command to ask GSM modem to send text message and also retrieve message from it.

Now you want to replace computer with microcontroller. So the microcontroller will need to have the role of computer with RS232 standard. The whole system is not working, you need to verify the which part is not working, which I call debug. You need to shrink the unknown factor. So verify the microcontroller part.

In order to communicate with computer, the TX and RX line must be cross back acting like a modem. The pin on DB9, pin 3 and pin 2 must be swapped. Program the microcontroller to send something, a simple "a" ASCII to UART after reset is good enough to verify thing. Connect the microcontroller with the DB9 to Computer COM port. Open a terminal windows (HyperTerminal, X-CTU, Serial Monitor on Arduino IDE, etc) set the correct baud rate, and reset the microcontroller and if everything is correct, you should see "a" coming out on terminal window. If it does not work, it should be MAX232 or microcontroller problem. Then we can minimize smaller scope to debug :mrgreen:


Yes u cant give me the fish but at least give me the bait so i can cash the fish by myself :mrgreen:

For the first one i've done that. I've test the gsm using hyperterminal and it works fine.

What do u mean by crossing back the Tx and Rx line? Is it just swapping the pin 3 and 2 of db9?
wan88
Freshie
 
Posts: 7
Joined: Sat Mar 03, 2012 1:08 pm

Previous

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron