Peripheral device of fire fighting system, control method and computer readable medium
Patent Information
- Application Number
- CN202610780864.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2026-08-18
AI Technical Summary
[0004]针对目标对消防系统的外围设备进行巡检的方法,由于消防系统通常包括有多个外围设备,而每个外围设备需要两个人员配合才能够完成巡检,因此需要耗费较长时间才能够外围设备的巡检,进而导致对消防系统的外围设备进行巡检的效率较低
[0019] As described in the above technical solution, the directional antenna receives radio beams from a handheld terminal along a preset direction. During inspection of peripheral equipment, the inspector, within the communication range of the directional antenna, transmits a radio beam through the handheld terminal along the direction in which the directional antenna receives the wireless signal. The directional antenna then sends the received radio beam to the UHF communication module. The UHF communication module obtains control commands from the radio beam and sends them to the microcontroller unit. The microcontroller unit then controls the peripheral equipment to perform its actions according to the control commands. Therefore, during the inspection of peripheral equipment, it is unnecessary to send control commands to the peripheral equipment through the main controller of the fire protection system. The inspector, using a handheld terminal at the site, sends control commands to the peripheral equipment and monitors the execution of its actions. Thus, one inspector can complete the inspection of the peripheral equipment, saving time required for communication and coordination among inspectors, thereby improving the efficiency of inspecting the peripheral equipment of the fire protection system.
Smart Images

