Control method, device and system of communication device

By obtaining the direction of travel of the rail vehicle and adjusting the communication device to the set position, the communication abnormality problem caused by the fixed position of the on-board antenna was solved, and the stability and security of good communication quality in different directions were achieved.

CN121055034APending Publication Date: 2025-12-02BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410706263.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2025-12-02

AI Technical Summary

Technical Problem

The fixed position of the onboard antennas in existing rail vehicles leads to communication abnormalities, making it difficult to maintain good communication quality in different directions of travel.

Method used

By obtaining the current direction of travel of the rail vehicle, the communication device is adjusted to the corresponding set position. An angle adjustment device and a feedback device are used to ensure that the communication device is always facing the leaky cable, thereby achieving stable communication quality.

Benefits of technology

Maintaining good communication quality in different directions of travel for rail vehicles improves the communication stability and security of the communication device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121055034A_ABST
    Figure CN121055034A_ABST
Patent Text Reader

Abstract

The invention relates to a control method, device and system of a communication device, and belongs to the technical field of vehicle control, and the control method of the communication device comprises the steps: obtaining the current driving direction of a target object; determining whether the current driving direction is the same as a set direction or not; and when the current driving direction is opposite to the set direction, adjusting the communication device of the target object to a first set position. The control method of the communication device provided by the invention can improve the communication quality of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the technical field of vehicle control, and more specifically, to a control method, apparatus, and system for a communication device. Background Technology

[0002] With rapid economic development and increasingly diversified transportation options, rail transit has become one of the most important modes of transport. Currently, to enable communication in rail vehicles, existing rail vehicles can be equipped with an onboard antenna, which communicates with the leaky cables within the track. However, because the onboard antenna's position is relatively fixed, communication anomalies may occur. Summary of the Invention

[0003] One objective of this disclosure is to provide a new technical solution for controlling a communication device.

[0004] According to a first aspect of this disclosure, a method for controlling a communication device is provided, the method comprising:

[0005] Get the current direction of travel of the target object;

[0006] Determine whether the current driving direction is the same as the set direction;

[0007] When the current driving direction is opposite to the set direction, the communication device of the target object is adjusted to the first set position.

[0008] Optionally, after determining whether the current driving direction is the same as the set direction, the method further includes:

[0009] When the current driving direction is the same as the set direction, the communication device of the target object is maintained in the second set position.

[0010] Optionally, the target object is equipped with an angle adjustment device; the angle adjustment device is used to adjust the communication device of the target object to different preset positions;

[0011] Adjusting the communication device of the target object to a first predetermined position includes:

[0012] The angle adjustment device is controlled to rotate by a set angle so that the communication device of the target object is moved to a first set position.

[0013] Optionally, obtaining the current driving direction of the target object includes:

[0014] In response to a power-on request from the target object, it is determined whether the first driving terminal of the target object is in an active state; wherein the current driving direction of the target object is related to the activation state of the first driving terminal.

[0015] Optionally, determining whether the current driving direction is the same as the set direction includes:

[0016] When the first driving terminal is in an active state, it is determined that the current driving direction is the same as the set direction;

[0017] When the first driving terminal is inactive, it is determined that the current driving direction is opposite to the set direction.

[0018] Optionally, the target object is equipped with an angle feedback device; the angle feedback device is used to provide feedback on the current position of the target object's communication device.

[0019] After adjusting the communication device of the target object to the first preset position, the method further includes:

[0020] When the set conditions are met, the angle feedback device is controlled to detect whether the current position of the communication device is the first set position;

[0021] When the angle feedback device outputs first feedback information about the current position of the communication device being the first set position, it is determined that the target object is in a normal communication state; wherein, the target object enters a normal operation mode when in a normal communication state;

[0022] When the angle feedback device outputs second feedback information regarding the current position of the communication device not being the first set position, it is determined that the target object is in an abnormal communication state; wherein, the target object enters an emergency braking mode when in an abnormal communication state.

[0023] According to a second aspect of this disclosure, a control device for a communication apparatus is also provided, comprising a memory and a processor, the memory being used to store a computer program; the processor being used to execute the computer program to implement the method according to a first aspect of this disclosure.

[0024] According to a third aspect of this disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the method described according to a first aspect of this disclosure.

[0025] According to a fourth aspect of this disclosure, a computer program product is also provided, which, when executed by a processor, implements the method described according to a first aspect of this disclosure.

[0026] According to a fifth aspect of this disclosure, a control system for a communication device is also provided. The system includes an angle adjustment device and a control device, wherein the control device is the control device of the communication device described in the second or third aspect, the control device is communicatively connected to the angle adjustment device, and the control device is used to acquire the current driving direction of a target object, and control the angle adjustment device to adjust the target object to a first preset position based on the current driving direction.

