Method, equipment and medium for automatically controlling SIM card use flow by deformation monitoring CORS host
Technical Field
The invention relates to the technical field of GNSS high-precision positioning measurement control, in particular to a method, equipment and medium for automatically controlling the use flow of an SIM card by a deformation monitoring CORS host.
Background
The CORS (Continuously Operating Reference Stations) host is an important ground Satellite receiver in the field of GNSS (Global Navigation Satellite System). At present, in the deformation monitoring specific application widely applied to the CORS host, high-precision positioning information is obtained through long-time observation, and the monitoring application to landslide, building deformation, bridge deformation and the like is realized.
In practical application, the CORS host works in a reference station, and the SIM card is used for realizing internet surfing. And the CORS host uploads the high-precision positioning data information to the monitoring server in real time through the 4G network. When the positioning information has larger deviation, the monitoring server timely informs responsible persons and informs people in the disaster area to evacuate the danger zone in time. Therefore, the function of warning is achieved, and loss of people caused by natural disasters such as mountain slip waves is reduced.
However, in order to maintain the real-time performance of data, the CORS host needs to consume the SIM card traffic all the time and upload the positioning data information to the monitoring server periodically every second. Moreover, when the number of satellites received by the CORS host is larger, the data volume of the positioning data information is larger, and the flow of the SIM card to be consumed is larger. In the use of the real deformation monitoring CORS host, the SIM generally uses flow cards, and the flow of each card per month is fixed. Therefore, when the CORS host receives more satellite data and the satellite signal-to-noise ratio is higher, the data volume of the positioning data information is inevitably large, the flow of the SIM card in the current month is possibly overburdened, the SIM card is finally overdue and the Internet cannot be accessed, the positioning data information cannot be uploaded to a server, the monitoring is finally possibly disabled, and the responsible persons and the disaster area personnel cannot be timely notified, so that the serious casualties are brought.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a method for automatically controlling the service flow of an SIM card by a deformation monitoring CORS host, and solve the problems that the monthly flow of the SIM card is overburdened due to large data volume of positioning data information, a network is abnormal, and predictive warning information cannot be timely notified to people in disaster areas.
The invention provides a method for automatically controlling the use flow of an SIM card by a deformation monitoring CORS host, which comprises the following steps:
powering on a host, powering on a CORS host, and setting the CORS host to work in a reference station mode;
dialing to access the network, wherein the network module dials to connect to the network;
time information is obtained, the CORS host receives the satellite to perform high-precision positioning, and meanwhile, accurate time information is obtained;
judging the current time, judging whether the current time is preset time, if so, sending a short message to inquire the residual flow of the SIM card, and analyzing the short message reply to obtain the residual flow;
calculating byte data, and calculating the byte data of the positioning information data uploaded to the monitoring center by the current CORS host every second;
estimating actual flow, and estimating the actual flow which may be needed in the month according to the byte data;
controlling the flow, judging the sizes of the residual flow and the estimated actual flow, if the residual flow is larger than the estimated actual flow, skipping to the step of judging the current time, and if the residual flow is smaller than or equal to the estimated actual flow, reducing the number of actually received satellites while ensuring the positioning accuracy, and skipping to the step of calculating byte data.
Further, in the step of judging the current time, the preset time is eight am of Beijing; if the current time is not eight am of the Beijing time, waiting to eight am of the Beijing time.
Further, in the step of estimating the actual flow, the calculation formula for estimating the actual flow that may be needed in the month according to the byte data is as follows:
A=B*3600*24
wherein, A is the actual flow estimation value which may be needed in the current month, and B is the byte data of the positioning information data which is uploaded to the monitoring center by the current CORS host every second.
Furthermore, in the step of controlling the flow, the signal-to-noise ratios of all the satellites are checked and compared, and the preset number of satellites with the lowest signal-to-noise ratio are closed.
Further, the preset number is two.
Further, in the step of dial-up networking, the network module dials up to connect to a 4G network.
An electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing a method for a deformation monitoring CORS host to automatically control SIM card usage traffic.
A computer-readable storage medium having stored thereon a computer program for execution by a processor of a method for deformation monitoring a CORS host to automatically control SIM card usage flow.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a method for automatically controlling the use flow of an SIM card by a deformation monitoring CORS host, which comprises the following steps: the host computer is powered on, dial-up networking is carried out, time information is obtained, the current time is judged, byte data are calculated, actual flow is estimated, and flow is controlled. The invention relates to electronic equipment and a storage medium, which are used for executing a method for automatically controlling the use flow of an SIM card by a CORS host. The invention provides a method for automatically controlling the using flow of an SIM (subscriber identity module) in real time by a CORS (continuous operating system) host, which solves the problem that the monthly flow of an SIM card is overburdened due to large data volume of positioning data information, so that a network is abnormal and predictive warning information cannot be timely notified to people in a disaster area; the CORS host machine can inquire the residual flow of the SIM card in time, and upload the positioning data information to the monitoring server with the minimum flow consumption while ensuring the precision of the positioning data information by controlling the satellite collection number and reducing the number of satellites with low signal-to-noise ratio, thereby ensuring that the flow of the SIM is not over-supported in the month and ensuring the life and property safety of people in disaster areas to the maximum extent.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings. The detailed description of the present invention is given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a method for automatically controlling the flow of a SIM card by a CORS host according to deformation monitoring.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
The method for automatically controlling the use flow of the SIM card by the deformation monitoring CORS host comprises the following steps as shown in figure 1:
powering on a host, powering on a CORS host, and setting the CORS host to work in a reference station mode;
and dialing to access the network, and connecting the network module to the network by dialing. Acquiring time information, normally collecting stars by a CORS host, realizing high-precision positioning and acquiring precise time information;
judging the current time, and judging whether the current time is preset time, wherein in the embodiment, the preset time is eight am of Beijing time, if the current time is not eight am of Beijing time, no processing is needed, and the current time is waited for eight am of Beijing time; and if the current time is eight am in Beijing, sending a short message to inquire the residual flow of the SIM card, and analyzing the short message reply to obtain the residual flow M.
Calculating byte data, and calculating byte data B of positioning information data uploaded to a monitoring center by a current CORS host every second;
estimating actual flow, and estimating the actual flow A which may be needed in the month according to the byte data B, wherein the calculation formula is as follows:
A=B*3600*24
wherein, A is the actual flow estimation value which may be needed in the current month, and B is the byte data of the positioning information data which is uploaded to the monitoring center by the current CORS host every second.
The data volume of the high-precision positioning data information of the CORS host is related to the number of sky satellites received by the CORS host and the signal-to-noise ratio of the satellites. The more the number of satellites is, the larger the data volume is; the higher the signal-to-noise ratio of the satellite, the greater the amount of data. This inevitably leads to the flow use of SIM can't accurately be controlled, probably leads to the current month flow overruns, causes the location data information of key time can't in time upload the server, leads to the disaster area people's life and property to receive the threat.
Controlling the flow, judging the sizes of the residual flow M and the estimated actual flow A, if the residual flow is larger than the estimated actual flow, indicating that the flow is sufficient, needing no special processing, directly jumping to the step of judging the current time, if the residual flow is smaller than or equal to the estimated actual flow, indicating that the residual flow is insufficient, needing processing, and reducing the number of actually received satellites while ensuring the positioning accuracy so as to reduce the data volume of the positioning information sent to the monitoring server;
and checking and comparing the signal-to-noise ratios of all the satellites, and closing the satellites with the lowest signal-to-noise ratio in a preset number, preferably two satellites. Satellite data is reduced, and the current positioning precision is checked to be within an effective range; the data volume of the actual positioning information uploaded to the monitoring server is reduced, so that the use flow of the SIM card is reduced; and jumping to the step of calculating byte data, and further calculating whether the current data volume can meet the condition that M > A. On the premise of ensuring the positioning accuracy, the use flow of the SIM card is automatically controlled by reducing the number of the current receiving satellites.
The current 4G network is mature and is more convenient to apply than the Ethernet. The 4G network is also widely applied to GNSS CORS terminal hosts. The CORS terminal host with the 4G SIM card is also widely applied to deformation monitoring projects. In this embodiment, the network module is connected to the 4G network by dialing. And the CORS terminal host uploads high-precision positioning data information to the monitoring server in real time and uninterruptedly through the 4G network, so that the real-time position monitoring of the monitored point is realized. When the position information of the monitored point changes greatly, the monitoring server timely informs the responsible persons and the people in the disaster area to evacuate the dangerous area.
An electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the method for a deformation monitoring CORS host to automatically control SIM card usage flow.
A computer-readable storage medium having stored thereon a computer program for execution by a processor of a method for deformation monitoring a CORS host to automatically control SIM card usage flow.
An electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the method for a deformation monitoring CORS host to automatically control SIM card usage flow.
A computer-readable storage medium having stored thereon a computer program for execution by a processor of a method for deformation monitoring a CORS host to automatically control SIM card usage flow.
The invention provides a method for automatically controlling the use flow of an SIM card by a deformation monitoring CORS host, which comprises the following steps: the host computer is powered on, dial-up networking is carried out, time information is obtained, the current time is judged, byte data are calculated, actual flow is estimated, and flow is controlled. The invention relates to electronic equipment and a storage medium, which are used for executing a method for automatically controlling the use flow of an SIM card by a CORS host. The invention provides a method for automatically controlling the using flow of an SIM (subscriber identity module) in real time by a CORS (continuous operating system) host, which solves the problem that the monthly flow of an SIM card is overburdened due to large data volume of positioning data information, so that a network is abnormal and predictive warning information cannot be timely notified to people in a disaster area; the CORS host machine can inquire the residual flow of the SIM card in time, and upload the positioning data information to the monitoring server with the minimum flow consumption while ensuring the precision of the positioning data information by controlling the satellite collection number and reducing the number of satellites with low signal-to-noise ratio, thereby ensuring that the flow of the SIM is not over-supported in the month and ensuring the life and property safety of people in disaster areas to the maximum extent.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner; those skilled in the art can readily practice the invention as shown and described in the drawings and detailed description herein; however, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the scope of the invention as defined by the appended claims; meanwhile, any changes, modifications, and evolutions of the equivalent changes of the above embodiments according to the actual techniques of the present invention are still within the protection scope of the technical solution of the present invention.