Issue of data posting on web server in GSM over the GPRS from when use Different service provider.

5 thoughts on “Issue of data posting on web server in GSM over the GPRS from when use Different service provider.

  1. I’m using Telit’s HE910 GSM Modem To Post The data on web-server. so i’m using different company service provider SIM Card to
    test the data posting from different service provider. In this case when i’m using Vodafone IN SIM card then Data Post Successfully
    on Web-server. when i’m using different service provide like , idea ,airtel which have also INTERNET PACK activated but not posting
    the data on web-server.

    with this post i have attached different service provider at command and its response log.

    VODAFONE SIM LOG

    /* This Log Is Generating Using Vodafone SIM Card /* /* Data Posted Successfully /*

    ATE0
    
    OK
    AT
    
    OK
    AT&K0
    
    OK
    AT+CFUN=5
    
    OK
    AT+CMEE=2
    
    OK
    AT+CPIN?
    
    +CPIN: READY
    
    OK
    AT+CREG?
    
    +CREG: 0,1
    
    OK
    AT#SPN
    
    #SPN: Vodafone IN
    
    OK
    www
    AT#NITZ=1,0
    
    OK
    AT+CCLK?
    
    +CCLK: "16/11/19,17:29:41"
    
    OK
    Time: 17:29:41 , Date: 19/11/16
    AT+CGDCONT=1,"IP","www"
    
    OK
    AT#HTTPCFG=0,"www.xyz.com",80,0,,,0,120,1
    
    OK
    AT+CSQ
    
    +CSQ: 19,0
    
    OK
    AT#SGACT=1,0
    
    OK
    AT#SGACT=1,1
    
    #SGACT: 10.64.12.73
    
    OK
    AT#HTTPQRY=0,0,"/local/login?email=xyz@gmail.com&password=*****"
    
    OK
    AT#HTTPRCV=0
     eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImlzcyI6Imh0dHA6XC9cL3d3dy56ZW52dXMuY29tXC9
    zbWFydGZhcm1cL2xvZ2luIiwiaWF0IjoxNDc5NTU2Nzg1LCJleHAiOjE0Nzk1OTI3ODUsIm5iZiI6MTQ3OTU1Njc4NSwianRpIjoi
    YTFhNmJlYTYzYTU2OWIxZWE3Y2ZmOWM3MjcyMmJjMWUifQ.powKjMIXi_PcYwlrC7Ewk6VsiIQOiV2tVfBhS121E9Q
    
    AT#SD=1,0,80,"www.xyz.com"
    
    CONNECT
    GET http://xyz.com/local/postdata?master_mac=MSGJC20500LZN&slave_mac=NULL&ax=3583&ay=-1&
    az=-16630&mx=3&my=4&mz=26&gx=666&gy=43&gz=-54&humidity=99&latitude=00.0000&longitude=00.0000&
    temperature=29&light=27&combined_moisture_ph=01000100&nutrition=10&battery=35&soil_temp=116&
    date_time=1911-1729&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
    eyJzdWIiOjIsImlzcyI6Imh0dHA6XC9cL3d3dy56ZW52dXMuY29tXC9zbWFydGZhcm1cL2xvZ2luIiwiaWF0IjoxNDc5NTU2Nzg1LCJleHAiOjE0Nzk1OT
    I3ODUsIm5iZiI6MTQ3OTU1Njc4NSwianRpIjoiYTFhNmJlYTYzYTU2OWIxZWE3Y2ZmOWM3MjcyMmJjMWUifQ.
    powKjMIXi_PcYwlrC7Ewk6VsiIQOiV2tVfBhS121E9Q HTTP/1.1
    
    HTTP/1.1 200 OK
    Date: Sat, 19 Nov 2016 11:59:53 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.26
    Cache-Control: no-cache
    Content-Type: application/json
    Transfer-Encoding: chunked
    
    1b0
    {"user_id":2,"master_mac":"MSGJC20500LZN","slave_mac":"NULL","ax":"3583","ay":"-1","az":"-16630","mx":"3",
    "my":"4","mz":"26","gx":"666","gy":"43","gz":"-54","humidity":"99","latitude":"72.5942","longitude":"23.1039",
    "nutrition":"10","temperature":"29","light":"27","battery":"35","soil_temp":"116","ph":4,"moisture":4,
    "date_time":"2016-11-19 17:29:00","updated_at":"2016-11-19 17:29:54","created_at":"2016-11-19 17:29:54","id":1847}
    0
    
    HTTP/1.1 200 OK
    Date: Sat, 19 Nov 2016 11:59:53 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.26
    Cache-Control: no-cache
    Content-Type: application/json
    Transfer-Encoding: chunked

    IDEA SIM LOG

    /* This Log Is Generating Using Idea SIM Card /* /* Data NOT Posted /*

    ATE0
    
    OK
    AT
    
    OK
    AT&K0
    
    OK
    AT+CFUN=5
    
    OK
    AT+CMEE=2
    
    OK
    AT+CPIN?
    
    +CPIN: READY
    
    OK
    AT+CREG?
    
    +CREG: 0,1
    
    OK
    AT#SPN
    
    #SPN: Idea
    
    OK
    imis
    AT#NITZ=1,0
    
    OK
    AT+CCLK?
    
    +CCLK: "16/11/19,17:46:18"
    
    OK
    Time: 17:46:18 , Date: 19/11/16
    AT+CGDCONT=1,"IP","imis"
    
    OK
    AT#HTTPCFG=0,"www.xyz.com",80,0,,,0,120,1
    
    OK
    AT+CSQ
    
    +CSQ: 15,3
    
    OK
    AT#SGACT=1,0
    
    OK
    AT#SGACT=1,1
    
    #SGACT: 10.120.51.157
    
    OK
    AT#HTTPQRY=0,0,"/local/login?email=xyz@gmail.com&password=*****"
    
    +CME ERROR: can not resolve DN
    
    AT#HTTPQRY=0,0,"/local/login?email=xyz@gmail.com&password=*****"
    
    +CME ERROR: can not resolve DN

    AIRTEL SIM LOG
    /* This Log Is Generating Using AIRTEL SIM Card /* /* Data NOT Posted /*

    ATE0
    
    OK
    AT
    
    OK
    AT&K0
    
    OK
    AT+CFUN=5
    
    OK
    AT+CMEE=2
    
    OK
    AT+CPIN?
    
    +CPIN: READY
    
    OK
    AT+CREG?
    
    +CREG: 0,1
    
    
    AT#SPN
    
    #SPN: airtel
    
    OK
    airtelgprs.com
    AT#NITZ=1,0
    
    OK
    AT+CCLK?
    
    +CCLK: "16/11/19,17:38:37"
    
    OK
    Time: 17:38:37 , Date: 19/11/16
    AT+CGDCONT=1,"IP","airtelgprs.com"
    
    OK
    AT#HTTPCFG=0,"www.xyz.com",80,0,,,0,120,1
    
    OK
    SN:25 AT+CSQ
    SN:26 
    +CSQ: 13,3
    
    OK
    AT#SGACT=1,0
    
    OK
    AT#SGACT=1,1
    
    #SGACT: 100.77.200.1
    
    OK
    AT#HTTPQRY=0,0,"/local/login?email=xyz@gmail.com&password=*****"
    
    OK
     AT#HTTPRCV=0
     eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImlzcyI6Imh0dHA6XC9cL3d3dy56ZW52dXMuY29tXC9zbWFydGZhcm1cL2xv
    Z2luIiwiaWF0IjoxNDc5NTU3MzI0LCJleHAiOjE0Nzk1OTMzMjQsIm5iZiI6MTQ3OTU1NzMyNCwianRpIjoiMTRjZWU1N2JmZmFmNWYwMjFmMz
    g3ZWNlYTZhZTQzYTIifQ.Np822FKzXVe9Lc5EU6_NchHyqABU3X2MgZXqFjNDUxg
    
    AT#SD=1,0,80,"www.xyz.com"
    
    CONNECT
    
     GET http://xyz.com/local/postdata?master_mac=MSGJC20500LZN&slave_mac=NULL&ax=3275&ay=547&az=-16807
    &mx=5&my=-8&mz=6&gx=737&gy=104&gz=-1&humidity=55&latitude=00.0000&longitude=00.0000&temperature=30
    &light=25&combined_moisture_ph=01000100&nutrition=10&battery=35&soil_temp=94&date_time=0000-0000
    &token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImlzcyI6Imh0dHA6XC9cL3d3dy56ZW52dXMuY29tXC9zbWFydGZhc
    m1cL2xvZ2luIiwiaWF0IjoxNDc5NTU3MzI0LCJleHAiOjE0Nzk1OTMzMjQsIm5iZiI6MTQ3OTU1NzMyNCwianRpIjoiMTRjZWU1N2JmZmFm
    NWYwMjFmMzg3ZWNlYTZhZTQzYTIifQ.Np822FKzXVe9Lc5EU6_NchHyqABU3X2MgZXqFjNDUxg HTTP/1.1
    
    
    NO CARRIER
    1. Can you check your DNS settings? Send this command to the module, and check the IP addresses of the DNS servers that are being used:
           AT#NWDNS=1

      Can you also make a test with AT#PING, for example:
           AT#PING=8.8.8.8

      This is just to determine if you have a DNS resolution issue or if any data is not passing through.

      1. Hello Taj, 

        i have tried
        AT#NWDNS=1rn

         it reflect the string is :
        #NWDNS: 1 ,”112.110.242.1″,”112.110.242.7″rn

        i have also tried
        AT#DNS=”www.google.com”
        Reply
        #QDNS: “www.google.com”, NOT SOLVED

        1. Hi,
          OK, AT#NWDNS=1 shows that you have received DNS servers from the network. 
          >>AT#DNS=?www.google.com?<< is not a valid AT command syntax.
          This command is used to configure DNS servers manually.
          An example of a correct syntax is this:
                          AT#DNS=1,”8.8.8.8″,”8.8.4.4″

          This command must be set when the context is still deactivated (in this case CID1 must be 0 ? check with ?AT#SGACT? first?)

          AT#QDNS works only on the first AT instance.
          Which port did you used to send the #QDNS command?
          In the default port configuration (AT#PORTCFG=1), the first AT instance is assigned to ASC0 (main UART).

          What was the AT#PING result, did it worked? Did you received a reply from this server?