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.

Siemens TC35 via AT Commands

Status
Not open for further replies.

Armaztetanemneshane

Newbie level 1
Joined
Sep 9, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
tc35i at commands

Hi all! I'm a new here :D

So... I worked hard and my project's allmost ready, but the final thing - connecting via GSM line caused more problems than any other. I've got a Siemens TC35 modem that seems extremely easy to connect with data call, but my ATmega128 refuses tu accept it.... so this is the code I could write (CodeVisionAVR)
Code:
flash char mod[8]={0x0D,0x0A,'R','I','N','G',0x0D,0x0A};
flash char   mod_con[16]={0x0D,0x0A,'C','O','N','N','E','C','T',' ','9','6','0','0',0x0D,0x0A};
flash char mod_con_s[11]={0x0D,0x0A,'C','O','N','N','E','C','T',0x0D,0x0A};

void wait_for_call_tc35()
{
bit connected=0;
 
 while(!connected)
 {

  unsigned int k; char i=0;
  
  while(i<8)
  {
   rx_counter1=0;
   while(getchar1()==mod[i])
   {
    i++;
    if(i==8) break;
   }
  if(i<8)
  i=0;
  }  

  
  i=0;
  
  for(k=0;k<11;k++)
  {
  if(getchar1_mv(0x1FFF)==mod_con_s[i])
  i++;
  else
  break;
  }  
  
  if(i>=10)
  connected=1;
  else
  {
  for(i=0;i<3;i++)
  putchar1('+');
  delay_ms(2000);
  putchar1('A');
  putchar1('T');
  putchar1('H');
  putchar1(0x0D);
  putchar1(0x0A);
  }
  
  
  }
}
I didn't forget to send ATE0 at startup and clear buffer from ^SYSSTART but still it does not work... if someone has a "driver" or just connected an avr to tc35 please explain me how to make this piece of iron work.

P.S. sorry for my broken English.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top