CN-116634551-B - Wireless communication time synchronization method, control side and terminal side of electric power Internet of things
Abstract
The disclosure belongs to the technical field of nuclear power, and particularly relates to a wireless communication time synchronization method, a control side and a terminal side of an electric power Internet of things. In the method for synchronizing the wireless communication time of the internet of things, when the control side judges that the current moment enters the time setting period, if the current alternating voltage phase angle is detected to be the preset phase angle, the working frequency point is switched to the time setting frequency point, and time setting broadcasting is carried out on the time setting frequency point, so that the terminal side of the internet of things and the control side synchronize time, the alternating current power supply voltage or the voltage phase angle obtained by sampling of the electric internet of things device is introduced as a technical means of time synchronization parameters, and the system equipment of the internet of things has stable and reliable information receiving and transmitting time. The wireless communication time synchronization method and device for the Internet of things overcome the difficulty of wireless communication time synchronization of the current electric power Internet of things, solve the problem that the traditional Internet of things device can only rely on internal clock synchronization of the device, assist in a network time synchronization mode, and effectively avoid the defect of larger Internet time offset.
Inventors
- YANG QI
- WANG YU
- Lv Sikun
- ZHU TAOTAO
- ZHA WEIHUA
- LIU DONGBING
- HUANG SHUIYANG
- FANG WEI
- WANG XUELIANG
- Fei Xingwei
- CAO ZUTING
- LI PING
Assignees
- 中核核电运行管理有限公司
- 秦山核电有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230605
Claims (8)
- 1. The wireless communication time synchronization method of the electric power Internet of things is characterized by being applied to a control side of the Internet of things, and comprises the following steps: Step 10, when the control side judges that the current moment enters a time setting period, if the current alternating voltage phase angle is detected to be a preset phase angle, the working frequency point is switched to a time setting frequency point, and time setting broadcasting is carried out on the time setting frequency point, wherein the time setting broadcasting is used for synchronizing time between the terminal side of the Internet of things and the control side, and the terminal side of the Internet of things and the control side are located in the same alternating current power supply area; Step 11, the control side switches from the time-frequency point to the working frequency point under the condition that the time-setting broadcast is sent completely; in the case that there is a phase angle difference between the control side and the power supply, the control side includes a first phase angle detection module, a first timer, and a first communication module, and step 10 further includes: step 103, under the condition that the current moment enters a time setting period, a first phase angle detection module determines an input alternating voltage phase angle; step (a) 104, the first phase angle detection module determines that the phase angle of the input alternating current voltage is a preset phase angle, transmitting to a first timer a first trigger signal; step 105, under the condition that the first timer receives the first trigger signal, the control side generates hardware interruption until the time delay corresponding to the phase angle difference, and sends a second trigger signal to the first communication module; and step 106, the first communication module switches from the working frequency point to the time-to-frequency point under the condition of receiving the second trigger signal, and transmits time-to-time broadcasting when the time-to-frequency point is transmitted.
- 2. The method of claim 1, wherein in the event that there is no phase angle difference between the control side and the power source, the control side includes a first phase angle detection module and a first communication module, step 10 includes: Step 100, under the condition that the current moment enters a time setting period, a first phase angle detection module determines an input alternating voltage phase angle; Step 101, if the first phase angle detection module determines that the input alternating voltage phase angle is a preset phase angle, a first trigger signal is sent to the first communication module; Step 102, the first communication module switches from the operating frequency point to the time-to-frequency point when receiving the first trigger signal, and transmits the time-to-time broadcast when the time-to-frequency point.
- 3. The method of claim 1 or 2, wherein the first phase angle detection module is a Fourier transform module for performing Fourier transform processing on the input AC voltage to determine a voltage phase angle of the input AC voltage, or The first phase angle detection module is a zero detection module and is used for detecting the zero crossing phase angle of the input alternating voltage.
- 4. The wireless communication time synchronization method for the electric power Internet of things is characterized by being applied to an Internet of things terminal side and comprising the following steps: step 20, the terminal side enters a time setting period at the current moment, and starts a time setting mode under the condition that the terminal side and the control side lose time synchronization or the time setting time exceeds any one of preset time; step 21, in the time setting mode, if the terminal side detects that the alternating voltage phase angle is a preset phase angle, starting a timer to start timing, switching from a working frequency point to a time setting frequency point, and monitoring time setting broadcasting at the time setting frequency point; step 22, under the condition that the terminal side receives the time setting broadcast, acquiring the timing duration of a timer; step 23, the terminal side calibrates the time of the terminal side according to the time obtained by time-setting broadcast analysis and the time-setting duration; Step 24, after the time calibration of the terminal side is finished, switching the time frequency point to the working frequency point; In the case that there is a phase angle difference between the terminal side and the power supply, the terminal side includes a second phase angle detection module, a second timer, and a second communication module, and step 21 further includes: Step 213, in the time-synchronization mode, the second phase angle detection module determines the input ac voltage phase angle; step 214, the detection module sends a first trigger signal to the second timer when determining that the input ac voltage phase angle is a preset phase angle; Step 215, when the second timer receives the first trigger signal, the terminal side generates a hardware interrupt, and until the time delay corresponding to the phase angle difference, the second timer sends the second trigger signal to the second communication module; In step 216, the second communication module switches from the operating frequency point to the time-to-frequency point when receiving the second trigger signal, and listens to the time-to-frequency broadcast at the time-to-frequency point.
- 5. The method of claim 4, wherein in the case where there is no phase angle difference between the terminal side and the power source, the terminal side includes a second phase angle detection module and a second communication module, and step 21 includes: Step 210, in the time-setting mode, the second phase angle detection module determines the phase angle of the input ac voltage; step 211, if the second phase angle detection module determines that the input ac voltage phase angle is a preset phase angle, sending a first trigger signal to the second communication module; In step 212, the second communication module switches from the operating frequency point to the time-to-frequency point when receiving the first trigger signal, and listens to the time-to-frequency broadcast at the time-to-frequency point.
- 6. The method of claim 4 or 5, wherein the second phase angle detection module is a Fourier transform module for performing Fourier transform processing on the input AC voltage to determine a voltage phase angle of the input AC voltage, or The preset phase angle is a zero crossing phase angle, and the second phase angle detection module is a zero detection module and is used for detecting the zero crossing phase angle of the input alternating voltage.
- 7. An internet of things control side device, characterized in that the control side device comprises a first phase angle detection module, a first timer and a first communication module, the control side device being configured to perform the method of any of claims 1 to 3.
- 8. An internet of things terminal side device, characterized in that the terminal side device comprises a second phase angle detection module, a second timer and a second communication module, the terminal side device being configured to perform the method of any of claims 4 to 6.
Description
Wireless communication time synchronization method, control side and terminal side of electric power Internet of things Technical Field The invention belongs to the technical field of TDMA communication of the Internet of things, and particularly relates to a wireless communication time synchronization method, a control side and a terminal side of an electric power Internet of things. Background Current wireless communication technology may employ multiple access modes such as FDMA, TDMA, CSMA and CDMA. Wherein: FDMA (frequency division multiple access) divides the total frequency band into different small frequency channels that are allocated to different users, each user sharing the allocated small frequency band exclusively. The multiple access mode has the advantages of relative simplicity, easy realization and mature technology, but has obvious defects of low frequency utilization rate and small capacity. Early 1G wireless communications were employed, and have been rarely used at present. TDMA (time division multiple access) this multiple access scheme divides the time period into small time slots on each small frequency band based on frequency division multiple access, and allocates to different users. The advantages of this multiple access approach are numerous, including large communication capacity, high frequency utilization, etc., but the disadvantages of TDMA include complex technical implementation, strict synchronization requirements, etc. In conventional 2G communication (GSM), this is the way. CSMA (carrier sense multiple access), which is a carrier sense multiple access method, monitors whether a communication signal exists at a frequency point before wireless transmission. If the communication signal exists, waiting for the wireless communication to finish, and immediately sending the message after the channel is idle. This approach can avoid most collisions, but cannot resolve the collision phenomenon caused by two or more nodes transmitting data at the same time. Because wireless communication devices transmit and receive require state switching, when a collision occurs, the node itself cannot detect the collision. CDMA (code division multiple access) is a code division multiple access technique using spread spectrum. All users acquire service channels according to different codes at the same time and on the same frequency band. Its advantages are maximum capacity, high frequency utilization rate and high communication quality. CDMA has been applied in large-scale over 3G wireless communication networks, but in internet of things applications, the multiple access approach starts too late with few user groups. In the electric power Internet of things, from the traditional 433MHz small wireless communication mode to the existing LoRa low-power consumption wireless communication mode, a TDMA mode is adopted. Because the TDMA scheme has high requirements for time synchronization, a deviation of time synchronization may cause communication failure caused by message collision. In contrast, there is no effective time synchronization means for each terminal, gateway, server, and other devices in wireless communication. Particularly, the terminal equipment of the internet of things supplies power for saving devices, the time-alignment messages cannot be sent/received at high frequency, obvious deviation of the internal time of a plurality of devices is generated quickly, enough margin can be increased only when time slots are divided to prevent conflicts, and the method greatly reduces the wireless communication rate and the corresponding speed. In view of this, there is a need to solve the problem of time synchronization of each device terminal in the power internet of things. Disclosure of Invention In order to overcome the problems in the related art, the wireless communication time synchronization method, the control side and the terminal side of the power Internet of things are provided. According to an aspect of the disclosed embodiments, there is provided a method for synchronizing wireless communication time of the internet of things, the method being applied to a control side of the internet of things, the method including: Step 10, when the control side judges that the current moment enters a time setting period, if the current alternating voltage phase angle is detected to be a preset phase angle, the working frequency point is switched to a time setting frequency point, and time setting broadcasting is carried out on the time setting frequency point, wherein the time setting broadcasting is used for synchronizing time between the terminal side of the Internet of things and the control side, and the terminal side of the Internet of things and the control side are located in the same alternating current power supply area; step 11, the control side switches from the time-frequency point to the working frequency point when the time-setting broadcast is sent completely. In a possible impl