Cannot ping with Q2406B


#1

Hi,

I am using Q2406B and trying to ping a website using ping function. But can not. Here is a piece of commands in hyperterminal window:

at#connectionstart
10.156.28.218

Ok_Info_GprsActivation
at#ping
No answer from “124.109.52.131”

No answer from “124.109.52.131”

No answer from “124.109.52.131”

No answer from “124.109.52.131”

OK

What is the problem?


#2

Some (many? most?) GPRS providers don’t allow PING…


#3

Is it possible to connect to remote server using tcpip using Q2406B?


#4

Yes, that is the general idea!


#5

how can i know that my gprs module is connected to internet while i can not ping it? after connecting to GPRS network, it does get an IP for itself as i mentioned in my first post. When i try to send an email with it, it generates following error:

#CME ERROR: 38027------- which may mean: The address of the POP3 server has not. been resolved by the secondary DNS server…

Also when i try to ping a website by name like:
at#pingremote=“www.google.com
OK

at#ping
#CME ERROR: 38027

I cant understand what is happening :frowning:


#6

Hi we use ± 6000 Q2406B, and what we do to see if we are connected is to display the ip and look for the state using VSTATE (will return CONNECTED)

you can also check your pdp context or use a ping, meanwhile a failure in the server you checked doesn’t mean that you are disconnected.


#7

As noted above, some GPRS providers block PINGs


#8

so use VSTATE


#9

at#vstateaa
#STATE: “IDLE”

OK
at#connectionstart
10.156.24.83

Ok_Info_GprsActivation
at#vstate
#STATE: “CONNECTED”

OK
at#tcpport
ERROR
at#tcpport?
#TCPPORT: 80

OK
at#tcpserv?
#TCPSERV: “192.168.1.23”

OK
at#tcptxdelay?
#TCPTXDELAY: 100

OK
at#ltcpstart
OK
at#otcp
#CME ERROR: 37122


#10

Any useful information, please?


#11

#CME ERROR: 37122 prompts when another application is running, when i write command at#ltcpstart.


#12

your gprs is in listening mode, I think you can not use it in listening mode and try to open a connection with otcp as a caller.
Why do you want to connect as a client and be in listening mode?


#13

Infact in listening mode, it will always act like TCP server and not as client.

But ok, server or client, whatever it may be, if i ping from a remote PC, the GPRS module should respond.

Secondly, if I ping a remote server/PC with the wavecom module (which is already connected to network), it should reply me positively. But it does not…

Where is the problem?


#14

This has been mentioned to you at least twice already! :unamused:

What have you done to confirm that PINGs do actually work with your particular GPRS service?

Again: not all GPRS providers allow PINGs! :unamused:


#15

It means i will have send a tcp package in order to check the status of communication b/w wavecom module and remote server. :neutral_face:


#16

I can not find any command to write data on TCP port.

E.g., AT# TCP_Put_Data(data);

Are there any commands like above?