Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

[SOLVED] "hello world" program to send SMS using AVR interfaced with Ultimo 24+TCP GSM modem

Status
Not open for further replies.

saesaria

Member level 1
Joined
Jun 13, 2011
Messages
34
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Indonesia
Activity points
1,538
"hello world" program to send SMS using AVR interfaced with Ultimo 24+TCP GSM modem

Hi!
perhaps someone can help me, I'm trying to send SMS with very simple program, it's like "hello world" program. I am working with ATMega16 interfaced with Ultimo 24+TCP GSM modem. I made the following program on my own (to be honest I am worst in coding), the coding built in Pascal Language. I tried the code but it doesn't work for me, can you find my mistake in coding?

--compiler-- Mikropascal for AVR

Code:
program Send_SMS;
  begin
   UART1_Init(115200);   
   Delay_ms(100);

   UART1_Write_Text('AT+CMGS="0898xxxxxxx"');  
   Delay_ms(100);
   UART1_Write(CHR(10));                       
   Delay_ms(100);                              
   UART1_Write(CHR(13));                       
   Delay_ms(1000);                             
   UART1_Write_Text('This Text Should be sent ');          
   Delay_ms(100);
   UART1_Write(CHR(26));                       
  end.
Any Help would be appreciated :)
 
Last edited:

saesaria

Member level 1
Joined
Jun 13, 2011
Messages
34
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Indonesia
Activity points
1,538
Re: "hello world" program to send SMS using AVR interfaced with Ultimo 24+TCP GSM mod

I forgot to match up the baudrate
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top