[0027] Optionally, the system further includes an angle feedback device, which is communicatively connected to the control device. The control device is further configured to control the angle feedback device to detect whether the current position of the communication device of the target object is the first set position when a set condition is met.

[0028] One beneficial effect of the present invention is that the control method of the communication device provided by the present invention can determine the current driving direction of the target object in advance before the target object starts or starts, and when the current driving direction is opposite to the set direction, the communication device of the target object can be controlled to adjust to the first set position so as to have better communication quality when the target object is traveling in different directions, thereby realizing the normal communication of the rail vehicle.

[0029] Other features and advantages of the embodiments of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0030] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the present disclosure and, together with their description, serve to explain the principles of the embodiments of the present disclosure.

[0031] Figure 1 This is a schematic diagram of the composition structure of a control system capable of applying a communication device according to one embodiment;

[0032] Figure 2 This is a flowchart illustrating a control method for a communication device according to one embodiment;

[0033] Figure 3 This is a block diagram of the control device of a communication device according to one embodiment;

[0034] Figure 4 This is a schematic diagram of the hardware structure of the control device of a communication device according to one embodiment. Detailed Implementation

[0035] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the invention.

[0036] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.

[0037] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0038] In all the examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0039] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0040] <System Implementation>

[0041] Figure 1 This is a schematic diagram of the composition structure of a control system for a communication device 40 that can apply the control method of a communication device 40 according to one embodiment. For example... Figure 1 As shown, the control system 100 of the communication device 40 may include a control device 10, a communication device 40, an angle adjustment device 20, and an angle feedback device 30. This system 100 can be applied to rail transit scenarios.

[0042] The communication device 40 is, for example, a vehicle-mounted antenna, which can be installed on a target object, such as a rail vehicle, whose wheels 3 can travel on the track 200. A high-voltage cable trough 1 can be installed on one side of the track, and a low-voltage cable trough 2 and a leaky cable 4 can be installed on the other side of the track.

[0043] The angle adjustment device 20 can be, for example, an electric push rod. One end of the electric push rod can be rotatably connected to the target object, and the other end of the electric push rod can be rotatably connected to the communication device 40. By controlling the extension or retraction of the electric push rod, the communication device 40 can be rotated to different positions.

[0044] The angle feedback device 30 can be, for example, a limit switch, which can provide feedback on the angle value corresponding to the different positions to which the communication device 40 is rotated.

[0045] The control device 10 of the communication device can be a vehicle on-board controller (VOBC), which can be electrically or communicatively connected to the communication device 40, the angle adjustment device 20, and the angle feedback device 30.

[0046] In the embodiments of this disclosure, the memory of the control device 10 of the communication device stores a computer program that controls the processor of the control device 10 to operate according to the control method of the communication device in any embodiment. Those skilled in the art can design the computer program based on the scheme of the embodiments of this disclosure. How the computer program controls the processor to operate is well known in the art and will not be described in detail here.

[0047] <Method Implementation>

[0048] Figure 2 This is a flowchart illustrating a control method for a communication device according to one embodiment. The implementing entity is, for example, a... Figure 1 Control device 10 for the communication device.

[0049] like Figure 2 As shown, the control method of the communication device in this embodiment may include the following steps S210 to S230:

[0050] Step S210: Obtain the current driving direction of the target object.

[0051] In some examples, the target object can be a rail vehicle traveling in two directions, which can be opposite directions, for example, direction one, from west to east, and direction two, from east to west.

[0052] In some embodiments, step S210 may include the following step S2101:

[0053] Step S2101: In response to the power-on request of the target object, determine whether the first driving end of the target object is in an active state; wherein, the current driving direction of the target object is related to the active state of the first driving end.

[0054] In some examples, the power-on request may be issued after the driver touches the start control.

[0055] In some examples, the target object has multiple driving ends, namely an up driving end and a down driving end. That is to say, the first driving end can be either an up driving end or a down driving end, without limitation here.

[0056] For example, the first driving end is the upward driving end, and the direction corresponding to the upward driving end is from west to east. If the target object is powered on, it can be determined whether the upward driving end of the target object is in an active state. When the upward driving end is in an active state, it can be determined that the current driving direction of the target object is from west to east. When the upward driving end is in an inactive state, it can be determined that the current driving direction of the target object is from east to west.

[0057] In other words, after the rail vehicle is powered on, the control device of the communication device can determine the current direction of travel of the target object by determining whether the first driving end is in an active state, so as to redetermine the direction of travel of the rail vehicle when it starts running, thereby ensuring the communication quality of the rail vehicle.

