CN106604353B - Sign-in method and server - Google Patents
Sign-in method and server Download PDFInfo
- Publication number
- CN106604353B CN106604353B CN201610969380.9A CN201610969380A CN106604353B CN 106604353 B CN106604353 B CN 106604353B CN 201610969380 A CN201610969380 A CN 201610969380A CN 106604353 B CN106604353 B CN 106604353B
- Authority
- CN
- China
- Prior art keywords
- check
- execution
- equipment
- wireless hotspot
- sending
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
- G07C1/10—Registering, 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/14—Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a sign-in method and a server, which are used for solving the technical problems of flow loss and privacy disclosure caused by sign-in the prior art. The method comprises the following steps: determining M check-in execution devices needing check-in according to first request information sent by the check-in control device; sending a first control instruction to the check-in control equipment to indicate the check-in control equipment to open the wireless hotspot with a first preset wireless hotspot name, and sending the first preset wireless hotspot name to the M check-in execution equipment; or sending a second control instruction to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with a second preset wireless hotspot name, and determining that the check-in of the first check-in execution device is successful and sending the second preset wireless hotspot name to M-1 check-in execution devices except the first check-in execution device in the M check-in execution devices; and receiving N pieces of scanning success information sent by the N check-in execution devices.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a sign-in method and a server.
Background
In some application scenarios, a roll-call sign-in mode is used, for example, in the process of school class, or attendance before meeting, etc., and by the roll-call sign-in mode, it can be determined which people are in class or in the process of meeting.
With the development of electronic technology and internet, smart devices such as mobile phones and the like are generally used for smart sign-in a wireless network mode at present, and compared with the traditional manual roll call mode, the sign-in efficiency can be improved. For example, when a student signs in a class, the teacher sets the own mobile phone as a WIreless FIdelity (WiFi) hotspot to turn on a WIreless network, then students needing to sign in are respectively connected with the WiFi network of the teacher's mobile phone by using the respective mobile phones, after the WiFi network provided by the teacher's mobile phone is connected, the students in the class and the teacher are generally in the same classroom by sending sign-in data packets to the teacher's mobile phone to indicate that the students sign in the class are successful, because the effective coverage range of the WiFi network is not too large, the students in the class and the teacher are generally in the same classroom, so that the students in the class can be ensured to sign in as successfully as much as possible, because the students in the class are too far away to be connected with the WiFi network provided by the teacher's mobile phone, and the students in the class who do not go to bed (for example, the students who still sleep in a bedroom) can be prevented from falsely signing in, so that the signing in the class can be operated by the own mobile phones to carry out the signing in the class at the same time, therefore, the check-in can be completed within a short time, the waste of the effective class time is reduced, and the check-in efficiency is improved.
Although the above check-in mode is high in accuracy and efficiency, the checked-in mobile phones (i.e., the mobile phones of the same students) need to be connected to the WiFi networks provided by the mobile phones of the teachers respectively, and data transmission is also needed, so that the flow of the mobile phones of the teachers is consumed, certain loss may be caused to the teachers, and the privacy protection of the teachers is also not facilitated, that is, the check-in method in the prior art may cause flow loss and privacy disclosure, and is not beneficial to practical use.
Disclosure of Invention
The embodiment of the invention provides a sign-in method and a server, which are used for solving the technical problems of flow loss and privacy disclosure caused by sign-in the prior art.
In a first aspect, a check-in method is provided, which may be applied to a server, and includes:
determining M check-in execution devices needing check-in according to first request information sent by the check-in control device; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2;
sending a first control instruction to the check-in control device to instruct the check-in control device to open a wireless hotspot with a first preset wireless hotspot name, and sending the first preset wireless hotspot name to the M check-in execution devices; or the like, or, alternatively,
sending a second control instruction to first check-in execution equipment to indicate the first check-in execution equipment to open a wireless hotspot with a second preset wireless hotspot name, determining that the first check-in execution equipment successfully checks in, and sending the second preset wireless hotspot name to M-1 check-in execution equipment except the first check-in execution equipment in the M check-in execution equipment; wherein the first check-in execution device is one of the M check-in execution devices, the distance between which and the check-in control device is less than or equal to a predetermined distance;
receiving N pieces of scanning success information sent by N pieces of check-in execution equipment; the scanning success information is used for indicating that the check-in execution equipment detects a wireless network corresponding to the first preset wireless arbitrary store name or the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, wherein N is an integer less than or equal to M.
In a possible implementation manner, receiving N pieces of scanning success information sent by N check-in execution devices includes:
stopping receiving the scanning success information when a preset time length passes; the starting time of the preset time length is the time when the server sends the first control instruction or the second control instruction;
and determining the received scanning success information as the N pieces of scanning success information.
In one possible implementation manner, after receiving N pieces of scanning success information sent by N check-in execution devices, the method further includes:
determining N device identifications corresponding to the N check-in execution devices;
determining N user identifications corresponding to the N equipment identifications according to the corresponding relation between the equipment identifications and the user identifications stored in the server;
and sending the N user identifications to the check-in control equipment so that the check-in control equipment displays the N user identifications.
In one possible implementation manner, before sending a second control instruction to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with a second predetermined wireless hotspot name, the method further includes:
obtaining M pieces of system type information which are respectively sent by the M check-in executions and used for indicating the type of an operating system of check-in execution equipment;
determining first system type information obtained firstly from the M pieces of system type information;
and determining the check-in execution equipment which sends the first system type information as the first check-in execution equipment.
In one possible implementation manner, sending a second control instruction to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with a second predetermined wireless hotspot name includes:
if the operating system of the first check-in execution device is an Android operating system, sending the second control instruction to the first check-in execution device to indicate the first check-in execution device to open a WiFi hotspot with a preset WiFi name; or
And if the operating system of the first check-in execution equipment is an ios operating system, sending the second control instruction to the first check-in execution equipment to indicate an iBeacon base station which sets the first check-in execution equipment as a Universal Unique Identifier (UUID) as a preset UUID.
In a second aspect, a server is provided, which includes a first determining module, a first sending module and a receiving module, which may be used to execute the check-in method as described in the first aspect.
In a third aspect, another server is provided, which includes a memory for storing instructions and a processor for executing the instructions stored in the memory to perform the check-in method as described in the first aspect.
In the embodiment of the present invention, the server may determine, according to first request information sent by the check-in control device, M check-in execution devices that need to check in, and further may send a first control instruction to the check-in control device to instruct the check-in control device to open a wireless hotspot with a first predetermined wireless hotspot name, and then send the first predetermined wireless hotspot name to the M check-in execution devices, or may send a second control instruction to a first check-in execution device, which is located in the M check-in execution devices and has a distance with the check-in control device less than or equal to a predetermined distance, to instruct the first check-in execution device to open a wireless hotspot with a second predetermined wireless hotspot name, and determine that the first check-in control device successfully checks in and send the second predetermined wireless hotspot name to M-1 check-in execution devices except the first check-in execution device. After the first predetermined wireless hotspot name or the second predetermined wireless hotspot name is sent to the check-in execution device, the check-in execution device may detect a wireless network corresponding to the received predetermined wireless hotspot name based on the received predetermined wireless hotspot name, and may send a scan success message to the server to indicate that the check-in is successful as long as the wireless network corresponding to the predetermined wireless hotspot name is detected.
That is to say, in the embodiment of the present invention, whether the check-in is successful is determined by whether the check-in execution device detects the wireless network corresponding to the predetermined wireless hotspot name, only the wireless network is scanned, and the check-in execution device is not required to be connected to the wireless network corresponding to the predetermined wireless hotspot name.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a check-in method in an embodiment of the present invention;
FIG. 2 is a block diagram of a check-in system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a check-in method, where the method may be applied to a server, that is, an execution subject of each step in the check-in method shown in fig. 1 may be a server, and the server may be a data processing device capable of processing data, for example, the server is a computer deployed in a school classroom or a computer room, and the like. The check-in method provided by the embodiment of the present invention may be applied to the check-in system shown in fig. 2, fig. 2 is a schematic diagram of an architecture of the check-in system in the embodiment of the present invention, and fig. 2 may be used to show a connection relationship among a server, a check-in control device, and a check-in execution device in the embodiment of the present invention.
In the embodiment of the present invention, the server may be connected to the check-in control device and the check-in execution device, and the check-in control device and the check-in execution device may not have a connection relationship therebetween.
In addition, the server may be simultaneously connected to a plurality of check-in control devices, and a plurality of check-in execution devices may be connected to each of the check-in control devices, and fig. 1 illustrates one check-in control device and 4 check-in execution devices corresponding to the one check-in control device
As shown in fig. 2, the server is connected to the check-in control device, and the server is connected to all the check-in execution devices 1 to 4, in the specific implementation process, the number of the check-in execution devices may also be other values, such as 35 or 62, and the like, and fig. 2 illustrates only 4 check-in execution devices for simplicity. In addition, the server may be connected to the educational administration system, which facilitates the server to obtain the course information of each class from the educational administration system in time, for example, it is determined that the first and second lessons of the communication engineering 001 class in wednesday afternoon are calculus courses in the classroom 4402, and the lessor is Zhang three teacher, and the communication engineering 001 class includes 60 classmates and the names and numbers of the 60 classmates can be obtained.
In a specific implementation process, the check-in control device may include an electronic device such as a mobile phone, a tablet personal computer (PAD), a wearable electronic device (e.g., a smart watch or a smart bracelet), and a notebook computer. Because mobile terminals such as mobile phones or PADs are quite popular at present, the mobile terminals such as mobile phones and the like enable students to conveniently operate the sign-in words, the sign-in words can be conveniently operated by the users, extra additional equipment is not needed, the cost is saved, meanwhile, the interestingness of the sign-in operation of students can be increased, and the use experience of the users is enhanced.
In addition, the check-in execution device and the check-in control device may be of the same device type, for example, both the check-in control device and the check-in execution device are mobile phones, or the check-in execution device and the check-in control device may be of different device types, for example, the check-in execution device is a mobile phone and the check-in control device is a PAD, and the like, and the device types of the plurality of check-in execution devices may be the same or may be different for the plurality of check-in execution devices. Since in practice the types of electronic equipment used by the respective users may be identical or may differ.
To facilitate understanding of the check-in method in the embodiment of the present invention by those skilled in the art, the following check-in scenarios are listed: the mr in zhang san will have a calculus course in the classroom 4402 to the classmates in the communications engineering 001 class, and the communications engineering 001 class includes 60 classmates, and the personal information of the 60 classmates has been previously entered into the educational administration system of the school. The mobile phones of Zhang three teachers and 60 classmates are pre-installed with check-in applications. Immediately after the class, the teacher of Zhang San needs to check in the classmates who come to class, and further can enter the flow of the check-in method provided by the embodiment of the invention.
The flow of the check-in method in the embodiment of the invention is described as follows.
Step 101: determining M check-in execution devices needing check-in according to first request information sent by the check-in execution devices; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2.
For convenience of description, the mobile phone of the mr from zhang san may be understood as the check-in control device, and the mobile phone of the classmate needing to check in may be understood as the check-in execution device, since 0001 class has 60 classmates, it is considered that 60 classmates need to check in, and then the mobile phones used by the 60 classmates may be understood as the "M check-in execution devices needing to check in" in the embodiment of the present invention, that is, the value of M is 60 at this time.
When a katama teacher needs to check in a class classmate, the check-in application on the check-in execution device may be opened to send first request information for requesting to start checking in to the server through the check-in application, for example, a button of "start checking in" on the check-in application interface is touched, and after the button of "start checking in" is touched, the time, course and class required to check in may be selected according to a prompt of the application, that is, the first request information is not only used for requesting to start checking in to the server, but also may include information of the time, course and class required to check in, so that the server obtains course information from the educational administration system based on the first request information and further determines M check-in execution devices required to check in, in particular to the foregoing example, the server may determine that the class required to check in is the first, second, third afternoon, of the communication engineering 001 class in wednesday based on the first request information, The calculus course of the second lesson can further determine the related information of 60 classmates included in the 001 class of the communication engineering through the educational administration system, and further determine M check-in execution devices needing check-in.
Step 102: and sending a first control instruction to the check-in control equipment to instruct the check-in control equipment to open the wireless hotspot with the first preset wireless hotspot name, and sending the first preset wireless hotspot name to the M check-in execution equipment.
Step 103: sending a second control instruction to the first check-in execution device to indicate the first check-in execution device to open the wireless hotspot with a second preset wireless hotspot name, determining that the check-in of the first check-in execution device is successful, and sending the second preset wireless hotspot name to M-1 check-in execution devices except the first check-in execution device in the M check-in execution devices; the first check-in execution device is one check-in execution device, wherein the distance between the first check-in execution device and the check-in control device in the M check-in execution devices is smaller than or equal to a preset distance.
In the specific implementation process, the step 102 and the step 103 are in an or relationship, that is, the step 102 and the step 103 may be alternatively executed, that is, the check-in method in the embodiment of the present invention actually includes two parallel schemes, that is: a first scheme including step 101, step 102 and step 104, and a second scheme including step 101, step 103 and step 104, and the first scheme and the second scheme may be alternatively implemented.
Step 102 is explained below.
After determining that M check-in execution devices need to check in, the server may send a first control instruction to the check-in control device to instruct the check-in control device to open the wireless hotspot with a first predetermined wireless hotspot name, that is, the server may instruct a mobile phone of a mr of zhang san as a wireless hotspot, and open the wireless hotspot with the first predetermined wireless hotspot name assigned by the server, where the first predetermined wireless hotspot name may be randomly generated by the server, and is, for example, a 12-digit WiFi name composed of numbers and letters.
After instructing the check-in control device to open the wireless hotspot with the first predetermined wireless hotspot name, further, the first predetermined wireless hotspot name may be respectively sent to the M check-in execution devices.
That is, in step 102, the mobile phone of the mr from zhang san is taken as a wireless hotspot, and the mobile phone of the mr from zhang san is instructed to open the wireless hotspot with the first predetermined wireless hotspot name, and the first predetermined wireless hotspot names of the mobile phone of the mr from zhang san are respectively sent to M check-in execution devices that need to check in. Since the Zhang III teacher is the user who initiates the check-in, the distance between the student who is in the same classroom with the Zhang III teacher and the Zhang III teacher is not too far, so that the successful check-in of the student who goes to class in the past can be ensured, and the check-in control function of the mobile phone of the teacher can be embodied to a certain extent.
Step 103 will be explained below.
First, the server may determine, from the M check-in execution devices, at least one check-in execution device whose distance from the check-in control device is less than or equal to a predetermined distance, which may be set to 20 meters or 25 meters, for example, according to the actual situation, because the classmate should be in the same classroom as the teacher if the classmate is in the previous class, and the classmate should be considered not to be in the previous class if the classmate is not in the same classroom or is far apart, such as sleeping in a bedroom or playing a game. The first screening is carried out at a preset distance, so that the classmates corresponding to the first check-in execution device are ensured to be in the check-in site, and then other classmates needing check-in can scan the wireless hotspot of the mobile phone of the classmates, so that the check-in effectiveness and accuracy are ensured.
Further, one check-in execution device is selected from at least one check-in execution device with a distance less than or equal to a predetermined distance as a first check-in execution device, for example, one of the at least one check-in execution device is randomly selected as the first check-in execution device, or a predetermined one of the at least one check-in execution device is selected as the first check-in execution device, for example, a mobile phone used by a study board or a shift is selected as the first check-in execution device, or one of the at least one check-in execution device closest to the check-in control device is selected as the first check-in execution device, for example, a mobile phone used by a classmate sitting in a first row of a classroom is selected as the first check-in execution device, and so on. After the first check-in execution device is selected, a second control instruction may be sent to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with a second predetermined wireless hotspot name.
Further, since it is known that the first check-in execution device is a check-in execution device in a classroom, it may be directly determined that the first check-in execution device successfully checked in, and then transmit the second predetermined wireless hotspot name to M-1 check-in execution devices, except the first check-in execution device, among the M check-in execution devices, to further check in the M-1 check-in execution devices.
That is, in step 103, a mobile phone of a classmate (for example, xiaoming) from the previous lesson is used as the wireless hotspot, and the xiaoming mobile phone is instructed to open the wireless hotspot by the second predetermined wireless hotspot name, and the second predetermined wireless hotspot names of the xiaoming mobile phone are respectively sent to M-1 check-in execution devices that need to check in. Since the mobile phone of the Xiaoming in the previous class is used as the wireless hotspot, the distance between other classmates in the same classroom and the Xiaoming is not too far, so that the successful sign-in of other classmates in the previous class can be ensured.
After step 102 or step 103 is performed, step 104 may further be performed to achieve check-in of all classmates from the previous lesson through step 104.
Step 104: receiving N pieces of scanning success information sent by N pieces of check-in execution equipment; the scanning success information is used for indicating that the check-in execution equipment detects a wireless network corresponding to the first preset wireless hotspot name or the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, wherein N is an integer less than or equal to M.
Although there should be M check-in execution devices to perform check-in theory, since some classmates may fail to attend class due to illness, fraud or greedy, the number of classmates that are eventually successfully checked-in may be less than M, and of course, if all the classmates attend class, the number of classmates that are eventually successfully checked-in may be equal to M.
If the step 102 is executed, that is, the server sends the first predetermined wireless hotspot name of the check-in control device to the M check-in execution devices, after receiving the first predetermined wireless hotspot name, the M check-in execution devices may scan a wireless network (for example, referred to as a first wireless network) corresponding to the first predetermined wireless hotspot name, that is, detect the first wireless network, and if the first wireless network is detected, may send a scan success message to the server to indicate that the check-in is successful.
If the step 103 is executed, that is, the server sends the second predetermined wireless hotspot name of the first check-in execution device to the M-1 check-in execution devices, after receiving the second predetermined wireless hotspot name, the M-1 check-in execution devices may scan a wireless network (for example, referred to as a second wireless network) corresponding to the second predetermined wireless hotspot name, that is, detect the second wireless network through the second predetermined wireless hotspot name, and if the second wireless network is detected, may send a scanning success message to the server to indicate that the check-in is successful, because the wireless network generally has a predetermined effective coverage range, a classmate beyond a certain distance cannot scan the second wireless network through a mobile phone, for example, a classmate of transfusion in a hospital, or a classmate of sleeping in a bedroom.
Since the check-in execution device sends the scanning success information to the server to indicate that the check-in is successful after the check-in execution device successfully detects the wireless network corresponding to the first predetermined wireless hotspot name or the second predetermined wireless hotspot name, the server may receive the corresponding scanning success information, for example, the server receives N pieces of scanning success information. When the previous execution is the step 102, the value of N may be the same as or may be smaller than the value of M, and when the previous execution is the step 103, since it has been predetermined that the first check-in execution device successfully checked in, the first check-in execution device does not need to perform the scanning operation like other check-in execution devices, so that the maximum number of N pieces of scanning success information received by the server at this time is M-1, that is, the value of N is smaller than the value of M at this time.
In the embodiment of the invention, whether the check-in is successful is determined by whether the check-in execution equipment detects the wireless network corresponding to the preset wireless hotspot name, only the wireless network is scanned, but the check-in execution equipment is not required to be connected to the wireless network corresponding to the preset wireless hotspot name, because the connection of the wireless network is not involved, the consumption of flow and possible privacy disclosure caused by network connection can be avoided naturally, compared with the check-in mode in the prior art, the intelligent check-in of the check-in execution equipment can avoid the consumption of flow and the disclosure of privacy, thereby being more beneficial to actual use and improving the use experience of users.
In a specific implementation process, the server may preset a predetermined time period for check-in, for example, 2 minutes, and then the students needing check-in complete the check-in operation within the 2 minutes, so that the check-in efficiency can be improved as much as possible, and the limited time in class can be saved. That is, after 2 minutes has elapsed since the server transmits the first control instruction to the check-in control device or since the server transmits the second control instruction to the first check-in execution device, the reception of the scanning success information is stopped, and the classmates corresponding to the scanning success information received within the 2 minutes are regarded as successful check-in. In practice, classmates may not complete the check-in operation within a specified time due to unexpected situations such as no operation or mobile phone card death, and the classmates may apply for the check-in to the teacher after class or directly inform the teacher to record, and the check-in accuracy can be improved as much as possible through the remedial measures of the check-in.
In addition, the server may store a corresponding relationship between the device identifier and the user identifier, where the device identifier is, for example, an International Mobile Equipment Identity (IMEI) code or a physical address (MAC) of the Mobile phone, and the user identifier may refer to a name or a school number of the classmate, because the device identifier that can be identified by the server is generally the device identifier of the check-in execution device when the scan success information is reported to the server by the check-in execution device, and if the device identifier needs to be corresponding to the classmate, the corresponding relationship between the device identifier and the user identifier needs to be used.
In a specific implementation process, after receiving N pieces of scanning success information sent by N check-in execution devices, the server may first determine N device identifiers corresponding to the N check-in execution devices, and determine N user identifiers corresponding to the N device identifiers based on a correspondence between the device identifiers and the user identifiers, for example, N names of classmates are determined, and further, the N names of classmates may be sent to the check-in control device, that is, to the mobile phone of the teacher, and the mobile phone of the teacher may directly display after receiving the N names of classmates, so that the teacher may timely find out which classmates have successfully checked-in, and may timely know the number of people who are absent from the attendance, and the like.
In a possible implementation manner, before sending the second control instruction to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with the second predetermined wireless hotspot name, the server may further obtain M pieces of system type information, which are respectively sent by the M check-in execution devices and used for instructing the operating system type of the check-in execution device, determine the first system type information obtained first from the M pieces of system type information, and further determine the check-in execution device sending the first system type information as the first check-in execution device. That is to say, M check-in execution devices may all report system type information indicating the operating system type of the M check-in execution devices to the server, and the server may determine the check-in execution device corresponding to the system type information received first as the first check-in execution device, because the server can receive the first and indicates that the communication response time between the check-in execution device and the server is shortest, it is possible to facilitate other check-in execution devices to perform scanning check-in operation quickly as much as possible by using the check-in execution device as a wireless hotspot opening session, so as to improve the check-in efficiency.
Further, if the operating system of the first check-in execution device is an Android operating system, a second control instruction is sent to the first check-in execution device to instruct the first check-in execution device to open a WiFi hotspot with a predetermined WiFi name, specifically, the WiFi hotspot with the predetermined name may be configured by calling WiFi configuration of Android api, and then the WiFi hotspot is set by calling setwifi enabled of WiFiManager. Correspondingly, the WiFi name can be scanned by calling a startScan method of the WifiManager of the Android api, then calling a register receiver to register and wait for a scanning result WifiManagerSCAN _ RESULTS _ AVAILABLE _ ACTION, and finally obtaining the scanning result through getScanResults of the WifiManager.
If the operating system of the first check-in executing device is an ios operating system, sending the second control instruction to the first check-in executing device to indicate that the first check-in executing device is set as an iBeacon base station with UUID being a predetermined UUID, specifically, setting the ios mobile phone as the iBeacon base station may first call a CLBeacon Region api, initialize a CLBeacon Region object with the UUID allocated by the server, generate base station data by calling a method of a neighbor DataWithatsuuredPower, start setting the iBeacon base station by calling a startAdvertification method of a BPpherylManager, and stop setting the iBeacon base station by calling a stoppAdvertification method. Correspondingly, an iBeacon base station scanning for a particular UUID may first initialize a CLBeaconRegion object with the UUID, then start scanning by invoking startmonitorforregion of CLLocationManager, and receive iBeacon signals through didRangeBeacons of CLLocationManager.
Because the operation types of the mobile terminals such as the mobile phone generally include two major operation systems, namely an Android operation system and an ios operation system, and are limited by the system limitation of the ios operation system, and the device of the ios operation system cannot support the scanned WiFi information at present, the Android operation system and the ios operation system are respectively explained in the embodiment of the invention, so that the application in the actual implementation process is facilitated, the use experience of a user is improved, and the students of the mobile phones using different operation systems can intelligently sign in through the sign-in method provided by the embodiment of the invention.
In addition, in a specific implementation process, in the classmates in the previous lessons, one part of the classmates may use a mobile phone with an Android operating system, and the other part of the classmates may use a mobile phone with an ios operating system, so that all the mobile phones of the classmates may be divided into two classes, one class is the Android operating system, the other class is the ios operating system, and then one mobile phone is selected from the two classes as the first check-in execution device introduced in the foregoing embodiment, that is, two groups of check-ins may be performed respectively for two different operating system types, and the check-in operations of the two groups of check-in execution devices may be performed in parallel, so that the check-in efficiency may be further improved.
Based on the same inventive concept, please refer to fig. 3, an embodiment of the present invention provides a first server, including: the first determining module 301, the first sending module 302 and the receiving module 303, and the first determining module 301, the first sending module 302 and the receiving module 303 in the embodiment of the present invention may implement the relevant functional units through a hardware processor. Wherein:
a first determining module 301, configured to determine, according to first request information sent by a check-in control device, M check-in execution devices that need to check in; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2;
a first sending module 302, configured to send a first control instruction to the check-in control device to instruct the check-in control device to open a wireless hotspot with a first predetermined wireless hotspot name, and send the first predetermined wireless hotspot name to the M check-in execution devices; or, the first check-in execution device is used for sending a second control instruction to the first check-in execution device to instruct the first check-in execution device to open the wireless hotspot with a second preset wireless hotspot name, and determining that the check-in of the first check-in execution device is successful and sending the second preset wireless hotspot name to M-1 check-in execution devices except the first check-in execution device in the M check-in execution devices; the first check-in execution device is one check-in execution device, wherein the distance between the first check-in execution device and the check-in control device in the M check-in execution devices is smaller than or equal to a preset distance;
a receiving module 303, configured to receive N pieces of scanning success information sent by the N check-in execution devices; the scanning success information is used for indicating that the check-in execution equipment detects a wireless network corresponding to the first preset wireless hotspot name or the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, wherein N is a positive integer less than or equal to M.
In one possible implementation, the receiving module 303 is configured to:
stopping receiving the scanning success information when a preset time length passes; the starting moment of the preset duration is the moment when the server sends the first control instruction or sends the second control instruction;
and determining the received scanning success information as N pieces of scanning success information.
In one possible implementation, the server may further include:
a second determining module, configured to determine, after the receiving module 303 receives the N pieces of scanning success information sent by the N check-in execution devices, N device identifiers corresponding to the N check-in execution devices;
a third determining module, configured to determine, according to a correspondence between the device identifier and the user identifier stored in the server, N user identifiers corresponding to the N device identifiers;
and the second sending module is used for sending the N user identifications to the check-in control equipment so that the check-in control equipment displays the N user identifications.
In one possible implementation, the server may further include:
an obtaining module, configured to obtain M pieces of system type information, which are sent by M check-in execution devices respectively and used for indicating the operating system types of the check-in execution devices, before the first sending module 302 sends a second control instruction to the first check-in execution device to indicate that the first check-in execution device opens a wireless hotspot with a second predetermined wireless hotspot name;
a fourth determining module, configured to determine, from the M pieces of system type information, first system type information obtained first;
and the fifth determining module is used for determining that the check-in executing equipment which sends the first system type information is the first check-in executing equipment.
In one possible implementation, the first sending module 302 is configured to:
if the operating system of the first check-in execution equipment is the Android operating system, sending a second control instruction to the first check-in execution equipment to indicate the first check-in execution equipment to open a WiFi hotspot by a preset wireless fidelity WiFi name; or
And if the operating system of the first check-in executing equipment is an ios operating system, sending a second control instruction to the first check-in executing equipment to indicate an iBeacon base station which sets the first check-in executing equipment as a universal unique identifier UUID as a predetermined UUID.
Since the first server provided in the embodiment of the present invention may be used to execute the check-in method shown in fig. 1, for functions and some implementation processes that can be implemented by each function module included in the server in the embodiment of the present invention, reference may be made to the description of the embodiment part shown in fig. 1, which is not described herein again.
Referring to fig. 4, based on the same inventive concept, the embodiment of the present invention further provides a second server, where the server includes a memory 401 and a processor 402, and the memory 401 and the processor 402 may be connected through a bus 400, or may be connected through a dedicated connection line, and fig. 4 is taken as an example of connection through the bus 400. Wherein the memory 401 is configured to store instructions, and the processor 402 is configured to execute the instructions stored in the memory 401, so that when the instructions are executed, the following steps can be performed:
setting program reserved electric quantity for a preset application program set, and setting system reserved electric quantity for an operating system of the electronic equipment;
determining M check-in execution devices needing check-in according to first request information sent by the check-in control device; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2;
sending a first control instruction to the check-in control equipment to indicate the check-in control equipment to open the wireless hotspot with a first preset wireless hotspot name, and sending the first preset wireless hotspot name to the M check-in execution equipment; or the like, or, alternatively,
sending a second control instruction to the first check-in execution device to indicate the first check-in execution device to open the wireless hotspot with a second preset wireless hotspot name, determining that the check-in of the first check-in execution device is successful, and sending the second preset wireless hotspot name to M-1 check-in execution devices except the first check-in execution device in the M check-in execution devices; the first check-in execution device is one check-in execution device, wherein the distance between the first check-in execution device and the check-in control device in the M check-in execution devices is smaller than or equal to a preset distance;
receiving N pieces of scanning success information sent by N pieces of check-in execution equipment; the scanning success information is used for indicating that the check-in execution equipment detects a wireless network corresponding to the first preset wireless hotspot name or the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, wherein N is a positive integer less than or equal to M.
The processor 402 may be a general-purpose Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a baseband chip, and the like.
The number of the memories 401 may be one or more. The Memory 401 may include a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk Memory, or the like.
By programming the processor 402, the code corresponding to the check-in method shown in fig. 1 is solidified into the chip, so that the chip can execute the check-in method shown in fig. 1 when running, and how to program the processor 402 is a technique known by those skilled in the art and will not be described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A check-in method is applied to a server and is characterized by comprising the following steps:
determining M check-in execution devices needing check-in according to first request information sent by the check-in control device; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2;
sending a second control instruction to first check-in execution equipment to indicate the first check-in execution equipment to open a wireless hotspot with a second preset wireless hotspot name, determining that the first check-in execution equipment successfully checks in, and sending the second preset wireless hotspot name to M-1 check-in execution equipment except the first check-in execution equipment in the M check-in execution equipment; wherein the first check-in execution device is one of the M check-in execution devices, the distance between which and the check-in control device is less than or equal to a predetermined distance;
receiving N pieces of scanning success information sent by N pieces of check-in execution equipment; the scanning success information is used for indicating that the check-in execution equipment detects the wireless network corresponding to the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, and N is a positive integer less than or equal to M.
2. The method of claim 1, wherein receiving N scan success messages sent by N check-in performing devices comprises:
stopping receiving the scanning success information when a preset time length passes; the starting moment of the preset time length is the moment when the server sends the second control instruction;
and determining the received scanning success information as the N pieces of scanning success information.
3. The method of claim 1, wherein after receiving N scan success information sent by N check-in performing devices, the method further comprises:
determining N device identifications corresponding to the N check-in execution devices;
determining N user identifications corresponding to the N equipment identifications according to the corresponding relation between the equipment identifications and the user identifications stored in the server;
and sending the N user identifications to the check-in control equipment so that the check-in control equipment displays the N user identifications.
4. The method of any of claims 1-3, wherein prior to sending a second control directive to a first check-in execution device instructing the first check-in execution device to open a wireless hotspot with a second predetermined wireless hotspot name, the method further comprises:
obtaining M pieces of system type information which is respectively sent by the M check-in execution devices and used for indicating the operating system types of the check-in execution devices;
determining first system type information obtained firstly from the M pieces of system type information;
and determining the check-in execution equipment which sends the first system type information as the first check-in execution equipment.
5. The method of claim 4, wherein sending a second control directive to a first check-in execution device instructing the first check-in execution device to open a wireless hotspot with a second predetermined wireless hotspot name comprises:
if the operating system of the first check-in execution device is an Android operating system, sending the second control instruction to the first check-in execution device to indicate the first check-in execution device to open a WiFi hotspot with a preset wireless fidelity WiFi name; or
And if the operating system of the first check-in execution equipment is an ios operating system, sending the second control instruction to the first check-in execution equipment to indicate that the first check-in execution equipment is set as an iBeacon base station with a universal unique identifier UUID as a predetermined UUID.
6. A server, comprising:
the system comprises a first determining module, a second determining module and a checking-in executing module, wherein the first determining module is used for determining M checking-in executing devices needing to be checked in according to first request information sent by check-in control devices; the first request information is used for requesting to start check-in, and M is an integer greater than or equal to 2;
the first sending module is used for sending a second control instruction to the first check-in execution equipment to indicate the first check-in execution equipment to open a wireless hotspot with a second preset wireless hotspot name, determining that the check-in of the first check-in execution equipment is successful, and sending the second preset wireless hotspot name to M-1 check-in execution equipment except the first check-in execution equipment in the M check-in execution equipment; wherein the first check-in execution device is one of the M check-in execution devices, the distance between which and the check-in control device is less than or equal to a predetermined distance;
the receiving module is used for receiving N pieces of scanning success information sent by the N check-in execution devices; the scanning success information is used for indicating that the check-in execution equipment detects the wireless network corresponding to the second preset wireless hotspot name and indicating that the check-in execution equipment successfully checks in, and N is a positive integer less than or equal to M.
7. The server of claim 6, wherein the receiving module is to:
stopping receiving the scanning success information when a preset time length passes; the starting moment of the preset time length is the moment when the server sends the second control instruction;
and determining the received scanning success information as the N pieces of scanning success information.
8. The server of claim 6, wherein the server further comprises:
a second determining module, configured to determine, after the receiving module receives the N pieces of scanning success information sent by the N check-in execution devices, N device identifiers corresponding to the N check-in execution devices;
a third determining module, configured to determine, according to a correspondence between the device identifier and the user identifier stored in the server, N user identifiers corresponding to the N device identifiers;
and the second sending module is used for sending the N user identifications to the check-in control equipment so as to enable the check-in control equipment to display the N user identifications.
9. The server according to any one of claims 6-8, wherein the server further comprises:
an obtaining module, configured to obtain, before the first sending module sends the second control instruction to the first check-in execution device to instruct the first check-in execution device to open a wireless hotspot with the second predetermined wireless hotspot name, M pieces of system type information, which are sent by the M check-in execution devices respectively and used for instructing an operating system type of the check-in execution device;
a fourth determining module, configured to determine, from the M pieces of system type information, first system type information obtained first;
a fifth determining module, configured to determine that the check-in execution device that sends the first system type information is the first check-in execution device.
10. The server of claim 9, wherein the first sending module is to:
if the operating system of the first check-in execution device is an Android operating system, sending the second control instruction to the first check-in execution device to indicate the first check-in execution device to open a WiFi hotspot with a preset wireless fidelity WiFi name; or
And if the operating system of the first check-in execution equipment is an ios operating system, sending the second control instruction to the first check-in execution equipment to indicate that the first check-in execution equipment is set as an iBeacon base station with a universal unique identifier UUID as a predetermined UUID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610969380.9A CN106604353B (en) | 2016-10-27 | 2016-10-27 | Sign-in method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610969380.9A CN106604353B (en) | 2016-10-27 | 2016-10-27 | Sign-in method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604353A CN106604353A (en) | 2017-04-26 |
CN106604353B true CN106604353B (en) | 2020-03-27 |
Family
ID=58590586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610969380.9A Active CN106604353B (en) | 2016-10-27 | 2016-10-27 | Sign-in method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604353B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107393046B (en) * | 2017-08-03 | 2019-08-06 | 陕西尚品信息科技有限公司 | A kind of method that bluetooth registers system and bluetooth is registered |
CN109640373B (en) * | 2019-01-17 | 2021-10-15 | 珠海格力电器股份有限公司 | Networking method and device applied to Internet of things and storage medium |
CN111028373B (en) * | 2019-09-27 | 2023-08-08 | 视联动力信息技术股份有限公司 | Conference sign-in method and device based on face recognition |
CN111429115B (en) * | 2020-04-17 | 2023-05-23 | 苏州承儒信息科技有限公司 | Sign-in system for teaching classroom and working method thereof |
CN112181900B (en) * | 2020-09-04 | 2024-05-14 | 中国银联股份有限公司 | Data processing method and device in server cluster |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346838A (en) * | 2014-10-22 | 2015-02-11 | 深圳市金立通信设备有限公司 | Terminal and system |
CN104392500A (en) * | 2014-10-22 | 2015-03-04 | 深圳市金立通信设备有限公司 | Checking-in method |
CN105407155A (en) * | 2015-11-17 | 2016-03-16 | 广东欧珀移动通信有限公司 | Ward registration method and system |
CN105898771A (en) * | 2016-04-25 | 2016-08-24 | 捷开通讯(深圳)有限公司 | Sign-in method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9979710B2 (en) * | 2012-07-26 | 2018-05-22 | Stmicroelectronics, Inc. | Single SSID and dual-SSID enhancements |
-
2016
- 2016-10-27 CN CN201610969380.9A patent/CN106604353B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346838A (en) * | 2014-10-22 | 2015-02-11 | 深圳市金立通信设备有限公司 | Terminal and system |
CN104392500A (en) * | 2014-10-22 | 2015-03-04 | 深圳市金立通信设备有限公司 | Checking-in method |
CN105407155A (en) * | 2015-11-17 | 2016-03-16 | 广东欧珀移动通信有限公司 | Ward registration method and system |
CN105898771A (en) * | 2016-04-25 | 2016-08-24 | 捷开通讯(深圳)有限公司 | Sign-in method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106604353A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106604353B (en) | Sign-in method and server | |
US10257286B2 (en) | Emulating a wireless connection using a wired connection | |
CN105184880B (en) | A kind of System and method for of registering based on WiFi | |
CN105763653A (en) | Method and server for generating statistical information | |
CN106255033A (en) | Information transmitting apparatus, method for sending information, portable terminal device | |
CN105681542A (en) | Information processing method and system and terminal | |
US20160050267A1 (en) | Sign-In Method and Terminal | |
CN110706140A (en) | Classroom interactive learning method, device, system and computer readable storage medium | |
CN103345855B (en) | Projection switching system and projection switching method for teaching | |
CN108173737A (en) | A kind of group chat method and system, server, mobile terminal | |
CN110222280A (en) | Data processing method and device for sharing | |
CN107592427B (en) | Mode switching method, terminal device and computer readable storage medium | |
KR102296966B1 (en) | System for managing learning through preparation and review and method thereof | |
CN106255074B (en) | A kind of group's method for building up and device | |
CN110309097A (en) | The control method and recording medium of communication device, communication device | |
US8498392B2 (en) | Method and a system for establishing a communication channel between a predetermined number of selected devices and a device and a server arranged for use in the system | |
KR101383518B1 (en) | Management system for mobile business card and exchange method of multiple business card using the same | |
CN105049668A (en) | Information processing system, information processing apparatus, method, and storage medium | |
CN110022327A (en) | A kind of short message certification test method and device | |
CN113286349B (en) | Personal hot spot connection method, device, terminal and storage medium | |
KR101749707B1 (en) | System for automatic attendance management using wireless fidelity with limitless number of occupations | |
CN115103053A (en) | Call establishment method, device, terminal, system and readable storage medium | |
CN108023903B (en) | Notification issuing method and system | |
KR100973985B1 (en) | A score noticing system for mobile stations by using sms message and the method thereof | |
KR101585191B1 (en) | Method, service providing server and computer program for controlling transmission of content between wireless communication module around user terminal |
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 |