Discussion in "8051 Discussion Forum" started by    nadeem malik    Feb 9, 2008.
Sat Feb 09 2008, 04:28 pm
#1
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 .............
Sun Feb 10 2008, 12:24 am
#2
which gsm module are u using???
Sun Feb 10 2008, 12:38 pm
#3
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


Sun Feb 10 2008, 01:11 pm
#4
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

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am