interfacing GSM module with PIC

Bluetooth, XBee, RF......

interfacing GSM module with PIC

Postby rookie » Mon Mar 08, 2010 11:34 pm

i try interfacing GSM module connect with SK40c using PIC 16F877A by UART.
MAX 232 is connected between the PIC and GSM module.
the baud rate been set to 115200.
when i sending out 'at' from PIC,no reply back from GSM module as i am expected will receiving 'ok' as reply...
To verify whether the UART connection is ok, i change the baud rate to 9600 and connect it with RFID reader and it is function...

is it bacause of the other pin that are needed for serrial port like DTS, CTS, etc??
If it is, then how to solve it because PIC doesn't have the pin provided??
do i need to write software to solve it??
any clue??
rookie
Freshie
 
Posts: 4
Joined: Sat Jan 02, 2010 8:42 pm

Re: interfacing GSM module with PIC

Postby waiweng83 » Mon Mar 08, 2010 11:40 pm

Try to short the CTS and RTS pin from the GSM modem together.

Have you try to interface your GSM modem with the PC? Try it with hyper terminal, see whether u get any respond or not.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 208
Joined: Wed Apr 15, 2009 2:17 pm

Re: interfacing GSM module with PIC

Postby rookie » Mon Mar 08, 2010 11:51 pm

yes...it working well with PC...
why the reason to short CTS and RTS??
Thanks...
rookie
Freshie
 
Posts: 4
Joined: Sat Jan 02, 2010 8:42 pm

Re: interfacing GSM module with PIC

Postby ober » Tue Mar 09, 2010 2:36 pm

CTS and RTS is for hardware hand shaking. Since PIC do not have that function, shorting both pin at GSM modem will disable the handshaking, thus sending data and receiving data anytime.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: interfacing GSM module with PIC

Postby waiweng83 » Tue Mar 09, 2010 2:38 pm

The CTS/RTS pin is for hardware flow control. It is used to inform the host that the device is ready to receive data and vice versa. If you do not want to implement the flow control in your MCU, you just loop it back to the GSM modem. It will assume your MCU is always ready for data.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 208
Joined: Wed Apr 15, 2009 2:17 pm

Re: interfacing GSM module with PIC

Postby rookie » Sat Mar 13, 2010 6:12 pm

get it...thankyou very much...
rookie
Freshie
 
Posts: 4
Joined: Sat Jan 02, 2010 8:42 pm

Re: interfacing GSM module with PIC

Postby ober » Sun Mar 14, 2010 9:34 pm

rookie, do let us know your project progress.

It will be great if you share it here.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: interfacing GSM module with PIC

Postby rookie » Fri Mar 19, 2010 6:05 pm

Basically my project title is 'attendance information system by using RFID and SMS service'
the function flow like children scan tag and SMS will sent to inform parents.
i use a SK40c,RFID reder and GSM module...
the source code basically combination of PR8 and PR27 because of PIC 16F877A only support 1 build in UART...and i am adding circuit the door lock of PR25 and trying to write to eeprom when a tag detected and sending data to hyper terminal by UART to USB converter when a SW was press...
now stuck with the circuit of door lock,because i replace the door lock by LED,suppose the LED will OFF when tag detected but it always ON and no idea how write and from eeprom although trying the code from user manual of hi-tech compiler...
any clue to continue it??thanks...
rookie
Freshie
 
Posts: 4
Joined: Sat Jan 02, 2010 8:42 pm

Re: interfacing GSM module with PIC

Postby waiweng83 » Tue Mar 23, 2010 1:44 pm

Do it part by part. Don't save the RFID code in your EEPROM 1st. Try to hard code it in your program. After success, then only try to store the RFID code in the EEPROM.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 208
Joined: Wed Apr 15, 2009 2:17 pm

Re: interfacing GSM module with PIC

Postby vjn86 » Tue Mar 23, 2010 10:15 pm

hi waiweng83,

i would like to ask regarding the shorting dts and rts. I'm able to send sms through both hyperterminal and PIC16f7784a..However when receiving sms(that is to read it using at+cmgr=1), the microcontroller is not responding..Is is still due to cts and rts ?
vjn86
Fledgling
 
Posts: 1
Joined: Tue Mar 23, 2010 9:58 pm

Next

Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 1 guest

cron