[0058] Step S220: Determine whether the current driving direction is the same as the set direction.

[0059] In some examples, direction one is from west to east, and direction two is from east to west. The direction can be set to either direction one or direction two, which can be set manually and is not limited here.

[0060] In some embodiments, step S220 may include the following steps S2201 and S2202:

[0061] Step S2201: The first driving end is in an active state, and it is determined that the current driving direction is the same as the set direction;

[0062] For example, the first driving end is the upward driving end, and the direction corresponding to the upward driving end is from west to east. If the target object is powered on, it can be determined whether the upward driving end of the target object is in an active state. When the upward driving end is in an active state, it can be determined that the current driving direction of the target object is from west to east.

[0063] In step S2202, the first driving end is in an inactive state, and it is determined that the current driving direction is opposite to the set direction.

[0064] For example, when the up-driving end is inactive, it can be determined that the current driving direction of the target object is from east to west.

[0065] In other words, by using whether the first driving end is active to determine whether the current driving direction is the same as the set direction, the current driving direction of the target object can be quickly determined.

[0066] Step S230: When the current driving direction is opposite to the set direction, adjust the communication device of the target object to the first set position.

[0067] In other words, before the target object starts or begins to move, the current direction of travel of the target object can be determined in advance. Furthermore, when the current direction of travel is opposite to the set direction, the communication device of the target object can be controlled to adjust to the first set position so that the target object has good communication quality when it travels in different directions, thereby realizing the normal communication of the rail vehicle.

[0068] In some embodiments, the method further includes the following step S310:

[0069] Step S310: When the current driving direction is the same as the set direction, maintain the communication device of the target object in the second set position.

[0070] In some examples, the communication device for maintaining the target object in the second set position may not control the operation of the angle adjustment device.

[0071] In other words, when the direction of travel of the rail vehicle remains unchanged and the rail vehicle is powered on again, the control device of the communication device does not need to control the angle adjustment device to work, thereby improving the energy utilization efficiency of the target object while ensuring normal communication of the target object.

[0072] In some embodiments, the target object is configured with an angle adjustment device; the angle adjustment device is used to adjust the communication device of the target object to different preset positions. Step S230 may include the following step S2301:

[0073] Step S2301: Control the angle adjustment device to rotate a set angle so that the communication device of the target object is moved to the first set position.

[0074] In some examples, this angle can be set manually, and it is not limited here.

[0075] In other words, by setting the angle adjustment device to rotate at a set angle, the communication device can always be in the first set position or the second set position, and thus the communication device can always face the leaky cable, further improving the communication quality of the target object.

[0076] In some embodiments, the target object is configured with an angle feedback device; the angle feedback device is used to provide feedback on the current position of the target object's communication device. After step S230, the method further includes the following steps S410 to S430:

[0077] In step S410, when the set conditions are met, the control angle feedback device detects whether the current position of the communication device is the first set position.

[0078] In some examples, the setting condition may be a set time after the control angle device has finished rotating. This set time may be manually set and is not limited here.

[0079] Step S420: When the angle feedback device outputs first feedback information about the current position of the communication device being a first set position, it is determined that the target object is in a normal communication state; wherein, when the target object is in a normal communication state, it enters a normal operation mode.

[0080] In some instances, the target object has a normal operation mode and an emergency braking mode. The target object stops running in normal operation mode and stops running in emergency braking mode.

[0081] Step S430: When the angle feedback device outputs second feedback information about the current position of the communication device not being the first set position, it is determined that the target object is in an abnormal communication state; wherein, the target object enters an emergency braking mode when in an abnormal communication state.

[0082] In other words, if the communication device is not in the first or second preset position, or if it is not directly facing the leaky cable, the target object may experience communication problems. Therefore, controlling the operation of the rail vehicle under normal communication conditions effectively improves the safety of the rail vehicle.

[0083] <Equipment Example 1>

[0084] Figure 3 This is a schematic block diagram of the control device of a communication device according to one embodiment. Figure 3 As shown, the control device 300 of the communication device may include an acquisition module 310, a determination module 320, and an adjustment module 330.

[0085] The acquisition module 310 is used to acquire the current driving direction of the target object;

[0086] The determining module 320 is used to determine whether the current driving direction is the same as the set direction;

[0087] The adjustment module 330 is used to adjust the communication device of the target object to a first set position when the current driving direction is opposite to the set direction.

[0088] Optionally, the control device 300 of the communication device further includes a maintenance module, which is used to maintain the communication device of the target object in a second set position when the current driving direction is the same as the set direction.

