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.

Ericsson T10s Problem

Status
Not open for further replies.

akilleuz

Junior Member level 1
Joined
Apr 2, 2007
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,375
ericsson t10 rs232

Hi

I have a really strange problem controling my T10s with a MCU.

I seems like i cant delete any messages on the phone.

I have connected the phons Pin 11 and 9 directly to Pin D0 an D1 on my Mega16.

Here is my little test program for deleting an sms:

Code:
#define PORT PORTC
#define DDR DDRC 

unsigned char ATEO[] = "ATEO";
unsigned char Delete[] = "AT+CMGD=1"; //Deleteing SMS in index 1
unsigned char Memory[] = "AT+CPMS=\"SM\""; 


void main()
{   
    
   delay_ms(1000); 
   DDR = 0b1;

   InitUART(9600, 4000000, 8, 0);
        
   delay_ms(1000);
   DDR = 0b0;

   puts(ATEO);
   putchar(0x0d);
	
   delay_ms(1000);
   DDR = 0b1;
       
   delay_ms(1000);
   DDR = 0b0;

   puts(Memory);
   putchar(0x0d);
	
   delay_ms(1000);
   DDR = 0b1;
        
   puts(Delete);
   putchar(0x0d);
        
   delay_ms(1000);
   DDR = 0b0;   
        
   delay_ms(1000);
   DDR = 0b1;

}


Here is the function parameters for my UART:
Code:
void InitUART( unsigned long BaudRate, unsigned long XTALFrekvens, unsigned char DataBit, unsigned char Paritet )

i have tried different BaudRates and Paritets, but nothing seems to work.
 

ericsson t10s cable

Bump...
 

hi,
I dont know how C works but it seems that at:
unsigned char ATEO[] = "ATEO";
unsigned char Delete[] = "AT+CMGD=1"; //Deleteing SMS in index 1

and after the AT+CMGD=1 you need to send a CR (carriage Return) instruction to the phone.

Also make sure you can read data from phone, maybe there is a connection problem, hardware.

I mean, you may send commands but the phone could not read them because of special RS232 connection needs.

Also, about hardware, On your Ericsson serial cable, on the site of the 9-pin RS232 you may need to set to logic level 1 (high) the pin number 4. On my R320 and T65 works with this setting, otherwise the phone cannot communicate serially with the microcontroller. I dont remember on the phone's site what pin 4 is but I thing is a control signal like CTS/RTS or simillar.
I hope I help a little.
 

i was did same think using 52
no prob
if not work go for read msg from index value :1
this will solved your prob
 

platonas said:
hi,
I dont know how C works but it seems that at:
unsigned char ATEO[] = "ATEO";
unsigned char Delete[] = "AT+CMGD=1"; //Deleteing SMS in index 1

and after the AT+CMGD=1 you need to send a CR (carriage Return) instruction to the phone.

Also make sure you can read data from phone, maybe there is a connection problem, hardware.

I mean, you may send commands but the phone could not read them because of special RS232 connection needs.

Also, about hardware, On your Ericsson serial cable, on the site of the 9-pin RS232 you may need to set to logic level 1 (high) the pin number 4. On my R320 and T65 works with this setting, otherwise the phone cannot communicate serially with the microcontroller. I dont remember on the phone's site what pin 4 is but I thing is a control signal like CTS/RTS or simillar.
I hope I help a little.

I do send the CR to the phone, im just using
Code:
putchar(0x0d)

I don't have a data cable i just connected the RX/TX from the phone directly to the RX/TX on the mic, so i probably have to set a logic 1 to the pin you are talking about, but i cant figure out which one it is.

Here is a table of the pins on the phone:

https://pinouts.ru/CellularPhones-A-N/ericsson_t10-688_pinout.shtml

Added after 1 minutes:

Added after 1 minutes:

manish12 said:
i was did same think using 52
no prob
if not work go for read msg from index value :1
this will solved your prob

I'm not quiet sue I do understand what you mean, can you try more specific?[/code]

Added after 1 hours 4 minutes:

I have tried to set a logic 1 to pin 7 one the phone, but that didnt help either.
 

akilleuz said:
Hi

I have a really strange problem controling my T10s with a MCU.

I seems like i cant delete any messages on the phone.

I have connected the phons Pin 11 and 9 directly to Pin D0 an D1 on my Mega16.

Here is my little test program for deleting an sms:

Code:
#define PORT PORTC
#define DDR DDRC 

unsigned char ATEO[] = "ATEO";
unsigned char Delete[] = "AT+CMGD=1"; //Deleteing SMS in index 1
unsigned char Memory[] = "AT+CPMS=\"SM\""; 


void main()
{   
    
   delay_ms(1000); 
   DDR = 0b1;

   InitUART(9600, 4000000, 8, 0);
        
   delay_ms(1000);
   DDR = 0b0;

   puts(ATEO);
   putchar(0x0d);
	
   delay_ms(1000);
   DDR = 0b1;
       
   delay_ms(1000);
   DDR = 0b0;

   puts(Memory);
   putchar(0x0d);
	
   delay_ms(1000);
   DDR = 0b1;
        
   puts(Delete);
   putchar(0x0d);
        
   delay_ms(1000);
   DDR = 0b0;   
        
   delay_ms(1000);
   DDR = 0b1;

}


Here is the function parameters for my UART:
Code:
void InitUART( unsigned long BaudRate, unsigned long XTALFrekvens, unsigned char DataBit, unsigned char Paritet )

i have tried different BaudRates and Paritets, but nothing seems to work.

Greetings,

As your Message Store, you pre-selected "SM" (SIM Memory). Most of phones use as default for send/receive messages the "ME" Message Store. Also, the Delete command fails if there is not a message in that memory.

So, first, put a message in the memory are you trying to delete from.

Good luck!
 

I don't know if this will help you or not, but I faced the same problem before and after tracing, I found that I should turn off the flow control of the cell phone.
To do this, you have to connect the cell phone to the PC and using the Hyprt Terminal, you can turn off the flow control. Then, remove the cell phone and connect it to the MCU.
I did this, and it works with me.
Hope it will with you too.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top