Method for synchronizing sensors of a security system (variants)
11483787 · 2022-10-25
Assignee
Inventors
- Tantsiura Oleksandr Mykolayovych (Kyiv, UA)
- Piannikov Serhii Dmytrovych (Kyiv, UA)
- Konotopskyi Oleksandr Volodymyrovych (Sharjah, AE)
Cpc classification
H04W84/18
ELECTRICITY
International classification
Abstract
The claimed group of inventions relates to method for enhancing a communication between security sensors and a transceiver within security alarm systems, which could improve an interaction between the transceiver and at least one sensor of the system by performing a real-time correction of its operation, by performing a control of synchronization parameters of the sensors, timely introduction of the corrected parameters and use of an accumulated data for self-correction of the synchronization parameters by the sensors. The implementation of the claimed methods reduces a probability of internal mutual interferences, provides a correct operation of the sensors, increases an autonomous operation time of the sensors and an overall stability of the security alarm systems.
Claims
1. A method for synchronizing a security system that comprises at least one sensor and transceiver using a TDMA technology, the method comprising: sending a primary synchronization request by the sensor to the transceiver, replying, by the transceiver, to the sensor's request about the primary synchronization stating correct synchronization parameters: a frame number, a superframe number, a slot number and a sensor location within the slot, wherein the sensor position within the slot is set to be greater in time relative to a beginning of the slot, setting the synchronization parameters by the sensor, after the correct synchronization parameters according to the TDMA layout are set, the sensor transmitting its status to the transceiver, in reply, the transceiver sending current offsets of the sensor from an expected location within the TDMA layout in ms, based on the information received, forming a first synchronization correction, then the sensor, according to the TDMA layout, periodically sending its status to the transceiver, the transceiver sending data regarding its synchronization correction in reply to the sensor status, starting from a second correction, the sensor memorizing information from three successive corrections, defining a size of the offset in time within the slots, calculating a specific synchronization offset for one slot and defining a correction factor, after each 4th correction, the sensor defining a subsequent correction factor and adding the same to the current one.
2. The method for synchronizing according to claim 1, wherein the correction factor is introduced into a clock rate of the sensor into each 80th slot.
3. The method for synchronizing according to claim 1, wherein the sensor position within the slot is set to be 20 ms greater relative to the beginning of the slot.
4. The method for synchronizing according to claim 1, wherein the sensor performs at least one further sending of the synchronization parameters to the transceiver after the first setting of the synchronization parameters.
5. The method for synchronizing according to claim 1, wherein the synchronization correction according to statuses is sent to the sensor in a constant fashion.
6. The method for synchronizing according to claim 1, wherein the sensor offset from the synchronization that is within ±5 ms is not corrected.
7. The method for synchronizing according to claim 1, wherein if the sensor offset is within less than ±5 ms, a null value will be sent as data regarding the sensor synchronization correction.
8. A method for synchronizing a security system that comprises at least one sensor and transceiver using a TDMA technology, the method comprising: sending a primary synchronization request by the sensor to the transceiver, sending a reply, by the transceiver, to the sensor's request about the primary synchronization stating current synchronization parameters: a frame number, a superframe number, a slot number and a sensor location within the slot, wherein the sensor position within the slot is set to be greater in time relative to a beginning of the slot, setting the received synchronization parameters by the sensor, after the correct synchronization according to the TDMA layout is set, the sensor transmitting its status to the transceiver, in reply, the transceiver sending current offsets of the sensor from an expected location within the TDMA layout in ms, based on the information received, forming a first synchronization correction, then the sensor, according to the TDMA layout, periodically sending its status to the transceiver, the transceiver sending data regarding its synchronization correction in reply to the sensor status, performing an additional correction by using a command CheckSynchro that is not associated with the TDMA layout and the frame length, wherein, when using the command CheckSynchro, the transceiver processes the sensor request and sends an information regarding the additional synchronization correction thereto, and the transceiver sends the synchronization correction at the sensor request under the proviso that the sensor location offset is within ±20 ms.
9. The method for synchronizing according to claim 8, wherein the sensor sends a request for the command CheckSynchro to the transceiver, the transceiver sends the synchronization correction according to the command CheckSynchro to the sensor with a 60 ms offset relative to the beginning of the slot.
10. The method for synchronizing according to claim 8, wherein the synchronization correction according to the command CheckSynchro consists of at least four cycles.
11. The method for synchronizing according to claim 8, wherein, upon completion of 12 positive attempts, the additional synchronization correction according to the CheckSynchro mechanism is terminated.
12. The method for synchronizing according to claim 8, wherein, upon completion of 10 successive attempts with no reply, the additional synchronization correction according to the CheckSynchro mechanism is terminated.
13. The method for synchronizing according to claim 8, wherein the sensor, for the synchronization correction according to the CheckSynchro mechanism, sends additional commands to the transceiver through fixed time intervals, which constitute 15, 30, 60 seconds successively.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9)
(10) The slot of the sensor does not coincide with an expected one when requesting the primary synchronization (a synchronization error) (
(11) The sensor falls into its own slot, however with a Δt time offset beyond acceptable synchronization boundaries. The transceiver fixes that the sensor operates with the same Δt+2 ms time offset during two successive frames, which is illustrative of the situation that the sensor highly likely has gone wrong from the synchronization parameters. In reply to its request, the transceiver sends the re-synchronization command “mc_GoToFindSynchro” (a syntactical error of the synchronization). (
Upon receipt of the re-synchronization command, the sensor immediately puts “a flag” that it is necessary to send versions of a full status and an expanded status. Also, according to this command, the sensor resets previous results of the synchronization and starts the synchronization rectification command “CheckSynchro” from the beginning. Upon establishment of the correct synchronization according to the TDMA layout, the sensor starts to transmit its status to the transceiver.
(12)
(13) Therefore, the correction is made only according to the first attempt of sending the status, a correction is formed based thereon, and the correction is in turn included into the formed package of the reply to the sensor request for its own status according to the command “mc_MoveStatus”.
(14) Formats of the reply by the transceiver to the sensor are mentioned below:
(15) TABLE-US-00001 Command Data[0] Data[1] Data[2] Data[3] Data[4] mc_OK AnswerFactor PowerCom PowerAjust TimeCorr SystemError
mc_OK is a positive reply to the status delivery from the sensor,
AnswerFactor is a flag change that comprises sensor indications,
PowerCom, PowerAjust are data to control the sensor power,
TimeCorr is a time correction value in ms that must not exceed the value of ±20 ms,
SystemError is a field of system errors.
(16) The sensor receives regular corrections from the transceiver and calculates an average rate of the offset from the synchronization parameters. It operates as follows. Upon the primary synchronization, the correction factor has a null value, and a process for its determination begins. The value of each correction is added to an accumulated sum, the first correction after the primary synchronization is not considered, since the positioning within the slot according to the synchronization information is rather coarse and significantly exceeds the accuracy in 1 ms that may give an erroneous result. Starting from the second correction, the sensor collects the information from three successive corrections, determines a time and a size of the offset from the synchronization parameters within the slots, calculates the specific offset from the synchronization parameters for one slot, forms a correction factor that is introduced into the clock rate into each 80th slot, and starts the correction factor specification process again. Upon 4 corrections, a regular, more accurate correction factor will be obtained that will be considered and added to the current correction factor.
(17)
(18)
(19) Therewith, the replies of the transceiver to the sensor have a format that is mentioned below:
(20) TABLE-US-00002 Command Data[3] mc_OK SynchroDelay
mc_OK is a positive reply to the status delivery from the sensor,
SynchroDelay is a value of the offset from the synchronization parameters in milliseconds, and it must not exceed the value of ±ms.
(21)
(22) Upon receipt of the synchronization correction command, the sensor memorizes the correction size and the time passed after the previous correction. According to several successive correction, preferably three, the sensor calculates an average offset from the synchronization parameters within a single slot and determines the correction factor that subsequently will be constantly introduced into a clockspeed generator of the sensor in order to compensate for its offset from the synchronization parameters. The first correction is not considered, since it is a result of the primary synchronization that has a low accuracy. From the second correction to the fourth, the correction factor and the time for its accumulation are accumulated. At the fourth correction, an average value of the correction factor is determined, this value is added to the one that already exists and the cycle starts from the beginning. The correction that is sent by the transceiver includes the correction factor of the sensor received at the previous steps, wherein the correction factor is not changed, rather it is accumulated.
(23) An example of the sensor correction without consideration of the mechanism “CheckSynchro”, with the correction according to the statuses only, is mentioned below to demonstrate how the time is changed, when the sensor approaches the correction boundaries:
(24) Synchronization (actual process)
(25) 3 min+10 ms8 min+10 ms7 min+10 ms
(26) 8 min+11 ms Termination of the first cycle, re-calculation of the correction factor
(27) 40 min 10 ms38 min 10 ms
(28) 37 min 10 ms38 min 10 ms Termination of the second cycle, revision of the correction factor 120 min 10 ms
(29) 96 min 10 ms80 min 10 ms
(30) 110 min 10 ms Termination of the third cycle . . .
(31)
(32) Calculation of the interval between the corrections and introduction of the correction factor are carried out in an interrupted manner according to the command of the variable “WakeUp Timer”.
(33) At a step 800, the introduction of the correction factor starts according to the command from the variable “Interrupt WakeUp Timer”, at a step 801, the variable “Spec Period=?” requests a ready status for the introduction of the correction factor. At a step 802, the variables “Timer_set Period (Corr Period)”, “Spec Period=0”, “Norm Period=1” set a “flag” that will indicate, during the next introduction of the correction factor, a time of its introduction (so-called normal period for the introduction of the correction factor). If the “flag” has been already set, a step 803 according to the variable “Norm Period?” and a step 804 according to the variables “Timer_se Period (Corr Period)”, “Norm Period=0” will be performed immediately, at which the time of the introduction of the correction factor is indicated. At a step 805, a cycle of the introduction of the correction factor is indicated according to the variable “Count Cycle++”. At a step 806, the correction factor is introduced into the cycle indicated at the step 805 according to the variables “(Count Cycle<80 or Time Corr !=0)”. If the cycle of the correction factor does not coincide with the one indicated at the step 805, a steps 807 by means of the variables “Spec Period=1”, “Corr Period=Norm Period+Time Corr+MainCorr”, “Time Corr=0” and 808 by means of the variable “Count Slott<50000?”, and a step 809 according to the variable “Count Slot++”, at which the revision of the cycle for the introduction of the correction factor and its introduction are performed.
(34) The correction factor is introduced into the clock rate of the sensor into each 80th slot (24 seconds). Such time for the introduction of the correction factor is selected to provide a certain sensitivity to numerical values being introduced, since at shorter time periods the numerical values are less than unity and will not be considered by the sensor, and on another hand, the selected time provides the introduction of the correction factor and the real-time control of the offset from the synchronization parameters. Therefore, the averaged correction factor that compensates for the sensor offset from the synchronization parameters is introduced into each 80th slot.