[0089] Optionally, the adjustment module 330 is also used to control the angle adjustment device to rotate a set angle so that the communication device of the target object is moved to a first set position.

[0090] Optionally, the control device 300 of the communication device further includes a response module, which is used to determine whether the first driving end of the target object is in an active state in response to the power-on request of the target object; wherein the current driving direction of the target object is related to the activation state of the first driving end.

[0091] Optionally, the determining module 320 is further configured to, when the first driving end is in an active state, determine that the current driving direction is the same as the set direction; and when the first driving end is in an inactive state, determine that the current driving direction is opposite to the set direction. When the set conditions are met, the control angle feedback device detects whether the current position of the communication device is the first set position.

[0092] Optionally, the control device 300 of the communication device further includes a control module, which is used to determine that the target object is in a normal communication state when the angle feedback device outputs first feedback information about the current position of the communication device being a first set position; wherein the target object enters a normal operation mode when in a normal communication state; and to determine that the target object is in an abnormal communication state when the angle feedback device outputs second feedback information about the current position of the communication device not being the first set position; wherein the target object enters an emergency braking mode when in an abnormal communication state.

[0093] The control device 300 of the communication device may be Figure 1 Control device 10 in the middle.

[0094] <Equipment Example 2>

[0095] Figure 4 This is a schematic diagram of the hardware structure of the control device of a communication device according to another embodiment.

[0096] like Figure 4 As shown, the control device 400 of the communication device includes a processor 410 and a memory 420. The memory 420 is used to store an executable computer program, and the processor 410 is used to execute the method as described in any of the above method embodiments according to the control of the computer program.

[0097] The control device 400 of the communication device can be the control device 10.

[0098] Each module of the control device 300 of the above communication device can be implemented by the processor 410 in this embodiment executing the computer program stored in the memory 420, or it can be implemented by other structures, which are not limited here.

[0099] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0100] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0101] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0102] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0103] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0104] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0105] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0106] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0107] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims

1. A control method for a communication device, characterized in that, The method includes: Get the current direction of travel of the target object; Determine whether the current driving direction is the same as the set direction; When the current driving direction is opposite to the set direction, the communication device of the target object is adjusted to the first set position.

2. The method according to claim 1, characterized in that, After determining whether the current driving direction is the same as the set direction, the method further includes: When the current driving direction is the same as the set direction, the communication device of the target object is maintained in the second set position.

3. The method according to claim 1 or 2, characterized in that, The target object is equipped with an angle adjustment device; the angle adjustment device is used to adjust the communication device of the target object to different preset positions. Adjusting the communication device of the target object to a first predetermined position includes: The angle adjustment device is controlled to rotate by a set angle so that the communication device of the target object is moved to a first set position.

4. The method according to claim 1, characterized in that, The step of obtaining the current driving direction of the target object includes: In response to a power-on request from the target object, it is determined whether the first driving terminal of the target object is in an active state; wherein the current driving direction of the target object is related to the activation state of the first driving terminal.

5. The method according to claim 4, characterized in that, Determining whether the current driving direction is the same as the set direction includes: When the first driving terminal is in an active state, it is determined that the current driving direction is the same as the set direction; When the first driving terminal is inactive, it is determined that the current driving direction is opposite to the set direction.

6. The method according to claim 4, characterized in that, The target object is equipped with an angle feedback device; the angle feedback device is used to provide feedback on the current position of the target object's communication device. After adjusting the communication device of the target object to the first preset position, the method further includes: When the set conditions are met, the angle feedback device is controlled to detect whether the current position of the communication device is the first set position; When the angle feedback device outputs first feedback information about the current position of the communication device being the first set position, it is determined that the target object is in a normal communication state; wherein, the target object enters a normal operation mode when in a normal communication state; When the angle feedback device outputs second feedback information regarding the current position of the communication device not being the first set position, it is determined that the target object is in an abnormal communication state; wherein, the target object enters an emergency braking mode when in an abnormal communication state.

7. A control device for a communication apparatus, characterized in that, The system includes a memory and a processor, the memory being used to store a computer program; the processor being used to execute the computer program to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

9. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 6.

10. A control system for a communication device, characterized in that, The device includes an angle adjustment device and a control device. The control device is the control device of the communication device as described in claim 7 or 8. The control device is communicatively connected to the angle adjustment device. The control device is used to obtain the current driving direction of the target object and, based on the current driving direction, control the angle adjustment device to adjust the target object to a first set position.

11. The system according to claim 10, characterized in that, It also includes an angle feedback device, which is communicatively connected to the control device. The control device is further configured to control the angle feedback device to detect whether the current position of the target object's communication device is the first set position when a set condition is met.