void main ()
{
.
.
.
.
while(buff_rx[buff_rx_adr]!='\0')
{
lcd_show(buf_rx[buff_rx_adr]);
buff_adr++;
}
}
static void interrupt Kesme(void)
{
if(RCIF)
{
buff_rx[buff_rx_adr]=RCREG;
paket_ok=0;
paket_coming=1;
GSM=1;
buff_rx_adr++;
TMR1H=250;
TMR1IF=0;
}
Try this, it work fine to send data. The same when recievin data.
ati
SIMCOM_Ltd
SIMCOM_SIM300
Revision:1008B15SIM300M32_SST34HF3284_MULTIPLEXIP
OK
at+cipmux?
+CIPMUX: 1
OK
at+cstt
OK
at+ciicr
OK
at+cifsr
10.76.58.102
AT+CIPSTART=0,"TCP","205.234.235.188",21
OK
0, CONNECT OK
+RECEIVE:0,310
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 4 of 50 allowed.
220-Local time is now 10:48. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
at+cipsend=0
> user xxxxxx
SEND OK
+RECEIVE:0,40
331 User infolog OK. Password required
at+cipsend=0
> pass xxxxxx
SEND OK
+RECEIVE:0,92
230-User infolog has group access to: infolog
230 OK. Current restricted directory is /
at+cipsend=0
> pasv
SEND OK
+RECEIVE:0,52
227 Entering Passive Mode (205,234,235,188,145,83)
AT+CIPSTART=1,"TCP","205.234.235.188",37203
OK
1, CONNECT OK
at+cipsend=0
> cwd simcom
SEND OK
+RECEIVE:0,38
250 OK. Current directory is /simcom
at+cipsend=0
> stor sim.txt
SEND OK
+RECEIVE:0,30
150 Accepted data connection
at+cipsend=1
> hello from infolog
SEND OK
at+cipsend=0
> bye
SEND OK
1, CLOSED
0, CLOSED
sim300 GPRS modem send data to remote server using 8051 microcontroller
is working c code pls check the bellow link..
#include<string.h>
#include<reg51.h>
unsigned char x=0,i,g[20];
unsigned char s1[9]="AT\r\n"; //send "AT" command modem will response
unsigned char s2[18]="AT+CIPMODE=0\r\n";//Select TCPIP Application mode
unsigned char s3[30]="AT+CLPORT=\"UDP\",\"3500\"\r\n"; //set Local Port
unsigned char s4[45]="AT+CIPCSGP=1,\"airtelgprs.com\"\r\n";//set csd or GPRS for Connection mode "ur GPRS provide address"
unsigned char s5[15]="AT+CSTT\r";//Start Task and set apn
unsigned char s6[15]="AT+CIICR\r";//Bring up wireless connection with GPRS or CSD
unsigned char s7[15]="AT+CIFSR\r"; // Get Local Ip Address "is assign for GPRS Modem"
code unsigned char s8[50]="AT+CIPSTART=\"UDP\",\"219.64.118.125\",\"3500\"\r\n"; // Start Up TCP or Udp Connection
unsigned char s9[15]="AT+CIPSEND\r\n"; //Send Datat Through TCP or UDP Connection
unsigned char sd[46]="193308950\r\n"; // This is the Example Data Send through GPRS Modem
Embed4u » Code Library
nice code thx a lot but until here I do get without any problem:Try this, it work fine to send data. The same when recievin data.
ati
SIMCOM_Ltd
SIMCOM_SIM300
Revision:1008B15SIM300M32_SST34HF3284_MULTIPLEXIP
OK
at+cipmux?
+CIPMUX: 1
OK
at+cstt
OK
at+ciicr
OK
at+cifsr
10.76.58.102
AT+CIPSTART=0,"TCP","205.234.235.188",21
OK
0, CONNECT OK
+RECEIVE:0,310
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 4 of 50 allowed.
220-Local time is now 10:48. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
at+cipsend=0
> user xxxxxx
SEND OK
+RECEIVE:0,40
331 User infolog OK. Password required
at+cipsend=0
> pass xxxxxx
SEND OK
+RECEIVE:0,92
230-User infolog has group access to: infolog
230 OK. Current restricted directory is /
at+cipsend=0
> pasv
SEND OK
+RECEIVE:0,52
227 Entering Passive Mode (205,234,235,188,145,83)
AT+CIPSTART=1,"TCP","205.234.235.188",37203
OK
1, CONNECT OK
at+cipsend=0
> cwd simcom
SEND OK
+RECEIVE:0,38
250 OK. Current directory is /simcom
at+cipsend=0
> stor sim.txt
SEND OK
+RECEIVE:0,30
150 Accepted data connection
at+cipsend=1
> hello from infolog
SEND OK
at+cipsend=0
> bye
SEND OK
1, CLOSED
0, CLOSED
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?