Armaztetanemneshane
Newbie level 1
tc35i at commands
Hi all! I'm a new here
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)
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.
Hi all! I'm a new here
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);
}
}
}
P.S. sorry for my broken English.