Background
For hosting schools, the safety issues of students are the topics of most interest to schools and parents. Therefore, how to strengthen the security management of the lodging schools is a hot spot worthy of research.
At present, there are various security systems applied to a hosted school, such as a video monitoring system and an access control system. However, the existing security system has various defects, for example, for a video monitoring system, the cost for arranging a camera in the range of a school is high, and a monitoring dead angle exists; for an access control system, it cannot prevent students from going out from other non-door forbidden places. Therefore, a more reasonable and effective security system is needed to ensure the safety of students.
Disclosure of Invention
The embodiment of the application provides a security system and a positioning method for the security system, so that the safety of students can be more reasonably and effectively ensured.
In a first aspect, an embodiment of the present application provides a security system, where the security system includes a portable device, at least two base stations, and a server, where:
a portable device for transmitting a UWB pulse signal;
the base station is used for receiving the UWB pulse signals and sending the receiving time of the UWB pulse signals to the server, and the base station is time-synchronized with the portable equipment;
and the server is used for positioning the portable equipment according to the receiving time sent by the at least two base stations.
In one possible implementation, the server may be specifically configured to: and positioning the portable equipment by adopting a preset positioning algorithm according to the receiving time sent by at least two base stations, wherein the preset positioning algorithm comprises a ToF ranging method and/or a TDoA positioning algorithm.
In one possible embodiment, the portable device may be further configured to: and sending out a distress signal when receiving the triggering operation of the distress control acting on the portable equipment.
In a possible implementation manner, the security system further includes a terminal device. Correspondingly, the server is also used for sending a positioning result to the terminal equipment, wherein the positioning result comprises an identifier corresponding to the portable equipment; and the terminal equipment is used for displaying the positioning result.
In a possible implementation, the terminal device may specifically be configured to: displaying the positioning result by at least one of the following modes:
displaying all positioning results;
grouping and displaying the positioning result;
and displaying abnormal conditions in the positioning results, wherein the abnormal conditions comprise the positioning results which are not in the preset range.
In one possible embodiment, the portable device may be further configured to: and when receiving the triggering operation of the help-seeking control acting on the portable equipment, starting a communication function with the terminal equipment.
In a possible implementation, the terminal device may be further configured to: determining that the portable equipment meets a preset alarm rule according to the positioning result; and sending alarm information, wherein the alarm information comprises the identification of the portable equipment.
In a possible embodiment, the preset alarm rule may include at least one of the following: .
The portable device is in a position for more than a first preset duration;
the distance between the portable devices is smaller than the first preset distance and exceeds a second preset time;
the portable equipment comprises main portable equipment and auxiliary portable equipment, and the distance between the auxiliary portable equipment and the main portable equipment is greater than a second preset distance;
within a preset time range, the portable equipment is not within a preset position range;
and receiving a distress signal sent by the portable equipment.
In a second aspect, an embodiment of the present application provides a positioning method for a security system, where the security system includes a portable device, at least two base stations, and a server. The method comprises the following steps: the portable equipment sends UWB pulse signals; the base station receives the UWB pulse signal and sends the receiving time of the UWB pulse signal to the server, and the base station and the portable equipment are synchronized in time; and the server positions the portable equipment according to the receiving time sent by the at least two base stations.
In a possible implementation, the server locating the portable device according to the receiving time of the at least two base station transmissions may include: and the server positions the portable equipment by adopting a preset positioning algorithm according to the receiving time sent by at least two base stations. The predetermined positioning algorithm includes a ToF ranging method and/or a TDoA positioning algorithm.
In one possible embodiment, the method may further include: and the portable equipment sends out a distress signal when receiving the triggering operation of the distress control acting on the portable equipment.
In a possible implementation manner, the security system may further include a terminal device. After the server locates the portable device according to the receiving time sent by the at least two base stations, the method may further include: the server sends a positioning result to the terminal equipment, wherein the positioning result comprises an identifier corresponding to the portable equipment; and the terminal equipment displays the positioning result.
In a possible implementation manner, the displaying, by the terminal device, the positioning result may include: the terminal equipment displays the positioning result in at least one of the following modes:
displaying all positioning results;
grouping and displaying the positioning result;
and displaying abnormal conditions in the positioning results, wherein the abnormal conditions comprise the positioning results which are not in the preset range.
In one possible embodiment, the method may further include: and when the portable equipment receives the triggering operation of the help-seeking control acting on the portable equipment, starting a communication function with the terminal equipment.
In a possible implementation manner, after the terminal device receives the positioning result, the method may further include: the terminal equipment determines that the portable equipment meets a preset alarm rule according to the positioning result; and the terminal equipment sends alarm information which comprises the identification of the portable equipment.
In one possible embodiment, the preset alarm rule may include at least one of the following:
the portable device is in a position for more than a first preset duration;
the distance between the portable devices is smaller than the first preset distance and exceeds a second preset time;
the portable equipment comprises main portable equipment and auxiliary portable equipment, and the distance between the auxiliary portable equipment and the main portable equipment is greater than a second preset distance;
within a preset time range, the portable equipment is not within a preset position range;
and receiving a distress signal sent by the portable equipment.
The security system comprises portable equipment, at least two base stations and a server, wherein the base stations and the portable equipment are synchronous in time. The portable equipment is used for sending UWB pulse signals; the base station is used for receiving the UWB pulse signal and sending the receiving time of the UWB pulse signal to the server; the server is used for positioning the portable equipment according to the receiving time sent by the at least two base stations, so that the position of the portable equipment is determined, the position of a user carrying the portable equipment is further determined, and compared with an existing security system, the safety of students can be more reasonably and effectively guaranteed.
Detailed Description
It should be understood that the numbers "first" and "second" in the embodiments of the present application are used for distinguishing similar objects, and are not necessarily used for describing a specific order or sequence order, and should not be construed as limiting the embodiments of the present application in any way.
The "and/or" mentioned in the embodiments of the present application describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
First, an application scenario and a part of vocabulary related to the embodiments of the present application will be described.
Portable equipment, a person to be positioned, such as a student, has to wear terminal equipment. Illustratively, it may be embodied as a tag, chest card, or the like. Taking the label as an example, the front surface of the label can be as shown in fig. 1, and information such as name, grade (or class) and the like of the user carrying the label is marked on the label; the reverse side of the label may be provided with a pin or the like as shown in figure 2.
And the terminal equipment is used for displaying the positioning result, such as the current position of the student and the like. Illustratively, the terminal device includes, but is not limited to, a Personal Computer (PC), a tablet computer, a mobile phone, and other devices with a display function.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a schematic diagram of a security system provided in an embodiment of the present application. As shown in fig. 3, the security system includes a portable device, at least two base stations, and a server. The portable equipment is positioned in the coverage range of at least two base stations, and is communicated and interacted with the at least two base stations, and the base stations and the portable equipment are time-synchronized; the at least two base stations are also in communication with a server. Fig. 3 illustrates only one portable device and two base stations as an example, but the embodiment of the present application is not limited thereto. Specifically, the method comprises the following steps:
the portable equipment is used for transmitting Ultra Wideband (UWB) pulse signals.
And the base station is used for receiving the UWB pulse signal and sending the receiving time of the UWB pulse signal to the server.
And the server is used for positioning the portable equipment according to the receiving time sent by the at least two base stations.
The UWB pulse signal is a carrier-free communication technology, data are transmitted by using nanosecond-microsecond-level non-sine wave narrow pulses, and the ultra-low-power signal is transmitted on a wide frequency spectrum, so that the data transmission rate of hundreds of Mbit/s to several Gbit/s can be realized within the range of about 10 meters. Due to the characteristics of strong anti-interference performance, high transmission rate, large system capacity, very small transmission power and the like, the communication can be realized by using the transmission power less than 1 milliwatt (mW). Wherein low transmit power may substantially extend the power supply operating time of the portable device. And the transmitting power is low, and the influence of electromagnetic wave radiation on the human body is small.
Alternatively, the portable device may periodically or triggered emit UWB pulsed signals. For periodic transmission or timed transmission, a transmission period or transmission time may be set in the portable device in advance; for triggered transmission, an event may be preset in the portable device that when it occurs triggers the portable device to transmit a UWB pulse signal.
Correspondingly, the base station receives the UWB pulse signal, acquires the receiving time of the UWB pulse signal and sends the receiving time to the server.
Illustratively, the base station marks the receive time after receiving the UWB pulse signal. For a UWB pulse signal transmitted by the same portable device, the time at which the UWB pulse signal is received by different base stations may be different, i.e., the receiving time corresponding to different base stations is different.
Correspondingly, the server receives the receiving time sent by the at least two base stations, and positions the portable equipment according to the at least two receiving times.
Optionally, the server may be specifically configured to: and positioning the portable equipment by adopting a preset positioning algorithm according to the receiving time sent by at least two base stations. Further, the predetermined positioning algorithm may include, but is not limited to, a time of flight (ToF) ranging method and/or a time difference of arrival (TDoA) positioning algorithm.
Among them, the ToF ranging method has two key constraints: firstly, the portable equipment and the base station need to be always synchronous in clock; secondly, the transmission time of the UWB pulse signal provided by the base station is short. Optionally, a clock offset may be employed to address the clock synchronization problem.
The TDOA positioning algorithm is a method for positioning by using time difference. The distance from the portable device to the base station can be determined by the time of reception of the UWB pulse signal to the base station. The position of the portable device can be determined by making a circle with the distance from the portable device to each base station centered on the base station and the distance as a radius. Alternatively, by comparing absolute time differences of reception times at which UWB pulse signals arrive at respective base stations, hyperbolas having base stations as the focal points and distance differences as the major axes can be made, and the intersection of the hyperbolas is the location of the portable device.
Alternatively, the algorithm may estimate the TDOA value by correlating the UWB pulse signal received at one base station with the UWB pulse signal received at another base station to obtain the TDOA value. In practical application, time synchronization between the base station and the portable device is often difficult to achieve, so that higher accuracy can be obtained by obtaining the TDOA value through correlation estimation and then performing location calculation. In this case, the number of base stations is at least three.
When the ToF ranging method or TDoA positioning algorithm is used, all base stations and portable devices are required to support the ToF ranging method or TDoA positioning algorithm.
The security system of this application embodiment receives the UWB pulse signal that portable equipment sent through two at least basic stations, later, these two at least basic stations send the receiving time of this UWB pulse signal to the server respectively to make the server fix a position portable equipment according to the receiving time that two at least basic stations sent, thereby confirm portable equipment's position, and then confirm the position of the user who carries this portable equipment, compare current security system, can guarantee student's safety more rationally, effectively.
Compare current video monitor system and access control system, this application embodiment confirms user (for example student)'s position through portable equipment, can know user's position at any time, and further, portable equipment cost is lower, and does not have the control dead angle, reduces the manpower extravagant.
On the basis of the above embodiment, further, the portable device may be further configured to: and sending out a distress signal when receiving the triggering operation of the distress control acting on the portable equipment. For example, when a student encounters an emergency situation such as a danger or an injury on a campus, the student clicks the sos (i.e., the help-seeking control) on the tag, and then a help-seeking signal can be sent out in addition to the triggered positioning.
In some embodiments, as shown in fig. 4, the security system may further include a terminal device.
Optionally, the server may be further configured to send a positioning result to the terminal device, where the positioning result includes an identifier of the corresponding portable device; and the terminal equipment can be used for displaying the positioning result.
Optionally, the terminal device may display the positioning result in at least one of the following manners:
in the first mode, the terminal equipment displays all positioning results.
And in the second mode, the terminal equipment displays the positioning result in a grouping mode. For example, the terminal device displays the positioning results in a class/grade group, that is, only the positioning results of students in a certain class/grade, and so on.
And thirdly, displaying abnormal conditions in the positioning results by the terminal equipment, wherein the abnormal conditions comprise the positioning results which are not in the preset range. It can be understood that, for the case that the positioning result is normal, the terminal device does not display, but only displays the abnormal case, and the quick positioning of the user (such as a student) with the security threat can be realized.
Those skilled in the art will appreciate that the display range of the positioning result by the terminal device is optional, for example, the whole or part of the display or the display of a specific user position as described above.
In some embodiments, if the user is in a moving state, the terminal device may also display a moving track thereof.
Further, the terminal device may be further configured to: determining that the portable equipment meets a preset alarm rule according to the positioning result; and sending alarm information, wherein the alarm information comprises the identification of the portable equipment.
The method for triggering the alarm by the terminal device may include: before describing the specific implementation process of the two alarm modes, a preset alarm rule is defined, and the preset alarm rule can include at least one of the following items:
1) the portable device is in a position for more than a first predetermined length of time.
Corresponding to the actual scene, the portable device is placed in the campus by the student, and the portable device is located at the same position (or a smaller position range, for example, the portable device is placed on a shaking object by the student, and a person leaves) for longer than a first preset time length, the terminal device sends alarm information.
Or, optionally, a gyroscope is provided in the portable device, and when the portable device is in a static state, the portable device enters a sleep state for more than a preset time period, for example, 5 minutes, and then the portable device alarms.
2) The distance between the portable devices is smaller than the first preset distance and exceeds the second preset time.
In practice, student A may give student B the portable device that student A uses instead of mobile, while student A leaves the campus itself. In order to avoid the situation, the situation that one person has multiple devices needs to be judged, and therefore when the time that the distance between the portable devices is smaller than the first preset distance exceeds the second preset time, the terminal device sends alarm information. For example, when the distance between the two tags is less than 30 centimeters, within 2 minutes, the alarm is given every 10 seconds, if the alarm is given more than 10 times, the terminal device judges that one person has more devices, and the terminal device sends alarm information.
3) The portable equipment comprises a main portable equipment and a secondary portable equipment, and the distance between the secondary portable equipment and the main portable equipment is larger than a second preset distance.
For example, the master portable device is a portable device carried by a teacher in a class, the slave portable device is a portable device carried by a class member, and when the distance between the slave portable device and the master portable device is greater than a second preset distance, it is described that a student using the slave portable device is out of group, and the terminal device sends alarm information.
Alternatively, periodically (for example, every minute), the terminal device determines whether the distance between the slave portable device and the master portable device is greater than a second preset distance (for example, 50 meters) according to the positioning result, and when the distance between the slave portable device and the master portable device is greater than the second preset distance, the terminal device sends an alarm message. Or, further, when the distance between the slave portable device and the master portable device is greater than a second preset distance and exceeds a third preset time length, the terminal device sends alarm information.
4) Within the preset time range, the portable device is not within the preset position range.
For example, during a sports class, the result of locating a portable device is not in the field, etc. For another example, if the student is not allowed to leave the school within the time specified by the school, it is necessary to determine whether the student leaves without permission, and a fence is set at a position where the school can escape, and if the terminal device determines that the portable device is not within the preset position range, it indicates that the student leaves the fence with the portable device, and the terminal device sends an alarm message.
5) The terminal equipment receives a distress signal sent by the portable equipment, wherein the distress signal is sent by the portable equipment when the portable equipment receives the operation of the distress control acting on the portable equipment. When the user acts on the help-seeking control, for example, the user presses the help-seeking control, and the portable equipment sends a help-seeking signal in response to the operation. Alternatively, the portable device may also send alarm information in response to the above operation.
Further, the portable device may be further configured to: and when receiving the triggering operation of the help-seeking control acted on the terminal device, starting a communication function with the terminal device. Referring to fig. 1, a microphone is provided in the portable device, and the voice of the user is received through the microphone and transmitted through a communication interface of the portable device. By starting the communication function of the portable device and the terminal device, the user can conveniently communicate with the staff in a voice mode, and the staff can know the field situation. For example, when a student encounters an emergency such as a danger or an injury on a campus, the student clicks an sos (i.e., a help-seeking control) on the tag, and performs voice communication with a set recipient through an eSIM card built in a portable device.
In the preset alarm rules 1) to 4), the preset time and position ranges, such as the preset time range, the preset position range, the second preset distance, the first preset duration and the second preset duration, etc., are all considered. From the perspective of a user, the preset alarm rules 1) to 4) are passive triggering alarms, and the preset alarm rule 5) is an active alarm.
In addition, the embodiment of the present application is not limited to the preset alarm rule, and other alarm rules may also be used, for example, when the portable device is not within the specified time or within the specified range, the portable device stays for more than 30 minutes at one point, and the like.
After the terminal equipment sends alarm information, the staff can decide whether to process or not through own judgment.
Through the embodiment, the terminal equipment can send the alarm information carrying the identifier of the portable equipment when the portable equipment meets the preset alarm rule according to the positioning result, so that the position of the student can be quickly positioned when the student is in emergency, and the student can further communicate with the student in real time to know the current situation.
The following is an embodiment of the method, which can be executed by the security system. For details which are not disclosed in the method embodiments of the present application, reference is made to the system embodiments of the present application as described above.
In any of the following embodiments, a security system includes a portable device, a server, and at least two base stations. Wherein the base station is time synchronized with the portable device.
Fig. 5 is a signaling interaction diagram of a positioning method for a security system according to an embodiment of the present application. An embodiment of the present application provides a positioning method for a security system shown in fig. 3, for example, as shown in fig. 5, the method includes:
s501, the portable equipment sends a UWB pulse signal to the base station.
Correspondingly, the base station receives UWB pulse signals.
S502, the base station sends the receiving time of the UWB pulse signal to a server.
Correspondingly, the server receives the receiving time sent by at least two base stations.
S503, the server positions the portable equipment according to the receiving time sent by the at least two base stations.
Optionally, S503, the server locates the portable device according to the receiving time sent by the at least two base stations, and may include: and the server positions the portable equipment by adopting a preset positioning algorithm according to the receiving time sent by at least two base stations. The predetermined positioning algorithm includes a ToF ranging method and/or a TDoA positioning algorithm.
In some embodiments, the method may further include: and the portable equipment sends out a distress signal when receiving the triggering operation of the distress control acting on the portable equipment.
Further, the security system may further include a terminal device, as shown in fig. 4. Thus, as shown in fig. 6, after the server locates the portable device according to at least two receiving times S503, the method may further include:
s601, the server sends a positioning result to the terminal device, wherein the positioning result comprises an identifier corresponding to the portable device.
And S602, the terminal equipment displays the positioning result.
This step may include: the terminal equipment displays the positioning result in at least one of the following modes:
displaying all positioning results;
grouping and displaying the positioning result;
and displaying abnormal conditions in the positioning results, wherein the abnormal conditions comprise the positioning results which are not in the preset range.
Still further, the method may further comprise: and when the portable equipment receives the triggering operation of the help-seeking control acting on the portable equipment, starting a communication function with the terminal equipment.
Optionally, after the terminal device receives the positioning result, the method may further include: the terminal equipment determines that the portable equipment meets a preset alarm rule according to the positioning result; and the terminal equipment sends alarm information. Wherein the alert information includes an identification of the portable device.
The preset alarm rules as described above may include at least one of:
the portable device is in a position for more than a first preset duration;
the distance between the portable devices is smaller than the first preset distance and exceeds a second preset time;
the portable equipment comprises main portable equipment and auxiliary portable equipment, and the distance between the auxiliary portable equipment and the main portable equipment is greater than a second preset distance;
within a preset time range, the portable equipment is not within a preset position range;
and receiving a distress signal sent by the portable equipment.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.