PDA

View Full Version : Pic to GSM(nokia 6610), Please help..T_T



reianjim
- 26th November 2009, 13:56
i have a problem with my project. i don't know where is wrong, if it is in the program or in my circuit. here is the flow of my project. if i press the button in PORTB it will send automatically a message. my problem is it doesn't text or send a message. thats why i need your help. i know lot of here can help me. thanks. i will put my program and the circuit. by the way my phone using is nokia 6610 and the data cable is usb.


HERE IS MY PROGRAM:

------------------------
DEFINE OSC 20


DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 115200
DEFINE HSER2_CLROERR 1


CLR CON 12 ' Clear screen
LF CON 10 ' Line-feed character
CR CON 13 ' Carriage-return character
SUB CON 26 ' Ctr + Z
QOUTE CON 34

PORTB = $00

AGAIN:

if PORTB.0 = 0 THEN

pause 200
HSEROUT ["AT",CR,LF]
pause 1000

HSEROUT ["AT+CMGF=1",CR,LF]
PAUSE 500

HSerout ["AT+CMGS=",SUB,"+639187085735",SUB,CR,LF]
PAUSE 500

HSEROUT ["Test-Message",CR,LF]
HSEROUT [26]
ENDIF

GOTO AGAIN

END

---------nothing follows

eggman
- 26th November 2009, 15:23
In your circuit diagram you try to send serial data to a usb connector which will never work. You need a data cable with 9 pin D connector.

reianjim
- 26th November 2009, 15:30
thanks for the reply. but there is no a rs232 data cable available for a nokia 6610, only usb have.. is there a another way??

eggman
- 26th November 2009, 15:35
plenty of cables available, for example here:
http://ucables.com/ref/NK-7210

reianjim
- 26th November 2009, 15:35
i have a question, Do you think it will work if i connect a usb to DB9(Rs232)?

eggman
- 26th November 2009, 15:41
No, your phone is a usb slave, not a host. You need the rs232 cable. They are cheap so why not buy one?

reianjim
- 26th November 2009, 15:46
because, i dont have a credit card. he he.

reianjim
- 26th November 2009, 17:35
is there another way? is there any idea how to build or how to make a datacable of a nokia 6610?

Melanie
- 26th November 2009, 18:05
If you don't want to get a Cable for your Nokia, then I'm sure schematics for the Nokia exist somewhere on the net. Google is a great tool.

If you don't want to go down that route, then the cheapest way is to plug your USB Cable into your PC. Then wire your PIC into a SERIAL PORT on your PC (per diagrams shown in your PICBasic Manual). Write a suitable piece of code on your PC to act as a Router.

You then have your PIC talking to your Nokia.

reianjim
- 27th November 2009, 12:41
ok ill find the schematic for the nokia..