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.

sending a string via serial port ( SIM300 with 8051 )

Status
Not open for further replies.

Kesa2211

Newbie level 1
Joined
Feb 1, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
mumbai
Activity points
1,288
hey,
i am interfacing SIM300 with 8051 and i want to send sms to a group of mobile nos.
In order to do serial communication need to send string via the serial port. how do i go about it?
for sending a single character i can assign the character to the SBUF register but how do i do this in case of a string? How to write a function which will send a string through the serial port?
 

if you are using C you can simply use
serial_init();
char str[30]="AT+CMGF=1";
printf("%s",str);


void serial_init()
{
intialize UART for 9600
}
 

hi nikhilele;735049],
if i want to send & receive sms from arduino uno & using sim300, then what will be the arduino uno code

thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top