Home > other > Use lots of GPRS module of iot applications to choose what kind of communication mode is more approp
Use lots of GPRS module of iot applications to choose what kind of communication mode is more approp
Time:10-08
This system there are tens of thousands of devices (through the GPRS communication module, equipment without external power battery for a job) communicate with the server on the Internet, communication content is very simple, is to report to the server every few minutes about the current state, the server operators need to send the device end occasionally control instruction or update the device on the program, excuse me, are based on the application scenario I should choose what kind of communication? Udp communication? TCP long connection? If there is a friend can share the relevant experience? Ps: the test phase chose to use udp communication, equipment report time is set to report every 2 minutes at a time (because of considering the GPRS traffic fee and the power consumption of the device can't communicate too often), but found in the test server to send control instructions spirit when ineffective (Internet search may be network seems to be able to stay for a long time the udp seesion), the idea of having to TCP try not basic football skills but only don't know what changed can solve a problem or other problems also feel hesitate to suggest changes temporarily,
CodePudding user response:
Do a check and reply to receive equipment end, have you collected all and received correctly to tell the server, if not let server retransmission again