Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 #define baud ((F_CPU/(baud_*16UL))-1) #define baud_ 9600 #define F_CPU 16000000UL volatile char bufor[100]; volatile int i=0; void usart_init(void) //PD2->RXD PD3->TXD USART_1 GSM { UBRR1H = (unsigned char) (baud>>8); // ustawiamy predkosc transmisji UBRR1L = (unsigned char) baud; UCSR1B = (1<<RXEN1) | (1<<TXEN1) | (1<<RXCIE1); UCSR1C = (0<<USBS1) | (3<<UCSZ10); } void usart_transmit(char data) { while (!(UCSR1A & (1<<UDRE1))); UDR1=data; } void send(char *data0) { int j; int x=strlen(data0); for(j=0;j<x;j++) { usart_transmit(data0[j]); } } ISR(USART0_RX_vect) // recive interrupt { bufor[i]=UDR1 //write to buffor i++; } int main (void) { sei(); usart_init(); while(1) { send("at /r"); wait_about_100ms; Try_to_search_in_recive_buffor_for _OK _or _ERROR; if(search_result=="ok") {} if (search_result=="error"){} if (search_result=="ring"){ send("ath0"); } //send hang up command } }
Guys I need your help....
Please tell me what package type is SIM900. By Package type I mean... TQFP68, PDIP40 etc.
I know it is (0.94 inches x 0.94 inches x 0.12 inches) with L-shaped contacts on four sides so that they can be soldered both on the side and at the bottom.
Please help... need this information fast because I am making a PCB layout and want to use SIM900.
Thanks in advance...
Hey,
I'm trying to upload images from my cellphone(which is used as a GSM modem) to a server over GPRS using AT commands. Can anyone guide me about that??
Hey,
I'm trying to upload images from my cellphone(which is used as a GSM modem) to a server over GPRS using AT commands. Can anyone guide me about that??
Hi,
Thank you for replying.
I have a set of images in my ARM MCU. I want to upload those images to a server over GPRS using AT commands.
I can activate GPRS and PDP context using AT commands. But what are the commands to connect to a server, transfer images ?
I'm using Samsung phone as a GPRS modem.
What are the steps to achieve this?
Please reply.
Hi,
Thank you for replying.
I have a set of images in my ARM MCU. I want to upload those images to a server over GPRS using AT commands.
I can activate GPRS and PDP context using AT commands. But what are the commands to connect to a server, transfer images ?
I'm using Samsung phone as a GPRS modem.
What are the steps to achieve this?
Please reply.
I have solved the GPRS connectivity problem that I was facing and the reason for my initial post... I am able to connect using GPRS and send data to my web server...
Till now I have only send data.. or text... to a server... but probably the same can be done for an image...
you need to convert the image into some stream of data and then send it...
please provide details of your problem...
void setup(){
Serial.begin(9600);
Serial.println("AT+CGATT?");
delay(1000);
Serial.println("AT+CSNS=4");
delay(1000);
Serial.println("AT+CSTT=\"TATA.DOCOMO.INTERNET\",\"\",\"\"");
delay(1000);
Serial.println("AT+CIICR");
delay(1000);
Serial.println("AT+CIFSR");
delay(1000);
Serial.println("AT+CIPSTART=\"TCP\",\"google.com\",\"80\"");
delay(1000);
Serial.println("AT+CIPSEND");
delay(1000);
Serial.println("AT+CIPCLOSE");
delay(1000);
Serial.println("AT+CIPSHUT");
}
void loop(){
dat = Serial.read();
Serial.print(dat);
delay(1000);
}
I have solved the GPRS connectivity problem that I was facing and the reason for my initial post... I am able to connect using GPRS and send data to my web server...
Till now I have only send data.. or text... to a server... but probably the same can be done for an image...
you need to convert the image into some stream of data and then send it...
please provide details of your problem...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?