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.

SIM700D: Setting as server

Status
Not open for further replies.

BasePointer

Full Member level 2
Full Member level 2
Joined
Jul 3, 2002
Messages
130
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
TURKEY
Activity points
955
Hi,

I can connect to my computer that listens port 2222 with SIM700D and I can easily send or receive data.

Code:
AT
OK

AT+CGATT=1
OK

AT+CGDCONT=1,"IP","internet"
OK

AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK

AT+CSTT="internet","gprs","gprs"
OK

AT+CIICR
OK

AT+CIFSR
213.43.210.178
OK

AT+CIPSTATUS
OK
STATE: IP STATUS

AT+CIPHEAD=1
OK

AT+CIPSRIP=1
OK

AT+CDNSORIP=0
OK

at+cipstart="TCP","78.XX8.XX.108","2222"
OK
CONNECT OK

Now, I want to configure SIM700D as server (it will listen TCP port 2020, and I try to connect it with my computer)

To do this:
Code:
at+clport="tcp","2020"
OK

at+cipserver
SERVER OK

OK

at+cifsr
213.43.199.92

But I couldn't connect to this ip. The client program gives socket error 10060.

Can you send me last firmware of SIM700D (as I know it is 1604B04SIM700D64_ST)

Thanks,
BP.
 

Your service provider is probably blocking the request from the client - every service that I know of does this. Typically you have to pay extra for them to allow request to be passed to your GSM module, and typically you'll get a differant APN.
 

    BasePointer

    Points: 2
    Helpful Answer Positive Rating
GSM Man said:
Your service provider is probably blocking the request from the client - every service that I know of does this. Typically you have to pay extra for them to allow request to be passed to your GSM module, and typically you'll get a differant APN.

I will check this with my provider. I will also try ports known tomorrow like 80, 21 etc..

10x

Added after 4 minutes:

GSM Man said:
Your service provider is probably blocking the request from the client - every service that I know of does this. Typically you have to pay extra for them to allow request to be passed to your GSM module, and typically you'll get a differant APN.

Do you know SIM700D can act as a server and client at the same time? For example, when it is listening port 2020 as a server, can it be connected to a server at the same time?
 
GSM Man said:
Your service provider is probably blocking the request from the client - every service that I know of does this. Typically you have to pay extra for them to allow request to be passed to your GSM module, and typically you'll get a differant APN.

Hi GSM Man,

Yes, port 80 and 8080 worked!

Thank you so much :)
 
Hi BasePointer and GSM man
i'm working with SIM548 to config an server, i also settting
at+clport="tcp","2020"
OK
at+cstt
OK
at+ciicr
OK
at+cifsr
10.128.86.134
at+cipserver
OK
SERVER OK
but at module client, i can not connect to that IP.
i change my port to 80 or 8080 but the same result
the error is STATE TCP CONNECTING
CONNECT FAIL
after all, i connect to server by UDP,
at Client , CONNECT OK
but at Server i can not see any data.
can you give me some idea , thank you so much
 

As I stated early in this thread:
Your service provider is probably blocking the request from the client - every service that I know of does this. Typically you have to pay extra for them to allow request to be passed to your GSM module, and typically you'll get a differant APN.
 
the IP address 10.128.86.134 is a private IP address used for internal networks, e.g. a network behind a Network Address Translation NAT box. You can make TCP/IP connections out but it is difficult to make incomming connections. To access it the NAT box has to be configured to forward packets to the correct internal IP address.

Try a client on the same network?
 

thanks for your reply,
i really need some ideas now.
that ip, of course, is a internal IP in LAN.
but my client is in the same network with an IP like 10.128.134.26
my client and my server is all in a network
at server i'm listening to connection, but with SIM548 which i setting it like a client, i can not connect to the server.
i figure that the problem is about apn.
normally, the setting has 3 parameters: apn, username, password
but in the network which i use, only need setting apn="v-internet". username is blank and password is, too.
do you think it is a problem?
should i use different GPRS netwoork which has all 3 parameters,
thanks you so much
 

HI, GSM man
i understand that problem.
how can i do
do you mean i must call to the service provider to pay extra
Base Pointer could work with 80 and 8080 port, but when i change port to 80 or 8080, i get the same result.
 

dear base pointer,
another thing i do not understand
Your code:

AT
OK

AT+CGATT=1
OK

AT+CGDCONT=1,"IP","internet"
OK

AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK

AT+CSTT="internet","gprs","gprs"
OK

AT+CIICR
OK

AT+CIFSR
213.43.210.178
OK

but when i used the command
at+cifsr
the response is
10.128.85.26
it is a local ip, not a public ip like u.
and although i set the dns like you
after the command at+ciicr
the dns is automatical change to the service provider dns.
can u help me.
i really need do it now
thank you so much
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top