Foreword
The program requires a basic knowledge: https://www.cnblogs.com/yangfengwu/category/1566194.html all open source code, please learn on their own
Open source Section
I can only say where noted
Now the program does not place a hardware reset of Air202
You do the project when we must add a hardware reset Air202 place
You do the project when we must add a hardware reset Air202 place
You do the project when we must add a hardware reset Air202 place
But GPRS hardware reset each time a waste of time, it can be added
PB2 is assumed restart control, low off, high power
Other did not say anything of the
Another point is, I now set the heartbeat packet is a 3S, if the time required is too long, then
Then the judge will need some time dropped
We do, can look at the data and see what reply GPRS data is dropped,
Which may be the main function
Because of delays GPRS, I set the heartbeat packet response timeout waiting time is 5S