Forum Replies Created
-
AuthorPosts
-
Anant Pawar
Participantthis is my code for atmega8….its not working..
help me..where to edit code…
this code is transmitting commands to hyperterminal but not working with mcu
#include<avr/io.h> //This is the header for AVR Microcontroller
#define F_CPU 12000000
#include<util/delay.h>
#include”uart.h” //header file to program uartint main(void)
{DDRC=0x00;PORTC=0x0f;DDRB=0x0f;
uart_init(); //initialisation of uart
while(1)
{if((PINC&0x0f)==0x0f)
{PORTB=0x0f;}
else{
PORTB=0x03;
_delay_ms(6000);
uart_string(“ATr”); //function to pass a string
_delay_ms(2000);
uart_string(“ATE0r”); //function to pass a string
_delay_ms(2000);
uart_string(“AT+CMGF=1r”); //function to pass a string
_delay_ms(2000);
uart_string(“AT+CMGS=”+91**********”r”); //function to pass a string
_delay_ms(2000);
uart_string(“op is ok”);
_delay_ms(5000);
uart_char(0x1a);
_delay_ms(6000);
}
}}rly soon..plz
Anant Pawar
Participanthi…
i have purchased fly900 gsm module.
previously it was working well..but now when i connect it to hyperterminal it is not accepting AT commands..
it respionses countinuosly some smileys,shapes etc. not stopping…
help me to come out of this problem..
Anant Pawar
Participanthello,
i have fly900 gsm module.
previously it was working properly but now it shows error means it shows number of smileys and symbols wen it is connected to hypertrerminal.
it is nt stoping untill power supply is turn off of the gsm modem. and its not accepting any AT commands….
pls help me to come out of this…..as soons as possible
-
AuthorPosts