Figure CN122593025A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of fire protection technology, and in particular to peripheral equipment, control methods and computer-readable media for fire protection systems. Background Technology
[0002] Fire protection systems installed in buildings or industrial environments typically include a main controller and peripheral devices. The main controller responds to on-site fire conditions or control commands, controlling the peripheral devices to perform actions such as fire alarm activation, firewall retrieval, and fire suppression. To ensure that the peripheral devices of the fire protection system can operate normally in the event of a fire, regular inspections of the peripheral devices are necessary.
[0003] Currently, when inspecting the peripheral equipment of the fire protection system, two people are required to work together. One person sends action commands to the peripheral equipment through the main controller, and the other person checks the execution of the actions of the peripheral equipment on site. Then, based on the action commands and the execution of the actions, it is determined whether the peripheral equipment is normal.
[0004] The method of inspecting the peripheral equipment of the fire protection system is relatively inefficient because the fire protection system usually includes multiple peripheral devices, and each peripheral device requires two people to complete the inspection. Therefore, it takes a long time to inspect the peripheral devices, resulting in low efficiency. Summary of the Invention
[0005] In view of this, the peripheral equipment, control method and computer-readable medium of the fire protection system provided in this application can improve the efficiency of inspecting the peripheral equipment of the fire protection system.
[0006] In a first aspect, embodiments of this application provide a peripheral device for a fire protection system, including: a directional antenna, an ultra-high frequency communication module, a microcontroller unit, and a peripheral device body; The ultra-high frequency communication module is connected to the directional antenna and the microcontroller unit respectively, and the microcontroller unit is connected to the peripheral device body; The directional antenna is used to receive radio beams from a handheld terminal along a preset direction and transmit the radio beams to the UHF communication module. When the peripheral device has no power supply, the UHF communication module generates power based on the radio beams to operate. The ultra-high frequency communication module is used to acquire control commands included in the radio beam and send the control commands to the microcontroller unit; The microcontroller unit is used to control the peripheral device body to perform actions according to the control instructions; The ultra-high frequency communication module includes: a memory; The ultra-high frequency communication module is also used to receive, via the directional antenna, a command to start the self-test function sent by the broadcasting device to multiple peripheral devices in the form of a broadcast, and to send the command to start the self-test function to the microcontroller unit; The microcontroller unit is also configured to respond to the command to start the self-test function, start the self-test function of the peripheral device, obtain the delivery test data obtained by the self-test before product delivery, and store the delivery test data in the memory. The delivery test data can be used as a reference for future fault analysis of the peripheral device.
[0007] In a first possible implementation, in conjunction with the first aspect described above, the microcontroller unit is configured to initiate a self-test process of the peripheral device body according to the control command, obtain the self-test result of the peripheral device body, and send the self-test result to the UHF communication module; the UHF communication module is further configured to send the self-test result to the handheld terminal through the directional antenna.
[0008] In a second possible implementation, in conjunction with the first aspect above, the microcontroller unit is used to initiate an automatic calibration program for the peripheral device body according to the control command, so that the peripheral device body completes automatic calibration based on the calibration reference provided on site.
[0009] In a third possible implementation, in conjunction with the first aspect described above, the microcontroller is configured to set the action threshold of the peripheral device body to a target value according to the control command.
[0010] In a fourth possible implementation, in conjunction with the first aspect described above, the UHF communication module is further configured to receive communication request information from the handheld terminal via the directional antenna, and after verifying that the key included in the communication request information is correct, send communication feedback information to the handheld terminal to establish a wireless communication connection with the handheld terminal.
[0011] In a fifth possible implementation, in conjunction with the first aspect described above, the UHF communication module is further configured to receive a delayed action command from the handheld terminal via the directional antenna and send the delayed action command to the microcontroller unit; the microcontroller unit is further configured to, upon receiving an action command from the main controller of the fire protection system, wait for a preset delay time and then control the peripheral device body to perform an action corresponding to the action command, and clear the delayed action command after controlling the peripheral device body to perform the action corresponding to the action command.
[0012] In a sixth possible implementation, in conjunction with the first aspect described above, the microcontroller is further configured to, when receiving a first instruction from the handheld terminal and a second instruction from the main controller of the fire protection system, execute the second instruction first if the peripheral device is in a working mode, and execute the first instruction first if the peripheral device is in a maintenance mode or a test mode.
[0013] In the seventh possible implementation, in conjunction with the first aspect or any possible implementation of the first aspect, the UHF communication module is further configured to receive preset information from the broadcasting device through the directional antenna and store the preset information in the memory, wherein the broadcasting device sends the preset information to at least two peripheral devices in the form of broadcast, and the preset information includes at least one of serial number, anti-counterfeiting information, electrical performance parameters, delivery information and communication connection verification information.
[0014] In the eighth possible implementation, combined with the seventh possible implementation, the microcontroller is further configured to acquire the self-test log of the peripheral device body and store the self-test log in the memory; the ultra-high frequency communication module is further configured to receive a read instruction from the handheld terminal through the directional antenna, and according to the read instruction, send the self-test log stored in the memory to the handheld terminal through the directional antenna.
[0015] In the ninth possible implementation, in combination with the seventh or eighth possible implementation, the UHF communication module is further configured to receive a write instruction from the handheld terminal via the directional antenna, and store at least one of location information, configuration information, and update information in the memory according to the write instruction, wherein the location information is used to indicate the installation location of the peripheral device, the configuration information is used to configure the function of the peripheral device, and the update information is used to update the function of the peripheral device.
[0016] In a tenth possible implementation, in conjunction with the first aspect or any possible implementation of the first aspect, the directional antenna includes: a physical antenna and a matching circuit; the physical wire is connected to the matching circuit; the matching circuit is used to achieve impedance matching in the frequency band of the radio beam transmitted by the handheld terminal through series resonance and parallel resonance of the included capacitors and inductors, wherein the position of the physical wire on the circuit board and the routing of the matching circuit on the circuit board determine the directional antenna to receive and transmit radio beams along the preset direction.
[0017] Secondly, embodiments of this application also provide a peripheral device control method based on the peripheral device provided in the first aspect or any possible implementation thereof, including: The directional antenna receives a command to start the self-test function from the broadcasting device and sends it to the microcontroller unit. In response to the command to start the self-test function, the microcontroller unit starts the self-test function of the peripheral device, obtains the delivery test data obtained by the self-test before product delivery, and stores the delivery test data in the memory included in the ultra-high frequency communication module. The delivery test data can be used as a reference for future fault analysis of the peripheral device. The directional antenna receives radio beams from the handheld terminal along a preset direction. The UHF communication module acquires control commands from the radio beam, wherein when the peripheral device has no power supply, the UHF communication module generates power based on the radio beam to operate. The microcontroller unit controls the peripheral device body to perform actions according to the control instructions.
[0018] Thirdly, embodiments of this application also provide a computer-readable medium storing computer instructions, which, when executed by a processor, cause the processor to perform the method provided in the second aspect above.
[0019] As described in the above technical solution, the directional antenna receives radio beams from a handheld terminal along a preset direction. During inspection of peripheral equipment, the inspector, within the communication range of the directional antenna, transmits a radio beam through the handheld terminal along the direction in which the directional antenna receives the wireless signal. The directional antenna then sends the received radio beam to the UHF communication module. The UHF communication module obtains control commands from the radio beam and sends them to the microcontroller unit. The microcontroller unit then controls the peripheral equipment to perform its actions according to the control commands. Therefore, during the inspection of peripheral equipment, it is unnecessary to send control commands to the peripheral equipment through the main controller of the fire protection system. The inspector, using a handheld terminal at the site, sends control commands to the peripheral equipment and monitors the execution of its actions. Thus, one inspector can complete the inspection of the peripheral equipment, saving time required for communication and coordination among inspectors, thereby improving the efficiency of inspecting the peripheral equipment of the fire protection system. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the peripheral equipment of a fire protection system provided in Embodiment 1 of this application; Figure 2 This is a schematic diagram of the communication range of a directional antenna provided in Embodiment 1 of this application; Figure 3 This is a schematic diagram of a fire protection system provided in Embodiment 2 of this application; Figure 4 This is a schematic diagram of a peripheral device provided in Embodiment 3 of this application; Figure 5 This is a schematic diagram of a peripheral device performing broadcast communication according to Embodiment 3 of this application; Figure 6 This is a schematic diagram of a fire protection system provided in Embodiment 3 of this application; Figure 7 This is a schematic diagram of a peripheral device provided in Embodiment Six of this application; Figure 8 This is a schematic diagram of a directional antenna provided in Embodiment Six of this application; Figure 9 This is a schematic diagram of a Smith chart provided in Embodiment Six of this application; Figure 10 This is a schematic diagram of the S11 parameters corresponding to a Smith chart provided in Embodiment Six of this application; Figure 11 This is an antenna pattern provided in Embodiment Six of this application; Figure 12 This is another antenna pattern provided in Embodiment Six of this application; Figure 13 This is yet another antenna pattern provided in Embodiment Six of this application; Figure 14 This is a flowchart of a peripheral device control method provided in Embodiment 7 of this application.
[0021] List of reference numerals in the attached diagram: Detailed Implementation
[0022] As mentioned earlier, a fire protection system includes a main controller and multiple peripheral devices. These peripheral devices operate under the control of the main controller. To ensure the main controller can control the peripheral devices properly during a fire, regular inspections of the peripheral devices are necessary. Since the main controller and peripheral devices are usually located in different places, two people are required to inspect the peripheral devices. One person controls the main controller to send action commands to the peripheral devices, while the other person checks the execution of the peripheral devices' actions on-site. Because fire protection systems typically include multiple peripheral devices, this two-person inspection method requires communication and coordination between the two inspectors. For example, when the first inspector arrives at the peripheral device, they notify the second inspector via walkie-talkie or other communication equipment. Then, the second inspector sends action commands to the peripheral device through the main controller and notifies the first inspector via communication equipment. The first inspector then checks the execution of the peripheral device's actions. Completing the inspection of even one peripheral device requires multiple rounds of communication between the two inspectors. Therefore, inspecting each peripheral device takes a considerable amount of time, resulting in low efficiency for inspecting the peripheral devices of a fire protection system.
[0023] In this embodiment, the peripheral equipment of the fire protection system includes a directional antenna, an ultra-high frequency (UHF) communication module, a microcontroller unit, and the peripheral equipment itself. The directional antenna can receive wireless signals transmitted by a handheld terminal in a preset direction. During inspection of the peripheral equipment, a wireless signal is transmitted from the handheld terminal to the directional antenna in the direction in which the directional antenna receives the wireless signal. The directional antenna then transmits the received wireless signal to the UHF communication module. The UHF communication module obtains control commands from the wireless signal and sends the obtained control commands to the microcontroller unit. The microcontroller unit controls the peripheral equipment itself to operate based on the received control commands. Therefore, based on the peripheral equipment of the fire protection system provided in this embodiment, during inspection, the inspector sends control commands to the peripheral equipment via a handheld terminal at the site and checks the execution status of the peripheral equipment's actions. Only one inspector is needed to complete the inspection of the peripheral equipment, saving the time spent on multiple rounds of communication between two inspectors during the inspection process, thereby improving the efficiency of inspecting the peripheral equipment of the fire protection system.
[0024] The peripheral equipment and control method of the fire protection system provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0025] Example 1
[0026] Figure 1 This is a schematic diagram of the peripheral equipment of a fire protection system provided in Embodiment 1 of this application. See also... Figure 1The peripheral equipment 10 of the fire protection system provided in this application embodiment includes: a directional antenna 11, an ultra-high frequency communication module 12, a microcontroller unit 13, and a peripheral equipment body 14; The ultra-high frequency communication module 12 is connected to the directional antenna 11 and the microcontroller unit 13 respectively, and the microcontroller unit 13 is connected to the peripheral device body 14; The directional antenna 11 is used to receive radio beams from the handheld terminal 20 in a preset direction and transmit the radio beams to the ultra-high frequency communication module 12. When the peripheral device 10 has no power supply, the high frequency communication module 12 generates power based on the received radio beams and operates accordingly. UHF communication module 12 is used to acquire control commands included in the radio beam and send the control commands to microcontroller unit 13; The microcontroller unit 13 is used to control the peripheral device body 14 to perform actions according to control commands.
[0027] In this embodiment, the directional antenna 11 receives radio beams from the handheld terminal 20 along a preset direction. When inspecting the peripheral equipment 10, the inspector, within the communication range of the directional antenna 11, transmits a radio beam through the handheld terminal 20 along the direction in which the directional antenna 11 receives the wireless signal. The directional antenna 11 sends the received radio beams to the UHF communication module 12. The UHF communication module 12 obtains control commands from the radio beams and sends the control commands to the microcontroller unit 13. The microcontroller unit 13 controls the peripheral equipment body 14 to operate according to the control commands. Therefore, when inspecting the peripheral equipment 10, it is not necessary to send control commands to the peripheral equipment 10 through the main controller of the fire protection system. The inspector, through the handheld terminal 20 at the site of the peripheral equipment 10, sends control commands to the peripheral equipment 10 and checks the operation of the peripheral equipment body 14. Thus, one inspector can complete the inspection of the peripheral equipment 10, saving the time required for communication and coordination among inspectors during the inspection process, thereby improving the efficiency of inspecting the peripheral equipment 10 of the fire protection system.
[0028] In this embodiment, the directional antenna 11 is used to receive radio beams transmitted by the handheld terminal 20 along a preset direction. Simultaneously, the directional antenna 11 can also transmit radio beams along the preset direction, the radio beams including communication data, thereby enabling communication between the peripheral device 10 and the handheld terminal 20. The preset direction is a preset orientation range. Within this orientation range, the directional antenna 11 can easily conduct wireless communication with the handheld terminal 20. Outside this orientation range, the wireless signal transmitted by the directional antenna 11 has weak energy and weak sensitivity to wireless signals, making communication with the handheld terminal device 20 difficult. For example, within a range of 0~360° starting from a certain direction, the directional antenna 11 can easily conduct wireless communication with the handheld terminal 20 within an orientation range of 30°~90°.
[0029] Figure 2 A schematic diagram illustrating the communication range of a directional antenna provided in Embodiment 1 of this application. See also... Figure 2 The directional antenna 11 is installed on the ceiling of the room. The preset direction is the orientation range with the directional antenna 11 as the starting point and the vertical direction at a set angle α. That is, the directional antenna 11 can communicate with the handheld terminal 20 within the conical space range with the directional antenna 11 as the vertex, the vertical direction as the rotation axis, and the angle between the generatrix and the rotation axis equal to the set angle α. However, the handheld terminal 20 located outside the conical space range has difficulty communicating with the directional antenna 11.
[0030] Since the fire protection system includes multiple peripheral devices, the distance between the peripheral devices may be small. The directional antenna 11 communicates with the handheld terminal 20 along a preset direction. However, when the handheld terminal 20 is located outside the preset direction, it is difficult for the directional antenna 11 to communicate with the handheld terminal 20. Therefore, by changing the position of the handheld terminal 20, the handheld terminal 20 can communicate with the directional antenna 11 in each peripheral device 10 individually, so as to inspect each peripheral device 10 separately.
[0031] In this embodiment, the UHF communication module 12 refers to a communication module that communicates based on UHF. UHF (Ultra High Frequency) refers to radio waves with a wavelength range of 1m to 1dm and a frequency of 300 to 3000MHz, commonly used in mobile communications and broadcasting. Through the cooperation of the UHF communication module 12 and the directional antenna 11, the communication distance of the UHF communication module 12 meets the communication requirements between the handheld terminal 20 and the peripheral device 10; for example, the communication distance of the UHF communication module 12 is 5 meters.
[0032] The UHF communication module 12 is a device that integrates multiple communication processing units. The UHF communication module 12 can receive messages via the directional antenna 11 and send the received messages to the microcontroller unit 13. It can also receive messages from the microcontroller unit 13 and send the received messages via the directional antenna 11.
[0033] The peripheral device 10 of the fire protection system is inactive under certain conditions, i.e., it is in a state without power supply. For example, when the main controller of the fire protection system sends control commands to the peripheral device 10, the peripheral device 10 is in a state with power supply and can operate. However, when the main controller of the fire protection system does not send control commands to the peripheral device 10 or the sent control commands are invalid, the peripheral device 10 is in a state without power supply and does not operate. When the peripheral device 10 is in a state without power supply, the UHF communication module 12 is inactive. When the directional antenna 11 receives the radio beam from the handheld terminal 20 and sends the radio beam to the UHF communication module 12, the UHF communication module 12 generates electricity based on the radio beam and operates. That is, the UHF communication module 12 is activated after receiving the wireless signal sent by the handheld terminal 20. Therefore, the energy consumption of the peripheral device 10 can be reduced, and it can still communicate with the handheld terminal 20 when the peripheral device 10 is powered off, thus enabling operation of the peripheral device 10 in different application scenarios.
[0034] In this embodiment, the microcontroller unit 13 appropriately reduces the frequency and rules of the central processing unit and integrates peripheral interfaces such as memory, calculator, universal serial bus, analog-to-digital converter, universal asynchronous transceiver, and programmable logic controller onto a single chip, forming a chip-level computer for different combinations of control in different applications. For different types of peripheral devices 10, the microcontroller unit 13 can have its own corresponding configurations for functions and interfaces to realize the functions of different peripheral devices 10.
[0035] In this embodiment, the peripheral device body 14 includes fire safety alarm equipment, detector equipment, fire extinguishers, fire control panels, building automation products, sensors, room control units, heating, ventilation and air conditioning controllers, etc. In a communicable scenario, the main controller of the fire protection system obtains the working status or alarm status of the peripheral device 10 through communication with the peripheral device 10, or sends instructions to the peripheral device 10.
[0036] In this embodiment, the handheld terminal 20 includes smart mobile terminals with radio beam transmission capabilities, such as mobile phones, laptops, tablets, and dedicated inspection terminals.
[0037] Example 2
[0038] Based on the peripheral device 10 provided in Example 1, the peripheral device 10 responds to the control command from the handheld terminal 20 and performs corresponding actions, thereby realizing the self-test, calibration, delayed action and command conflict handling of the peripheral device 10.
[0039] In one possible implementation, when the control command obtained by the UHF communication module 12 from the radio beam is a self-test command, the microcontroller unit 13 initiates the self-test process of the peripheral device body 14 according to the self-test command, causing the peripheral device body 14 to perform a self-test. During or after the self-test of the peripheral device body 14, the microcontroller unit 13 obtains the self-test result of the peripheral device body 14 and sends the self-test result to the UHF communication module 12. The UHF communication module 12 then sends the self-test result to the handheld terminal 20 through the directional antenna 11.
[0040] It should be noted that after the microcontroller unit 13 obtains the self-test results of the peripheral device body 14, in addition to sending the self-test results to the handheld terminal 20 through the UHF communication module 12 and the directional antenna 11, it can also store the self-test results locally on the peripheral device 10, and can also send the self-test results to the main controller of the fire protection system. The main controller or the handheld terminal 20 can then upload the self-test results to the cloud database so that when the peripheral device 10 malfunctions, the cause of the malfunction can be determined based on the self-test results, and the peripheral device 10 can be easily managed throughout its entire lifecycle.
[0041] After the handheld terminal 20 sends a self-test command to the peripheral device 10, the microcontroller unit 13 controls the peripheral device body 14 to complete the self-test based on the command. The self-test result is then sent to the handheld terminal 20 via the UHF communication module 12 and the directional antenna 11. An inspector can use the handheld terminal 20 to enable the peripheral device 10 to complete the self-test and obtain the results, thus improving the efficiency of inspecting the peripheral device 10. Furthermore, since the UHF communication module 12 can generate power based on the radio beam from the handheld terminal 20, the peripheral device 10 does not need to continuously supply power to the UHF communication module 12, thereby reducing the power consumption of the peripheral device 10.
[0042] After the microcontroller unit 13 obtains the self-test result of the peripheral device body 14, it can send the self-test result to the cloud database, or the handheld terminal 20 can send the received self-test result to the cloud database, so as to obtain the self-test result of the peripheral device body 14 from the cloud database, which facilitates the management and analysis of the peripheral device body 14. The self-test of the peripheral device body 14 tests various functions of the peripheral device body, and the test results include self-test pass / fail status, peripheral device address, self-test time, initial debugging date, custom messages, line voltage, candela setting, volume, current consumption, etc.
[0043] In one possible implementation, when the UHF communication module 12 receives a calibration command from the radio beam, the microcontroller unit 13 initiates the automatic calibration program of the peripheral device body 14 according to the calibration command, so that the peripheral device body 14 completes automatic calibration according to the calibration reference provided on site. Alternatively, the microcontroller unit 13 sets the action threshold of the peripheral device body 14 to the target value according to the calibration command.
[0044] After the initial installation of peripheral device 10 or after a period of use, peripheral device 10 needs to be calibrated to enable it to operate according to the set logic. Different types of peripheral devices 10 may correspond to different calibration methods. Some peripheral devices 10 need to be calibrated using calibration references provided on-site, while others require input of action thresholds.
[0045] For peripheral devices 10 that require calibration references provided on-site, after the on-site calibration references are provided, a calibration command is sent to the peripheral device 10 via a handheld terminal 20. The microcontroller unit 13 in the peripheral device 10 initiates the automatic calibration program of the peripheral device body 14 based on the received calibration command. The peripheral device body 14 then completes the automatic calibration based on the on-site calibration references. For example, if the peripheral device body 14 is a smoke detector, which alarms when the ambient smoke concentration reaches a set value, a set concentration of smoke is provided at the smoke detector's location during calibration. A calibration command is then sent to the smoke detector via the handheld terminal 20. The microcontroller unit 13 in the smoke detector responds to this command, initiating the automatic calibration program. The smoke detector detects the ambient smoke concentration and stores it as an alarm threshold, thus achieving automatic calibration of the smoke detector.
[0046] For peripheral devices 10 that require an input action threshold for calibration, a calibration command is sent to the peripheral device 10 via the handheld terminal 20. The microcontroller unit 13 in the peripheral device 10 sets the action threshold of the peripheral device body 14 to the target value based on the received calibration command. For example, if the peripheral device body 14 is a temperature alarm that triggers an alarm when the ambient temperature exceeds an alarm temperature threshold, during calibration, the handheld terminal 20 sends a calibration command including the target value to the temperature alarm. The microcontroller unit 13 in the temperature alarm responds to this calibration command and sets the alarm temperature threshold of the temperature alarm to the target value.
[0047] By sending calibration commands to the peripheral device 10 via the handheld terminal 20, the calibration of the peripheral device 14 can be completed on-site, improving the convenience of calibrating the peripheral device 14. In addition, the handheld terminal 10 can send different types of calibration commands for different types of peripheral device 14, so that the peripheral device 14 can be automatically calibrated or the action threshold of the peripheral device 14 can be directly set, thereby enabling calibration of different types of peripheral device 14.
[0048] In one possible implementation, before the handheld terminal 20 interacts with the UHF communication module 12, a wireless communication connection needs to be established between the handheld terminal 20 and the UHF communication module 12. After the handheld terminal 20 sends a communication request message to the peripheral device 10, the UHF communication module 12 receives the communication request message through the directional antenna 11, verifies the key included in the communication request message, and if the key included in the communication request message is correct, sends a communication feedback message to the handheld terminal 20 through the directional antenna 11. After receiving the communication feedback message, the handheld terminal 20 establishes a wireless communication connection with the UHF communication module 12.
[0049] The key included in the communication request information sent by the handheld terminal 20 is the identifier of a legitimate device. Only legitimate devices can send communication request information including this key. The UHF communication module 12 can verify whether the handheld terminal 20 is a legitimate device by verifying this key. Only legitimate devices can establish a wireless communication connection with the UHF communication module 12 and communicate wirelessly with the UHF communication module 12, thereby ensuring the security of the peripheral device 10.
[0050] In one possible implementation, Figure 3 This is a schematic diagram of a fire protection system provided in Embodiment 2 of this application. See also... Figure 3 The fire protection system includes a main controller 30 and multiple peripheral devices 10. When inspecting some peripheral devices 10, the inspector needs to first send an action command to the peripheral device 10 through the main controller 30, and then walk to the site of the peripheral device 10 to check the execution of the action. During the time when the inspector walks from the main controller 30 to the peripheral device 10, the peripheral device 10 will continue to perform actions. For example, when the peripheral device 10 is an audible alarm device, it will continuously sound an alarm during this time period, which may cause people who hear the alarm to mistakenly believe that a fire has occurred, resulting in a poor experience when inspecting the peripheral device 10.
[0051] Inspection personnel send a delayed action command to peripheral device 10 via handheld terminal 20. After receiving the delayed action command via directional antenna 11, the ultra-high frequency communication module 12 in peripheral device 10 forwards it to microcontroller 13. Responding to the delayed action command, microcontroller 13, upon receiving an action command from main controller 30, waits for a preset delay time before controlling peripheral device 14 to execute the action corresponding to the received command. After microcontroller 13 controls peripheral device 14 to execute the action corresponding to the received command, it clears the delayed action command.
[0052] By sending a delayed action command to the peripheral device 10 via the handheld terminal 20, the peripheral device 10 delays the execution of the action command from the main controller 30. This means that after the inspection personnel send the action command to the peripheral device 10 from the main controller 30, the peripheral device 10 will not immediately execute the command. During this delay, the inspection personnel can walk from the main controller 30 to the location of the peripheral device 10. The peripheral device 10 will only execute the command after the inspection personnel arrive. This allows the inspection personnel to fully observe the self-test process of the peripheral device 14, ensuring the effectiveness of the inspection. Furthermore, it avoids the situation where the peripheral device 10 executes an action before the inspection personnel arrive, which could lead to the mistaken belief that a fire has occurred, thus improving the inspection experience of the peripheral device 10.
[0053] Optionally, in response to a delayed action command, the microcontroller 13 waits for a delay time and then controls the peripheral device body 14 to execute the action corresponding to the action command. After the inspection of the peripheral device 10 is completed, the microcontroller 13 is powered off and restarted to clear the previously received delayed action commands. This ensures that after the peripheral device 10 receives an action command from the main controller 30, it can promptly execute the action corresponding to the received action command and realize the normal function of the peripheral device 10.
[0054] In one possible implementation, see Figure 3 The fire protection system includes a main controller 30 that sends control commands to peripheral devices 10, and a handheld terminal 20 that also sends control commands to peripheral devices 10. When the main controller 30 and the handheld terminal 20 send control commands to peripheral devices 10 at the same time, the microcontroller unit 13 needs to determine the order in which the two control commands are executed.
[0055] When the microcontroller unit 13 receives a first instruction from the handheld terminal 20 and a second instruction from the main controller 30, the microcontroller unit 13 determines the mode of the peripheral device 10. If the peripheral device 10 is in operating mode, the second instruction is executed first; if the peripheral device 10 is in maintenance or test mode, the first instruction is executed first. For example, if the microcontroller unit 13 simultaneously receives an alarm instruction from the main controller 30 and a self-test instruction from the handheld terminal 20, if the peripheral device 10 is in operating mode, the alarm instruction is executed first, followed by the self-test instruction; if the peripheral device 10 is in maintenance or test mode, the self-test instruction is executed first, followed by the alarm instruction.
[0056] Peripheral device 10 has multiple operating modes, such as working mode, maintenance mode, and test mode. When peripheral device 10 receives instructions from both main controller 30 and handheld terminal 20, if peripheral device 10 is in working mode, microcontroller 13 will prioritize executing instructions from main controller 30 to ensure that peripheral device 10 can perform alarm or fire extinguishing actions normally. If peripheral device 10 is in maintenance mode or test mode, microcontroller 13 will prioritize executing instructions from handheld terminal 20 to avoid affecting the normal debugging, testing, maintenance, and inspection of peripheral device 10.
[0057] Example 3
[0058] Based on the peripheral device 10 provided in Embodiment 1 or Embodiment 2, the peripheral device 10 can receive messages from the broadcasting device and store the received messages, thereby realizing the storage of preset information in a batch of peripheral devices 10.
[0059] Figure 4 This is a schematic diagram of a peripheral device provided in Embodiment 3 of this application. See also... Figure 4 The UHF communication module 12 includes a memory 121. The broadcasting device 40 transmits preset information to at least two peripheral devices 10 via broadcast. In each peripheral device 10, the UHF communication module 12 receives the preset information from the broadcasting device 40 through a directional antenna 11 and stores the received preset information in the memory 121. The preset information includes some or all of the following: serial number, anti-counterfeiting information, electrical performance parameters, delivery information, and communication connection verification information.
[0060] The ultra-high frequency communication module 12 in a peripheral device 10 can not only receive messages sent by the handheld terminal 20 to the peripheral device 10, but also receive messages sent by the broadcasting device 40 in broadcast form. Thus, before the peripheral device 10 leaves the factory or during the transportation of the peripheral device 10, the broadcasting device 40 sends preset information in broadcast form, thereby writing preset information into a batch of peripheral devices 10, thereby improving the convenience and efficiency of setting up the peripheral device 10.
[0061] The preset information written to memory 121 includes serial number, anti-counterfeiting information, electrical performance parameters, delivery information, and communication connection verification information. The serial number identifies the peripheral device 10; different peripheral devices 10 correspond to different serial numbers. The anti-counterfeiting information verifies whether the peripheral device 10 is a counterfeit product; specifically, it can be an anti-counterfeiting code calculated using a special algorithm. The electrical performance parameters identify the electrical performance of the peripheral device 10, such as rated voltage, rated current, and rated power. The delivery information identifies the delivery status of the peripheral device 10, such as delivery time, batch number, shipping origin address, and receiving destination address. The communication connection verification information verifies the handheld terminal 20 when establishing a communication connection with the peripheral device 10; for example, it includes a key and the identity information of the legitimate handheld terminal 20. Therefore, before the peripheral device 10 leaves the factory, the broadcast device 40 communicates with the peripheral device 10 in a one-to-many or sequential one-to-one manner, storing the preset information in the memory 121 of each peripheral device 10 for use during the installation, debugging, and maintenance phases.
[0062] Figure 5 This is a schematic diagram illustrating a peripheral device performing broadcast communication according to Embodiment 3 of this application. See also... Figure 5 The broadcasting equipment 40 is placed within the overlapping area of the orientation ranges of multiple peripheral devices 10, wherein Figure 5 The dashed line represents the orientation range of the responding peripheral device 10 (the range within which effective wireless communication can be achieved with the broadcast device 40), enabling the broadcast device 40 to perform one-to-many communication or sequential one-to-one communication with multiple peripheral devices 10. The broadcast device 40 can be a handheld terminal 20 or a fixed device in the manufacturing plant of the peripheral device 10.
[0063] Optionally, the serial number of the peripheral device 10 can be set via the broadcasting device 40. The broadcasting device 40 communicates with each peripheral device 10 sequentially. After receiving the serial number message sent by the broadcasting device 40, each peripheral device 10 stores the serial number included in the serial number message in the memory 121 for tracking. Since the serial number is a unique identifier for the peripheral device 10, different peripheral devices 10 have different serial numbers. Therefore, the broadcasting device 40 sets the serial number of each peripheral device 10 through a one-to-one communication method. Similarly, the range information of the peripheral device 10 can also be set via the broadcasting device 40. The peripheral device 10 stores the received anti-counterfeiting information in the memory 121. Subsequently, the anti-counterfeiting information stored in the memory 121 can be read by the handheld terminal 20 to identify the authenticity of the peripheral device 10 and achieve the purpose of distinguishing counterfeit devices.
[0064] Optionally, before leaving the factory, peripheral device 10 typically needs to undergo functional testing to obtain test data at the time of delivery. In one possible implementation, broadcast device 40 sends a command to initiate a self-test function to multiple peripheral devices 10 via broadcast. After receiving the command via directional antenna 11, the ultra-high frequency communication module 12 of peripheral device 10 sends it to microcontroller unit 13. In response to the command, microcontroller unit 13 initiates the self-test function of peripheral device 10, obtains the test data obtained before product delivery, and stores the obtained test data in memory 121. This pre-delivery test data is also called delivery test data. Delivery test data includes data related to electrical performance, and can serve as a reference for future fault analysis of peripheral device 10. In another possible implementation, if each peripheral device 10 can be tested using other external testing equipment before delivery, the delivery test data of different peripheral devices 10 can be sent to the corresponding peripheral device 10 via broadcasting device 40 so that the delivery test data can be stored in the memory 121 of the corresponding peripheral device 10.
[0065] Optionally, during the transportation of peripheral devices 10, logistics information can be set for a batch of peripheral devices 10 via broadcasting equipment 40. For example, relevant logistics information can be broadcast to multiple peripheral devices 10 via broadcasting equipment 40 (such as handheld terminal 20). After receiving the logistics information, the ultra-high frequency communication module 12 in the peripheral device 10 stores the logistics information in the memory 121. The logistics information may include delivery time, batch number, shipping origin address, and receiving destination address, etc. Figure 6 This is a schematic diagram of a fire protection system provided in Embodiment 3 of this application. See also... Figure 6After the peripheral device 10 is installed on site, the logistics information can be read from the peripheral device 10 through the handheld terminal 20, and the read logistics information can be uploaded to the cloud database 50 for storage, so as to facilitate the full life cycle management of the peripheral device 10.
[0066] Optionally, to ensure the security of peripheral devices 10, a key can be set for a batch of peripheral devices 10 via broadcast device 40. The set key matches the handheld terminal 20, and only the handheld terminal 20 with the corresponding key can communicate with the batch of peripheral devices 10. Thus, the key can be used to prevent unauthorized access to peripheral devices 10.
[0067] Optionally, a batch of peripheral devices 10 can be configured via broadcast device 40, sending the corresponding device configuration information to the peripheral devices 10. The UHF communication module 12 in the peripheral device 10 stores the device configuration information in memory 121. To meet the needs of different customers, peripheral devices 10 can be customized, that is, different device configuration information can be customized for peripheral devices 10 required by different customers. For example, an alarm device with custom tone and voice settings can be configured. Of course, after the peripheral devices 10 are delivered, the device configuration information stored in the peripheral devices 10 can also be modified via handheld device 20.
[0068] Example 4
[0069] Based on the peripheral device 10 provided in Embodiment 3, the microcontroller unit 13 can periodically initiate the self-test program of the peripheral device body 14, acquire the self-test log of the peripheral device body 14, and store the acquired self-test log in the memory 121. The self-test log of the peripheral device body 14 includes information such as the self-test time and self-test result of the peripheral device body 14. After receiving the read command sent by the handheld terminal 20 through the directional antenna 11, the ultra-high frequency communication module 12 reads the self-test log of the peripheral device body 14 from the memory 121 and sends the read self-test log to the handheld terminal 20 through the directional antenna 11.
[0070] Peripheral equipment 10 typically requires regular maintenance, meaning that inspection personnel regularly inspect peripheral equipment 10 to promptly identify, replace, or repair any abnormalities. The commissioning / maintenance of peripheral equipment 10 is categorized into different levels, each corresponding to a different cycle. For example, basic commissioning (such as routine commissioning) can be performed monthly, while advanced commissioning (such as non-interference testing) can be performed annually.
[0071] In addition to periodically inspecting peripheral device 10, microcontroller unit 13 can also periodically initiate the self-test process of peripheral device body 14 and send the self-test log of peripheral device body 14 to UHF communication module 12. UHF communication module 12 stores the received self-test log in memory 121. When inspectors are debugging or maintaining peripheral device 10, they can read past self-test logs from memory 121 through handheld terminal 20. By analyzing and processing the self-test logs, they can determine whether peripheral device 10 has experienced a fault, thereby enabling better maintenance and debugging of peripheral device 10.
[0072] Since the UHF communication module 12 can generate power based on the radio beams transmitted by the handheld terminal 20, the inspection personnel can still read the self-test log stored in the memory 121 through the handheld terminal 20 even when the peripheral device 10 is powered off. By analyzing and processing the self-test log, if it is determined that the peripheral device 10 has malfunctioned, a fault check is performed on the peripheral device 10; if it is determined that the peripheral device 10 has not malfunctioned, the self-test function test for the peripheral device 10 is initiated.
[0073] The microcontroller unit 13 can not only store the self-test log of the peripheral device 14 into the memory 121, but also acquire the operating information of the peripheral device 10 and send the operating information to the UHF communication module 12. The UHF communication module 12 can then store the received operating information into the memory 121, such as the operating information of the peripheral device 10 before power failure or malfunction. Inspection personnel can read the operating information in the memory 121 through the handheld terminal 20, and then analyze the cause of the peripheral device 10's malfunction through the operating information, facilitating the maintenance of the peripheral device 10.
[0074] Example 5
[0075] Based on the peripheral device 10 provided in Embodiment 3 or Embodiment 4 above, the UHF communication module 12 receives a write command from the handheld terminal 20 via the directional antenna 11, and then stores at least one of location information, configuration information, and update information in the memory 121 according to the write command. The location information is used to indicate the installation location of the peripheral device 10, the configuration information is used to configure the functions of the peripheral device 10, and the update information is used to update the functions of the peripheral device 10.
[0076] Optionally, after the peripheral device 10 is installed and deployed, a write command is sent to the peripheral device 10 via the handheld terminal 20. The UHF communication module 12 in the peripheral device 10 receives the write command from the handheld terminal 20 through the directional antenna 11 and stores the location information of the peripheral device 10 in the memory 121 according to the write command. When the inspection personnel inspect the peripheral device 10 later, they can read the location information in the memory 121 through the handheld terminal 20. Based on the read location information, the installation location of the peripheral device 10 can be determined, and the installation location of the peripheral device 10 can be used as a reference for the inspection of the peripheral device 10 to verify whether the peripheral device 10 has been moved. The handheld terminal 20 can not only write the location information to the memory 121, but also write the inspection result information of the peripheral device 10 to the memory 121. The inspection personnel can then read the inspection result information from the memory 121 through the handheld terminal 20, which is convenient for the inspection personnel to view the inspection result information of the peripheral device 10 previously, and to determine the status and fault cause of the peripheral device 10 based on the previous inspection result information.
[0077] Optionally, after receiving a write command from the handheld terminal 20, the UHF communication module 12 writes configuration information for configuring the functions of the peripheral device 10 into the memory 121. The microcontroller unit 13 configures the peripheral device body 14 according to the configuration information stored in the memory 121, enabling the peripheral device body 14 to perform corresponding functions, so that the peripheral device 10 is suitable for the corresponding usage scenario and meets the user's needs. The handheld terminal 20 can also send a read command to the UHF communication module 12 to read the configuration information stored in the memory 121 and display the read configuration information on the handheld terminal 20, making it convenient for inspection personnel to view the configuration information of the peripheral device and modify the configuration information.
[0078] After establishing a communication connection between the handheld terminal 20 and the UHF communication module 12, the handheld terminal 20 is placed in device modification mode, and the peripheral device 10 is placed in configuration modification mode. The handheld terminal 20 reads the configuration information from the memory 121 and displays the read configuration message on its screen. The configuration information includes modifiable and non-modifiable configuration information. The handheld terminal 20 can display the modifiable and non-modifiable configuration information intuitively on its screen using different display methods. The inspection personnel modify the modifiable configuration information on the handheld terminal 20, such as modifying the speaker's tone mode and volume level. The handheld terminal 20 sends the modified configuration information to the UHF communication module 12, which stores the modified configuration information in the memory 121. The microcontroller unit 13 configures the peripheral device 14 according to the modified configuration information. After successful configuration, the UHF communication module 12 returns configuration feedback information to the handheld terminal 20, which then displays the configuration feedback information.
[0079] It should be noted that when configuring the peripheral device 10 through the handheld terminal 20, if the requested configuration information leads to potential configuration errors (e.g., excessive power, address reuse, etc.), the handheld terminal 20 will report the corresponding error message when sending the modified configuration information to prompt for a retry.
[0080] Optionally, after receiving a write command from the handheld terminal 20, the UHF communication module 12 writes update information for updating the functions of the peripheral device 10 into the memory 121. The microcontroller unit 13 reads the update information from the memory 121 and upgrades the peripheral device body 14 based on the read update information, thereby updating the functions of the peripheral device body 14. This allows the peripheral device body 14 to have the latest functions and enables it to have different functions according to user needs. For example, the hardware of the peripheral device 10 has the function of sending messages to the main controller 30, but the user did not need this function before, so this function was not enabled when the peripheral device 10 was configured. When the user needs this function later, they can modify the configuration information in the memory 121 through the handheld terminal 20 to enable the peripheral device 10 to send messages to the main controller 30. This satisfies the user's need to expand the functions of the peripheral device 10 without replacing it, thereby improving the user experience and satisfaction.
[0081] Example 6
[0082] Figure 7 This is a schematic diagram of a peripheral device provided in Embodiment Six of this application. See also... Figure 7Based on the peripheral device 10 provided in Embodiment 1, the directional antenna 11 in the peripheral device 10 includes a physical antenna 111 and a matching circuit 112. The physical antenna 111 is connected to the matching circuit 112. The matching circuit 112 achieves impedance matching in the frequency band of the radio wave beam emitted by the handheld terminal 20 through the series resonance and parallel resonance of the capacitors and inductors included. The position of the physical wire 111 on the circuit board and the routing of the matching circuit 112 on the circuit board determine the direction of the directional antenna 11 in receiving and transmitting radio wave beams along a preset direction.
[0083] Since peripheral devices 10 typically contain metallic components, these components can interfere with the antenna, thereby impairing its communication performance. By matching the physical antenna 111's position on the circuit board and the matching circuit 112's routing on the circuit board, and performing performance testing, interference caused by metallic components can be eliminated. This ensures that the directional antenna 11 has reliable communication performance suitable for the operating environment and enables the directional antenna 11 to receive and transmit new wireless signals in a predetermined direction.
[0084] Figure 8 This is a schematic diagram of a directional antenna provided in Embodiment Six of this application. See also... Figure 8 The directional antenna 11 includes a physical antenna 111 and a matching circuit 112. The matching circuit 112 includes a resistor, a capacitor, and an inductor. The inductor and capacitor achieve impedance matching in the required frequency band through parallel and series resonance. At the same time, the matching circuit 112 also has a filtering function, for example, it can filter signals with frequencies within a certain frequency range.
[0085] During the matching process of physical antenna 11, it can be achieved using the Smith chart to ensure maximum power transfer efficiency from transmitter to antenna. Figure 9 This is a schematic diagram of a Smith chart provided in Embodiment Six of this application. See also... Figure 9 Points 410 to 450 correspond to different frequencies, real impedances, and imaginary impedances. By combining the real and imaginary impedances for calculation, we can obtain that the impedance corresponding to points 420 to 440 is close to the standard impedance.
[0086] Figure 10 This is a schematic diagram of the S11 parameters corresponding to a Smith chart provided in Embodiment Six of this application. S11 characterizes the return loss characteristics; the larger the S11 value, the greater the energy reflected back by the antenna itself, and the worse the antenna efficiency. See also... Figure 10 The smaller the S11 parameter value corresponding to 420~440, the better the antenna efficiency, that is, the efficiency corresponding to 440 is the best.
[0087] After determining the performance of the directional antenna 11, its directivity can be determined by configuring the routing shape of the matching circuit 112 on the circuit board. Directivity measurements display the signal strength in three dimensions on each axis. Depending on requirements, the forward plane of the peripheral device 10 can have the highest transmit power and a narrow trace towards the ground, ensuring lower transmit power received at other angles. See also Figures 11-13 When the signal frequencies are 900MHz and 930MHz, the antenna exhibits good directivity in all three directions, thus achieving its directional function. Therefore, when multiple peripheral devices 10 are installed in a confined space, the handheld terminal 20 can communicate with a specific peripheral device 10 by pointing it towards that device, helping to reduce interference.
[0088] Example 7
[0089] Figure 14 This is a flowchart of a peripheral device control method provided in an embodiment of this application. The peripheral device control method provided in this application is implemented based on the peripheral devices of the messaging system provided in the foregoing embodiments. Unless otherwise specified, the peripheral device involved in the following method embodiments can be peripheral device 10 in the foregoing embodiments; the handheld terminal involved in the following method embodiments can be handheld terminal 20 in the foregoing embodiments; the main controller involved in the following method embodiments can be main controller 30 in the foregoing embodiments; the broadcasting device involved in the following method embodiments can be broadcasting device 40 in the foregoing embodiments; the memory involved in the following method embodiments can be memory 121 in the foregoing embodiments; the physical antenna involved in the following method embodiments can be physical antenna 111 in the foregoing embodiments; the matching circuit involved in the following method embodiments can be matching circuit 112 in the foregoing embodiments; the directional antenna involved in the following method embodiments can be directional antenna 11 in the foregoing embodiments; the UHF communication module involved in the following method embodiments can be UHF communication module 12 in the foregoing embodiments; the microcontroller unit involved in the following method embodiments can be microcontroller unit 13 in the foregoing embodiments; and the peripheral device body involved in the following method embodiments can be peripheral device body 14 in the foregoing embodiments. See Figure 14 The peripheral device control method provided in this application includes the following steps: 1401. Receive radio beams from a handheld terminal in a preset direction via a directional antenna; 1402. The UHF communication module obtains control commands from the radio beam, wherein when the peripheral equipment has no power supply, the UHF communication module generates power based on the radio beam received by the directional antenna to operate. 1403. The microcontroller unit controls the peripheral device body to perform actions according to the control instructions.
[0090] In this embodiment, after the handheld terminal sends a radio beam including control commands, the directional antenna receives the radio beam along a preset direction and sends it to the UHF communication module. The UHF communication module then retrieves the control commands from the radio beam and sends them to the microcontroller unit. The microcontroller unit then controls the peripheral equipment to operate according to the control commands. Therefore, a single inspector can complete the inspection of peripheral equipment using a handheld terminal, saving the time required for communication and coordination among multiple inspectors, thus improving the efficiency of inspecting the peripheral equipment of the fire protection system.
[0091] In addition, since the UHF communication module can generate power based on the received radio beams, it can also receive wireless signals from the handheld terminal and be activated even when the peripheral device is powered off. This can reduce the power consumption of the peripheral device, make it easier to inspect the peripheral device, and improve the user experience.
[0092] In one possible implementation, step 1403 above, where the microcontroller controls the peripheral device body to perform actions according to control commands, includes: The microcontroller initiates the self-test process of the peripheral device body according to the control command, obtains the self-test structure of the peripheral device body, and sends the self-test result to the UHF communication module. The UHF communication module sends the self-test results to the handheld terminal via a directional antenna.
[0093] In one possible implementation, step 1403 above, where the microcontroller controls the peripheral device body to perform actions according to control commands, includes: The microcontroller initiates the automatic calibration program of the peripheral device body according to the control command, so that the peripheral device body can complete the automatic calibration according to the calibration reference provided on site.
[0094] In one possible implementation, step 1403 above, where the microcontroller controls the peripheral device body to perform actions according to control commands, includes: The microcontroller sets the action threshold of the peripheral device body to the target value according to the control command.
[0095] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the peripheral device control method further includes: The UHF communication module receives communication request information from the handheld terminal via a directional antenna. After verifying that the key included in the communication request information is correct, it sends communication feedback information to the handheld terminal to establish a wireless communication connection with the handheld terminal.
[0096] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the peripheral device control method further includes: The UHF communication module receives delayed action commands from the handheld terminal via a directional antenna and sends the delayed action commands to the microcontroller unit. According to the delayed action command, after receiving the action command from the main controller of the fire protection system, the microcontroller waits for a preset delay time and then controls the peripheral device to perform the action corresponding to the action command. After controlling the peripheral device to perform the action corresponding to the action command, the delayed action command is cleared.
[0097] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the peripheral device control method further includes: When the microcontroller receives a first instruction from the handheld terminal and a second instruction from the main controller of the fire protection system, if the peripheral device is in working mode, the second instruction will be executed first; if the peripheral device is in maintenance mode or test mode, the first instruction will be executed first.
[0098] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the peripheral device control method further includes: The UHF communication module receives preset information from a broadcasting device via a directional antenna and stores the preset information in a memory included in the UHF communication module. The broadcasting device sends the preset information to at least two peripheral devices via broadcast. The preset information includes at least one of the following: serial number, anti-counterfeiting information, electrical performance parameters, delivery information, and communication connection verification information.
[0099] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the peripheral device control method further includes: The microcontroller acquires the self-test log of the peripheral device and stores the self-test log in the memory included in the ultra-high frequency communication module; The UHF communication module receives read commands from the handheld terminal via a directional antenna, and sends the self-test logs stored in the memory to the handheld terminal via the directional antenna according to the read commands.
[0100] In one possible implementation, Figure 14Based on the peripheral device control method shown, the peripheral device control method further includes: The UHF communication module receives a write command from a handheld terminal via a directional antenna, and stores at least one of location information, configuration information, and update information in the memory included in the UHF communication module according to the write command. The location information is used to indicate the installation location of the peripheral device, the configuration information is used to configure the function of the peripheral device, and the update information is used to update the function of the peripheral device.
[0101] In one possible implementation, Figure 14 Based on the peripheral device control method shown, the directional antenna includes: a physical antenna and a matching circuit; The physical wires are connected to the matching circuit; The matching circuit is used to achieve impedance matching in the frequency band of the radio beam transmitted by the handheld terminal through the series resonance and parallel resonance of the included capacitors and inductors. The position of the physical wires on the circuit board and the routing of the matching circuit on the circuit board determine the direction of the directional antenna to receive and transmit radio beams in a preset direction.
[0102] It should be noted that all the optional technical solutions in the above method embodiments can be combined in any way to form the optional embodiments of this application, and will not be described in detail here. In addition, the peripheral device control method in the embodiments of this application is based on the same concept as the peripheral device of the fire protection system in the foregoing embodiments. For details, please refer to the description in the foregoing device embodiments, and will not be repeated here.
[0103] This application also provides a computer-readable medium storing instructions for causing a computer to perform peripheral device control methods as described herein. Specifically, a system or apparatus equipped with a storage medium storing software program code that implements the functions of any of the embodiments described above, and enabling the computer (or CPU or MPU) of the system or apparatus to read and execute the program code stored in the storage medium.
[0104] In this case, the program code read from the storage medium can itself implement the function of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute part of this application.
[0105] Storage media embodiments for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer via a communication network.
[0106] Furthermore, it should be clear that not only can the program code read by the computer be executed, but also the operating system or other components operating on the computer can be instructed based on the program code to perform some or all of the actual operations, thereby realizing the function of any of the embodiments described above.
[0107] Furthermore, it is understood that the program code read from the storage medium is written to the memory set in the expansion board inserted into the computer or to the memory set in the expansion unit connected to the computer. Then, based on the instructions of the program code, the CPU or other components installed on the expansion board or expansion unit execute some and all of the actual operations, thereby realizing the function of any of the embodiments described above.
[0108] It should be noted that not all steps and modules in the above processes and system structure diagrams are mandatory; some steps or modules can be omitted as needed. The execution order of each step is not fixed and can be adjusted as required. The system structure described in the above embodiments can be a physical structure or a logical structure. That is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or they may be jointly implemented by certain components in multiple independent devices.
[0109] In the above embodiments, the hardware units can be implemented mechanically or electrically. For example, a hardware unit may include permanent dedicated circuitry or logic (such as a dedicated processor, FPGA, or ASIC) to perform the corresponding operation. The hardware unit may also include programmable logic or circuitry (such as a general-purpose processor or other programmable processor), which can be temporarily configured by software to perform the corresponding operation. The specific implementation method (mechanical, dedicated permanent circuitry, or temporarily configured circuitry) can be determined based on cost and time considerations.
[0110] The present application has been shown and described in detail above with reference to the accompanying drawings and preferred embodiments. However, the present application is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art will know that more embodiments of the present application can be obtained by combining the code review methods in the different embodiments above. These embodiments are also within the protection scope of the present application.
Claims
1. An external device (10) for a fire protection system, characterized in that, include: Directional antenna (11), UHF communication module (12), microcontroller unit (13) and peripheral device body (14). The ultra-high frequency communication module (12) is connected to the directional antenna (11) and the microcontroller unit (13) respectively, and the microcontroller unit (13) is connected to the peripheral device body (14); The directional antenna (11) is used to receive radio beams from the handheld terminal (20) along a preset direction and send the radio beams to the UHF communication module (12). When the peripheral device (10) has no power supply, the UHF communication module (12) generates power based on the radio beams and operates. The ultra-high frequency communication module (12) is used to acquire the control commands included in the radio beam and send the control commands to the microcontroller unit (13). The microcontroller unit (13) is used to control the peripheral device body (14) to perform actions according to the control instructions; The ultra-high frequency communication module (12) includes: a memory (121); The ultra-high frequency communication module (12) is also used to receive, via the directional antenna (11) a command to start the self-test function sent by the broadcasting device (40) to a plurality of peripheral devices (10) in the form of broadcast, and to send the command to start the self-test function to the microcontroller unit (13). The microcontroller unit (13) is also used to respond to the instruction to start the self-test function, start the self-test function of the peripheral device (10), obtain the delivery test data obtained by the self-test before product delivery, and store the delivery test data in the memory (121). The delivery test data can be used as a reference for future fault analysis of the peripheral device (10).
2. The device according to claim 1, characterized in that, The microcontroller unit (13) is used to initiate the self-test process of the peripheral device body (14) according to the control command, obtain the self-test result of the peripheral device body (14), and send the self-test result to the ultra-high frequency communication module (12). The ultra-high frequency communication module (12) is also used to send the self-test result to the handheld terminal (20) through the directional antenna (11).
3. The device according to claim 1, characterized in that, The microcontroller unit (13) is used to start the automatic calibration program of the peripheral device body (14) according to the control command, so that the peripheral device body (14) completes automatic calibration according to the calibration reference provided on site; or, The microcontroller unit (13) is used to set the action threshold of the peripheral device body (14) to a target value according to the control command.
4. The device according to claim 1, characterized in that, The ultra-high frequency communication module (12) is also used to receive communication request information from the handheld terminal (20) through the directional antenna (11), and after verifying that the key included in the communication request information is correct, send communication feedback information to the handheld terminal (20) to establish a wireless communication connection with the handheld terminal (20).
5. The device according to claim 1, characterized in that, The ultra-high frequency communication module (12) is also used to receive a delayed action command from the handheld terminal (20) through the directional antenna (11) and send the delayed action command to the microcontroller unit (13). The microcontroller unit (13) is also used to, after receiving the action instruction from the main controller (30) of the fire protection system, wait for a preset delay time and then control the peripheral device body (14) to perform the action corresponding to the action instruction, and clear the delayed action instruction after controlling the peripheral device body (14) to perform the action corresponding to the action instruction.
6. The device according to claim 1, characterized in that, The microcontroller unit (13) is also configured to, when receiving a first instruction from the handheld terminal (20) and a second instruction from the main controller (30) of the fire protection system, execute the second instruction first if the peripheral device (10) is in working mode, and execute the first instruction first if the peripheral device (10) is in maintenance mode or test mode.
7. The device according to any one of claims 1 to 6, characterized in that: The ultra-high frequency communication module (12) is also used to receive preset information from the broadcasting device (40) through the directional antenna (11) and store the preset information in the memory (121). The broadcasting device (40) sends the preset information to at least two peripheral devices (10) in the form of broadcast. The preset information includes at least one of serial number, anti-counterfeiting information, electrical performance parameters, delivery information and communication connection verification information.
8. The device according to claim 7, characterized in that, The microcontroller unit (13) is also used to acquire the self-test log of the peripheral device body (14) and store the self-test log in the memory (121); The ultra-high frequency communication module (12) is also used to receive a reading instruction from the handheld terminal (20) through the directional antenna (11), and send the self-test log stored in the memory (121) to the handheld terminal (20) through the directional antenna (11) according to the reading instruction.
9. The device according to claim 7 or 8, characterized in that, The ultra-high frequency communication module (12) is also used to receive a write instruction from the handheld terminal (20) through the directional antenna (11), and store at least one of location information, configuration information and update information in the memory (121) according to the write instruction. The location information is used to indicate the installation location of the peripheral device (10), the configuration information is used to configure the function of the peripheral device (10), and the update information is used to update the function of the peripheral device (10).
10. The device according to any one of claims 1 to 6, characterized in that, The directional antenna (11) includes: a physical antenna (111) and a matching circuit (112); The physical wire (111) is connected to the matching circuit (112); The matching circuit (112) is used to achieve impedance matching in the frequency band of the radio beam emitted by the handheld terminal (20) through the series resonance and parallel resonance of the included capacitors and inductors. The position of the physical wire (111) on the circuit board and the routing of the matching circuit (112) on the circuit board determine the direction of the directional antenna (11) to receive and transmit the radio beam along the preset direction.
11. A peripheral device control method based on the peripheral device (10) of any one of the fire protection systems described in claims 1 to 10, characterized in that, include: The directional antenna (11) receives a command to start the self-test function from the broadcasting device (40) and broadcasts it to the multiple peripheral devices (10), and sends the command to start the self-test function to the microcontroller (13). The microcontroller unit (13) responds to the command to start the self-test function, starts the self-test function of the peripheral device (10), obtains the delivery test data obtained by the self-test before product delivery, and stores the delivery test data in the memory (121) included in the ultra-high frequency communication module (12). The delivery test data can be used as a reference for future fault analysis of the peripheral device (10). The directional antenna (11) receives radio beams from the handheld terminal (20) in a preset direction; The UHF communication module (12) acquires control commands included in the radio beam, wherein when the peripheral device (10) has no power supply, the UHF communication module (12) generates power based on the radio beam to operate. The microcontroller unit (13) controls the peripheral device body (14) to perform actions according to the control instructions.
12. A computer-readable medium having computer instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of claim 11.