Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[plz]8051 + cell phone

Status
Not open for further replies.
ok i have a dlr -3p cable which has a rs-232 db-9 female connector
it works well on hyperterminal
now the db-9 connecotor i have taken two wires from the rx and tx of the 8051 thru the max 232 and then in the tx and rx of the db-9 (of the dlr-3p)
it should work but when i connect the gnd to pin 5 of the db-9 the controller starts to funtion abnormally plz if anyone has interfaced the 8051 with dlr-3p-- nokia 6310 send me the diagram ,i am sure the programming is not the problem the problem is which of the pins of the db-9 is to be connected to what , thats what i cant figure out , i am sure it has also something to do with rts right? plz answer
 

Hi all!
is Nokia 8250 support AT Command?
 

im also doing the serial communication to switch atleast 4 devices via 3310 but no guidlines 4 dat what 2 do???
can any one help me from scratch????? plese

Added after 3 minutes:

i want to design a circuit that receives sms and perform the task.
i want to put that in the car to control several features like auto lock, ignition cutoff, etc but to much confuse how to use the 89C51 in serial communication with Nokia 3310 or others please send me a sample program and circuit...thank u sooo much in advance.
 

I am doing a project on SMS controller with SonyEricsson T68i and AT89S52.

I can send message using AT command via Hyperterminal, but I hv problem with sending it through 8051.

I connected the T68i port directly to the microcontroller, becoz I couldn't find the RS232 Cable.

(RXD, TXD and GND of T68i connected to the TXD, RXD and GND of the AT89S52)

Below is my code

LED and Buzzer works properly, just the SMS part not responding.

Can anyone tell me my problem? Thx!




ORG 0000H ; begins at ROM location 0000H
LJMP MAIN ; bypass interrupt Vector Table

;-----------------ISR(Interupt Service Routine)-------------------------------

ORG 0013H ;INT1 in IVT
SETB P1.2 ;turn on LED
SETB P1.4 ;turn on Buzzer
ACALL SENDMSG ;send MSG
ACALL LONGDELAY ;delay for 10s
CLR P1.2 ;turn off LED
CLR P1.4 ;turn of Buzzer
RETI ;return from interrupt

;------------------------Main Program---------------------------------------

ORG 30H ;
MAIN: CLR P1.2 ;turn off LED
CLR P1.4 ;turn off Buzzer
SETB TCON.2 ; make INT1 edge-trigger interrupt
MOV IE, #10000100B ; enable external INT1
SETB P2.0
HERE:
SJMP HERE ; Stay here until get interrupted

;-----------------------Send MSG--------------------------------------------

SENDMSG:
CALL SET_UART
MOV DPTR, #PDU_LENGTH
CALL TRANCHAR
CALL RECEIVE_prompt
MOV DPTR, #PDU_CONTENT
CALL TRANCHAR
ret

PRINTCHAR:
JNB TI, $ ;Return to itself if TI is not set.
CLR TI ;Clear TI
MOV SBUF, A
RET

TRANCHAR:
CLR A
MOVC A, @A+DPTR ;point single byte of data to A
INC DPTR
JNZ printChar ;Jump if A not 0 TO check if all byte transmited
RET


SET_UART:

MOV TMOD, #20H ; timer 1, mode 2 (auto reload)
MOV SCON, #50H ; 8 bit data, 1 stop bit, 1 start bit, and REN
MOV TH1, #0FDH ; timer 1 high byte, -3register value for 9600 baud rate
SETB TR1 ; Start timer 1
RET

RECEIVE_prompt:

JNB RI, HERE ;Wait for 1st bytes char prompt "> " to come out
CLR RI ;Clear receive interrupt
JNB RI, HERE ;Wait for 1st bytes char prompt "> " to come out
CLR RI ;Clear receive interrupt
CALL SHORTDELAY ;wait for a moment
RET

;---------------------------Delay----------------------------------------------

LONGDELAY:
MOV R2, #50 ;~1S
S1: MOV R3, #200
S2: MOV R4, #200
DJNZ R4, $
DJNZ R3, S2
DJNZ R2, S1
RET


SHORTDELAY:

MOV R2, #50 ;~0.5S
S11: MOV R3, #250
S22: MOV R4, #250
DJNZ R4, $
DJNZ R3, S22
DJNZ R2, S11
RET



;------------------------On Chip Code Spce for Storing Data----------------------------------
ORG 250

PDU_LENGTH:
DB "AT+CMSG=37",0DH, 00H ;"send Message" AT command and TPDU length

PDU_CONTENT:
DB "07915892945897F501000B915862806461F400001BD9775D0E1296D96FF739ED3ECF4141791914A683A4E9F91A", 1AH, 00H ;PDU Content (SMSC and TPDU) 1AH = <Ctrl+z>



END
 

U need a serial cable with built in MAX(logic converter) to connect with MIcrocontroller and use AT COMMANDS within ur ASM or C code to receive, interpret and send a MSG with mobile.
 

Thx for your reply

I have searched for T68i serial data cable for a long time without any success, becoz this cable was discontinued for a long time already.

Is there any way to bypass the serial cable?

There are some websites and forum suggests that u can connect mobile directly to microcontroller, becoz they have the same logic level.

I'm actually using the circuit provided by this website

**broken link removed**

It connect 3310 directly to AT89S52, but
not sure if it works on T68i
 

hi everybody!
I am doing a project which will take a mobile number from a keypad and save in the on-chip memory of micro-controller that is being initialized,my question is that which AT commands are to be used that send the message to the given recipient,your help will be very much useful for me in any sense.
Thank you for your help.
 

hi everybody!
I am doing a project which will take a mobile number from a keypad and save in the on-chip memory of micro-controller that is being initialized,my question is that which AT commands are to be used that send the message to the given recipient,your help will be very much useful for me in any sense.
Thank you for your help.

which GSM module you are using
 

which GSM module you are using

am not using GSM module,as i am a beginer so i have used Nokia 2600 with FBUS and MBUS protocols,so kindly give me some useful and wasy explanation of my question that i can understand easily,also i learnt about AT commands but did'nt got it,like;
forsending smsto any number i can usethis command:
AT+CMGS=<da>,<toda>,<cr>
But i did'nt got its meaning that what isit and also keep in mind that i am usnig 89C51.
thank you for your reply sir.........
 

Is it possible to send messages using nokia1650 by AT commands? If possible can you please post the circuit diagram?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top