i just wan do a simple thing ..
connect cell phone with microcontroller 8051 to send a msg ...
When i am doing the assembly of 8051, how I transfer the AT command to the cell phone
Main:
MOV R0,#CMGF
ACALL StringOut ; sent AT+CMGF? to cell phone
.....
;
CMGF:
DB 'AT+CMGF?',0x0D,0x0A,0x00
;
; Character Output to Serial port
;
CharOut:
JNB TI,CharOut
CLR TI
MOV SBUF,A
;
; String Output to Serial port
;
StringOut:
MOV A,@R0
INC R0
JNZ CharOut
RET
There are two kind of Cell phone, the first one is send/receive SMS message in PDU mode only, the other one is send/receive SMS message in PDU mode or TEXT mode.am I need to convert these commands to PDU code first?
CMGF:
DB 'AT+CMGF?',0x0D,0x0A,0x00
CharOut:
JNB TI,CharOut
CLR TI
MOV SBUF,A
The statement is to create an ASCII string, which in turn to be transmitt via serial port.So that I need to convert the 'AT+CMGF?' into ascii code first then just key in is it?
Those four line is Serial Output routine for 8051.In these four lines, is that SBUF and TI is a register in 8051 for serial port?
budhy said:and the connection diagram between 8051 and Nokia 8250 shown below:
Need change voltage, but already done on the circuitneed change voltage or not?
8051's RX can direct connect to 8250's TXcan direct connect 8051's TX,RX to 8250's TX,RX ?
No!need use RS232 or MAX232 to change the voltage?
i am found the datasheet is this..8051's TX can't direct connect to 8250's RX, use MC14050 (operate on 3.3 V) as voltage translator
As I mention before, you can use resistor voltage divider for voltage translator, like this:must use this IC to change voltage? can i use diode change the voltage of 8051's 5v to 3v?
sorry..budhy said:As I mention before, you can use resistor voltage divider for voltage translator, like this:
I don't mention that, and I have no power connector information.A B C D
A = 3.6v
D = 0v
nvm.... anywhere.. thanks a lot...budhy said:I don't mention that, and I have no power connector information.A B C D
A = 3.6v
D = 0v
my cell phone is 8250...omidgold said:it is depend on your cell phone
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?