Classroom sign-in method based on Beacon
By binding and parsing the identification code of the Beacon device in the HarmonyOS Next system, the student-side device can automatically identify and check in, solving the problem that the system does not support direct scanning of the Beacon device and improving the check-in efficiency.
Patent Information
- Application Number
- CN202411348141.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-20
AI Technical Summary
HarmonyOS Next system does not support Beacon devices that directly scan specific feature values, resulting in student handheld terminals need to manually determine the target device from multiple Bluetooth devices when checking in in class, affecting the check-in efficiency.
The target Beacon device is bound to the target classroom through the server or teacher-side device, and its unique identification code, main identification code and secondary identification code are configured. The student-side device searches and parses Bluetooth data packets within the scanning range to determine the target Beacon equipment, thereby realizing automatic search and check-in.
It effectively solves the problem of inconvenience in check-in with handheld terminals on the HarmonyOS Next system. The student-side device can automatically search and identify the target Beacon device to improve check-in efficiency.
Smart Images

Figure CN119169711A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of attendance check-in, and more specifically, relates to a Beacon-based classroom check-in method. Background Art
[0002] In recent years, Beacon technology has been increasingly used in classroom sign-in scenarios. Among them, the existing classroom sign-in solution based on Beacon technology usually involves the student handheld terminal scanning the Beacon device in the classroom and establishing a Bluetooth connection. At present, due to the relatively complete support of iOS and Android systems for Beacon technology, student handheld terminals equipped with iOS or Android systems can scan Beacon devices based on the functions of the operating system and the identification of the UUID of the Beacon device. However, the existing HarmonyOS Next system has relatively insufficient support for Beacon technology. The system does not support direct scanning of Beacon devices that broadcast specific characteristic values by default, that is, student handheld terminals equipped with the HarmonyOS Next system cannot directly scan specific Beacon devices in the classroom, but can only scan all Bluetooth devices in a certain area. Therefore, for students using handheld terminals equipped with the HarmonyOS Next system, they need to manually determine the target Beacon device among the multiple Bluetooth devices scanned, which not only brings inconvenience to student users, but also greatly affects the sign-in efficiency. Summary of the invention
[0003] The purpose of the present invention is to solve the problem of inconvenience in signing in with a HarmonyOS Next system handheld terminal in the existing classroom sign-in solution based on Beacon technology.
[0004] In order to achieve the above object, the present invention provides a Beacon-based classroom sign-in method, which is implemented based on a student-side device deployed with a student-side application, a teacher-side device deployed with a teacher-side application, a server deployed with a server-side application, and a Beacon device, wherein the student-side device is equipped with a HarmonyOS Next system;
[0005] The classroom sign-in method includes:
[0006] The server or the teacher-end device binds the target Beacon device to the target classroom, and configures the unique identification code, primary identification code and secondary identification code of the target Beacon device;
[0007] When the target Beacon device is located in the corresponding classroom, the teacher-end device controls the target Beacon device to broadcast a Bluetooth data packet externally;
[0008] The student terminal device searches for the target Beacon device and obtains a list of classes being signed in, wherein the student terminal device searches for the target Beacon device including:
[0009] Get the Bluetooth data packets broadcast by all Bluetooth devices within the scanning range.
[0010] Parse the Bluetooth data packet of each Bluetooth device to determine the Beacon device whose unique identification code is consistent with the unique identification code of the target Beacon device among all Bluetooth devices based on the acquired Bluetooth device type code and unique identification code,
[0011] Parse the Bluetooth data packet of each Beacon device to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then determine the target Beacon device;
[0012] The student terminal device selects a target classroom in the classroom list to sign in, and uploads the corresponding sign-in information to the server.
[0013] Optionally, before the server or the teacher-end device binds the target Beacon device to the target classroom, the following steps are included:
[0014] The server or the teacher-end device provides the quantity information of the Beacon devices to be used and the placement location information of each Beacon device according to the acquired classroom number information.
[0015] Optionally, the classroom sign-in method further includes:
[0016] The server or the teacher-end device sets the sign-in start time and the sign-in end time of the target classroom, and / or adjusts the sign-in member list.
[0017] Optionally, the student-end device initiates a search for the target Beacon device in response to its own vibration signal.
[0018] Optionally, the parsing of the Bluetooth data packet of each Bluetooth device to determine, based on the acquired Bluetooth device type code and unique identification code, the Beacon device whose unique identification code among all Bluetooth devices is consistent with the unique identification code of the target Beacon device includes:
[0019] Parse the 7th to 18th bits of data in the Bluetooth data packet of each Bluetooth device, and determine the Bluetooth device with the parsed data of 1aff4c000215 as a Beacon device;
[0020] Parse the 19th to 50th bits of data in the Bluetooth data packet of each identified Beacon device to obtain the unique identification code of each Beacon device;
[0021] The unique identification code of each Beacon device is compared with the unique identification code of the target Beacon device to determine the Beacon device whose unique identification code is consistent with the unique identification code of the target Beacon device among all Bluetooth devices.
[0022] Optionally, the Bluetooth data packet of each Beacon device is parsed to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then the target Beacon device is determined to be:
[0023] Parse the 51st to 54th bit data, the 55th to 58th bit data, and the 59th to 60th bit data in the Bluetooth data packet of each Beacon device whose unique identification code is consistent with the target Beacon device to obtain the primary identification code, the secondary identification code, and the transmission power value of each Beacon device;
[0024] A Beacon device whose primary identification code, secondary identification code and transmission power value are all consistent with those of the target Beacon device is determined as the target Beacon device.
[0025] Optionally, before the student terminal device selects the target classroom in the classroom list to sign in, the method further includes:
[0026] The student terminal device obtains the sign-in authority based on the biometric information verification link.
[0027] Optionally, the biometric information verification step is a face recognition verification step or a fingerprint recognition verification step.
[0028] Optionally, the classroom sign-in method further includes:
[0029] In response to the teacher-end device's request to view the sign-in status, the server provides the teacher-end device with real-time sign-in data.
[0030] Optionally, the classroom sign-in method further includes:
[0031] In response to the attendance report viewing request of the teacher-side device, the server provides the attendance report to the teacher-side device.
[0032] The beneficial effects of the present invention are:
[0033] The Beacon-based classroom sign-in method of the present invention makes use of a targeted and optimized student-side application to make up for the deficiency of the existing HarmonyOS Next system that does not support direct scanning of Beacon devices that broadcast specific characteristic values, so that the student-side device can automatically search for the target Beacon device. The corresponding search process is specifically as follows: first, obtain the Bluetooth data packets broadcast by all Bluetooth devices within the scanning range; second, parse the Bluetooth data packets of each Bluetooth device to determine the Beacon device whose unique identification code among all Bluetooth devices is consistent with the unique identification code of the target Beacon device based on the obtained Bluetooth device type code and unique identification code; finally, parse the Bluetooth data packet of each Beacon device to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then determine the target Beacon device.
[0034] According to the above content, the Beacon-based classroom sign-in method of the present invention can effectively solve the problem of inconvenience in signing in with a HarmonyOS Next system handheld terminal in the existing Beacon-based classroom sign-in solution.
[0035] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The present invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which the same or similar reference numerals are used throughout the drawings to represent the same or similar components.
[0037] Figure 1 A flowchart of an implementation of a Beacon-based classroom sign-in method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to more fully understand the technical solution of the present invention, the exemplary embodiments of the present invention will be described in more comprehensive and detailed in conjunction with the accompanying drawings below. Obviously, the one or more embodiments of the present invention described below are only one or more of the specific ways in which the technical solution of the present invention can be implemented, and are not exhaustive. It should be understood that other ways belonging to a general inventive concept can be used to implement the technical solution of the present invention, and should not be limited by the exemplary embodiments described. Based on one or more embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.
[0039] Example: Figure 1 The following is a flowchart showing the implementation of the Beacon-based classroom sign-in method according to an embodiment of the present invention. Figure 1 The Beacon-based classroom sign-in method of the embodiment of the present invention is implemented based on a student-side device deployed with a student-side application, a teacher-side device deployed with a teacher-side application, a server deployed with a server-side application, and a Beacon device, and the student-side device is equipped with a HarmonyOS Next system;
[0040] The above-mentioned classroom sign-in methods include:
[0041] Step S100: The server or teacher-end device binds the target Beacon device to the target classroom, and configures the unique identification code (UUID), major identification code (major) and minor identification code (minor) of the target Beacon device;
[0042] Step S200: When the target Beacon device is located in the corresponding classroom, the teacher-end device controls the target Beacon device to broadcast a Bluetooth data packet externally;
[0043] Step S300: The student device searches for the target Beacon device and obtains a list of classes being signed in. The student device searches for the target Beacon device including:
[0044] Get the Bluetooth data packets broadcast by all Bluetooth devices within the scanning range.
[0045] The Bluetooth data packet of each Bluetooth device is parsed to determine the Beacon device whose unique identification code among all Bluetooth devices is consistent with the unique identification code of the target Beacon device based on the acquired Bluetooth device type code and unique identification code.
[0046] Parse the Bluetooth data packet of each Beacon device to obtain the primary identification code, secondary identification code and transmission power value (txPower) of each Beacon device, and then determine the target Beacon device;
[0047] Step S400: The student device selects a target class in the class list to sign in, and uploads the corresponding sign-in information to the server.
[0048] Furthermore, the Beacon-based classroom sign-in method of the embodiment of the present invention includes the following steps before the server or the teacher-end device binds the target Beacon device to the target classroom:
[0049] The server or teacher's device provides the number of Beacon devices required and the placement location information of each Beacon device based on the acquired classroom number information.
[0050] Specifically, in the embodiment of the present invention, the number of Beacon devices used for sign-in can be one or more than two, and the specific number of devices used is related to the area of the classroom. After the teacher user logs in to the management page of the teacher-side application or the management page of the server-side application, he / she enters the classroom number information and can obtain the number of Beacon devices to be used and the placement location information of each Beacon device. When the corresponding number of Beacon devices are placed at the corresponding locations, it can ensure that the Bluetooth signal covers the entire classroom.
[0051] Furthermore, the Beacon-based classroom sign-in method of the embodiment of the present invention further includes:
[0052] The server or teacher's device sets the sign-in start time and sign-in end time of the target classroom, and / or adjusts the sign-in member list.
[0053] Furthermore, in an embodiment of the present invention, the student-side device initiates a search for a target Beacon device in response to its own vibration signal.
[0054] Specifically, in the embodiment of the present invention, the student-side device searches for the target Beacon device in response to the shake operation of the student user.
[0055] Furthermore, in step S300 of the embodiment of the present invention, the Bluetooth data packet of each Bluetooth device is parsed to determine the Beacon device whose unique identification code among all Bluetooth devices is consistent with the unique identification code of the target Beacon device based on the acquired Bluetooth device type code and unique identification code, including:
[0056] Parse the 7th to 18th bits of data in the Bluetooth data packet of each Bluetooth device, and determine the Bluetooth device with the parsed data of 1aff4c000215 as a Beacon device;
[0057] Parse the 19th to 50th bits of data in the Bluetooth data packet of each identified Beacon device to obtain the unique identification code of each Beacon device;
[0058] The unique identification code of each Beacon device is compared with the unique identification code of the target Beacon device to determine the Beacon device whose unique identification code in all Bluetooth devices is consistent with the unique identification code of the target Beacon device.
[0059] Furthermore, in step S300 of the embodiment of the present invention, the Bluetooth data packet of each Beacon device is parsed to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then the target Beacon device is determined to be:
[0060] Parse the 51st to 54th bit data, the 55th to 58th bit data, and the 59th to 60th bit data in the Bluetooth data packet of each Beacon device whose unique identification code is consistent with the target Beacon device to obtain the primary identification code, secondary identification code, and transmission power value of each Beacon device;
[0061] A Beacon device whose primary identification code, secondary identification code and transmission power value are all consistent with those of the target Beacon device is determined as the target Beacon device.
[0062] Specifically, in an embodiment of the present invention, if the 7th-18th data bits in a Bluetooth data packet of a Bluetooth device are 1aff4c000215, it means that the Bluetooth device is determined to be a Beacon device; the 19th-50th data bits in the Bluetooth data packet of the Beacon device are the unique identification code of the Beacon device, that is, UUID; the 51st-54th data bits in the Bluetooth data packet of the Beacon device are the primary identification code of the Beacon device, that is, major value; the 55th-58th data bits in the Bluetooth data packet of the Beacon device are the secondary identification code of the Beacon device, that is, minor value; the 59th-60th data bits in the Bluetooth data packet of the Beacon device are the transmission power value of the Beacon device, that is, txPower value.
[0063] Furthermore, the Beacon-based classroom sign-in method of the embodiment of the present invention, before the student terminal device selects the target classroom in the classroom list for sign-in, further includes:
[0064] The student device obtains sign-in permission based on biometric information verification.
[0065] Furthermore, in the embodiment of the present invention, the biometric information verification link is a face recognition verification link or a fingerprint recognition verification link.
[0066] Specifically, in the embodiment of the present invention, the specific process of the face recognition verification link is as follows:
[0067] The student device sends a face recognition verification request to the server;
[0068] The server sends a face photo request message to the student terminal device according to the received face recognition verification request, wherein the face photo request message specifically requires the student user to take a frontal face photo containing his / her gesture information while placing a designated hand under his / her chin and using the designated hand to represent a corresponding number;
[0069] The student device uploads the student user's face photo to the server;
[0070] The server performs facial recognition on the student user's frontal photo, specifically:
[0071] Determine whether the feedback time of the student user's frontal face photo exceeds the specified time limit. If so, the face recognition verification fails. If not, verify whether the gesture information is consistent with the required gesture information. If not, the face recognition verification fails. If consistent, perform face comparison. If the comparison fails, the face recognition verification fails. If the comparison succeeds, the face verification passes.
[0072] When the face recognition verification fails because the feedback time exceeds the specified time limit, the server resends the face photo request information to the student device, wherein the required gesture information is different from the previous time.
[0073] In the embodiment of the present invention, the designated hand is the left hand or the right hand, and the number represented by the designated hand is any one of 1-5. Specifically, the raised index finger represents 1, the raised index finger and middle finger represent 2, the raised index finger, middle finger and ring finger represent 3, the raised index finger, middle finger, ring finger and little finger represent 4, and the open palm represents 5. In order to prevent the student user from making an incorrect gesture due to unfamiliarity with the representation of gesture numbers, before entering the shooting operation, the student-end device will show the student user the corresponding gesture example.
[0074] Specifically, in an embodiment of the present invention, the feedback time of the student user's frontal face photo refers to the time interval between the server sending the face photo request information to the student-end device and the student-end device uploading the student user's frontal face photo, and the student user's frontal face photo has a timestamp.
[0075] Specifically, in the embodiment of the present invention, the gesture information required is different from that of the last time, which means that the designated hand is different and / or the number represented by the designated hand is different.
[0076] Furthermore, the Beacon-based classroom sign-in method of the embodiment of the present invention further includes: in response to a sign-in status viewing request from the teacher-side device, the server provides real-time sign-in data to the teacher-side device.
[0077] Furthermore, the Beacon-based classroom sign-in method of the embodiment of the present invention further includes: in response to a request for viewing an attendance report from the teacher-side device, the server provides an attendance report to the teacher-side device.
[0078] Although one or more embodiments of the present invention are described above, it should be known to those skilled in the art that the present invention can be implemented in any other form without departing from its subject matter and scope. Therefore, the embodiments described above are illustrative rather than restrictive, and many modifications and substitutions are obvious to those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A Beacon-based classroom sign-in method, characterized in that: It is implemented based on a student-side device with a student-side application deployed, a teacher-side device with a teacher-side application deployed, a server with a server-side application deployed, and a Beacon device, wherein the student-side device is equipped with the HarmonyOS Next system; The classroom sign-in method includes: The server or the teacher-end device binds the target Beacon device to the target classroom, and configures the unique identification code, primary identification code and secondary identification code of the target Beacon device; When the target Beacon device is located in the corresponding classroom, the teacher-end device controls the target Beacon device to broadcast a Bluetooth data packet externally; The student terminal device searches for the target Beacon device and obtains a list of classes being signed in, wherein the student terminal device searches for the target Beacon device including: Get the Bluetooth data packets broadcast by all Bluetooth devices within the scanning range. Parse the Bluetooth data packet of each Bluetooth device to determine the Beacon device whose unique identification code is consistent with the unique identification code of the target Beacon device among all Bluetooth devices based on the acquired Bluetooth device type code and unique identification code, Parse the Bluetooth data packet of each Beacon device to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then determine the target Beacon device; The student terminal device selects a target classroom in the classroom list to sign in, and uploads the corresponding sign-in information to the server.
2. The Beacon-based classroom sign-in method according to claim 1, characterized in that: Before the server or the teacher-end device binds the target Beacon device to the target classroom, it includes: The server or the teacher-end device provides the quantity information of the Beacon devices to be used and the placement location information of each Beacon device according to the acquired classroom number information.
3. The Beacon-based classroom sign-in method according to claim 1, characterized in that: Also includes: The server or the teacher-end device sets the sign-in start time and the sign-in end time of the target classroom, and / or adjusts the sign-in member list.
4. The Beacon-based classroom sign-in method according to claim 1, characterized in that: The student-end device initiates a search for the target Beacon device in response to its own vibration signal.
5. The Beacon-based classroom sign-in method according to claim 1, characterized in that: The step of parsing the Bluetooth data packet of each Bluetooth device to determine the Beacon device whose unique identification code among all Bluetooth devices is consistent with the unique identification code of the target Beacon device based on the acquired Bluetooth device type code and unique identification code includes: Parse the 7th to 18th bits of data in the Bluetooth data packet of each Bluetooth device, and determine the Bluetooth device with the parsed data of 1aff4c000215 as a Beacon device; Parse the 19th to 50th bits of data in the Bluetooth data packet of each identified Beacon device to obtain the unique identification code of each Beacon device; The unique identification code of each Beacon device is compared with the unique identification code of the target Beacon device to determine the Beacon device whose unique identification code is consistent with the unique identification code of the target Beacon device among all Bluetooth devices.
6. The Beacon-based classroom sign-in method according to claim 5, characterized in that: The Bluetooth data packet of each Beacon device is parsed to obtain the primary identification code, secondary identification code and transmission power value of each Beacon device, and then the target Beacon device is determined to be: Parse the 51st to 54th bit data, the 55th to 58th bit data, and the 59th to 60th bit data in the Bluetooth data packet of each Beacon device whose unique identification code is consistent with the target Beacon device to obtain the primary identification code, the secondary identification code, and the transmission power value of each Beacon device; A Beacon device whose primary identification code, secondary identification code and transmission power value are all consistent with those of the target Beacon device is determined as the target Beacon device.
7. The Beacon-based classroom sign-in method according to claim 1, characterized in that: Before the student terminal device selects the target classroom in the classroom list to sign in, the method further includes: The student terminal device obtains the sign-in authority based on the biometric information verification link.
8. The Beacon-based classroom sign-in method according to claim 7, characterized in that: The biometric information verification step is a face recognition verification step or a fingerprint recognition verification step.
9. The Beacon-based classroom sign-in method according to claim 1, characterized in that: Also includes: In response to the teacher-end device's request to view the sign-in status, the server provides the teacher-end device with real-time sign-in data.
10. The Beacon-based classroom sign-in method according to claim 1, characterized in that: Also includes: In response to the attendance report viewing request of the teacher-side device, the server provides the attendance report to the teacher-side device.
