Disclosure of Invention
In order to realize the attendance management of outdoor operators and attendance places which are not local, the applicant provides an electronic attendance system based on a positioning technology, and the electronic attendance system positions an attendance terminal by utilizing a positioning function on the attendance terminal to acquire attendance data of the attendance terminal; then the attendance terminal sends the obtained attendance data to an attendance data center through a communication network; and then, analyzing the received attendance data by the attendance data center to judge whether the attendance object corresponding to the attendance terminal normally goes out.
However, most of the existing attendance checking terminals use only one positioning mode for positioning, for example: positioning is performed only by using a Global Positioning System (GPS), or Positioning is performed only by using a network-assisted GPS, so that when the attendance terminal cannot obtain a Positioning signal due to a change in the environment, Positioning cannot be performed, and the attendance terminal cannot perform attendance normally. Moreover, in the prior art, even if the attendance checking terminal has multiple positioning modes, the attendance checking terminal still needs to manually select the positioning mode for positioning.
In view of the above, the present invention provides an attendance terminal and an attendance method for implementing automatic switching of a positioning mode, which can implement automatic switching to an appropriate positioning mode at different locations to complete attendance.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides an attendance terminal for realizing automatic switching of a positioning mode, which comprises: the device comprises a priority setting module, a positioning processing module and two or more positioning modules; wherein,
the positioning module is used for realizing respective positioning functions according to different positioning modes, returning attendance data to the positioning processing module when the positioning is successful, and returning positioning unsuccessful information to the positioning processing module when the positioning is unsuccessful;
the priority setting module is used for setting the priority of each positioning mode;
the positioning processing module is used for informing the positioning module corresponding to the positioning mode with the highest priority to position according to the priority of each positioning mode; when the positioning is unsuccessful, switching the positioning mode according to the priority and informing the corresponding positioning module to perform positioning; and obtaining attendance data after the positioning is successful.
In the above scheme, the positioning module is a GPS positioning module or a network assisted GPS positioning module.
In the scheme, the priority levels are arranged in ascending order of the values, and the priority level with the smallest value is the highest; or the priority levels are arranged according to descending order of the values, and the priority level with the largest value is the highest;
when the priority levels are arranged according to ascending order of values, the priority setting module is further used for setting the priority level of the GPS positioning mode to be 0 and setting the priority level of the network assisted GPS positioning mode to be 1.
In the foregoing solution, the positioning processing module is further configured to, after the positioning is successful, notify the priority setting module to set the positioning mode with the successful positioning as the positioning mode with the highest priority if the priority of the positioning mode with the successful positioning is not the highest priority.
In the above scheme, the attendance terminal further comprises an information sending module, which is used for sending the attendance data to an attendance data center;
correspondingly, the positioning processing module is also used for sending the attendance data to the information sending module after the positioning is successful.
The invention provides a method for realizing automatic switching of positioning modes, which is characterized in that the priority of each positioning mode is set on an attendance checking terminal; the method further comprises the following steps:
the attendance checking terminal firstly adopts a positioning mode with the highest priority to perform positioning, and if the positioning is unsuccessful, the positioning mode is switched according to the priority to perform positioning; and if the positioning is successful, obtaining attendance data.
In the above solution, the positioning mode includes: a GPS location mode and a network assisted GPS location mode.
In the above scheme, the priority levels are arranged in ascending order of values, and the priority level with the smallest value is the highest, or the priority levels are arranged in descending order of values, and the priority level with the largest value is the highest;
when the priority levels are arranged in ascending order of values, the priority levels of the positioning modes are set as follows: the priority of the GPS positioning mode is set to 0, and the priority of the network assisted GPS positioning mode is set to 1.
In the above scheme, the method further comprises: after the positioning is successful, if the priority of the positioning mode with successful positioning is not the highest priority, the positioning mode with successful positioning is set as the positioning mode with the highest priority.
In the above scheme, the method further comprises: and after the positioning is successful, the attendance terminal sends the attendance data to the attendance data center.
The invention provides an attendance terminal and a method for realizing automatic switching of positioning modes, wherein the priority of each positioning mode is set on the attendance terminal; the attendance checking terminal is firstly positioned in a positioning mode with the highest priority; when the positioning is unsuccessful, positioning according to the priority switching positioning mode; obtaining attendance data after the positioning is successful; further, the attendance terminal sends the obtained attendance data to an attendance data center, and the attendance data center analyzes and confirms whether attendance of an attendance object is normal or not; therefore, the attendance checking terminal can be automatically switched to a proper positioning mode to obtain correct attendance checking information to finish attendance checking no matter in places with superior environment and signals or in regions with severe environment and no coverage of some signals.
Detailed Description
The GPS system is a satellite-based radio navigation positioning system. The GPS space part uses a constellation composed of twenty-four satellites, the height of the satellites is about 20200 kilometers, the satellites are distributed on six orbital planes with the intersection points separated by 60 degrees, four satellites are uniformly distributed on each orbit, and the satellites on two adjacent orbits are separated by 40 degrees, so that at least four satellites can be seen at any place of the earth at the same time.
GPS location technology works well outdoors by receiving satellite ephemeris to calculate latitude and longitude of a location, which has the drawbacks of: the locator loses its working ability whenever it enters a place where it cannot receive satellite signals, such as a house, a viaduct, etc. Moreover, if there are not more than three satellites above the location, the GPS system will not be able to perform positioning from the cold start state.
The network assisted GPS is a positioning technology developed based on a position service, adopts a Client/Server mode, organically combines two positioning technologies of a wireless network Assisted Global Positioning System (AGPS) and an Advanced Forward Link Triangulation (AFLT), and realizes high-precision, high-availability and high-speed positioning. In an environment where both positioning technologies cannot be used, the network assisted GPS will automatically switch to a Cell identity (Cell ID) sector positioning mode, ensuring a positioning success rate.
Several techniques for network assisted GPS fusion are described below:
the positioning technology based on Cell ID is that a network side acquires the Cell information of a base station where a user is currently located so as to acquire the current position of the user, and the accuracy of the positioning technology depends on the distribution of mobile base stations and the size of a coverage area;
the location technology based on AFLT is the unique location technology of Code Division Multiple Access (CDMA) system, and during the location operation, the terminal monitors the pilot frequency information of multiple base stations simultaneously, determines the distance to the nearby base station by using the chip time delay, and finally calculates the specific position by using the triangulation method. The AFLT positioning technology makes up the defect that accurate positioning cannot be completed without satellite signals, and improves the indoor positioning effect.
The positioning technology based on AGPS simplifies the work of the terminal, and the positioning server at the network side and the terminal are matched with each other to complete the positioning work, namely the heaviest work of satellite scanning, positioning operation and the like is transferred from the terminal side to the positioning server at the network side.
From the above description, it can be seen that the Cell ID technology, AFLT technology and AGPS technology used by network assisted GPS must be supported by the mobile communication network, and in many operation areas, such as some operation areas in forestry and fishery, there are many areas that cannot be covered by wireless signals at all, and at this time, the positioning technology based on the conventional GPS independent module will be used.
The basic idea of the invention is: setting the priority of each positioning mode on the attendance checking terminal; the attendance checking terminal is firstly positioned in a positioning mode with the highest priority; when the positioning is unsuccessful, switching the positioning mode according to the priority order to perform positioning; and obtaining attendance data after the positioning is successful.
The invention is further described in detail below with reference to the figures and the specific embodiments.
As shown in fig. 1, the attendance terminal implementing automatic switching of the positioning mode includes: a priority setting module 12, a positioning processing module 13, and two or more positioning modules 11; wherein,
the positioning module 11 is used for realizing respective positioning functions according to different positioning modes, returning attendance data to the positioning processing module 13 when the positioning is successful, and returning positioning unsuccessful information to the positioning processing module 13 when the positioning is unsuccessful;
the attendance checking data comprise longitude and latitude of the current position of the attendance checking terminal and current time information;
the positioning module 11 may be a GPS positioning module, a network assisted GPS positioning module, or the like;
a priority setting module 12, configured to set a priority of each positioning mode;
such as: the setting can be performed in the form of a positioning mode information table, and the priority level can be arranged according to the ascending order of values, such as: setting 0 to indicate that the priority is highest, and sequentially increasing the values and decreasing the priorities, wherein 1, 2, 3 and the priority is lower; as shown in table 1, the priority corresponding to the general GPS positioning mode is 0, which is the highest, the priority of the network assisted GPS positioning mode is 1, and so on; the priority levels may also be arranged in descending order of value, such as: setting 10 indicates the highest priority, 9, 8, 7,.... values decrease in sequence, and priorities decrease in sequence.
| Priority level |
Positioning mode |
| 0 |
GPS positioning |
| 1 |
Network assisted GPS positioning |
| 2 |
...... |
| 3 |
...... |
TABLE 1
The positioning processing module 13 is configured to notify the positioning module 11 corresponding to the positioning mode with the highest priority to perform positioning according to the priority of each positioning mode; when the positioning is unsuccessful, switching the positioning mode according to the priority and informing the corresponding positioning module 11 to perform positioning; obtaining attendance data after the positioning is successful; generally, when the positioning mode is switched, the next positioning mode can be selected according to the priority order;
further, the positioning processing module 13 is further configured to, after the positioning is successful, notify the priority setting module 12 to set the positioning mode with the successful positioning as the positioning mode with the highest priority if the priority of the positioning mode with the successful positioning is not the highest priority; for the positioning mode with the highest priority, the priority of the positioning mode with successful positioning can be exchanged; the original priority can also be sequentially reduced by one level.
The attendance terminal further comprises an information sending module 14 for sending attendance data to an attendance data center; further, the positioning processing module 13 is further configured to send the obtained attendance data to the information sending module 14 after the positioning is successful.
Based on the attendance checking terminal, the invention also provides a method for realizing automatic switching of the positioning mode, as shown in fig. 2, the method comprises the following steps:
step 201: setting the priority of a positioning mode on an attendance checking terminal;
specifically, different priorities are set for different positioning modes on an attendance checking terminal with multiple positioning modes; the positioning mode comprises a GPS positioning mode, a network assisted GPS positioning mode and the like; the setting priority can be set in the form of a positioning mode information table, the priority levels can be arranged according to ascending order of values, if 0 is set, the priority level is the highest, 1, 2, 3, the priority level is sequentially reduced, the GPS positioning mode is generally set to be 0, the priority level is the highest, the network assisted GPS positioning mode is 1, the priority level is the second, and the like; the priority levels may also be arranged in descending order of value, such as: setting 10 indicates the highest priority, 9, 8, 7,.... values decrease in sequence, and priorities decrease in sequence.
Step 202: the attendance checking terminal is firstly positioned by adopting a positioning mode with the highest priority, and when the positioning is unsuccessful, the positioning mode is switched according to the priority to position; obtaining attendance data after the positioning is successful;
specifically, when an attendance object uses an attendance terminal to check attendance, the attendance terminal firstly adopts a positioning mode with the highest priority to position according to the priority of the positioning mode, and switches the positioning mode according to the priority to position when the positioning is unsuccessful, wherein the next positioning mode is generally selected in sequence; after the positioning is successful, taking the longitude and latitude of the current position of the attendance terminal and the current time as attendance data;
further, the step also includes setting the positioning mode with successful positioning as the positioning mode with highest priority if the priority of the positioning mode with successful positioning is not the highest priority after successful positioning; for the positioning mode with the highest priority, the priority of the positioning mode with successful positioning can be exchanged; the original priority can also be sequentially reduced by one level; therefore, if the next attendance place is the same as the current attendance place, the positioning mode which is successful in the current positioning can be directly adopted for positioning, and resources and time are saved;
further, the method also comprises the step that after the positioning is successful, the attendance terminal sends the attendance data to the attendance data center, and the attendance data center analyzes the attendance data and determines whether the attendance of the attendance object is normal or not.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.