Component switch control method and device, computer device and control system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]然而,在目前设备采用的主从式通信方式下,一旦主从控制器之间的通信出现问题,主控制器的控制指令无法成功下发至从控制器,将导致设备的各部件无法按需运行,严重时可能出现设备故障及安全事故
[0031] The aforementioned component switch control method, device, computer equipment, and component switch control system acquire the component status data of the controlled component in real time and send the component status data to the main controller in real time. When the main controller issues a remote control start command for the component, it controls the controlled component to enter the start state. If no remote control start command is received, it can also autonomously control the component to enter the start state when the component status data meets the component start conditions. Then, when the component closes the condition or a remote control close command is received, it controls the component to enter the close state. By controlling both remotely and automatically, it can avoid equipment failures and safety accidents caused by component switch control failure.
Smart Images

Figure CN115810262B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent control technology, and in particular to a component switch control method, device, computer equipment, and component switch control system. Background Technology
[0002] With the development of communication and IoT technologies, many devices have begun to adopt master-slave communication technology. A slave controller is installed at the main device end, connecting to each component. Simultaneously, the slave controller also communicates with a remote master controller. The master controller sends control commands to the slave controllers to remotely control the opening and closing of components. The master controller can also control the switching status of components based on analog signals and various operational protection states reported by the slave controllers. For example, the slave controllers of each battery swapping cabinet communicate with the master controller to control the opening and closing of heating, cooling, and fire suppression components within each cabinet.
[0003] However, under the current master-slave communication method used in the equipment, once the communication between the master and slave controllers fails, the control commands of the master controller cannot be successfully sent to the slave controller, which will cause the various components of the equipment to fail to operate as required, and in severe cases, equipment failure and safety accidents may occur. Summary of the Invention
[0004] Therefore, it is necessary to provide a component switch control method, device, computer equipment, and component switch control system that can avoid component switch control failure in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides a component switching control method. The method includes:
[0006] The system acquires the component status data of the controlled component in real time and sends the component status data to the main controller.
[0007] When the component status data meets the component opening conditions or a remote control opening command for the component is received, the controlled component is controlled to enter the opening state.
[0008] When the component shutdown condition is met or a component remote shutdown command is received, the controlled component is controlled to enter the shutdown state; both the component remote start command and the component remote shutdown command are issued by the main controller based on the component status data.
[0009] In one embodiment, the component status data satisfying the component activation condition includes: the component status data reaching a preset activation threshold and the duration exceeding a preset activation duration.
[0010] In one embodiment, the opening state of the controlled component includes a remote-controlled opening state and an automatic opening state; the step of controlling the component to enter the opening state when the component state data meets the component opening condition or when a remote-controlled opening command is received includes:
[0011] When the component status data meets the component opening conditions, the controlled component is controlled to enter the self-controlled opening state;
[0012] Upon receiving a remote control activation command for a component, the controlled component is controlled to enter the remote control activation state.
[0013] In one embodiment, after the controlled component enters the remote control on state, the component shut-off condition includes:
[0014] It has been determined that communication with the main controller has been lost;
[0015] or
[0016] After receiving the remote control start command for the component, no remote control stop command is received within the preset remote control duration.
[0017] In one embodiment, after the controlled component enters the self-controlled on state, the component shut-off condition includes:
[0018] The component status data is restored to the preset shutdown threshold and the duration exceeds the preset shutdown duration;
[0019] or
[0020] The controlled component operates for a preset self-control duration.
[0021] In one embodiment, the component shutdown condition further includes:
[0022] Received a component control prohibition command or abnormal status signal.
[0023] In one embodiment, after controlling the controlled component to enter the self-controlled on state, the method further includes:
[0024] If a remote control activation command is received for the component, the controlled component is switched to the remote control activation state.
[0025] Secondly, this application also provides a component switch control device. The device includes:
[0026] The data acquisition module is used to acquire the component status data of the controlled component in real time and send the component status data to the main controller;
[0027] The control module is used to control the controlled component to enter the open state when the component status data meets the component opening conditions or when a remote control opening command for the component is received.
[0028] The shutdown control module is used to control the controlled component to enter the shutdown state when the component shutdown conditions are met or when a component remote shutdown command is received; both the component remote start command and the component remote shutdown command are issued by the main controller based on the component status data.
[0029] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described above.
[0030] Fourthly, this application also provides a component switching control system. The component switching control system includes a main controller, a slave controller, and a status data acquisition module. The slave controller is connected to the main controller, the status data acquisition module, and the controlled component. The slave controller is used to control the switching of the controlled component according to the aforementioned component switching control method.
[0031] The aforementioned component switch control method, device, computer equipment, and component switch control system acquire the component status data of the controlled component in real time and send the component status data to the main controller in real time. When the main controller issues a remote control start command for the component, it controls the controlled component to enter the start state. If no remote control start command is received, it can also autonomously control the component to enter the start state when the component status data meets the component start conditions. Then, when the component closes the condition or a remote control close command is received, it controls the component to enter the close state. By controlling both remotely and automatically, it can avoid equipment failures and safety accidents caused by component switch control failure. Attached Figure Description
[0032] Figure 1 This is an application environment diagram of the component switch control method in one embodiment;
[0033] Figure 2 This is a flowchart illustrating a component switch control method in one embodiment;
[0034] Figure 3 This is a flowchart illustrating the steps of the control component entering the open state in one embodiment;
[0035] Figure 4 This is a flowchart illustrating the component switch control method in another embodiment;
[0036] Figure 5 This is a flowchart illustrating the component switch control method in another embodiment;
[0037] Figure 6 This is a flowchart illustrating the component switch control method in another embodiment;
[0038] Figure 7 This is a structural block diagram of a component switch control device in one embodiment. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0040] With the development of communication and IoT technologies, many devices have begun to adopt master-slave communication technology. A slave controller is installed at the main device end, connecting to each component. Simultaneously, the slave controller also communicates with a remote master controller. The master controller sends control commands to the slave controllers to remotely control the opening and closing of components. The master controller can also control the on / off status of components based on analog signals and various operational protection statuses reported by the slave controllers. For example, the slave controllers of each battery swapping cabinet communicate with the master controller to control the opening and closing of heating, cooling, and fire suppression components within each cabinet. However, under the current master-slave communication method, if communication between the master and slave controllers fails, the master controller's control commands cannot be successfully sent to the slave controllers, causing the components of the equipment to malfunction as required. In severe cases, this can lead to equipment failure and safety accidents.
[0041] Based on this, embodiments of this application provide a component switching control method, applied to a device with master-slave communication, to realize the switching control of heating components, heat dissipation components, lighting components, and fire-fighting components that can be controlled components in the device. For example... Figure 1 In the application scenario shown, the slave controller 102 of the component switch control system communicates with the master controller 104 via a network to obtain the component status data of the controlled component 106 in real time and sends the component status data to the master controller 104. When the component status data meets the component opening condition or a remote control opening command is received, the master controller controls the controlled component 106 to enter the open state; when the component closing condition is met or a remote control closing command is received, the master controller controls the controlled component 106 to enter the closed state. Both the remote control opening and closing commands are issued by the master controller 104 based on the component status data. By switching between remote control and automatic control to achieve the switching control of the controlled component, equipment failures and safety accidents caused by component switch control failures can be avoided.
[0042] In one embodiment, such as Figure 2As shown, a switch control method is provided, which can be applied to... Figure 1 The following steps are used as an example, with controller 102 as an example: Steps 200 to 600. Wherein:
[0043] Step 200: Acquire the component status data of the controlled component in real time and send the component status data to the main controller.
[0044] The controlled component refers to any component in the equipment whose operating state can change under the control of the controller as needed. This can be a component that adjusts the equipment's operating environment, such as heating, heat dissipation, lighting, or fire control components in a battery swapping cabinet; it can also be a component that plays a major role in the equipment's operation, such as the power supply and battery management components in a battery swapping cabinet; or it can be any controlled component in the field, as long as it can change its operating state under the control of the controller as needed. It can be understood that component status data is data used to determine when the controlled component needs to change its operating state. This can be data characterizing the component's own operating state, such as the component's runtime, or it can be status data of the object or environment on which the controlled component acts, such as the temperature value of the object on which the heating component acts. In this embodiment, all component status data are analog data; however, in other embodiments, if the scenario requires it, component status data can also be implemented using digital data.
[0045] Specifically, the method for acquiring component status data is not unique and can be set as needed. For example, if it is status data of a controlled component or object, the slave controller can acquire it by directly connecting to the controlled component or object. If it is status data of the operating environment, it can be acquired and sent to the slave controller by adding a status data acquisition sensor. After the slave controller acquires the component status data of the controlled component in real time, it sends the component status data to the master controller so that the master controller can determine when to implement changes in operating status based on the component status data.
[0046] Furthermore, in the component switching control method provided in this application embodiment, the controlled component can switch states through two modes: automatic control mode and remote control mode. Clearly, automatic control mode indicates that the controlled component's state switching is achieved through a slave controller on the device body; remote control mode indicates that the controlled component's state switching is achieved through a master controller issuing commands to the slave controller at a remote end. In remote control mode, the slave controller can be understood as merely an actuator without control functions. The master controller can issue mode configuration commands to the slave controller according to actual needs, configuring the system into automatic control mode, remote control mode, or free mode. It can be understood that in free mode, the controlled component can freely switch between automatic control mode and remote control mode to change its operating state, while in a single automatic control mode or remote control mode, it cannot switch to another mode to change its operating state. In this application embodiment, the system is configured in free mode as an example for explanation and illustration.
[0047] It is understood that the purpose of the component switching control method provided in this application embodiment is to control the opening and closing of the controlled component. Correspondingly, it realizes the change of the operating state of the controlled component, that is, controls the controlled component to switch between the open state and the closed state.
[0048] Step 400: When the component status data meets the component opening conditions or a remote control opening command for the component is received, control the controlled component to enter the opening state.
[0049] Specifically, there is no single way for the controlled component to enter the open state. It can be controlled by the slave controller to enter the open state when the component status data meets the opening conditions in the automatic control mode, or it can be controlled by the master controller to enter the open state by issuing a remote control opening command in the remote control mode.
[0050] Among them, component status data satisfying component activation conditions indicates that the controlled component's target object or operating environment requires the controlled component to be activated to achieve a certain purpose. For example, taking a heating component in a battery swapping cabinet that heats the rechargeable battery as an example, its component status data may include the charging compartment temperature and the battery cell temperature. Correspondingly, when it is determined based on the charging compartment temperature and the battery cell temperature that the rechargeable battery needs to be heated, the corresponding heating component is activated to heat the rechargeable battery to achieve a suitable charging environment temperature. It can be understood that the method of determining whether the component status data satisfies the component activation conditions can be achieved by judging whether the component status data reaches the corresponding preset activation threshold. The preset activation threshold can be selected based on historical experience values, as long as it accurately controls the controlled component to enter the activated state at the time it needs to be activated.
[0051] To prevent component status data from being falsely triggered, in one embodiment, the component status data in step 400 meeting the component activation condition includes: the component status data reaching a preset activation threshold and the duration exceeding a preset activation duration. The preset activation duration can be set to a suitable duration based on the actual application scenario. This duration is used to filter out false triggers caused by background noise or other factors momentarily exceeding the preset activation threshold, ensuring that the controlled component accurately enters the activation state at the required time.
[0052] Furthermore, the component remote control start command is remotely issued by the main controller. When the slave controller receives the component remote control start command, it also indicates that the controlled component's target object or operating environment requires the controlled component to start operating, and then controls the controlled component to enter the start state. The main controller, after receiving the component status data uploaded in real time by the slave controller, can also follow the same pattern as in automatic control mode, that is, issue the component remote control start command when the component status data meets the component start conditions. The consistency of the judgment conditions will not be elaborated further.
[0053] Furthermore, in another embodiment, the manner in which the component status data reaches the preset activation threshold can be determined based on the type of the controlled component. Specifically, the type of controlled component may include a forward triggering type or a reverse triggering type. The following explanation uses a heating component and a heat dissipation component within a battery swapping cabinet as examples of controlled components that heat and dissipate heat from the rechargeable battery. Since the heating component raises the temperature of the target object, it can be understood as a forward triggering type, and the way the component status data reaches the preset activation threshold corresponds to the component status data being greater than the preset activation threshold. Conversely, since the heat dissipation component lowers the temperature of the target object, it can be understood as a reverse triggering type, and the way the component status data reaches the preset activation threshold corresponds to the component status data being less than the preset activation threshold.
[0054] Step 600: When the component shutdown condition is met or a component remote shutdown command is received, control the controlled component to enter the shutdown state; both the component remote start command and the component remote shutdown command are issued by the main controller based on the component status data.
[0055] Specifically, the component shutdown condition can be either the component shutdown condition in automatic control mode or the component shutdown condition in remote control mode. For example, the component shutdown condition in automatic control mode could be that communication with the main controller has been lost, or that after receiving a remote control start command for the component, no remote control shut-down command has been received for an extended period. The component shutdown condition in remote control mode could be that the component status data has been restored, or that the controlled component has been running for a certain duration. In addition, the component shutdown condition can also be met by receiving any command or signal that requires the controlled component to be shut down.
[0056] Furthermore, receiving a remote control shutdown command for a component indicates that during normal remote control operation, the main controller determines, based on the real-time received component status data, that the component has recovered to the threshold corresponding to component shutdown, and then issues a remote control shutdown command for the component to the slave controller. The slave controller can then directly control the controlled component to enter the shutdown state.
[0057] It is understandable that after the controller completes step 600, that is, after the component shutdown condition is met or the component remote shutdown command is received, and the controller controls the controlled component to enter the shutdown state, the controller continues to execute step 200 to obtain the component status data of the controlled component in real time, and continues to execute steps 400 to 600 in a loop, thereby realizing the change of the operating state of the controlled component, that is, controlling the controlled component to switch between the open state and the closed state.
[0058] The aforementioned component switch control method acquires the component status data of the controlled component in real time and sends the component status data to the main controller in real time. When the main controller issues a remote control start command for the component, it controls the controlled component to enter the start state. If no remote control start command is received, it can also autonomously control the component to enter the start state when the component status data meets the component start conditions. Then, when the component closes the condition or a remote control close command is received, it controls the component to enter the close state. By controlling both remotely and automatically, it can avoid equipment failures and safety accidents caused by component switch control failure.
[0059] It can be understood that the opening state of the controlled component includes remote control opening state and automatic control opening state. Among them, the remote control opening state is the opening state in which the controlled component is controlled by the master controller to enter the opening state when the remote control mode is issued a remote control opening command; the automatic control opening state is the opening state in which the controlled component is controlled by the slave controller to enter the opening state when the component status data meets the component opening conditions in the automatic control mode.
[0060] In one embodiment, such as Figure 3 As shown, step 400 includes steps 420 to 440. Wherein:
[0061] Step 420: When the component status data meets the component activation conditions, control the controlled component to enter the automatic activation state. This can be understood as the slave controller determining that the component activation conditions are met based on the component status data and controlling the controlled component to enter the activation state; in this state, the controlled component enters the automatic activation state. In this state, the slave controller can still continue to control the operation of the controlled component based on the component status data.
[0062] Step 440: Upon receiving a remote control start command for a component, control the controlled component to enter the remote control start state. This can be understood as the slave controller controlling the controlled component to enter the start state based on the received remote control start command. In this state, the master controller directly controls the on / off timing of the controlled component, while the slave controller merely acts as the actuator.
[0063] It is understood that when the controlled component is in a remote-controlled on state, the system is in remote-controlled mode, and the master controller issues commands which are executed by the slave controller to control the state changes of the controlled component. When the controlled component is in a self-controlled on state, the system is in self-controlled mode, and the slave controller itself controls the state changes of the controlled component. Further, in one embodiment, after controlling the controlled component to enter the self-controlled on state in step 420, the method further includes: if a remote-controlled on command is received, controlling the controlled component to switch to the remote-controlled on state. That is, when the controlled component is in a self-controlled on state and the system is in self-controlled mode, if a remote-controlled on command is received from the master controller, the controlled component's on state can be directly switched to the remote-controlled on state, and the system switches to remote-controlled mode. The master controller issues commands which are executed by the slave controller to control the state changes of the controlled component.
[0064] In one embodiment, after the controlled component enters the remote control on state in step 440, the component shutdown condition includes: determining that communication with the main controller has been lost.
[0065] Specifically, after the controlled component enters the remote-controlled on state under the control of the slave controller, if the slave controller determines that communication with the master controller has been lost, it determines that the component's shutdown condition has been met and controls the controlled component to enter the shutdown state. The method by which the slave controller determines that communication with the master controller has been lost is not unique and can be determined based on the communication method between the master and slave controllers. For example, the slave controller could send a heartbeat packet to the master controller; if it receives a return packet from the master controller, it determines that communication with the master controller has not been lost; if it does not receive a return packet from the master controller, it determines that communication with the master controller has been lost. Alternatively, the master controller could send a heartbeat packet to the slave controller; if the slave controller receives the heartbeat packet from the master controller within a preset heartbeat time interval, it determines that communication with the master controller has not been lost; if it does not receive a heartbeat packet from the master controller within the preset heartbeat time interval, it determines that communication with the master controller has been lost.
[0066] In one embodiment, after the controlled component enters the remote control on state in step 440, the component shut-off condition includes: after receiving the component remote control on command, no component remote control off command is received within a preset remote control duration.
[0067] Specifically, when the controlled component enters the remote-controlled on state under the control of the slave controller, the slave controller starts a timer. If the timer reaches the preset remote-controlled duration and no remote-controlled off command is received from the master controller, the component is deemed to have met the off condition, and the slave controller is controlled to enter the off state. The preset remote-controlled duration can be understood as the maximum operating time that the controlled component can run in remote-controlled mode. If this maximum operating time is exceeded and the master controller has not yet issued a remote-controlled off command, the slave controller can directly control the controlled component to stop operating, thus avoiding the risk of failure due to control malfunction.
[0068] In one embodiment, after the controlled component enters the self-controlled on state in step 420, the component shutdown conditions include: the component status data is restored to a preset shutdown threshold and the duration exceeds the preset shutdown duration.
[0069] Specifically, after the controlled component enters the self-controlled on state under the control of the controller, if the component's status data recovers to the preset shutdown threshold and the duration exceeds the preset shutdown duration, it is determined that the component shutdown condition has been met, and the controlled component is controlled to enter the shutdown state. The preset shutdown threshold is the component's status data at the point when the controlled component has reached its stopping point, indicating that the object or environment in which the controlled component operates no longer requires its operation and can be shut down. The preset shutdown threshold can be selected based on historical experience, as long as it accurately controls the controlled component to enter the shutdown state at the required moment. The preset shutdown duration is also set to prevent the component's status data from being falsely triggered. A suitable duration can be set according to the actual application scenario to filter out false triggers caused by background noise or other factors affecting the instantaneous recovery of the component's status data to the preset shutdown threshold, ensuring that the controlled component accurately enters the shutdown state at the required time.
[0070] In one embodiment, after the controlled component enters the self-controlled on state in step 420, the component shutdown condition includes: the running time of the controlled component reaches the preset self-controlled duration.
[0071] Specifically, when the controlled component enters the self-controlled on state under the control of the slave controller, the slave controller starts a timer. If the timer reaches the preset self-controlled duration and the component's status data has not recovered to the preset shutdown threshold, and the duration exceeds the preset shutdown duration, the slave controller directly determines that the component shutdown condition is met and controls the controlled component to enter the shutdown state. The preset self-controlled duration can be understood as the maximum operating time that the controlled component can run in self-controlled mode. If this maximum operating time is exceeded and the component's status data has not recovered, the slave controller can directly control the controlled component to stop operating, thus eliminating control failures caused by component status data acquisition faults and avoiding the risk of equipment failure. The preset self-controlled duration can be set to be the same as the preset remote control duration, or it can be set to a different duration.
[0072] In one embodiment, the controllable component can enter the self-controlled on state in step 420, or it can enter the remote control on state in step 440. The component shutdown condition also includes receiving a component prohibition control command.
[0073] Specifically, the component disabling control command is a configuration command issued by the master controller, used to configure the enable state of the controlled component. It can be understood that only after the master controller issues a component enabling control command, configuring the enabled state of the controlled component to allow control, can the controlled component enter any open or closed state under the control of the slave controller. Furthermore, once the controlled component enters any open state under the control of the slave controller, if the slave controller receives a component disabling control command configured by the master controller, it will directly control the controlled component to enter the closed state.
[0074] In one embodiment, the controllable component can enter the self-controlled on state in step 420, or it can enter the remote control on state in step 440. The component shutdown condition also includes receiving an abnormal state signal.
[0075] Specifically, an abnormal status signal is a signal issued by the equipment when it triggers the operation of other components that must be shut down. The specific scenario is not unique and can be set according to actual needs. For example, it could be an abnormal status signal triggered by a fire fault or an over-temperature fault. In essence, when a controlled component enters any open state under the control of the controller, if the controller receives an abnormal status signal from any device within the equipment, it directly controls the controlled component to enter the shut-down state to avoid the risk of equipment failure.
[0076] In one embodiment, such as Figure 4 As shown, a component switching control method is provided.
[0077] Specifically, when the component is in the off state and the parameters are configured to allow component control, the component can be remotely turned on directly upon receiving a command to turn it on. Then, when the component is currently in the remote-controlled on state, at least the following five situations can cause the component to exit the remote-controlled on stage, i.e., remotely turn off the component:
[0078] 1. Modify the parameter configuration to disable component control;
[0079] 2. Received remote control command to shut down the component;
[0080] 3. Communication with the host computer is lost;
[0081] 4. The remote control activation timeout period exceeds 60 minutes without receiving a remote control command to shut down the component;
[0082] 5. Triggered the working state of other components that must be shut down.
[0083] Furthermore, when a component is in the off state and its parameters are configured to allow component control, the component can also be automatically turned on if any component status parameter meets the component turn-on condition. For example, the analog value of sampling point 1 in the component status parameters is lower than (or higher than) the threshold x1 for x seconds, or the analog value of sampling point n in the component status parameters is lower than (or higher than) the threshold x. n And this continues for xs. Then, when the current component is in the self-controlled on state, at least the following six situations can cause the component to exit the self-controlled on stage, i.e., the self-controlled component will shut down:
[0084] 1. Modify the parameter configuration to disable component control;
[0085] 2. Received remote control command to shut down the component;
[0086] 3. All simulated values at the collection points are restored to the threshold y. x Within and continuously for ys;
[0087] 4. The automatic start-up timeout period exceeds 30 minutes;
[0088] 5. Change the control mode to remote control mode in the parameter configuration.
[0089] 6. Triggered the operation of other components that must be shut down, such as fire suppression, overheating, or other fault conditions.
[0090] In one embodiment, such as Figure 5 As shown, taking the heating component that heats the rechargeable battery in the battery swapping cabinet as an example, the component switching control method provided in this application is explained, which realizes the switching control of the heating component of the rechargeable battery in the charging compartment.
[0091] The component status parameters include the charging compartment temperature and the battery cell temperature. The charging compartment temperature can be obtained by adding a temperature sensing element inside the charging compartment, and the battery cell temperature can be obtained by communicating with the rechargeable battery. The main controller can issue configuration commands in real time to configure the enable status of the heating component. If heating is enabled, heating is allowed to start; otherwise, heating is disabled.
[0092] It is understandable that there can be multiple conditions for the heating component to turn on. For example, it can be set to have battery communication in place and the battery cell temperature below 0°C for more than 1 minute; or it can be set to have the charging case temperature below 5°C for more than 1 minute. Correspondingly, there can also be multiple conditions for the component to turn off in the automatic control mode. For example, it can be set to have the battery cell temperature above 10°C for more than 30 seconds; or it can be set to have the charging case temperature above 15°C for more than 30 seconds.
[0093] Specifically, when the heating element is off and heating enable is allowed, and no heating start command is received, the system enters automatic control mode. In automatic control mode, if no fire fault occurs and heating condition one or heating condition two is triggered, the heating function is activated. After the heating function is activated in automatic control mode, the heating function will deactivate if the waiting enable is disabled, the operating mode is configured to remote control only, a fire fault occurs (an abnormal status signal is received), condition one and condition two are simultaneously released, or the automatic control mode has been continuously activated for 4 hours. Furthermore, during the waiting period for automatic heating to shut down, if a remote control heating start command is received from the main controller, the system automatically switches to remote control mode.
[0094] Furthermore, when the heating element is in the off state and heating enable is allowed, heating is directly activated upon receiving a remote control command to turn on heating from the main controller. If, after the heating function is activated in remote control mode, heating is turned off if heating enable is configured to be disabled, a heating off command is received from the main controller, communication with the main controller is lost, or remote control mode has been in effect for 5 hours, then heating is turned off.
[0095] In one embodiment, such as Figure 6 As shown, taking the fire-fighting component in the battery swapping cabinet used to start fire sprinklers as an example, the component switch control method provided in this application is explained, which realizes the switch control of the fire-fighting component of the charging battery in the charging compartment.
[0096] The component status parameters can include charging compartment temperature, battery cell temperature, and battery PCB board temperature. The main controller can issue configuration commands in real time to configure the enabling status of fire protection components. If fire protection is enabled, fire sprinkler operation is allowed; otherwise, fire sprinkler operation is prohibited.
[0097] It is understandable that there can be multiple activation conditions for fire-fighting components. For example, the first trigger condition for water fire-fighting is that the battery communication is in place and the battery cell temperature is greater than 90°C for more than 15 seconds; the second trigger condition is that the charging compartment temperature is greater than 65°C for more than 5 seconds; and the third trigger condition is that the battery PCB board temperature is greater than 80°C for more than 5 seconds. Furthermore, the activation conditions for fire-fighting components can also be set based on the temperature rise per unit time. For example, the fourth trigger condition is that the battery cell temperature rise is greater than 30°C within 1 minute, the battery cell temperature is greater than or equal to 70°C, and the duration is greater than 15 seconds; and the fifth trigger condition is that the charging compartment temperature rise is greater than 30°C within 1 minute, the charging compartment temperature is greater than or equal to 65°C, and the duration is greater than 15 seconds. Correspondingly, the corresponding component deactivation conditions in automatic control mode, i.e., the water fire-fighting release conditions, can also be set to a battery cell temperature less than 30°C, a battery PCB board temperature less than 30°C, and a charging compartment temperature less than 30°C for more than 30 seconds.
[0098] Specifically, when the fire-fighting components are in the off state and the fire-fighting enable is enabled, and no command to activate the water fire-fighting system is received, the system enters automatic control mode. In automatic control mode, if the water tank level is normal and the system is waiting for either fire-fighting condition one, two, three, four, or five to be triggered, the water fire-fighting function is activated. After the water fire-fighting function is activated in automatic control mode, if the waiting enable is disabled, the operating mode is configured to remote control only, or an abnormal water level or flow rate occurs (an abnormal status signal is detected), or the water fire-fighting release condition is triggered, or the automatic control mode water fire-fighting system has been continuously activated for 30 minutes, the water fire-fighting function is deactivated. Furthermore, during the waiting period for the automatic water fire-fighting system to deactivate, if a remote command to activate the water fire-fighting system is received from the main controller, the system automatically switches to remote control mode.
[0099] Furthermore, when the fire-fighting components are in the off state and the fire-fighting enable is allowed, upon receiving a remote control command to activate the water fire-fighting system from the main controller, the water fire-fighting function is directly activated, i.e., the water pump starts spraying water. If, after the water fire-fighting function is activated in remote control mode, the water fire-fighting enable is configured to be disabled, or there is an abnormal water level or flow, or a command to shut off the water fire-fighting system is received from the main controller, or communication with the main controller is lost, or the remote control mode has lasted for 60 minutes, the water fire-fighting system is shut down.
[0100] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0101] Based on the same inventive concept, this application also provides a component switch control device for implementing the component switch control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more component switch control device embodiments provided below can be found in the limitations of the component switch control method described above, and will not be repeated here.
[0102] In one embodiment, such as Figure 7 As shown, a component switch control device is provided, including: a data acquisition module 710, an on control module 720, and an off control module 730, wherein:
[0103] The data acquisition module 710 is used to acquire the component status data of the controlled component in real time and send the component status data to the main controller;
[0104] The control module 720 is used to control the controlled component to enter the open state when the component status data meets the component opening conditions or when a remote control opening command for the component is received.
[0105] The shutdown control module 730 is used to control the controlled component to enter the shutdown state when the component shutdown conditions are met or when a component remote shutdown command is received; both the component remote start command and the component remote shutdown command are issued by the main controller based on the component status data.
[0106] In one embodiment, the control module 720 is further configured to control the controlled component to enter the open state when the component status data reaches a preset open threshold and the duration exceeds a preset open duration.
[0107] In one embodiment, the opening state of the controlled component includes a remote opening state and an automatic opening state; the opening control module 720 is further configured to control the controlled component to enter the automatic opening state when the component status data meets the component opening conditions; and to control the controlled component to enter the remote opening state when a remote opening command is received.
[0108] In one embodiment, the shutdown control module 730 is also used to control the controlled component to enter a shutdown state when it is determined that communication with the main controller has been lost.
[0109] In one embodiment, the shut-off control module 730 is further configured to control the controlled component to enter a shut-off state if a remote control command to turn on the component is received but no remote control command to turn off the component is received within a preset remote control duration.
[0110] In one embodiment, the shutdown control module 730 is further configured to control the controlled component to enter a shutdown state when the component status data recovers to a preset shutdown threshold and the duration exceeds the preset shutdown duration.
[0111] In one embodiment, the shut-off control module 730 is further configured to control the controlled component to enter a shut-off state when the running time of the controlled component reaches a preset self-control duration.
[0112] In one embodiment, the shutdown control module 730 is also used to control the controlled component to enter a shutdown state when a component control prohibition command or an abnormal state signal is received.
[0113] In one embodiment, the control module 720 is further configured to, after controlling the controlled component to enter the self-controlled opening state, if a remote control opening command for the component is received, control the controlled component to switch to the remote control opening state.
[0114] Each module in the aforementioned component switch control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0115] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.
[0116] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0117] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described above.
[0118] In one embodiment, such as Figure 1 As shown, a component switching control system is provided, including a main controller 104, a slave controller 102 and a status data acquisition module. The slave controller 102 is connected to the main controller 104, the status data acquisition module and the controlled component 106. The slave controller 102 is used to control the switching of the controlled component according to the above-described component switching control method.
[0119] Specifically, the controller 102 acquires the component status data of the controlled component 106 in real time and sends the component status data to the main controller 104. When the component status data meets the component opening condition or a remote control opening command is received, the controller controls the controlled component 106 to enter the opening state. When the component closing condition is met or a remote control closing command is received, the controller controls the controlled component 106 to enter the closing state. Both the remote control opening and closing commands are issued by the main controller 104 based on the component status data. By switching between remote control and automatic control to achieve the on / off control of the controlled component, equipment failures and safety accidents caused by component on / off control failures can be avoided.
[0120] The status data acquisition module is used to collect the status data of the controlled component 106. The specific hardware can be set according to the type of the controlled component 106 and the status data to be collected. For example, when the controlled component is a heating component that heats the rechargeable battery in the battery swapping cabinet, the component status parameters include the charging compartment temperature and the battery cell temperature. The status data acquisition module can include a temperature sensing element and a battery management unit. The charging compartment temperature can be obtained by adding a temperature sensing element inside the charging compartment, and the battery cell temperature can be obtained by communicating with the battery management unit in the rechargeable battery.
[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A component switch control method, applied to a slave controller in a component switch control system, wherein the slave controller is connected to a master controller in the component switch control system and is configured to free mode by a mode configuration command issued by the master controller; Its features are, The method includes: The system acquires the component status data of the controlled component in real time and sends the component status data to the main controller. When the component status data meets the component opening conditions, the controlled component is controlled to enter the self-controlled opening state; when a remote control opening command is received, the controlled component is controlled to enter the remote control opening state. When the component shutdown condition is met or a component remote shutdown command is received, the controlled component is controlled to enter the shutdown state, and the process returns to the step of acquiring the component status data of the controlled component in real time; both the component remote start command and the component remote shutdown command are issued by the main controller based on the component status data; After the controlled component enters the self-controlled opening state, if a remote control opening command is received from the component, the controlled component is switched to enter the remote control opening state. After the controlled component enters the remote control on state, the component shut-off conditions include: determining that communication with the main controller is lost, or after receiving the component remote control on command, no component remote control off command is received for a preset remote control duration, wherein the preset remote control duration represents the longest running time that the controlled component can run in remote control mode; After the controlled component enters the self-controlled on state, the component shut-off conditions include: the running time of the controlled component reaches a preset self-controlled duration; After the controlled component enters the self-controlled on state, or after the controlled component enters the remote control on state, the component shutdown conditions include: receiving a component control prohibition command or an abnormal state signal. The component control prohibition command is used to configure the enable state of the controlled component, and the abnormal state signal is a signal issued when other working states that must be turned off by the controlled component are triggered.
2. The method according to claim 1, characterized in that, The component status data satisfying the component activation conditions include: the component status data reaching a preset activation threshold and the duration exceeding a preset activation duration.
3. The method according to claim 2, characterized in that, The controlled component can be either a forward-triggered type or a reverse-triggered type; When the controlled component is of the positive trigger type, the component status data reaches a preset activation threshold, including: the component status data is greater than the preset activation threshold; When the controlled component is of the reverse trigger type, the component status data reaching the preset activation threshold includes: the component status data being less than the preset activation threshold.
4. The method according to claim 1, characterized in that, After the controlled component enters the self-controlled on state, the component shutdown condition further includes: The component status data is restored to the preset shutdown threshold and the duration exceeds the preset shutdown duration.
5. The method according to claim 1, characterized in that, The abnormal status signal is an abnormal status signal issued when a fire fault is triggered, or an abnormal status signal issued when an over-temperature fault is triggered.
6. The method according to claim 1, characterized in that, The determination of communication loss with the main controller includes: The controller sends a heartbeat packet to the main controller and does not receive a return packet from the main controller within a preset timeout period.
7. The method according to any one of claims 1 to 5, characterized in that, The determination of communication loss with the main controller includes: The slave controller does not receive a heartbeat packet from the master controller within a preset heartbeat time interval.
8. A component switch control device, applied to a slave controller in a component switch control system, wherein the slave controller is connected to a master controller in the component switch control system and is configured to a free mode by a mode configuration command issued by the master controller; Its features are, The device includes: The data acquisition module is used to acquire the component status data of the controlled component in real time and send the component status data to the main controller; The control module is used to control the controlled component to enter the self-controlled opening state when the component status data meets the component opening conditions; and to control the controlled component to enter the remote opening state when a remote opening command is received. The shutdown control module is used to control the controlled component to enter the shutdown state when the component shutdown conditions are met or a remote shutdown command is received, and to call the data acquisition module to perform the step of real-time acquisition of the component status data of the controlled component; both the remote start command and the remote shutdown command are issued by the main controller based on the component status data. The opening control module is also used to control the controlled component to switch to the remote opening state after receiving a remote opening command from the component after the controlled component has entered the self-controlled opening state; The shutdown control module is further configured to, after the controlled component enters the remote control on state, determine that communication with the main controller has been lost, or after receiving a component remote control on command, if no component remote control off command is received within a preset remote control duration, control the controlled component to enter the shutdown state, and call the data acquisition module to execute the step of real-time acquisition of component status data of the controlled component; the preset remote control duration represents the longest running time that the controlled component can run in remote control mode; The shutdown control module is further configured to, after controlling the controlled component to enter the self-controlled on state, control the controlled component to enter the shutdown state when the running time of the controlled component reaches a preset self-controlled duration; and after controlling the controlled component to enter the self-controlled on state, or after controlling the controlled component to enter the remote control on state, receive a component control prohibition command or an abnormal state signal, and control the controlled component to enter the shutdown state. The component control prohibition command is used to configure the enable state of the controlled component, and the abnormal state signal is a signal issued when other working states that must shut down the controlled component are triggered.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A component switching control system, characterized in that, It includes a main controller, a slave controller, and a status data acquisition module. The slave controller is connected to the main controller, the status data acquisition module, and the controlled component. The slave controller is used to implement the switching control of the controlled component according to the component switching control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent short message temperature switch with switchable control mode
CN102662386A
Method, device, equipment and system for controlling wireless network to be switched on / off
CN103686963A
Shutdown control method and device, electronic equipment and storage medium
CN112781245A
Filtering equipment control system and method
CN115199952A