+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 6
    Points: 4,037, Level: 14

    Join Date
    Dec 2006
    Location
    Delhi , India
    Posts
    328
    Helped
    10 / 10
    Points
    4,037
    Level
    14

    Gprs modem and AT+ HTTP GET REQUEST?

    Hello Friends ,

    I have a query .

    I need to send data from microcontroller to gsm modem which sends data to a web server.

    Now I m sending the following command:
    AT+HTTPPARA="URL","http://xyz.in/abc.php?v1=436&v2=001&v3=031&v4='LOW'&v5='FAIL'&v6='OK'&v7='HIGH'&v8='CLOSE'&v9='BIGT17662'"
    AT+HTTPACTION=0

    I am sending the data to a table in mysql database.
    The problem is when the table is initially empty , The response time from the server is fast.i.e:

    +HTTPACTION: 0,200,210 (response from the server after i send AT+HTTPACTION=0 ) command. ----> response time 1-2 seconds...
    As i send data again and again the response time increases.

    After sending around 50 times of the similar data.
    The response time increases to about 15-16 seconds.

    +HTTPACTION: 0,200,8050 (response from the server after i send AT+HTTPACTION=0 ) command. ----> response time 15-16 seconds...

    I have to continuously keep on sending the data and read the response also from the server

    What can be done so that i can have instant response 2-3 seconds every time.
    1.Can i flush out the server data buffer after sending every command , will it impact the data writing in the table?
    2. If it can be done How do i do it?

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 78,574, Level: 68
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,942
    Helped
    3613 / 3613
    Points
    78,574
    Level
    68

    Re: Gprs modem and AT+ HTTP GET REQUEST?

    Hi,

    at first you need to test WHAT is causing this delay.
    Microcontroller? Modem? Access point? Routers? Server?

    Then you need to test WHY this is happening.

    I assume there are software tools that can monitor the complete internet access, but I donīt have experience with this. --> do an internet search.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 6
    Points: 4,037, Level: 14

    Join Date
    Dec 2006
    Location
    Delhi , India
    Posts
    328
    Helped
    10 / 10
    Points
    4,037
    Level
    14

    Re: Gprs modem and AT+ HTTP GET REQUEST?

    Well friends ,

    I had a work around for the issue .

    Earlier I was reading the entire table of the data base , so it was causing the delay as the table was filling up with more and more entries .
    Now i restricted the view to top 20 rows only so eventually the delay in response reduced.



--[[ ]]--