CN108769210B - Attendance tracking method, device, terminal, server and storage medium - Google Patents

Attendance tracking method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN108769210B
CN108769210B CN201810547593.1A CN201810547593A CN108769210B CN 108769210 B CN108769210 B CN 108769210B CN 201810547593 A CN201810547593 A CN 201810547593A CN 108769210 B CN108769210 B CN 108769210B
Authority
CN
China
Prior art keywords
attendance
user terminal
server
checking
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810547593.1A
Other languages
Chinese (zh)
Other versions
CN108769210A (en
Inventor
杨昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dajiaying Information Technology Co Ltd, Suzhou Dajiaying Information Technology Co Ltd filed Critical Shanghai Dajiaying Information Technology Co Ltd
Priority to CN201810547593.1A priority Critical patent/CN108769210B/en
Publication of CN108769210A publication Critical patent/CN108769210A/en
Application granted granted Critical
Publication of CN108769210B publication Critical patent/CN108769210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • G07C1/12Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity wherein the time is indicated in figures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device, a terminal, a server and a storage medium for attendance tracking. The method comprises the following steps: establishing a WebSocket long connection with a server; receiving a connection state acquisition request sent by a server at an attendance time point, and acquiring the connection state of an attendance user terminal and WIFI equipment in an attendance area; sending the connection state to a server; receiving a positioning acquisition request sent by a server; acquiring positioning information of an attendance checking user terminal; and sending the positioning information to a server, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period. According to the invention, only the connection state and the positioning information under at least two attendance time points are needed to be obtained, so that the data volume is greatly reduced, the manual judgment mode is not relied on, and the attendance efficiency is improved.

Description

Attendance tracking method, device, terminal, server and storage medium
Technical Field
The embodiment of the invention relates to an attendance technology, in particular to an attendance tracking method, an attendance tracking device, a terminal, a server and a storage medium.
Background
With the development of intelligent mobile terminals, more and more functions are integrated on the mobile terminals, and the use of the mobile terminals for attendance checking also becomes an important function of the current mobile terminals. In addition to recording attendance and check-in/check-out of work, the attendance system also needs to judge whether the user normally signs in or check-out in the same day.
In the prior art, when judging whether a user has a spacious work behavior on the same day, the moving track of the user mobile terminal in a certain time period or the whole day is generally directly recorded. The method comprises the steps that a user triggers an eagle eye track grabbing function after the user logs on a duty card, the client sends position information of the position of a mobile terminal to an eagle eye server once every 10 minutes, the eagle eye is closed after the user logs on the duty card, and background personnel judge whether the user is in suspicion of spaciousness or not by analyzing the movement track of the mobile terminal in the time when the user logs on the duty card.
In the prior art, the position of the mobile terminal needs to be acquired in real time, the recorded data volume is large, whether the behavior track of the user is normal or not needs to be judged by observing the behavior track of the user drawn by the eagle eye background in a manual mode, and the efficiency of the manual judgment mode is low.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method, an apparatus, a terminal, a server, and a storage medium for attendance tracking, so as to reduce data volume and improve attendance efficiency.
In a first aspect, an embodiment of the present invention provides an attendance tracking method, where the method includes:
establishing a WebSocket long connection with a server;
receiving a connection state acquisition request sent by a server at an attendance time point through the WebSocket long connection, and acquiring the connection state of an attendance user terminal and WIFI equipment in an attendance area according to the connection state acquisition request;
sending the connection state to the server through the WebSocket long connection;
the method comprises the steps that a positioning acquisition request sent by a server is received through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state between the attendance user terminal and WIFI equipment in an attendance area is unconnected at an attendance time point and is not reconnected within preset time;
acquiring positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and sending the positioning information to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
In a second aspect, an embodiment of the present invention further provides an attendance tracking method, where the method includes:
establishing a WebSocket long connection with an attendance checking user terminal;
when the attendance checking time point is reached, sending a connection state acquisition request to the attendance checking user terminal through the WebSocket long connection so as to request the attendance checking user terminal to report the connection state of the WIFI equipment in the attendance checking area;
receiving the connection state with WIFI equipment in an attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection;
if the connection state is not connected, determining whether the attendance checking user terminal is reconnected with the WIFI equipment within a preset time from the current moment;
if not, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to report the positioning information of the attendance user terminal;
receiving positioning information reported by an attendance user terminal through the WebSocket long connection, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and determining whether the corresponding attendance user has spacious work in a single attendance time period according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
In a third aspect, an embodiment of the present invention further provides an attendance tracking apparatus, where the apparatus includes:
the long connection establishing module is used for establishing WebSocket long connection with the server;
the connection state acquisition module is used for receiving a connection state acquisition request sent by the server at an attendance time point through the WebSocket long connection, and acquiring the connection state between the attendance user terminal and WIFI equipment in an attendance area according to the connection state acquisition request;
the connection state sending module is used for sending the connection state to the server through the WebSocket long connection;
the positioning request receiving module is used for receiving a positioning acquisition request sent by a server through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state of the attendance user terminal and WIFI equipment in an attendance area is unconnected at an attendance time point and is not reconnected within preset time;
the positioning information acquisition module is used for acquiring positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and the positioning information sending module is used for sending the positioning information to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
In a fourth aspect, an embodiment of the present invention further provides an apparatus for attendance tracking, where the apparatus includes:
the long connection establishing module is used for establishing WebSocket long connection with the attendance checking user terminal;
the state request sending module is used for sending a connection state acquisition request to the attendance user terminal through the WebSocket long connection when the attendance time point is reached so as to request the attendance user terminal to report the connection state of the WIFI equipment in the attendance area;
the connection state receiving module is used for receiving the connection state of the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection;
the reconnection determination module is used for determining whether the attendance user terminal is reconnected with the WIFI equipment within a preset time from the current moment if the connection state is not connected;
the positioning request sending module is used for sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection to request the attendance user terminal to report the positioning information of the attendance user terminal if the attendance user terminal is not reconnected with the WIFI equipment;
the positioning information receiving module is used for receiving positioning information reported by an attendance user terminal through the WebSocket long connection, and the positioning information comprises a terminal identifier of the attendance user terminal;
and the spaciousness behavior determining module is used for determining whether spaciousness behaviors exist in the single attendance time period of the corresponding attendance users according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
In a fifth aspect, an embodiment of the present invention further provides an attendance checking user terminal, where the terminal includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, the one or more programs cause the one or more processors to implement the method for attendance tracking according to any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, the one or more programs cause the one or more processors to implement the method for attendance tracking according to any embodiment of the present invention.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for attendance tracking according to any embodiment of the present invention.
The technical scheme of the embodiment of the invention is that data are transmitted through WebSocket long connection between an attendance user terminal and a server, the server is used for timing and sending a connection state acquisition request to the attendance user terminal when the attendance time point is reached, the attendance user terminal acquires the connection state of WIFI equipment in an attendance area and sends the connection state to the server, a positioning acquisition request sent when the server determines that the connection state of the attendance user terminal and the WIFI equipment in the attendance area is not connected at the attendance time point and is not reconnected within preset time is received, the positioning information of the attendance user terminal is acquired and sent to the server, the server determines whether an attendance user has spacious work behavior according to the positioning information of at least two attendance time points in a single attendance time period, and only the connection state and the positioning information of at least two attendance time points are acquired, the data volume is greatly reduced, the mode of manual judgment is not relied on, and the attendance checking efficiency is improved.
Drawings
Fig. 1 is a flowchart of a method for attendance tracking according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for attendance tracking according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for attendance tracking according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for attendance tracking according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for attendance tracking according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an attendance tracking apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an attendance tracking apparatus according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of an attendance checking user terminal according to an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to a ninth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of an attendance tracking method according to an embodiment of the present invention, where the method is applicable to an attendance tracking situation of an attendance user carrying an attendance user terminal, and the method may be executed by an attendance tracking device, and the device may be implemented by software and/or hardware, and may be generally integrated in the attendance user terminal. The method specifically comprises the following steps:
step 110, establishing a WebSocket long connection with the server.
The WebSocket Protocol is a new network Protocol based on TCP (Transmission Control Protocol), and it implements full duplex communication between the browser and the server, and allows the server to actively send information to the client. Based on HTTP (HyperText Transfer Protocol), the server passively receives a request from the client and provides corresponding response information, and cannot actively send information to the client.
The attendance checking user terminal initiates an HTTP request to the server through an HTTP/HTTPS protocol, and establishes a TCP connection for exchanging data after handshaking, namely establishes a WebSocket long connection with the server. The attendance checking user terminal and the server only need to do a handshake action, and after the connection is established, the attendance checking user terminal and the server can mutually push information at any time. Wherein the HTTP request comprises switching a protocol to WebSocket.
And establishing a WebSocket long connection with the server so as to facilitate the follow-up server to actively send information to the attendance checking user terminal. The attendance user terminal can be a terminal carried by an attendance user such as a user mobile phone or a specific attendance terminal, and needs an attendance user authorization server to acquire the WIFI connection state and the positioning information of the attendance user terminal.
And 120, receiving a connection state acquisition request sent by the server at the attendance time point through the WebSocket long connection, and acquiring the connection state between the attendance user terminal and the WIFI equipment in the attendance area according to the connection state acquisition request.
The server determines the attendance time points in a preset number, and determines whether positioning information needs to be acquired according to the connection state of the attendance user terminals at the attendance time points, so that the attendance tracking of the attendance users is performed. The attendance checking area is a preset area for attendance checking, is specifically represented by a latitude and longitude coordinate range, can use the name of an enterprise or a company as an attendance checking area identifier, is a specific area determined according to the specific position of the enterprise or the company, such as an area within a preset distance (such as 500 meters) around the position of the enterprise or the company, and can also include an area where an attendance user goes on business. The attendance user terminal may pre-store a WIFI identifier Set of all WIFI (Wireless Fidelity ) devices in an attendance area, where the WIFI identifier Set is a Set of device identifiers of all WIFI devices in the attendance area, the device identifiers of the WIFI devices include a WIFI name (i.e., SSID) and a BSSID, the BSSID refers to a Media Access Control (MAC) address or a Media Access Control (MAC) address of a station, the BSS (Basic Service Set, Basic Service device) is an application of a special Ad-hoc LAN, one Wireless network is composed of at least one Wireless Access Point (AP) connected to a wired network and a plurality of Wireless work stations, the configuration is referred to as a BSS, a group of computers Set the same BSS name, that is, a group may be self-formed, and each BSS is assigned with an id.
The method comprises the steps that a server carries out timing of an attendance time point, when the attendance time point is reached, a connection state acquisition request is actively sent to an attendance user terminal through an established WebSocket long connection, the attendance user terminal can acquire an equipment identifier of WIFI equipment currently connected with the attendance user terminal after receiving the connection state acquisition request sent by the server through the WebSocket long connection, the acquired equipment identifier of the WIFI equipment is compared with equipment identifiers in a WIFI identifier set of the WIFI equipment in an attendance area, and if the acquired equipment identifier of the WIFI equipment exists in the WIFI identifier set of the WIFI equipment in the attendance area, the connection state of the attendance user terminal and the WIFI equipment in the attendance area is determined to be connected; if the acquired equipment identifier of the WIFI equipment does not exist in the WIFI identifier set of the WIFI equipment in the attendance checking area, determining that the connection state of the attendance checking user terminal and the WIFI equipment in the attendance checking area is unconnected; under the condition that the WIFI switch is turned on, if the WIFI signal cannot be received, the attendance user terminal cannot be connected with any WIFI equipment, the connection state of the attendance user terminal and the WIFI equipment in the attendance area is determined to be unconnected at the moment, and under the condition that the WIFI switch is not turned on, the connection state of the attendance user terminal and the WIFI equipment in the attendance area is also unconnected. Certainly, those skilled in the art can understand that the attendance user terminal can directly send the device identifier of the currently connected WIFI device to the server as a connection state, and the server determines the connection state between the attendance user terminal and the WIFI device in the attendance area according to the device identifier of the currently connected WIFI device of the attendance user terminal.
And step 130, sending the connection state to the server through the WebSocket long connection.
After the connection state of the attendance user terminal and WIFI equipment in an attendance area is obtained, the connection state is sent to a server through the WebSocket long connection, and the server judges whether the positioning information of the attendance user terminal needs to be obtained or not.
Step 140, receiving a positioning acquisition request sent by the server through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state between the attendance user terminal and the WIFI device in the attendance area is unconnected at the attendance time point and is not reconnected within a preset time.
After receiving the connection state of the attendance user terminal and the WIFI equipment in the attendance area, the server determines that the connection state of the attendance user terminal and the WIFI equipment in the attendance area is unconnected at the attendance time point, whether reconnection is started within preset time at the current moment is continuously confirmed in order to avoid the disconnection caused by instability of WIFI signals, and if not, a positioning acquisition request is sent to the attendance user terminal through the WebSocket long connection so as to acquire positioning information of the attendance user terminal. The preset time may be set as needed, and may be, for example, 5 minutes.
And 150, acquiring the positioning information of the attendance checking user terminal according to the positioning acquisition request, wherein the positioning information comprises the terminal identification of the attendance checking user terminal.
The location information of the attendance user terminal is longitude and latitude coordinates where the attendance user terminal is located. The terminal Identifier of the attendance user terminal includes at least one of a terminal name, a MAC address, an IMEI (International Mobile Equipment Identity), an MEID (Mobile Equipment Identity), a Mobile phone number, and the like. The server prestores WIFI identification sets of all WIFI (Wireless Fidelity) devices in an attendance area and terminal identification sets of corresponding attendance user terminals, and can preserve a plurality of attendance areas corresponding to a plurality of enterprises or companies, WIFI identification sets of WIFI devices corresponding to the attendance areas and terminal identification sets of the attendance user terminals. The terminal identification set is a set of terminal identifications of all attendance user terminals in the attendance checking area. The server also needs to store the corresponding relationship between the attendance user terminal and the corresponding attendance user, so that the terminal identification of the attendance user terminal can be obtained to uniquely determine the attendance user using the attendance user terminal. When a new attendance user joins the attendance area, the terminal identification of the attendance user terminal of the attendance user is added into the terminal identification set, and when the attendance user leaves the enterprise or the company corresponding to the attendance area, the terminal identification corresponding to the attendance user terminal held by the attendance user is deleted from the terminal identification set.
After receiving the Positioning acquisition request, the attendance user terminal may acquire Positioning information based on GPS (Global Positioning System) Positioning, and may acquire Positioning information based on a base station when the attendance user terminal is a mobile phone. The base station positioning is to determine the position of the mobile phone by measuring and calculating the distance of the mobile phone by the base station, the accuracy of the base station positioning depends on the distribution of the base station and the size of the coverage area to a great extent, and the error is large. However, the indoor GPS signal is poor, and when the mobile phone is indoors, the positioning information can be obtained by means of base station positioning, so that the positioning information of the attendance checking user terminal can be obtained by combining GPS and base station positioning. The positioning information comprises a terminal identification of the attendance user terminal, so that the server can conveniently determine the attendance user terminal corresponding to the positioning information.
Step 160, the positioning information is sent to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether a corresponding attendance user has spacious work in a single attendance time period according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
The single attendance checking time period can be determined according to needs, for example, may be one day, half day, one week, and the like, and is preferably one day. A plurality of attendance time points are arranged in a single attendance time period.
Because the positioning information is acquired when the server determines that the connection state between the attendance user terminal and the WIFI equipment in the attendance area is unconnected at the attendance time point and is not reconnected within the preset time, whether spacious work action exists in a single attendance time period of the corresponding attendance user can be determined only according to the positioning information of the attendance user terminal at least two attendance time points within the single attendance time period.
The technical scheme of the embodiment includes that a WebSocket long connection with a server is established, the server performs timing and sends a connection state acquisition request to an attendance user terminal when the connection state acquisition request reaches a time point, the attendance user terminal acquires the connection state with WIFI equipment in an attendance area and sends the connection state to the server, a positioning acquisition request sent when the server determines that the connection state of the attendance user terminal with the WIFI equipment in the attendance area is unconnected at the attendance time point and is not reconnected within a preset time is received, positioning information of the attendance user terminal is acquired and sent to the server, the server determines whether an attendance user has spacious work behavior according to the positioning information of at least two attendance time points in a single attendance time period, only the connection state and the positioning information of at least two attendance time points are needed to be acquired, the data volume is greatly reduced, and the mode of manual judgment is not relied any more, the attendance checking efficiency is improved.
On the basis of the above embodiment, before establishing the WebSocket long connection with the server, the method may further include:
and acquiring the attendance information of the attendance user, sending the attendance information to the server to request the server to match the attendance information with preset attendance information, and determining whether the attendance user successfully signs in.
The attendance information can include the attendance user characteristics such as fingerprint information or face information, can also include the positioning information of the attendance user terminal and/or the equipment identification of the WIFI equipment connected with the attendance user terminal, and can also be the combination of the attendance user characteristics such as fingerprint information or face information and the equipment identification of the positioning information or the connected WIFI equipment. When the check-in information is the attendance user characteristics, presetting corresponding attendance user characteristics reserved for the attendance user by the check-in information; when the attendance information is positioning information of the attendance user terminal, presetting the attendance information as a whole attendance area; when the sign-in information is the equipment identification of the WIFI equipment connected with the attendance user terminal, presetting the WIFI identification set of the WIFI equipment in the attendance area as the sign-in information.
The attendance checking method comprises the steps of obtaining attendance checking information of an attendance checking user, sending the attendance checking information to a server based on an HTTP protocol, firstly establishing TCP connection with the server, namely establishing connection through three-way handshake, then sending the attendance checking information to the server through the established TCP connection, matching the attendance checking information with preset attendance checking information after the server receives the attendance checking information to determine whether the attendance checking user successfully signs, and then returning the attendance checking result whether the attendance checking user successfully signs to an attendance checking user terminal, so that the attendance checking user can know the attendance checking result conveniently, and the attendance checking user terminal can establish WebSocket long connection with the server when the attendance checking user successfully signs, so that attendance checking tracking can be conveniently carried out on the attendance checking user who successfully signs.
On the basis of the above embodiment, after acquiring the check-in information of the attendance checking user and sending the check-in information to the server, the method may further include:
after the attendance checking user successfully signs in, receiving a connection reminding instruction sent by the server when the attendance checking user terminal is determined not to be connected with the WIFI equipment in the attendance checking area, wherein the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance checking area;
and reminding the attendance checking user to connect the WIFI equipment in the attendance checking area according to the connection reminding instruction.
After the attendance user successfully signs in, the server can acquire an equipment connection list of the WIFI equipment in the attendance area, judge whether the equipment connection list comprises a terminal identification of an attendance user terminal corresponding to the attendance user, when the equipment connection list does not comprise the terminal identification of the attendance user terminal corresponding to the attendance user, determine that the attendance user terminal is not connected with the WIFI equipment in the attendance area, send a connection reminding instruction to the attendance user terminal, after the attendance user terminal receives the connection reminding instruction, remind the attendance user to connect the WIFI equipment in the attendance area, and display the WIFI name of the WIFI equipment in the attendance area according to the WIFI identification set, so that the attendance user can conveniently connect the WIFI equipment in the attendance area, thereby being convenient for subsequently acquiring a correct connection state and improving the correctness of attendance tracking. When the server sends the connection reminding instruction to the attendance user terminal, the connection reminding instruction can be used as part or all of response information of the attendance user terminal.
Example two
Fig. 2 is a flowchart of an attendance tracking method according to a second embodiment of the present invention, which is optimized based on the foregoing embodiment, and specifically, before receiving a positioning acquisition request sent by a server through the WebSocket long connection, the method further includes: receiving a reconnection acquisition request sent by a server through the WebSocket long connection; and according to the reconnection acquisition request, determining whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area within a preset time from the current moment, and sending a determination result to the server through the WebSocket long connection. The method specifically comprises the following steps:
step 210, establishing a WebSocket long connection with the server.
And step 220, receiving a connection state acquisition request sent by the server at the attendance time point through the WebSocket long connection, and acquiring the connection state between the attendance user terminal and the WIFI equipment in the attendance area according to the connection state acquisition request.
And step 230, sending the connection state to the server through the WebSocket long connection.
And 240, receiving a reconnection acquisition request sent by the server through the WebSocket long connection.
The server determines that the connection state is unconnected after receiving the connection state of the attendance user terminal and the WIFI equipment in the attendance area, in order to avoid the disconnection caused by instability of WIFI signals, the server needs to determine that the attendance user terminal and the WIFI equipment in the attendance area are reconnected within preset time, and sends a reconnection acquisition request to the attendance user terminal.
And step 250, determining whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area within a preset time from the current moment according to the reconnection acquisition request, and sending a determination result to the server through the WebSocket long connection.
After receiving the reconnection acquisition request through the WebSocket long connection, the attendance user terminal performs timing of preset time, detects whether the attendance user terminal is reconnected with the WIIFI equipment in the attendance area within the preset time from the current moment, and sends a reconnection determination result to the server through the WebSocket long connection and stops timing once the attendance user terminal is detected to be reconnected with the WIFI equipment in the attendance area; and if the preset time is up, the attendance user terminal and the WIFI equipment in the attendance area are not reconnected, and a determination result that the reconnection is not achieved is sent to the server through the WebSocket long connection.
Step 260, receiving a positioning acquisition request sent by a server through the WebSocket long connection, wherein the positioning acquisition request is sent by the server when the connection state between the attendance user terminal and the WIFI equipment in the attendance area is determined to be unconnected at the attendance time point and unconnected again within a preset time.
And 270, acquiring the positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises the terminal identification of the attendance user terminal.
Step 280, the positioning information is sent to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether a corresponding attendance user has spacious work in a single attendance time period according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
According to the technical scheme of the embodiment, on the basis of the embodiment, the reconnection acquisition request sent by the server is directly received through the WebSocket long connection, whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area or not is determined within the preset time from the current moment, and the determination result is sent to the server through the WebSocket long connection, so that existing resources can be fully utilized, and resource waste is avoided.
EXAMPLE III
Fig. 3 is a flowchart of an attendance tracking method according to a third embodiment of the present invention, where the method is applicable to an attendance tracking situation of an attendance user carrying an attendance user terminal, and the method may be executed by an attendance tracking device, and the device may be implemented by software and/or hardware, and may be generally integrated in a server. The method specifically comprises the following steps:
and step 310, establishing a WebSocket long connection with the attendance checking user terminal.
The WebSocket Protocol is a new network Protocol based on TCP (Transmission Control Protocol), and it implements full duplex communication between the browser and the server, and allows the server to actively send information to the client. Based on HTTP (HyperText Transfer Protocol), the server passively receives a request from the client and provides corresponding response information, and cannot actively send information to the client.
The attendance checking user terminal initiates an HTTP request to the server through an HTTP/HTTPS protocol, a TCP connection for exchanging data is established after handshaking is carried out, namely the WebSocket long connection between the server and the attendance checking user terminal is established. The attendance checking user terminal and the server only need to do a handshake action, and after the connection is established, the two parties can mutually push information at any time. Wherein the HTTP request comprises switching a protocol to WebSocket.
And a WebSocket long connection with the attendance checking user terminal is established, and the subsequent server can actively send information to the attendance checking user terminal. The attendance user terminal can be a terminal carried by an attendance user such as a user mobile phone or a specific attendance terminal, and needs an attendance user authorization server to acquire the WIFI connection state and the positioning information of the attendance user terminal.
And 320, when the attendance checking time point is reached, sending a connection state acquisition request to the attendance checking user terminal through the WebSocket long connection so as to request the attendance checking user terminal to report the connection state of the WIFI equipment in the attendance checking area.
The server determines the attendance time points with a preset number in advance, and carries out attendance tracking on the attendance users according to the connection states and the positioning information of the attendance user terminals and the WIFI equipment in the attendance area when the attendance user terminals are at the attendance time points. The attendance checking area is a preset area for attendance checking, is specifically represented by a latitude and longitude coordinate range, can use the name of an enterprise or a company as an attendance checking area identifier, is a specific area determined according to the specific position of the enterprise or the company, such as an area within a preset distance (such as 500 meters) around the position of the enterprise or the company, and can also include an area where an attendance user goes on business. The server pre-stores WIFI identification sets of all WIFI devices in the attendance area and terminal identification sets of corresponding attendance user terminals, and can store a plurality of attendance areas corresponding to a plurality of enterprises or companies and WIFI identification sets of WIFI devices corresponding to the attendance areas and terminal identification sets of attendance user terminals. The WIFI identifier Set is a Set of device identifiers of all WIFI devices in an attendance checking area, the device identifiers of the WIFI devices comprise WIFI names (namely SSIDs) and BSSIDs (Basic Service sets), the BSSIDs refer to MAC addresses of stations, BSSs (Basic Service sets) are applications of special Ad-hoc LANs, one wireless network at least comprises one AP (access point) connected to a wired network and a plurality of wireless work stations, the configuration is called a BSS, a group of computers Set the same BSS name, namely, the group of computers can form a group by themselves, and each BSS is endowed with one BSSID. The terminal identification set is a set of terminal identifications of all attendance user terminals in the attendance checking area. The server also needs to store the corresponding relationship between the attendance user terminal and the corresponding attendance user, so that the terminal identification of the attendance user terminal can be obtained to uniquely determine the attendance user using the attendance user terminal. When a new attendance user joins the attendance area, the terminal identifier of the attendance user terminal of the attendance user is added into the terminal identifier set corresponding to the attendance area, and when the attendance user leaves the enterprise or the company corresponding to the attendance area, the terminal identifier corresponding to the attendance user terminal held by the attendance user is deleted from the corresponding terminal identifier set.
The server determines a set number of attendance time points, then carries out timing, actively sends a connection state acquisition request to the attendance user terminal through the established WebSocket long connection when the attendance time points are reached, and requests the attendance user terminal to report the current connection state of the WIFI equipment in the attendance area. All attendance checking users in one attendance checking area can use the same set number of attendance checking time points, and at the moment, the server can simultaneously send connection state acquisition requests to all attendance checking user terminals at regular time and when the attendance checking time points are reached; the server can also group all the attendance checking users in an attendance checking area, determine the attendance checking time points with the set number for each group, and send connection state acquisition requests to all the attendance checking user terminals of the group when the attendance checking time points of one group are reached.
And 330, receiving the connection state with the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection.
The connection state of the WIFI equipment in the attendance area, which is sent by the attendance user terminal, can be an equipment identifier of the WIFI equipment currently connected with the attendance user terminal, and can also be a connection state of the WIFI equipment in the attendance area, which is determined by the attendance user terminal. When the connection state of the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, is the equipment identifier of the WIFI equipment currently connected with the attendance checking user terminal, the server needs to compare with the equipment identifiers in the WIFI identifier set in the attendance checking area to determine the connection state of the attendance checking user terminal and the WIFI equipment in the attendance checking area.
Step 340, if the connection state is not connected, determining whether the attendance user terminal is reconnected with the WIFI equipment within a preset time from the current moment.
When the attendance is at the attendance time point, the connection state of the attendance user terminal and the WIFI equipment in the attendance area is unconnected, so that the disconnection caused by instability of WIFI signals is avoided, countdown of preset time is performed, and whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area within the preset time starting at the current moment is determined. The preset time may be set as needed, and may be, for example, 5 minutes.
And if the connection state of the attendance user terminal and the WIFI equipment in the attendance area is connected at the attendance time point, determining that the attendance user normally goes out at the attendance time point.
Optionally, in a preset time starting at the current time, determining whether the attendance user terminal is reconnected with the WIFI device includes:
sending a reconnection acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to determine whether to reconnect with WIFI equipment in the attendance area within a preset time from the current moment, and receiving a determination result sent by the attendance user terminal through the WebSocket long connection; or
Sending a reconnection acquisition instruction to the WIFI equipment in the attendance checking area to indicate the WIFI equipment to determine whether to reconnect with the attendance checking user terminal within preset time starting at the current moment, and receiving a determination result sent by the WIFI equipment in the attendance checking area, wherein the reconnection acquisition instruction comprises a terminal identification of the attendance checking user terminal.
When the attendance checking user terminal is determined to be reconnected with the WIFI equipment in the attendance checking area, the reconnection judgment can be performed by the attendance checking user terminal or by the WIFI equipment in the attendance checking area.
Step 350, if the attendance user terminal is not reconnected with the WIFI device, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to report positioning information of the attendance user terminal.
The positioning information of the attendance user terminal is longitude and latitude coordinates where the attendance user terminal is located, the attendance user terminal can be obtained based on GPS positioning, and when the attendance user terminal is a mobile phone, the attendance user terminal can be obtained based on base station positioning. The base station positioning is to determine the position of the mobile phone by measuring and calculating the distance of the mobile phone by the base station, the accuracy of the base station positioning depends on the distribution of the base station and the size of the coverage area to a great extent, and the error is large. However, the indoor GPS signal is poor, positioning information can be obtained by means of base station positioning when the mobile phone is indoors, and positioning information of the attendance user terminal can be obtained by combining GPS and base station positioning.
In a preset time after the attendance time point, when the attendance user terminal is not reconnected with the WIFI equipment in the attendance area, positioning information of the attendance user terminal needs to be further acquired, and the attendance state of the attendance user at the attendance time point is determined by combining the positioning information, so that a positioning acquisition request is sent to the attendance user terminal through the WebSocket long connection so as to acquire the positioning information of the attendance user terminal. Within the preset time after the attendance time point, the attendance user terminal is reconnected with the WIFI equipment in the attendance area, and the disconnection at the attendance time point can be determined to be caused by instability of a WIFI signal, so that the attendance user is determined to normally go out at the attendance time point.
And step 360, receiving positioning information reported by the attendance user terminal through the WebSocket long connection, wherein the positioning information comprises a terminal identification of the attendance user terminal.
The positioning information comprises a terminal identification of the attendance user terminal, so that the server can conveniently determine the attendance user terminal corresponding to the positioning information.
And 370, determining whether the corresponding attendance user has spacious work in a single attendance time period according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
The positioning information is acquired when the attendance user terminal is not connected with the WIFI equipment in the attendance area at the attendance time point and is not reconnected within the preset time. Therefore, whether the positioning information of at least two attendance time points in a single attendance time period is in an attendance area or not is counted, and if the positioning information of at least two attendance time points is not in the attendance area for a preset number of times, it is determined that the attendance user has spacious work in the single attendance time period; and if the positioning information of at least two attendance time points is not in the attendance area for less than the preset times, determining that no work absenteeism exists in a single attendance time period. If the positioning information is received only once or not within a single attendance time period, it can be determined that no spacious work action exists for the attendance user. When the positioning information is received only once, the fact that only one attendance user terminal at one attendance time point in a single attendance time period is unconnected with the WIFI equipment in the attendance area within the preset time is shown, and when the positioning information is not received, the fact that the attendance user terminal is connected with the WIFI equipment in the attendance area within the preset time of each attendance time point in the single attendance time period is shown.
After determining whether the user has spacious work in a single attendance time period, the WebSocket long connection with the attendance user terminal can be closed to release resources.
The technical scheme of this embodiment is that a WebSocket long connection with an attendance user terminal is established, timing is performed by a server, when an attendance time point is reached, a connection state acquisition request is sent to the attendance user terminal through the WebSocket long connection, the connection state with WIFI equipment in an attendance area sent by the attendance user terminal is received, if the connection state is unconnected, whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area is determined within a preset time from the current time, if not, a positioning acquisition request is sent to the attendance user terminal through the WebSocket long connection, and positioning information reported by the attendance user terminal is received, whether a work absence behavior of a corresponding attendance user exists in a single attendance time period is determined according to positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period, so that only the connection state and the positioning information of the at least two time points are required to be acquired, the data volume is greatly reduced, the mode of manual judgment is not relied on, and the attendance checking efficiency is improved.
On the basis of the technical scheme, before the WebSocket long connection with the attendance checking user terminal is established, the method can also optionally comprise the following steps:
receiving attendance information of the attendance user sent by the attendance user terminal;
and matching the attendance information with preset attendance information, and if the attendance information is successfully matched with the preset attendance information, determining that the attendance user successfully signs in.
The attendance information can include the attendance user characteristics such as fingerprint information or face information, can also include the positioning information of the attendance user terminal and/or the equipment identification of the WIFI equipment connected with the attendance user terminal, and can also be the combination of the attendance user characteristics such as fingerprint information or face information and the equipment identification of the positioning information or the connected WIFI equipment. When the check-in information is the attendance user characteristics, presetting corresponding attendance user characteristics reserved for the attendance user by the check-in information; when the attendance information is positioning information of the attendance user terminal, presetting the attendance information as a whole attendance area; when the sign-in information is the equipment identification of the WIFI equipment connected with the attendance user terminal, presetting the WIFI identification set of the WIFI equipment in the attendance area as the sign-in information.
The attendance checking method comprises the steps that attendance checking user check-in information sent by an attendance checking user terminal can be received based on an HTTP protocol, TCP connection with the attendance checking user terminal is established firstly, namely, connection is established through three-way handshake, then the check-in information is received through the established TCP connection, after the server receives the check-in information, the server is matched with preset check-in information to determine whether the attendance checking user successfully checks in, check-in results of whether the attendance checking user successfully checks in or not are returned to the attendance checking user terminal as response information, the attendance checking user terminal is convenient to know the check-in results, the attendance checking user terminal can establish WebSocket long connection with the server when the attendance checking user successfully checks in, and attendance checking tracking is carried out on the attendance checking user who successfully checks in based on the Socket long.
On the basis of the technical scheme, after the attendance checking user is determined to successfully check in, the method can further optionally comprise the following steps:
acquiring an equipment connection list of WIFI equipment in the attendance checking area;
according to the equipment connection list, when the attendance user terminal is determined not to be connected with the WIFI equipment in the attendance area, a connection reminding instruction is sent to the attendance user terminal so as to instruct the attendance user terminal to remind an attendance user to connect with the WIFI equipment in the attendance area, and the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance area.
In the attendance checking area, the attendance checking user terminal can be connected with any WIFI equipment in the WIFI identification set, namely, the attendance checking user terminal can be switched between a plurality of wireless networks of a plurality of WIFI equipment in the corresponding WIFI identification set.
After the attendance checking user is detected to successfully sign in, an equipment connection list of the WIFI equipment in the attendance checking area is obtained, whether the equipment connection list of each WIFI equipment comprises a terminal identification of an attendance checking user terminal corresponding to the attendance checking user is judged, when the terminal identification of the attendance checking user terminal is not included in all the equipment connection lists, the fact that the attendance checking user terminal is not connected with the WIFI equipment in the attendance checking area is determined, a connection reminding instruction is sent to the attendance checking user terminal to indicate the attendance checking user terminal to be connected with the WIFI equipment in the attendance checking area, the correct connection state is conveniently obtained subsequently, the correctness of attendance tracking is improved, and the correctness of spacious work behavior judgment is ensured. When the server sends the connection reminding instruction to the attendance user terminal, the connection reminding instruction can be used as part or all of response information of the attendance user terminal.
Example four
Fig. 4 is a flowchart of a method for attendance tracking according to a fourth embodiment of the present invention, where this embodiment is optimized based on the foregoing embodiment, and before establishing a WebSocket long connection with an attendance user terminal, the method further includes: and randomly generating a set number of attendance time points in the single attendance time period. The method specifically comprises the following steps:
and step 410, randomly generating a set number of attendance time points in the single attendance time period.
And randomly generating a set number of attendance time points in a single attendance time period corresponding to the attendance area, and carrying out attendance tracking on the attendance users. Namely, in each attendance time period, a set number of attendance time points are randomly generated, so that the randomness of the attendance time points is increased.
Optionally, randomly generating the attendance time points of the set number in the single attendance time period includes:
grouping all attendance checking users in the attendance checking area;
and randomly generating a set number of attendance time points in the single attendance time period aiming at each group.
All attendance users in the attendance checking area are grouped, and the attendance checking time points with the set number in a single attendance checking time period are randomly generated for each group, so that the attendance checking time points of the attendance checking users in different groups are different, the randomness of the attendance checking time points is increased, and the possibility of cheating of the attendance checking users is further reduced. When the attendance users corresponding to the attendance user terminals are grouped, the attendance users can be randomly divided into groups of a preset number, when the attendance user terminals are user mobile phones, the attendance user terminals can be further grouped based on mobile phone numbers, for example, when the attendance user terminals are 3 groups, remainders can be obtained by dividing the mantissas of the mobile phone numbers of the attendance users by 3, and the remainders which are the same are grouped into one group, so that the groups where the corresponding attendance users are located are obtained.
And step 420, establishing a WebSocket long connection with the attendance checking user terminal.
And 430, when the attendance checking time point is reached, sending a connection state acquisition request to the attendance checking user terminal through the WebSocket long connection so as to request the attendance checking user terminal to report the connection state of the WIFI equipment in the attendance checking area.
And step 440, receiving the connection state with the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection.
Step 450, if the connection state is not connected, determining whether the attendance user terminal is reconnected with the WIFI equipment within a preset time from the current moment.
Step 460, if the attendance user terminal and the WIFI device are not reconnected, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection, so as to request the attendance user terminal to report positioning information of the attendance user terminal.
Step 470, receiving the positioning information reported by the attendance user terminal through the WebSocket long connection, where the positioning information includes the terminal identifier of the attendance user terminal.
And 480, determining whether the corresponding attendance user has spacious work in a single attendance time period according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
According to the technical scheme of the embodiment, on the basis of the embodiment, the set number of attendance time points in a single attendance time period are randomly generated, so that the randomness of the attendance time points is increased, and the possibility of cheating of attendance users is reduced.
EXAMPLE five
Fig. 5 is a flowchart of an attendance tracking method according to a fifth embodiment of the present invention, which is optimized based on the foregoing embodiment, and specifically, the method determines whether an absenteeism action exists in a single attendance time period for a corresponding attendance user according to positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period, further includes: according to the positioning information of the attendance user terminal at a single attendance time point, determining attendance reference information of the attendance user at the attendance time point; and determining whether the attendance checking user has spacious work in a single attendance checking time period or not according to attendance checking reference information of the attendance checking user at least two attendance checking time points in the single attendance checking time period. The method specifically comprises the following steps:
and step 510, establishing a WebSocket long connection with the attendance checking user terminal.
Step 520, when the attendance time point is reached, sending a connection state acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to report the connection state with the WIFI equipment in the attendance area.
And step 530, receiving the connection state with the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection.
And 540, if the connection state is not connected, determining whether the attendance user terminal is reconnected with the WIFI equipment within a preset time from the current moment.
Step 550, if the attendance user terminal and the WIFI device are not reconnected, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection to request the attendance user terminal to report positioning information of the attendance user terminal.
And 560, receiving positioning information reported by the attendance user terminal through the WebSocket long connection, wherein the positioning information comprises a terminal identifier of the attendance user terminal.
Step 570, determining attendance reference information of the attendance user at a single attendance time point according to the positioning information of the attendance user terminal at the single attendance time point.
The attendance reference information at the attendance time point comprises on duty or off duty, and can also be understood as the attendance state of the attendance user at the attendance time point.
The attendance reference information of the attendance user at the attendance time point is determined according to the positioning information of the attendance user terminal at the single attendance time point, so that the current attendance state of the attendance user can be conveniently recorded, and whether the attendance user has spacious work in a single attendance time period or not can be conveniently and subsequently determined.
Optionally, determining attendance reference information of the attendance user at a single attendance time point according to the positioning information of the attendance user terminal at the single attendance time point includes:
when the positioning information of the attendance user terminal at a single attendance time point is in the attendance area, determining that attendance reference information of the attendance user at the attendance time point is on duty;
when the positioning information of the attendance user terminal at a single attendance time point is outside the attendance area, the attendance reference information of the attendance user at the attendance time point is determined to be off duty.
The attendance state of the attendance user is preliminarily judged according to the connection state of the attendance user terminal and the WIFI equipment in the attendance area within the preset time of the attendance time point, and when the connection state within the preset time is not connected, the positioning information is acquired, the attendance state of the attendance user at the attendance time point is further judged by the server in combination with the positioning information, and the misjudgment caused by judgment only by using the connection state when the WIFI signal is weak is avoided.
And 580, determining whether the attendance user has spacious work in a single attendance time period according to attendance reference information of the attendance user at least two attendance time points in the single attendance time period.
Whether the attendance checking user has spacious work behavior in a single attendance checking time period or not can be determined by counting attendance checking reference information of the attendance checking user at least two attendance checking time points in the single attendance checking time period.
Optionally, determining whether the attendance user has spacious work in a single attendance time period according to attendance reference information of the attendance user at least two attendance time points in the single attendance time period includes:
and if the off-duty times of the attendance checking user at least two attendance checking time points in a single attendance checking time period reach the set times, determining that the attendance checking user has work absence behavior in the single attendance checking time period.
In the set number of attendance time points in a single attendance time period, if attendance reference information under at least two attendance time points is counted when a certain attendance time point is reached, and the off-duty frequency reaches the set number, it can be determined that the attendance user has spacious work in the single attendance time period, so that the subsequent attendance time points can not be counted any more, and the counted data volume is reduced. Of course, the attendance reference information of the attendance user at all attendance time points can be counted, and whether the off-duty times reach the set times or not is determined, so that whether the attendance user has spacious work in a single attendance time period or not is determined.
According to the technical scheme of the embodiment, on the basis of the embodiment, the attendance reference information of the attendance user at a single attendance time point is determined according to the positioning information of the attendance user terminal at the single attendance time point, so that the attendance state of the attendance user at the single attendance time point is conveniently recorded, and whether spacious work behavior exists in a single attendance time period or not is determined according to the attendance reference information of the attendance user at least two attendance time points, so that whether spacious work behavior exists in the attendance user can be determined more accurately and rapidly.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an attendance tracking apparatus according to a sixth embodiment of the present invention, which is applicable to an attendance tracking situation of an attendance user carrying an attendance user terminal, and the apparatus can execute the attendance tracking method according to the sixth embodiment of the present invention, and the apparatus can be implemented by software and/or hardware, and can be generally integrated in the attendance user terminal. As shown in fig. 6, the attendance tracking apparatus according to this embodiment includes: a long connection establishing module 610, a connection state obtaining module 620, a connection state sending module 630, a positioning request receiving module 640, a positioning information obtaining module 650 and a positioning information sending module 660.
The long connection establishing module 610 is configured to establish a WebSocket long connection with a server;
a connection state acquisition module 620, configured to receive, through the WebSocket long connection, a connection state acquisition request sent by the server at an attendance time point, and acquire, according to the connection state acquisition request, a connection state between the attendance user terminal and a WIFI device in an attendance area;
a connection state sending module 630, configured to send the connection state to the server through the WebSocket long connection;
a positioning request receiving module 640, configured to receive, through the WebSocket long connection, a positioning acquisition request sent by a server, where the positioning acquisition request is sent by the server when it is determined that the connection state between the attendance user terminal and the WIFI device in the attendance area is unconnected at the attendance time point and is not reconnected within a preset time;
a positioning information obtaining module 650, configured to obtain, according to the positioning obtaining request, positioning information of an attendance user terminal, where the positioning information includes a terminal identifier of the attendance user terminal;
the positioning information sending module 660 is configured to send the positioning information to the server through the WebSocket long connection, where the positioning information is used to instruct the server to determine whether a corresponding attendance user has spacious work in a single attendance time period according to the positioning information of the attendance user terminal at least two attendance time points in the single attendance time period.
Optionally, the apparatus further comprises:
a reconnection request receiving module, configured to receive, through the WebSocket long connection, a reconnection acquisition request sent by a server;
and the determination result sending module is used for determining whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area within the preset time from the current moment according to the reconnection acquisition request, and sending the determination result to the server through the WebSocket long connection.
Optionally, the apparatus further comprises:
and the attendance information sending module is used for acquiring the attendance information of the attendance user and sending the attendance information to the server so as to request the server to match the attendance information with preset attendance information and determine whether the attendance user successfully signs in.
Optionally, the apparatus further comprises:
the connection reminding instruction receiving module is used for receiving a connection reminding instruction sent by the server when the attendance checking user terminal is determined not to be connected with the WIFI equipment in the attendance checking area after the attendance checking user successfully signs in, and the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance checking area;
and the connection reminding module is used for reminding the attendance checking user to connect the WIFI equipment in the attendance checking area according to the connection reminding instruction.
The attendance tracking device can execute the attendance tracking method provided by the first embodiment or the second embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that is not described in detail in this embodiment, reference may be made to the method for attendance tracking provided in the first embodiment or the second embodiment of the present invention.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an attendance tracking apparatus according to a seventh embodiment of the present invention, which is applicable to an attendance tracking situation of an attendance user carrying an attendance user terminal, and which is capable of executing the attendance tracking method according to the seventh embodiment of the present invention, and the apparatus may be implemented by software and/or hardware, and may be generally integrated in a server. As shown in fig. 7, the attendance tracking apparatus according to this embodiment includes: a long connection establishment module 710, a status request sending module 720, a connection status receiving module 730, a reconnection determination module 740, a location request sending module 750, a location information receiving module 760, and an absenteeism behavior determination module 770.
The long connection establishing module 710 is used for establishing a WebSocket long connection with the attendance checking user terminal;
the state request sending module 720 is configured to send a connection state acquisition request to the attendance user terminal through the WebSocket long connection when the attendance time point is reached, so as to request the attendance user terminal to report a connection state with WIFI devices in an attendance area;
the connection state receiving module 730 is configured to receive, through the WebSocket long connection, a connection state with the WIFI device in the attendance area, where the connection state is sent by the attendance user terminal;
a reconnection determination module 740, configured to determine, if the connection state is unconnected, whether the attendance user terminal is reconnected with the WIFI device within a preset time from a current time;
a positioning request sending module 750, configured to send a positioning acquisition request to the attendance user terminal through the WebSocket long connection if the attendance user terminal is not reconnected with the WIFI device, so as to request the attendance user terminal to report positioning information of the attendance user terminal;
a positioning information receiving module 760, configured to receive, through the WebSocket long connection, positioning information reported by an attendance user terminal, where the positioning information includes a terminal identifier of the attendance user terminal;
the spaciousness behavior determination module 770 is configured to determine whether a corresponding attendance user has spaciousness behavior in a single attendance time period according to positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
Optionally, the reconnection determination module is specifically configured to:
sending a reconnection acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to determine whether to reconnect with WIFI equipment in the attendance area within a preset time from the current moment, and receiving a determination result sent by the attendance user terminal through the WebSocket long connection; or
Sending a reconnection acquisition instruction to the WIFI equipment in the attendance checking area to indicate the WIFI equipment to determine whether to reconnect with the attendance checking user terminal within preset time starting at the current moment, and receiving a determination result sent by the WIFI equipment in the attendance checking area, wherein the reconnection acquisition instruction comprises a terminal identification of the attendance checking user terminal.
Optionally, the apparatus further comprises:
and the attendance time point generating module is used for randomly generating the attendance time points with the set number in the single attendance time period.
Optionally, the attendance time point generating module includes:
the grouping unit is used for grouping all attendance checking users in the attendance checking area;
and the attendance time point generating unit is used for randomly generating a set number of attendance time points in the single attendance time period aiming at each group.
Optionally, the apparatus further comprises:
the attendance information receiving module is used for receiving attendance information of the attendance user sent by the attendance user terminal;
and the attendance information matching module is used for matching the attendance information with preset attendance information, and if the attendance information is successfully matched with the preset attendance information, the attendance checking user is determined to be successfully checked in.
Optionally, the apparatus further comprises:
the equipment connection list acquisition module is used for acquiring an equipment connection list of the WIFI equipment in the attendance checking area;
and the connection reminding instruction sending module is used for sending a connection reminding instruction to the attendance user terminal according to the equipment connection list when the attendance user terminal is determined not to be connected with the WIFI equipment in the attendance area so as to indicate the attendance user terminal to remind an attendance user to connect with the WIFI equipment in the attendance area, and the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance area.
Optionally, the absenteeism behavior determining module includes:
the attendance reference information determining unit is used for determining attendance reference information of the attendance user at a single attendance time point according to the positioning information of the attendance user terminal at the single attendance time point;
and the spaciousness behavior determining unit is used for determining whether the attendance user has spaciousness behavior in a single attendance time period according to the attendance reference information of the attendance user at least at two attendance time points in the single attendance time period.
Optionally, the attendance reference information determining unit is specifically configured to:
when the positioning information of the attendance user terminal at a single attendance time point is in the attendance area, determining that attendance reference information of the attendance user at the attendance time point is on duty;
when the positioning information of the attendance user terminal at a single attendance time point is outside the attendance area, the attendance reference information of the attendance user at the attendance time point is determined to be off duty.
Optionally, the absenteeism behavior determining unit is specifically configured to:
and if the off-duty times of the attendance checking user at least two attendance checking time points in a single attendance checking time period reach the set times, determining that the attendance checking user has work absence behavior in the single attendance checking time period.
The attendance tracking device can execute the attendance tracking method provided by any one of the third to fifth embodiments of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technology that is not described in detail in this embodiment, reference may be made to the method for attendance tracking provided in any one of the third to fifth embodiments of the present invention.
Example eight
Fig. 8 is a schematic structural diagram of an attendance checking user terminal according to an eighth embodiment of the present invention, as shown in fig. 8, the attendance checking user terminal includes a processor 810, a memory 820, an input device 830, and an output device 840; the number of the processors 810 in the terminal may be one or more, and one processor 810 is taken as an example in fig. 8; the processor 810, the memory 820, the input device 830 and the output device 840 in the terminal may be connected by a bus or other means, for example in fig. 8.
The memory 820 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for attendance tracking in the embodiment of the present invention (for example, the long connection establishing module 610, the connection state acquiring module 620, the connection state transmitting module 630, the positioning request receiving module 640, the positioning information acquiring module 650, and the positioning information transmitting module 660 in the attendance tracking apparatus). The processor 810 executes software programs, instructions and modules stored in the memory 820 to execute various functional applications and data processing of the terminal, that is, to implement the above-mentioned attendance tracking method, for example, the attendance tracking method provided in the first embodiment or the second embodiment.
The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 820 may further include memory located remotely from the processor 810, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. The output device 840 may include a display device such as a display screen.
Example nine
Fig. 9 is a schematic structural diagram of a server according to a ninth embodiment of the present invention, as shown in fig. 9, the server includes a processor 910, a memory 920, an input device 930, and an output device 940; the number of the processors 910 in the server may be one or more, and one processor 910 is taken as an example in fig. 9; the processor 910, the memory 920, the input device 930, and the output device 940 in the server may be connected by a bus or other means, and fig. 9 illustrates an example of connection by a bus.
The memory 920 is used as a computer readable storage medium for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the method for attendance tracking in the embodiments of the present invention (for example, the long connection establishment module 710, the status request transmission module 720, the connection status receiving module 730, the reconnection determination module 740, the location request transmission module 750, the location information receiving module 760, and the absenteeism determination module 770 in the attendance tracking apparatus). The processor 910 executes software programs, instructions, and modules stored in the memory 920 to execute various functional applications and data processing of the server, that is, to implement the above-mentioned attendance tracking method, for example, the attendance tracking method provided in any one of the third to fifth embodiments.
The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the server, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 920 may further include memory located remotely from the processor 910, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server. The output device 940 may include a display device such as a display screen.
Example ten
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for attendance tracking, the method comprising:
establishing a WebSocket long connection with a server;
receiving a connection state acquisition request sent by a server at an attendance time point through the WebSocket long connection, and acquiring the connection state of an attendance user terminal and WIFI equipment in an attendance area according to the connection state acquisition request;
sending the connection state to the server through the WebSocket long connection;
the method comprises the steps that a positioning acquisition request sent by a server is received through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state between the attendance user terminal and WIFI equipment in an attendance area is unconnected at an attendance time point and is not reconnected within preset time;
acquiring positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and sending the positioning information to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
Alternatively, the computer-executable instructions, when executed by a computer processor, are further for performing a method of attendance tracking, the method comprising:
establishing a WebSocket long connection with an attendance checking user terminal;
when the attendance checking time point is reached, sending a connection state acquisition request to the attendance checking user terminal through the WebSocket long connection so as to request the attendance checking user terminal to report the connection state of the WIFI equipment in the attendance checking area;
receiving the connection state with WIFI equipment in an attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection;
if the connection state is not connected, determining whether the attendance checking user terminal is reconnected with the WIFI equipment within a preset time from the current moment;
if not, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to report the positioning information of the attendance user terminal;
receiving positioning information reported by an attendance user terminal through the WebSocket long connection, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and determining whether the corresponding attendance user has spacious work in a single attendance time period according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
Of course, the storage medium provided by the embodiments of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the attendance tracking method provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the attendance tracking apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (18)

1. A method of attendance tracking, the method comprising:
establishing a WebSocket long connection with a server so that a subsequent server can actively send information to an attendance checking user terminal;
receiving a connection state acquisition request sent by a server at an attendance time point through the WebSocket long connection, and acquiring the connection state of an attendance user terminal and WIFI equipment in an attendance area according to the connection state acquisition request;
sending the connection state to the server through the WebSocket long connection;
the method comprises the steps that a positioning acquisition request sent by a server is received through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state between the attendance user terminal and WIFI equipment in an attendance area is unconnected at an attendance time point and is not reconnected within preset time;
acquiring positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and sending the positioning information to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
2. The method of claim 1, wherein before receiving the positioning acquisition request sent by the server through the WebSocket long connection, the method further comprises:
receiving a reconnection acquisition request sent by a server through the WebSocket long connection;
and according to the reconnection acquisition request, determining whether the attendance user terminal is reconnected with the WIFI equipment in the attendance area within a preset time from the current moment, and sending a determination result to the server through the WebSocket long connection.
3. The method of claim 1, further comprising, prior to establishing the WebSocket long connection with the server:
and acquiring the attendance information of the attendance user, sending the attendance information to the server to request the server to match the attendance information with preset attendance information, and determining whether the attendance user successfully signs in.
4. The method of claim 3, wherein after obtaining the check-in information of the attendance checking user and sending the check-in information to the server, the method further comprises:
after the attendance checking user successfully signs in, receiving a connection reminding instruction sent by the server when the attendance checking user terminal is determined not to be connected with the WIFI equipment in the attendance checking area, wherein the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance checking area;
and reminding the attendance checking user to connect the WIFI equipment in the attendance checking area according to the connection reminding instruction.
5. A method of attendance tracking, the method comprising:
establishing a WebSocket long connection with the attendance checking user terminal so that a subsequent server can actively send information to the attendance checking user terminal;
when the attendance checking time point is reached, sending a connection state acquisition request to the attendance checking user terminal through the WebSocket long connection so as to request the attendance checking user terminal to report the connection state of the WIFI equipment in the attendance checking area;
receiving the connection state with WIFI equipment in an attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection;
if the connection state is not connected, determining whether the attendance checking user terminal is reconnected with the WIFI equipment within a preset time from the current moment;
if not, sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to report the positioning information of the attendance user terminal;
receiving positioning information reported by an attendance user terminal through the WebSocket long connection, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and determining whether the corresponding attendance user has spacious work in a single attendance time period according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
6. The method of claim 5, wherein determining whether the attendance user terminal is reconnected with the WIFI device within a preset time from a current time comprises:
sending a reconnection acquisition request to the attendance user terminal through the WebSocket long connection so as to request the attendance user terminal to determine whether to reconnect with WIFI equipment in the attendance area within a preset time from the current moment, and receiving a determination result sent by the attendance user terminal through the WebSocket long connection; or
Sending a reconnection acquisition instruction to the WIFI equipment in the attendance checking area to indicate the WIFI equipment to determine whether to reconnect with the attendance checking user terminal within preset time starting at the current moment, and receiving a determination result sent by the WIFI equipment in the attendance checking area, wherein the reconnection acquisition instruction comprises a terminal identification of the attendance checking user terminal.
7. The method of claim 5, wherein before establishing the WebSocket long connection with the attendance user terminal, the method further comprises:
and randomly generating a set number of attendance time points in the single attendance time period.
8. The method of claim 7, wherein randomly generating a set number of attendance time points within the single attendance time period comprises:
grouping all attendance checking users in the attendance checking area;
and randomly generating a set number of attendance time points in the single attendance time period aiming at each group.
9. The method of claim 5, wherein before establishing the WebSocket long connection with the attendance user terminal, the method further comprises:
receiving attendance information of the attendance user sent by the attendance user terminal;
and matching the attendance information with preset attendance information, and if the attendance information is successfully matched with the preset attendance information, determining that the attendance user successfully signs in.
10. The method of claim 9, further comprising, after determining that the attendance user successfully checked in:
acquiring an equipment connection list of WIFI equipment in the attendance checking area;
according to the equipment connection list, when the attendance user terminal is determined not to be connected with the WIFI equipment in the attendance area, a connection reminding instruction is sent to the attendance user terminal so as to instruct the attendance user terminal to remind an attendance user to connect with the WIFI equipment in the attendance area, and the connection reminding instruction comprises a WIFI identification set corresponding to the WIFI equipment in the attendance area.
11. The method of claim 5, wherein determining whether spacious work exists in a corresponding attendance user in a single attendance time period according to positioning information of the attendance user terminal at least two attendance time points in the single attendance time period comprises:
according to the positioning information of the attendance user terminal at a single attendance time point, determining attendance reference information of the attendance user at the attendance time point;
and determining whether the attendance checking user has spacious work in a single attendance checking time period or not according to attendance checking reference information of the attendance checking user at least two attendance checking time points in the single attendance checking time period.
12. The method of claim 11, wherein determining the attendance reference information of the attendance user at a single attendance time point according to the positioning information of the attendance user terminal at the attendance time point comprises:
when the positioning information of the attendance user terminal at a single attendance time point is in the attendance area, determining that attendance reference information of the attendance user at the attendance time point is on duty;
when the positioning information of the attendance user terminal at a single attendance time point is outside the attendance area, the attendance reference information of the attendance user at the attendance time point is determined to be off duty.
13. The method of claim 12, wherein determining whether the attendance user has spacious work within a single attendance time period from attendance reference information of the attendance user at least two attendance time points within the single attendance time period comprises:
and if the off-duty times of the attendance checking user at least two attendance checking time points in a single attendance checking time period reach the set times, determining that the attendance checking user has work absence behavior in the single attendance checking time period.
14. An apparatus for attendance tracking, the apparatus comprising:
the long connection establishing module is used for establishing WebSocket long connection with the server so as to facilitate the follow-up server to actively send information to the attendance checking user terminal;
the connection state acquisition module is used for receiving a connection state acquisition request sent by the server at an attendance time point through the WebSocket long connection, and acquiring the connection state between the attendance user terminal and WIFI equipment in an attendance area according to the connection state acquisition request;
the connection state sending module is used for sending the connection state to the server through the WebSocket long connection;
the positioning request receiving module is used for receiving a positioning acquisition request sent by a server through the WebSocket long connection, wherein the positioning acquisition request is sent when the server determines that the connection state of the attendance user terminal and WIFI equipment in an attendance area is unconnected at an attendance time point and is not reconnected within preset time;
the positioning information acquisition module is used for acquiring positioning information of the attendance user terminal according to the positioning acquisition request, wherein the positioning information comprises a terminal identifier of the attendance user terminal;
and the positioning information sending module is used for sending the positioning information to the server through the WebSocket long connection, wherein the positioning information is used for indicating the server to determine whether spacious work exists in a single attendance time period of a corresponding attendance user according to the positioning information of the attendance user terminal in at least two attendance time points in the single attendance time period.
15. An apparatus for attendance tracking, the apparatus comprising:
the long connection establishing module is used for establishing WebSocket long connection with the attendance checking user terminal so as to facilitate a subsequent server to actively send information to the attendance checking user terminal;
the state request sending module is used for sending a connection state acquisition request to the attendance user terminal through the WebSocket long connection when the attendance time point is reached so as to request the attendance user terminal to report the connection state of the WIFI equipment in the attendance area;
the connection state receiving module is used for receiving the connection state of the WIFI equipment in the attendance checking area, which is sent by the attendance checking user terminal, through the WebSocket long connection;
the reconnection determination module is used for determining whether the attendance user terminal is reconnected with the WIFI equipment within a preset time from the current moment if the connection state is not connected;
the positioning request sending module is used for sending a positioning acquisition request to the attendance user terminal through the WebSocket long connection to request the attendance user terminal to report the positioning information of the attendance user terminal if the attendance user terminal is not reconnected with the WIFI equipment;
the positioning information receiving module is used for receiving positioning information reported by an attendance user terminal through the WebSocket long connection, and the positioning information comprises a terminal identifier of the attendance user terminal;
and the spaciousness behavior determining module is used for determining whether spaciousness behaviors exist in the single attendance time period of the corresponding attendance users according to the positioning information of at least two attendance time points of the attendance user terminal in the single attendance time period.
16. An attendance user terminal, the terminal comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for attendance tracking of any of claims 1-4.
17. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for attendance tracking of any of claims 5-13.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of attendance tracking according to any of claims 1-4 or 5-13.
CN201810547593.1A 2018-05-31 2018-05-31 Attendance tracking method, device, terminal, server and storage medium Active CN108769210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810547593.1A CN108769210B (en) 2018-05-31 2018-05-31 Attendance tracking method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810547593.1A CN108769210B (en) 2018-05-31 2018-05-31 Attendance tracking method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN108769210A CN108769210A (en) 2018-11-06
CN108769210B true CN108769210B (en) 2021-06-08

Family

ID=64000927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810547593.1A Active CN108769210B (en) 2018-05-31 2018-05-31 Attendance tracking method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN108769210B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544718A (en) * 2018-11-20 2019-03-29 左凌云 A kind of Work attendance method and its system
CN110322578B (en) * 2019-05-30 2021-07-09 深圳市融讯科技有限公司 Attendance checking method and device
CN115409467A (en) * 2022-08-08 2022-11-29 深圳市一页科技有限公司 Intelligent UHR management method and system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833323A (en) * 2012-08-14 2012-12-19 新浪网技术(中国)有限公司 Method and system for remote control of controlled terminal by server
CN103136807A (en) * 2013-02-07 2013-06-05 方春 Attendance system and attendance method based on location based service (LBS)
CN107358410A (en) * 2017-07-17 2017-11-17 深圳市信锐网科技术有限公司 A kind of employee work attendance method based on mobile terminal, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183712B2 (en) * 2013-10-10 2015-11-10 Time Warner Cable Enterprises Llc Security system and alarm activation control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833323A (en) * 2012-08-14 2012-12-19 新浪网技术(中国)有限公司 Method and system for remote control of controlled terminal by server
CN103136807A (en) * 2013-02-07 2013-06-05 方春 Attendance system and attendance method based on location based service (LBS)
CN107358410A (en) * 2017-07-17 2017-11-17 深圳市信锐网科技术有限公司 A kind of employee work attendance method based on mobile terminal, apparatus and system

Also Published As

Publication number Publication date
CN108769210A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
EP4210356A1 (en) Ranging method, communication node, communication device and storage medium
CN108876950B (en) Attendance tracking method, device, terminal, server and storage medium
US8792825B2 (en) Terminal apparatus and communication method, information processing apparatus and method, non-transitory storing medium storing program, and information processing system
EP3378260B1 (en) Secure fine timing measurement
CN105682015A (en) Method and device for establishing wireless connection
US10887745B2 (en) Method and device for sharing file between different terminals
CN108769210B (en) Attendance tracking method, device, terminal, server and storage medium
US20070238413A1 (en) System and method for establishing an 802.11 network connection
CN112438056B (en) Device-based access point association and physical address tracking
US20160050267A1 (en) Sign-In Method and Terminal
CN105722090A (en) Control method and device for automatically identifying pseudo base station
CN104717296A (en) Social contact interactive method, device, terminal and system
CN108810821B (en) Attendance tracking method, device, terminal, server and storage medium
CN106028266B (en) Information transmission method, device and system
CN104185139B (en) Wireless location method and device based on fingerprint matching
CN104348875A (en) Method, cloud server and system for performing pocket transmission of data
EP2672758A1 (en) Methods and apparatuses for easing Internet access by mobile stations associated with a mobile access point
CN108848139B (en) Attendance tracking method, device, terminal, server and storage medium
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
CN104618853A (en) Method, device and system for information push
TW201505404A (en) A method and apparatus for recording information from a plurality of mobile devices in an area
CN105336013A (en) Method and system used for realizing attendance checking via Beacon broadcast
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
CN111770456B (en) Automatic sign-in system and method for hospital teaching activities
US10165439B1 (en) Passive wireless electronics detection system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant