[0078] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0079] Reference figure 1 , The embodiment of the present invention provides a method for controlling a student card, including the steps:
[0080] S1. The processing unit obtains the first location information of the student card.
[0081] In this step, the above-mentioned processing unit is the data processing center and control center of the student card, such as electronic equipment such as a single-chip microcomputer. The foregoing first location information refers to the geographic location information where the student card is located. There are many ways to acquire the first location information, such as acquiring the first location information through GPS, and acquiring the first location information through base station positioning.
[0082] S2. Determine whether the first location information is in a preset first electronic fence area; wherein an iBeacon terminal device matching the Bluetooth module of the student card is provided in the first electronic fence area.
[0083] In this step, the above-mentioned first electronic fence area is generally set at the entrance of the school and the only way for students to enter the school, and iBeacon terminal equipment is installed in the first electronic fence area, which can be used for students to sign in.
[0084] S3. If yes, turn on the Bluetooth module of the student card.
[0085] In this step, the aforementioned Bluetooth module is a module that receives and transmits Bluetooth signals.
[0086] In this embodiment, the Bluetooth module is turned on only when the student card enters the first electronic fence area, which can greatly reduce the power consumption of the student card when the Bluetooth module is turned on for a long time. In addition, students who do not need to wear a student card manually turn on the Bluetooth module to prevent students from forgetting to actively turn on the Bluetooth module and miss the card.
[0087] Reference figure 2 In this embodiment, after step S3 of turning on the Bluetooth module of the student card, it includes:
[0088] S4. Obtain the unique ID of the iBeacon terminal device through the Bluetooth module, and send sign-in information to the designated service terminal through the radio frequency module of the student card.
[0089] In this step, the above-mentioned radio frequency modules generally include 2G, 3G, 4G, and 5G wireless modules, which are used for communication and can be connected to designated service terminals. After the student enters the first electronic fence, the processing unit will start the Bluetooth module, and then obtain the proprietary ID of the iBeacon terminal device through the Bluetooth module, and then combine the proprietary ID with the identification information of the Bluetooth module to form sign-in information and send it to the designated service terminal . One of the functions of the above service terminal is to register the check-in information uploaded by the student card and organize the check-in information. For example, if the service terminal does not receive the check-in information of the registered student card during the check-in period, it will send a report to the designated The terminal can be the cell phone of the head teacher whose student card corresponds to the student or the cell phone of the guardian of the student corresponding to the student card.
[0090] In this embodiment, after the above step S4 of acquiring the exclusive ID of the iBeacon terminal device through the Bluetooth module and sending the sign-in information to the designated service terminal through the radio frequency module of the student card, it includes:
[0091] S5. Turn off the Bluetooth module.
[0092] In this step, after the student card sends the sign-in information, the Bluetooth module is automatically controlled to close, which can reduce the power consumption of the student card. After the student leaves the first electronic fence area and enters the first electronic fence again, the above steps S1-S3 will be repeated again and the Bluetooth module will be automatically turned on.
[0093] In this embodiment, the method for obtaining the above-mentioned first location information includes:
[0094] The first location information is acquired through a GPS module set in the student card. When the GPS module collects location information, the energy consumption is relatively low, and the accuracy is higher, which facilitates accurate positioning within a few meters.
[0095] In this embodiment, the aforementioned processing unit includes a coprocessor, and a main processor connected to the coprocessor, the coprocessor is connected to the GPS module, and the main processor controls the Bluetooth module and radio frequency. The work of the module. The above-mentioned coprocessor is a processor with low power consumption, such as a single-chip microcomputer. It can process small data, such as receiving the position data of the GPS module, and then compare it with the preset electronic fence data to generate whether Instructions to start the main processor. The above-mentioned main processor is the main processing device of the student card, and its energy consumption is higher than that of the above-mentioned co-processor. It not only controls the Bluetooth module and the radio frequency module, but also controls other sensors installed on the student card.
[0096] The foregoing step S2 of determining whether the first location information is in the preset first electronic fence area includes:
[0097] S21: Determine whether the first location information is in a preset first electronic fence area through the coprocessor.
[0098] In this step, the coprocessor is used to progressively determine whether the first location information is in the preset first electronic fence area. At this time, the main processor does not need to be activated, so the energy consumption of the student card can be further reduced.
[0099] In this embodiment, before step S3 of turning on the Bluetooth module of the student card, it includes:
[0100] S30. Send a trigger signal to the main processor through the coprocessor to start the main processor.
[0101] In this step, the above-mentioned main processor is controlled by the coprocessor to start, and then the main processor is controlling the Bluetooth module. That is, only after the coprocessor determines that the first location information is in the first electronic fence area, can the main processor be controlled to start, and then the main processor controls the start of the Bluetooth module, which reduces the overall power consumption of the student card.
[0102] Reference image 3 In this embodiment, after the step S5 of turning off the Bluetooth module, it includes:
[0103] S6. Obtain the second location information of the student card through the GPS module.
[0104] In this step, the second location information generally refers to the location information of the student wearing the student card after leaving the first electronic fence area.
[0105] S7. Determine whether the second location information is in a preset second electronic fence area through the coprocessor.
[0106] In this step, the above-mentioned second electronic fence area generally refers to the inner school area of the student wearing the student card.
[0107] S8. If yes, send a sleep signal through the coprocessor to control the main processor to enter the sleep state.
[0108] In this step, if the second location information is in the preset second electronic fence area, it means that the student is in a safe area and does not need to perform real-time positioning. At this time, turn off the Bluetooth module and the main processor and enter the sleep state. It has an impact on student safety and can save energy consumption of student cards.
[0109] Reference Figure 4 In this embodiment, after the step S8 of sending a sleep signal to the main processor through the coprocessor and controlling the main processor to enter the sleep state, the method includes:
[0110] S9. Obtain the third location information of the student card through the GPS module;
[0111] In this step, the third location information is location information outside the first electronic fence area, the second electronic fence and the home electronic fence area. Generally refers to the location information of the student's home after leaving the campus.
[0112] S10. Determine, by the coprocessor, whether the third location information is in the first electronic fence area, the second electronic fence area, and a preset home electronic fence area.
[0113] In this step, the aforementioned home electronic fence area refers to the home address area of the student wearing the student card, that is, the designated area where the student leaves school to go home or go to bed after school. Judging by the coprocessor, the energy consumption of the student card is saved.
[0114] S11. If not, start the main processor by sending a trigger signal through the coprocessor, and send the third position information to the main processor.
[0115] In this step, if the third location information is outside the first electronic fence area, the second electronic fence area, and the preset home electronic fence area, it means that the student is in an unsupervised area, so you need to know the student at all times. Improve student safety. The start of the main processor is to control the work of the radio frequency module.
[0116] S12: Control the radio frequency module to send the third location information to the server through the main processor.
[0117] In this step, the radio frequency module sends the third location information of the student card to the server, and the student's head teacher or parent can obtain the student's location information through the server. In this embodiment, in order to save energy consumption of the student card, the main processor controls the radio frequency module to send the third location information to the server according to a preset upload frequency. That is, it is not the above-mentioned third location information at a time, but an interval of upload time, such as uploading the third location information once every 10 seconds, uploading the third location information once every 1 minute, and so on.
[0118] In this embodiment, after the step S12 of controlling the radio frequency module to send the third location information to the server through the main processor, the method includes:
[0119] S13: Determine, by the main processor, whether to send sign-in information after the student card leaves the second electronic fence area;
[0120] S14. If not, send an alarm message to the designated terminal.
[0121] The above steps S13 and S14 indicate that the student is not on campus. If the student does not sign in when the student leaves the campus, it means that the student has not left the campus through the normal way and needs to send an alarm message to the designated terminal. The above-mentioned alarm information may be reminding information, etc., and the above-mentioned terminal may be a cell phone of a student's head teacher or a parent. For example, if you send a student who did not leave school in accordance with the regular way, please investigate the situation in time.
[0122] In this embodiment, after the step S12 of controlling the radio frequency module to send the third location information to the server through the main processor, the method further includes:
[0123] S15: Determine whether the student card leaves the second electronic fence area through the main processor;
[0124] S16. If yes, judge whether the current time is class time;
[0125] S17. If it is class time, send an alarm message to the designated terminal.
[0126] As mentioned in the above steps S15, S16 and S17, if the student is not in the second electronic fence area, it means that the student is not in school, but the current time is the class time, it means that the student may be skipping class and the head teacher or parent needs to investigate and confirm Whether the student is playing truant or taking time off to go out. Of course, the above-mentioned server can record the leave information of the student card. If the student is not in school during the class time, but the time period is the leave time, the alarm information may not be sent.
[0127] In the method for controlling the student card of the present invention, when the student card enters the first electronic fence area provided with an iBeacon terminal device matching the Bluetooth module of the student card, the Bluetooth module is controlled to start, that is, there is no need to start Bluetooth in other locations. The module greatly saves the energy consumption of the student card and improves the endurance of the student card.
[0128] Reference Figure 5 , The embodiment of the present invention also provides a control device for a student card, the device includes:
[0129] The first location acquiring device 10 is configured to acquire the first location information of the student card;
[0130] The first judging device 20 is configured to judge whether the first location information is in a preset first electronic fence area; wherein an iBeacon matching the Bluetooth module of the student card is set in the first electronic fence area Terminal Equipment;
[0131] The activation device 30 is configured to activate the Bluetooth module of the student card if the first location information is in the preset first electronic fence area.
[0132] The above-mentioned processing unit is the data processing center and control center of the student card, such as electronic equipment such as single-chip microcomputer. The foregoing first location information refers to the geographic location information where the student card is located. The first location acquiring device 10 acquires the first location information in various ways, such as acquiring the first location information through GPS, acquiring the first location information through base station positioning, and so on. The above-mentioned first electronic fence area is generally set at the entrance of the school and the only way for students to enter the school. The first electronic fence area is equipped with iBeacon terminal equipment, which can be used for students to sign in. The opening device 30 turns on the Bluetooth module only when the student card enters the first electronic fence area, which can greatly reduce the power consumption of the student card when the Bluetooth module is turned on for a long time. In addition, students who do not need to wear a student card manually turn on the Bluetooth module to prevent students from forgetting to actively turn on the Bluetooth module and miss the card.
[0133] In the embodiment of the present invention, the above-mentioned student card control device further includes:
[0134] The acquiring and transmitting device 40 is configured to acquire the exclusive ID of the iBeacon terminal device through the Bluetooth module, and send the sign-in information to the designated service terminal through the radio frequency module of the student card.
[0135] The above-mentioned wireless radio frequency modules generally include 2G, 3G, 4G, and 5G wireless modules, which are used for communication and can be connected to designated service terminals. After the student enters the first electronic fence, the processing unit will start the Bluetooth module, and then obtain the proprietary ID of the iBeacon terminal device through the Bluetooth module, and then combine the proprietary ID with the identification information of the Bluetooth module to form sign-in information and send it to the designated service terminal . One of the functions of the above service terminal is to register the check-in information uploaded by the student card and organize the check-in information. For example, if the service terminal does not receive the check-in information of the registered student card during the check-in period, it will send a report to the designated The terminal can be the cell phone of the head teacher whose student card corresponds to the student or the cell phone of the guardian of the student corresponding to the student card.
[0136] In this embodiment, the above-mentioned control device for the student card further includes: a closing device 50 for closing the Bluetooth module.
[0137] After the student card sends the sign-in information, the closing device 50 automatically controls the Bluetooth module to close, which can reduce the power consumption of the student card. When the student leaves the first electronic fence area and enters the first electronic fence again, the Bluetooth module will be automatically turned on again.
[0138] Reference Image 6 In this embodiment, the above-mentioned first position acquisition device 10 includes:
[0139] The first location acquiring sub-device 11 is configured to acquire the first location information through the GPS module provided in the student card. When the GPS module collects location information, the energy consumption is relatively low, and the accuracy is higher, which facilitates accurate positioning within a few meters.
[0140] In this embodiment, the aforementioned control device includes a coprocessor, and a main processor connected to the coprocessor, the coprocessor is connected to the GPS module, and the main processor controls the Bluetooth module and the radio frequency. The work of the module; the first judging device 20 includes:
[0141] The first judging sub-device is used for judging whether the first location information is in the preset first electronic fence area through the coprocessor.
[0142] The coprocessor is used to determine whether the first location information is in the preset first electronic fence area. At this time, the main processor does not need to be activated, so the energy consumption of the student card can be further reduced.
[0143] In this embodiment, the aforementioned student card control device further includes:
[0144] The starting device is used to send a trigger signal to the main processor through the coprocessor to start the main processor.
[0145] The above-mentioned main processor controls the startup by the coprocessor, and then the main processor controls the Bluetooth module. That is, only after the coprocessor determines that the first location information is in the first electronic fence area, can the main processor be controlled to start, and then the main processor controls the start of the Bluetooth module, which reduces the overall power consumption of the student card.
[0146] Reference Figure 7 In this embodiment, the aforementioned student card control device further includes:
[0147] The second location acquiring device 60 is configured to acquire the second location information of the student card through the GPS module;
[0148] The second determining device 70 is configured to determine whether the second location information is in a preset second electronic fence area through the coprocessor;
[0149] The sleep device 80 is configured to send a sleep signal through the coprocessor to control the main processor to enter the sleep state if the second location information is in the preset second electronic fence area.
[0150] The second location information generally refers to the location information of the student wearing the student card after leaving the first electronic fence area. The aforementioned second electronic fence area generally refers to the inner school area of the student wearing the student card. If the second location information is in the preset second electronic fence area, then the student is in a safe area and no real-time positioning is required. At this time, turning off the Bluetooth module and the main processor and entering the sleep state will not cause safety to the student Impact, and can save energy consumption of student cards.
[0151] In this embodiment, the aforementioned student card control device further includes:
[0152] The third location acquiring device 90 is configured to acquire the third location information of the student card through the GPS module; the third location information is located outside the first electronic fence area, the second electronic fence and the home electronic fence area Location information. Generally refers to the location information of the student's home after leaving the campus.
[0153] The third judging device 100 is used for judging whether the third location information is in the first electronic fence area, the second electronic fence area, and the preset home electronic fence area through the coprocessor; the aforementioned home electronic fence area refers to The home address area of the student wearing the student card, that is, the designated area where the student leaves school to go home or go to bed after school. Judging by the coprocessor, the energy consumption of the student card is saved.
[0154] The determining sending device 110 is configured to send a trigger signal through the coprocessor to start the main processor if the third location information is not in the first electronic fence area, the second electronic fence area, and the preset home electronic fence area , And send the third location information to the main processor; if the third location information is outside the first electronic fence area, the second electronic fence area, and the preset home electronic fence area, it means that the student is not The area to be guarded, so it is necessary to know the students at all times to improve the safety of the students. The start of the main processor is to control the work of the radio frequency module.
[0155] The upload device 120 is configured to control the radio frequency module to send the third location information to the server through the main processor. The radio frequency module sends the third location information of the student card to the server, and the student's head teacher or parent can obtain the student's location information through the server. In this embodiment, the upload device 120 includes an upload sub-device for controlling the radio frequency module to send the third location information to the server according to a preset upload frequency through the main processor. That is, it is not the above-mentioned third location information at a time, but an interval of upload time, such as uploading the third location information once every 10 seconds, uploading the third location information once every 1 minute, and so on.
[0156] In this embodiment, the aforementioned student card control device further includes:
[0157] The fourth judging device 130 is used for judging whether to send sign-in information after the student card leaves the second electronic fence area through the main processor;
[0158] The first alarm device 140 is configured to send an alarm message to a designated terminal if the process of sending sign-in information is not performed after the student card leaves the second electronic fence area.
[0159] When the student is not on campus, if the student does not sign in when the student leaves the campus, it means that the student has not left the campus through the normal way and needs to send an alarm message to the designated terminal. The above-mentioned alarm information may be reminding information, etc., and the above-mentioned terminal may be a cell phone of a student's head teacher or a parent. For example, if you send a student who did not leave school in accordance with the regular way, please investigate the situation in time.
[0160] In this embodiment, the aforementioned student card control device further includes:
[0161] The fifth determining device 150 is configured to determine whether the student card leaves the second electronic fence area through the main processor;
[0162] The sixth judging device 160 is configured to judge whether the current time is class time if the student card leaves the second electronic fence area;
[0163] The second alarm device 170 is configured to send an alarm message to the designated terminal if it is determined that the current time is the class time.
[0164] If the student is not in the second electronic fence area, it means that the student is not in school, but the current time is class time, it means that the student may be skipping class, and the head teacher or parents need to investigate to determine whether the student is truant or ask for leave to go out. Of course, the above-mentioned server can record the leave information of the student card. If the student is not in school during the class time, but the time period is the leave time, the alarm information may not be sent.
[0165] The control device of the student card of the present invention controls the Bluetooth module to start when the student card enters the first electronic fence area provided with the iBeacon terminal device matching the Bluetooth module of the student card, that is, there is no need to start the Bluetooth in other locations The module greatly saves the energy consumption of the student card and improves the endurance of the student card.
[0166] The above are only the preferred embodiments of the present invention, and do not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present invention, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of the present invention.