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, receiving, comparing SMS through AT commands

Status
Not open for further replies.
codevision pdu decode c++

budhy said:
SMSC#+919820205446
Receipient:09870034174
Validity:Not Present
TP_PID:00
TP_DCS:04
TP_DCS-popis:Uncompressed Text
No class
Alphabet:8bit

How are you?
Length:12
the PDU string for above message is :
Code:
079119890202456411000B929078004371F40000AA0CC8F71D14969741F977FD07
not
Code:
079119890202456401000B819078004371F400040C486F772061726520796F753F
check it with **broken link removed**

you have removed the Line Feed commands after the Enter commands.. isn't it required to get the prompt from the phone?
Carriage Return (0x0D) is enough
and in actual syntax of AT commands we do not press enter after control-z... but here you have?
All AT command is endded with Carriage Return (0x0D)

Hi

Maybe this is at stupid quistion. But when i want to use the pdu converte it want to know the size of the alphabet. But how do i know that? Or where can i find it?

best regards

AkilleuZ
 
Last edited by a moderator:

send sms through at commands

murty_ind said:
If I give the CMD “AT+CMGS=4”(for reading all SMS)
It is not displaying any messages.
Is there any procedure to read the SMS?


when you use AT+CMGR... you specify the index location of the message to be read, so when you write AT+CMGR=4, you are reading the message location at index 4.

the command for reading all the messages is
AT+CMGL=4... i.e you are listing all the messages.
 

send sms class 0 sony ericsson

hi budhy!
Can you give me the schematic for this code
 

read sms cvavr

Hi all,

This article is very intrestiong. am also experimenting with 8535 controller for sms application. can anybody finished this.

I am looking for receiving and decoding part written in c for codevision AVR compiler.

thanks in advance
Naveen
 

codevisionavr example reading sms text mode

Hi naveensurisetty!
It is written by the codevision AVR compiler software.
 

avr, at command

I am searching for code. I started ground work. yes working with codevision AVR compiler with 90S8535 controller, if anybody did this before (or similar code) please port me reply.

Naveen
 

When we send a character to cellphone, the cellphone will echo back that character to us. ie : when you send ATD 628165417560; the cellphone will echo back that string to us.
This feature make a problem when you capture cellphone response!
Send ATE0 (echo off) command to eliminate it!

Here is the CodeVision code to demonstrate what do you want:
Code:
#include <90s8535.h>
#include <stdio.h>
#include <string.h>

char numb[] ="628165417560";
char messg[]="Hello Indonesia";

signed char sendSMS(char *number, char *message){
char response[10];
putsf("ATE0\r"); // disable echo
gets(response,10); // waiting for "OK"
putsf("AT+CMGS=\""); // send number
puts(number);
putsf("\"\r"); // " and 0x0D
gets(response,10); // waiting for ">"
puts(message); // send message
putchar(0x1A); // ended with ctrl-Z
gets(response,10); // waiting for "OK"
return strcmpf(response,"OK");
}

void initUART(void){
...
...
}

void main(void){
initUART();
// repeat send message, until OK
while (!sendSMS(numb,messg));
}


Hi Budhy, i am having a project similar to this.. im using T230 sony ericsson, im just confused in the source codes, is this C language? could you give me notes to finding out
putsf?, gets?, puts?, putchar?
what does these all mean? im using zilog micro

Tnx a lot.... pls reply...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top