Discussion in "Embedded GSM Development" started by    fawadrauf1    Jan 17, 2010.
Wed Jan 20 2010, 11:07 am
#11
Hey I've a prob. I've got a serial cable for my Nokia 6610. And i connected directly its pin 2,3 and 5 to 8051's Txd Rxd and GND but failed as it didn't responded. So now i wanna interface it through Max 232. Please guide me for a suitable circuit for max 232.

Thanks
Wed Jan 20 2010, 12:27 pm
#12
[b]Hi,

Have you check ur mobile with hyper terminal?

Below link will help for you finding pin ou of NOKIA 6610

http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml

After finding you can directly connect your mobile to uC (without data cable)

TxD of uC <<------>> RxD of Mobile
RxD of uC << ------>> TxD of Mobile
GND of uC << ------>> GND of Mobile


If want to use datacable..do like this

http://www.embeddedcraft.org/8051andhyperterminal.html

instead of DB9 (P1) connector of PC connect that to Moblie

Hope above info will helpful for you.

--
Gurpreet Singh
www.embeddedcraft.org
Thu Jan 21 2010, 09:09 pm
#13
Gurpeet I've gone through these steps already and all are working fine. But the problem from the beginning was that the mobiles (W580, Nokia 6610) were all usb datacable phones. They work fine on hyperterminal. And when i connected circuit to PC it also sent data correctly but the problem as i said earlier is that mobile is not getting interfaced to microcontroller.

Is there any circuit which can convert usb to serial (RS232)?

Secondly i also found a T610 which has a serial cable and it worked fine on hyperterminal but when i conneceted it to RS232 directly of microcontroller it didn't worked? Can u please sort it out?

the pic is attached....
Thu Jan 21 2010, 09:11 pm
#14
HERE is my code for simple dialing a number....

ORG 00H

MOV A, PCON
SETB ACC.7
MOV PCON, A

MOV TMOD, #20H
MOV TH1, #-3 ;19200 BAUDRATE
MOV SCON, #50H
SETB TR1

MOV DPTR, #MYDATA
START: CLR A
MOVC A, @A+DPTR
JZ STOP
ACALL SEND
INC DPTR
SJMP START

SEND: MOV SCON, A
HERE: JNB TI, HERE
CLR TI
RET
STOP: SJMP STOP

MYDATA: DB 'ATD 02134586985;', 0DH, 0 ;0DH for enter
END
Thu Jan 21 2010, 09:13 pm
#15
The pic is attached how i connect my T610 with microcontroller....

Thu Jan 21 2010, 09:22 pm
#16
This is another pic of how i connected my W580 with Microcontroller.

First the USB data cable go into USB to serial converter, which then go into microcontroller. I also cut the USB data cable and fitted the female USB jack as the USB to serial was having a male usb jack.

But still this W580 also didn't work by microcontroller provided that it works perfectly on hyperterminal.

Any ideas in how to solve this interfacing problems???
Thanks

Fri Jan 22 2010, 01:06 pm
#17
Sorry for delay reply...

Well, First Step i suggest you to by-pass your mobile and interface uC with PC's Hyper terminal. Check Whether you seen same string as you want to send to
'ATD 02134586985;".

you can see and match schematic and hyper terminal setting here.

http://www.embeddedcraft.org/8051andhyperterminal.html#top
-------------------------------------------
SEND: MOV SCON, A ; Write SBUF rather than SCON
HERE: JNB TI, HERE
CLR TI
RET
STOP: SJMP STOP
--------------------------

I have attached my code it works fine. check that.


----
If Above will fine then introduced Mobile in Circuit and by-passing PC.

Please write result here.


Don't Worry things will work...but it demand time.



---
Gurpreet Singh
www.embeddedcraft.org





Fri Jan 22 2010, 04:32 pm
#18
T610 datacable is powered from DTR pin so you need to connect VCC to DTR or RTS pin of datacable. Make the connection and try again.

USB cables will not work with 8051 and converters wont work at all. you need a USB host device to make USB datacable work. So better not to sacrifice your USB cable next time.
Fri Jan 22 2010, 04:33 pm
#19
Fri Jan 22 2010, 04:47 pm
#20
I'm using this T610 datacable and I've already given a seperate 12V to DTR and also shorted Pin 7 and 8 but things not working....

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

cngCar
Fri May 24 2024, 03:50 pm
Jamesdesee
Fri May 24 2024, 02:48 pm
DavidFah
Thu May 23 2024, 06:09 pm
Briandog
Thu May 23 2024, 04:59 pm
RalphTyday
Thu May 23 2024, 03:49 pm
LouisTen
Thu May 23 2024, 01:44 pm
gelfine
Thu May 23 2024, 01:29 pm
JamesCom
Wed May 22 2024, 06:57 pm