HOW TO RECIEVE AND HANDLE THE STRING DATA COMMING FROM SERIAL PORT
Discussion in "8051 Discussion Forum" started by nadeem malik Feb 9, 2008.
Sat Feb 09 2008, 04:28 pm
i m on a project to interface a GSM modem with 8051
snd and receive message.
how can i receive string data from serial port.
i can send string data using
printf command
i have sent and recieve messages from modem using hyper terminal
and where tne CTS and RTS of RS232 are connected with 8051?????????
i shell b thank frull if u can help me .............
snd and receive message.
how can i receive string data from serial port.
i can send string data using
printf command
i have sent and recieve messages from modem using hyper terminal
and where tne CTS and RTS of RS232 are connected with 8051?????????
i shell b thank frull if u can help me .............
Sun Feb 10 2008, 12:38 pm
sir i m using samsung c100 mobile
i have sent message n receive messages from it using hyperterminal
n the 2nd problem is that how a new message is idetified ????????/
i know the command but it just reply ok
i send a message n tried to read it using
AT+CNMI
it just reply ok
not it read the message
n i already told te basic problem that how can i convert data in bytes in SBUF
to a string data????????
plz give me sum hints
i have sent message n receive messages from it using hyperterminal
n the 2nd problem is that how a new message is idetified ????????/
i know the command but it just reply ok
i send a message n tried to read it using
AT+CNMI
it just reply ok
not it read the message
n i already told te basic problem that how can i convert data in bytes in SBUF
to a string data????????
plz give me sum hints
Sun Feb 10 2008, 01:11 pm
to identify a new msg...
start with your inbox totally empty
read:
then keep sending command at+cmgr=1 (with some delay) and receive string every time.then compare it with "ERROR" ( or the actual string wich u get wen inbox is empty).
if result is false...
then process the string according to ur requirement and delete that msg.
after that
goto read
start with your inbox totally empty
read:
then keep sending command at+cmgr=1 (with some delay) and receive string every time.then compare it with "ERROR" ( or the actual string wich u get wen inbox is empty).
if result is false...
then process the string according to ur requirement and delete that msg.
after that
goto read
Powered by e107 Forum System