CN115343980A - Device control method, device, energy storage device and storage medium - Google Patents

Device control method, device, energy storage device and storage medium Download PDF

Info

Publication number
CN115343980A
CN115343980A CN202210833718.3A CN202210833718A CN115343980A CN 115343980 A CN115343980 A CN 115343980A CN 202210833718 A CN202210833718 A CN 202210833718A CN 115343980 A CN115343980 A CN 115343980A
Authority
CN
China
Prior art keywords
state
communication
physical
connection state
place
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210833718.3A
Other languages
Chinese (zh)
Inventor
陈熙
幸云辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecoflow Technology Ltd
Original Assignee
Ecoflow Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecoflow Technology Ltd filed Critical Ecoflow Technology Ltd
Priority to CN202210833718.3A priority Critical patent/CN115343980A/en
Publication of CN115343980A publication Critical patent/CN115343980A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

The application relates to a device control method, a device, an energy storage device and a storage medium, wherein the method comprises the following steps: acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state; acquiring a communication connection state between the equipment and external equipment, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state; and updating the communication connection state to the communication non-bit state when the physical connection state is the physical non-bit state and the communication connection state is the communication bit state. When the physical connection state is the physical out-of-place state and the communication connection state is the communication in-place state, the communication connection state is updated to be the communication out-of-place state, so that the abnormal phenomenon of equipment starting caused by starting judgment by using the last delayed communication connection state and the current physical connection state is avoided, and the reliability and the stability of the equipment are improved.

Description

Device control method, device, energy storage device and storage medium
Technical Field
The present application relates to the field of device control, and in particular, to a device control method, a device, an energy storage device, and a storage medium.
Background
In the process of connecting part of equipment with the equipment, the target equipment needs to determine whether to start up according to the access condition of the external equipment so as to avoid potential safety accidents caused by the fact that the external equipment is not normally accessed to start up. The conventional equipment is easy to have the problem of incapability of starting up in the starting-up process, particularly under the condition of repeated starting up and shutting down, so that the equipment is abnormal in starting up.
Therefore, how to solve the abnormal boot of the device becomes a problem which needs to be solved urgently.
Disclosure of Invention
The application provides a control method and device of equipment, energy storage equipment and a storage medium, and solves the problem of abnormal starting of the equipment.
In a first aspect, the present application provides a method for controlling a device, the method including:
acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state;
acquiring a communication connection state between the equipment and the external equipment, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state;
and when the physical connection state is a physical not-in-bit state and the communication connection state is a communication in-bit state, updating the communication connection state to a communication not-in-bit state.
In a second aspect, the present application further provides an apparatus, comprising an apparatus body and a controller; the controller is configured to execute the computer program and to implement the control method of the apparatus as described above when executing the computer program.
In a third aspect, the present application further provides an energy storage device, where the energy storage device includes a battery module, a charge and discharge circuit, a processor, and a memory;
the charging and discharging circuit is used for charging or discharging the battery module after the energy storage equipment is started;
the memory for storing a computer program;
the processor is configured to execute the computer program and to implement the control method of the apparatus as described above when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the method of controlling the apparatus as described above.
The application discloses a device control method, a device, an energy storage device and a storage medium, wherein the physical connection state between the device and an external device can be obtained to know whether the physical connection state between the device and the external device is in a physical in-place state or a physical out-of-place state; by acquiring the communication connection state between the equipment and the external equipment, whether the communication connection state between the equipment and the external equipment is in a communication in-place state or a communication out-of-place state can be known; when the physical connection state is the physical out-of-place state and the communication connection state is the communication in-place state, the communication connection state is updated to be the communication out-of-place state, so that the abnormal phenomenon of equipment starting caused by starting judgment by using the last delayed communication connection state and the current physical connection state is avoided, and the reliability and the stability of the equipment are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an apparatus provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an energy storage device according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of a method for controlling a device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a physical connection state and a communication connection state in a control method of a device according to an embodiment of the present application;
fig. 5 is a schematic diagram of updating a communication connection state according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flowcharts shown in the figures are illustrative only and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
The embodiment of the application provides a device control method, a device, an energy storage device and a storage medium. The control method of the equipment can be applied to the equipment, and the communication connection state is updated to the communication off-site state by acquiring the physical connection state and the communication connection state between the equipment and the external equipment when the physical connection state is the physical off-site state and the communication connection state is the communication on-site state, so that the situation that the last delayed communication connection state and the current physical connection state are used for carrying out starting judgment is avoided, and the problem of abnormal starting of the equipment is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an apparatus provided in an embodiment of the present application. The apparatus 100 comprises a controller 101, wherein the controller 101 is configured to execute a method for controlling the apparatus provided in any of the embodiments of the present application.
Wherein the device 100 may be an energy storage device. The controller 101 may be a Micro-controller Unit (MCU), but may be other processors. It is understood that the device 100 may be any other device that requires hardware and software presence at power-on.
Illustratively, the controller 101 obtains a physical connection state between the device 100 and the external device, where the physical connection state includes a physical on-bit state and a physical off-bit state. The controller 101 acquires a communication connection state between the apparatus 100 and an external apparatus, the communication connection state including a communication-in-place state and a communication-out-of-place state. When the physical connection state is the physical not-in-bit state and the communication connection state is the communication in-bit state, the controller 101 updates the communication connection state to the communication not-in-bit state.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an energy storage device according to an embodiment of the present disclosure. The energy storage device 1000 may include a processor 1001, a memory 1002, a charging and discharging Circuit 1003, and a battery module 1004, wherein the processor 1001, the memory 1002, the charging and discharging Circuit 1003, and the battery module 1004 may be connected through a bus, such as an I2C (Inter-integrated Circuit) bus or any other suitable bus.
The memory 1002 may include a storage medium and an internal memory, among others. The storage medium may be a nonvolatile storage medium or a volatile storage medium. The storage medium may store an operating system and a computer program. The internal memory provides an environment for running a computer program in a storage medium, the computer program comprising program instructions that, when executed, cause the processor 1001 to execute a method for controlling an apparatus according to any one of the embodiments of the present application.
The charging and discharging circuit 1003 is configured to charge or discharge the battery module 1004 after the energy storage device 1000 is powered on. The specific circuit configuration of the charge/discharge circuit 1003 is not limited herein.
For example, when the external device connected to the energy storage device 1000 is an electric device, the charging and discharging circuit 1003 may discharge the battery module 1004 to supply power to the external device. When the external device connected to the energy storage device 1000 is a power supply device, the charging and discharging circuit 1003 charges the battery module 1004 according to the electric energy input by the power supply device.
Processor 1001 is used, among other things, to provide computational and control capabilities to support the operation of energy storage device 1000.
The Processor 1001 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In an embodiment, the processor 1001 is configured to run a computer program stored in the memory 1002 and when executing the computer program, to implement the following steps:
acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state; acquiring a communication connection state between the equipment and external equipment, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state; and updating the communication connection state to the communication non-bit state when the physical connection state is the physical non-bit state and the communication connection state is the communication bit state.
In one embodiment, the processor 1001 is further configured to implement:
when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting-up instruction; the boot instruction is used to control the device to boot.
In one embodiment, the processor 1001 is further configured to implement:
receiving a first control instruction, wherein the first control instruction is used for indicating equipment to be started; within a preset time length of receiving the first control instruction, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting instruction; the boot instruction is used to control the device to boot.
In one embodiment, when the processor 1001 generates the boot instruction when the physical connection state is the physical in-place state and the communication connection state is the communication in-place state, it is configured to:
when the physical connection state is a physical in-place state, acquiring a physical identifier of the physical in-place state; when the communication connection state is a communication in-place state, acquiring a communication identifier of the communication in-place state; and when the physical identification is matched with the communication identification, generating a starting instruction.
In one embodiment, the processor 1001 is further configured to implement:
and when the physical identification and the communication identification do not match, updating the communication connection state into a communication off-bit state.
In one embodiment, the processor 1001 is further configured to implement:
and clearing the first control instruction when the physical connection state is the physical out-of-place state or the communication connection state is the communication out-of-place state within the preset time length of receiving the first control instruction.
In one embodiment, the processor 1001 is further configured to implement:
and when the physical connection state is a physical out-of-position state or the communication connection state is an out-of-position state, generating a shutdown instruction, wherein the shutdown instruction is used for controlling the equipment to be shut down.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict. The device control method provided by the embodiment of the application can be applied to a scene that the device is connected with the external device, and the execution main body is the device.
Fig. 3 shows a schematic flowchart of a control method of a device provided in an embodiment of the present application. As shown in fig. 3, the control method of the apparatus includes steps S10 to S30.
Step S10, acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state.
In step S10, the physical connection state is used to represent the electrical connection between the device and the external device. The physical connection state is a physical in-place state, which indicates that an electrical connection is established between the device and the external device. The physical connection state is a physical off-bit state, which indicates that no electrical connection is established between the device and the external device.
It should be noted that the device and the external device may be electrically connected through the physical connection port. That is, the external device is a device capable of establishing a physical connection relationship with the device.
For example, the physical connection state between the device and the external device may be detected in real time, and the physical connection state includes a physical on-bit state and a physical off-bit state. Wherein the physical connection state can be determined by the level signal. For example, a high level indicates that the physical connection state is a physical on-bit state, and a low level indicates that the physical connection state is a physical off-bit state.
Step S20, acquiring a communication connection state between the device and the external device, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state.
In this embodiment, the communication connection state is used to indicate the state of the device performing communication handshake with the external device.
For example, the communication connection state between the device and the external device may be detected in real time, and the communication connection state includes a communication in-place state and a communication out-of-place state. The communication connection state may be an indication state generated after a handshake with the external device is attempted, for example, after the handshake with the external device is successful, the communication connection state is a communication in-place state, and after the handshake with the external device is failed, the communication connection state is a communication out-of-place state.
Based on the above example, as an example, attempting to perform a handshake operation with an external device specifically includes: and sending a handshake request message to the external equipment, if a response message returned by the external equipment according to the handshake request message is received within a certain time, determining that the handshake is successful, and if a response message returned by the external equipment according to the handshake request message is not received within a certain time, determining that the handshake is failed.
As another example, the communication connection state may also be determined by a level signal. For example, a high level indicates that the communication connection state is a communication-in-place state, and a low level indicates that the communication connection state is a communication-out-of-place state.
By acquiring the communication connection state between the device and the external device, whether the communication connection state between the device and the external device is in a communication in-place state or a communication out-of-place state can be known.
And step S30, when the physical connection state is a physical non-bit state and the communication connection state is a communication in-bit state, updating the communication connection state to a communication non-bit state.
Illustratively, the communication connection status is updated to the communication not-in-bit status when it is detected that the physical connection status is the physical not-in-bit status and the communication connection status is the communication in-bit status.
By updating the communication connection state to the communication off-position state when the physical connection state is the physical off-position state and the communication connection state is the communication on-position state, the startup misoperation caused by the fact that the last delayed communication connection state and the current physical connection state are used for startup judgment in the new startup operation process can be avoided, the problem of abnormal startup of the equipment is solved, and the reliability and the stability of the equipment are improved.
To better illustrate the effects of the present embodiment, the following description is made in conjunction with a conventional control method.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a physical connection state and a communication connection state of a device according to an embodiment of the present disclosure. As shown in fig. 4, an instruction generation schematic diagram under a method for executing a power on/off operation by using a conventional control method is shown, where in the conventional method, a power on instruction is generated only by detecting a physical connection bit and a communication connection bit at the same time, and a power off instruction is generated when one of the two bits is not in the position.
Taking the target device as an execution subject, the target device needs to determine whether to start up according to a physical connection state and a communication connection state between the target device and the external device. In fig. 4, the on-bit state is represented by a high level and the off-bit state is represented by a low level regardless of the physical connection state or the communication connection state.
In fig. 4, when it is detected at time T0 that the physical connection state is the physical in-place state and the communication connection state is the communication in-place state, a power-on command is generated. If the electrical connection between the target device and the external device is disconnected at this time, the physical connection state between the target device and the external device is changed from the physical on-bit state to the physical off-bit state. Because the communication connection state is provided with the function of delayed turn-off, the communication connection state is still the communication on-site state. If the physical connection between the target device and the external device is established again, the physical connection state between the target device and the external device is changed from the physical out-of-place state to the physical in-place state at this time, and the communication connection state is still the communication in-place state.
For example, in fig. 4, when the communication bit state of the communication connection state is within the delay time of T1 to T3, if the physical connection state is switched from the physical bit state to the physical not-in-bit state and then to the physical bit state, the physical connection state between the device and the external device at this time is the physical bit state, and the device generates the power-on instruction under the combined action of the physical bit state and the communication bit state corresponding to the last physical bit state.
For another example, in fig. 4, at time T1, the physical connection state is switched from the physical on-bit state to the physical off-bit state, and at time T2, the physical connection state is switched from the physical off-bit state to the physical on-bit state. In the process of repeatedly starting up the device at T2-T4, if the communication in-place state of the communication connection state is switched to the communication out-of-place state because the delay time is over at the time of T3, the device may misjudge that the shutdown operation needs to be executed, thereby causing the abnormal problem of starting up the device when the power is off in the process of starting up the device.
In the embodiment of the present application, when the physical connection state is the physical out-of-place state and the communication connection state is the communication in-place state, the communication connection state is updated to the communication out-of-place state, which can avoid using the last delayed communication connection state and the current physical connection state to perform the power-on determination, solve the problem of abnormal power-on of the target device, that is, solve the problem existing in fig. 4 well.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an update of a communication connection state according to an embodiment of the present disclosure. As shown in fig. 5, in the time period T1 to T2, the physical connection state is the physical off-bit state and the communication connection state is the communication on-bit state, and the level signal corresponding to the communication connection state may be adjusted to the low level.
It can be understood that, in order to avoid the problem that the power-on misjudgment is caused when the communication in-place state of the communication connection state is in the delay time and the physical connection state is switched from the physical in-place state to the physical out-of-place state and then to the physical in-place state, when it is detected that the physical connection state is the physical out-of-place state and the communication connection state is the communication in-place state, the communication connection state is switched from the communication in-place state to the communication out-of-place state, so that the power-on judgment can be performed in the new physical connection state and the new communication connection state after the device is connected with the external device again. In fig. 5, when the communication connection state is switched to the communication off-bit state, there is a certain delay with respect to the change of the physical connection state, and this delay is mainly determined by the response speed of the system, and is only illustrated in the figure.
In some embodiments, the method for controlling a device provided in the embodiments of the present application may further include: when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting-up instruction; the starting instruction is used for controlling the equipment to start.
It should be noted that, in the embodiment of the present application, when the physical connection state is the physical in-place state and the communication connection state is the communication in-place state, the power-on instruction is generated, so that the device is powered on according to the power-on instruction. And when the level signal corresponding to the physical connection state is a high level, determining that the physical connection state is a physical in-place state. And when the level signal corresponding to the communication connection state is in a high level, determining that the communication connection state is in a communication in-place state.
When the physical connection state is determined to be the physical in-place state and the communication connection state is determined to be the communication in-place state, the starting-up instruction is generated, and the equipment can be controlled to be started up according to the starting-up instruction.
In other embodiments, the method for controlling a device provided in this embodiment of the present application may further include: and when the physical connection state is a physical out-of-position state or the communication connection state is an out-of-position state, generating a shutdown instruction, wherein the shutdown instruction is used for controlling the equipment to be shut down.
For example, in a time period from T1 to T2 or a time period from T3 to T4 in fig. 5, when it is detected that the level signal corresponding to the physical connection state is low level or the level signal corresponding to the communication connection state is low level, the shutdown instruction is generated.
When the physical connection state is determined to be the physical off-position state or the communication connection state is determined to be the off-position state, the shutdown instruction is generated, and the device can be controlled to be shut down according to the shutdown instruction.
In some embodiments, the method for controlling a device provided in the embodiments of the present application may further include: receiving a first control instruction, wherein the first control instruction is used for indicating equipment to be started; within a preset time length of receiving the first control instruction, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting instruction; the boot instruction is used for controlling the device to boot.
For example, the first control instruction may be generated according to a triggering operation of a user on a power-on key on the device, and is used to instruct the device to power on.
It should be noted that, in the embodiment of the present application, a user may implement power on through a power on button on a device. For example, the user may trigger a power-on key to start the device.
In some embodiments, when the trigger operation of the power-on key is detected, a first control instruction is generated according to the trigger operation. Then, within a preset time length of receiving the first control instruction, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting instruction; and then executing the starting operation according to the starting instruction. The preset time period may be set according to actual conditions, and the specific value is not limited herein.
Illustratively, within a preset time length when the first control instruction is received, when it is detected that the physical connection state is the physical in-place state and the communication connection state is the communication in-place state, a power-on instruction is generated. For example, within a preset time period during which the first control instruction is received, when it is detected that the level signal corresponding to the physical connection state is at a high level and the level signal corresponding to the communication connection state is at a high level, a power-on instruction is generated.
By receiving the first control instruction and generating the starting-up instruction when the physical connection state is determined to be the physical in-place state and the communication connection state is determined to be the communication in-place state within the preset duration of receiving the first control instruction, the equipment can be started up according to the operation of triggering the starting-up key by a user.
In other embodiments, the method for controlling a device provided in this embodiment may further include: and clearing the first control instruction when the physical connection state is the physical out-of-place state or the communication connection state is the communication out-of-place state within the preset time length of receiving the first control instruction.
Illustratively, the first control instruction is cleared when it is detected that the physical connection status is a physical not-in-bit status or the communication connection status is an not-in-bit status. And clearing the first control command when detecting that the level signal corresponding to the physical connection state is low level or the level signal corresponding to the communication connection state is low level.
The first control instruction is cleared when the physical connection state is determined to be the physical off-position state or the communication connection state is determined to be the communication off-position state within the preset duration of receiving the first control instruction, so that the equipment can be prevented from being started, and further the equipment can be prevented from being abnormally powered off in the starting process.
In some embodiments, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating the boot instruction may include: when the physical connection state is a physical in-place state, acquiring a physical identifier of the physical in-place state; when the communication connection state is a communication in-place state, acquiring a communication identifier of the communication in-place state; and generating a starting instruction when the physical identification is matched with the communication identification.
As one example, the physical identification is used to identify the physical uniqueness of the external device and the communication identification is used to identify the communication uniqueness of the external device. For example, the physical identifier may be at least one of an input interface identifier, an output interface identifier, and a physical address of the external device; accordingly, the communication identifier may be at least one of an input interface identifier, an output interface identifier, and a physical address of the external device. For another example, the communication identifier may be a mapping identifier of a physical identifier, such as at least one of a mapping number of an input interface identifier, a mapping number of an output interface identifier, and a mapping number of a physical address of the external device.
Illustratively, when the first external device is accessed, and when it is detected that the level signal corresponding to the physical connection state is a high level, a physical identifier corresponding to the physical in-place state, such as an interface address 001 of the first external device, is obtained. When detecting that the level signal corresponding to the communication connection state is a high level, acquiring a communication identifier corresponding to the communication in-place state, such as a mapping number A1 of the first external device. The interface address 001 of the first external device is used as a physical identifier and is matched with the mapping number A1 of the first external device, so that a starting instruction is generated.
By acquiring the physical identifier of the physical in-place state and the communication identifier of the communication in-place state and generating the starting instruction when the physical identifier is matched with the communication identifier, the hardware and the communication in-place mixed use caused by the fact that different external devices are sequentially connected with the device at the same interface can be avoided, and the device is triggered to start by mistake.
In some embodiments, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating the boot instruction may further include: when the physical identification is not matched with the communication identification, a new physical identification and a new communication identification are obtained again for comparison; and when the new physical identification is matched with the new communication identification, generating a starting instruction.
Based on the above example, as another example, after the first external device is disconnected, the second external device is connected, and when it is detected that the level signal corresponding to the physical connection state is at a high level, the physical identifier corresponding to the physical on-site state is obtained, and it is assumed that the physical identifier obtained at this time is the interface address 002 of the second external device. And meanwhile, acquiring a communication connection state, acquiring a communication identifier of external equipment in communication connection when the communication connection state is a communication in-place state, and if the communication identifier at the moment is A2, not matching the physical identifier with the communication identifier and not generating a starting instruction. And if the obtained identifications can not be matched within the preset time, the received starting control instruction is clear.
As another example, the physical identification may also be used to identify the uniqueness of the physical presence state and the communication identification may also be used to identify the uniqueness of the communication presence state. For example, the physical identifier may be a cycle number or a cycle number of the physical in-place state, and may also be a time when the physical in-place state is generated; the communication identification can be a cycle number or cycle number of the communication bit state, and can also be the time when the communication bit state is generated.
Illustratively, when it is detected that the level signal corresponding to the physical connection state is at a high level, a physical identifier corresponding to the physical on-site state, for example, identifier a, is obtained. When the level signal corresponding to the communication connection state is detected to be at a high level, a communication identifier corresponding to the communication in-place state, for example, an identifier B, is acquired.
For example, when the identifier a is a cycle number and the identifier B is a cycle number, if the identifier a is the same as the identifier B, the boot instruction may be generated. For another example, when the identifier a is the time when the physical presence state is generated and the identifier B is the time when the communication presence state is generated, if the identifier a and the identifier B are the same, the boot instruction may be generated.
By acquiring the physical identifier of the physical in-place state and the communication identifier of the communication in-place state and generating the starting instruction when the physical identifier is matched with the communication identifier, the starting instruction can be generated according to the physical in-place state and the communication in-place state in the same period, and the starting instruction generated by using the last communication in-place state and the current physical in-place state is avoided, so that starting misjudgment is avoided.
In other embodiments, the method for controlling a device provided in this embodiment may further include: and when the physical identification and the communication identification do not match, updating the communication connection state into a communication off-bit state.
Illustratively, the communication connection status is updated to a communication not-in-bit status when it is determined that the physical identity and the communication identity do not match. For example, when it is determined that the identity a and the identity B do not match, the communication connection state is switched from the communication-in-bit state to the communication-out-of-bit state.
When the physical identification and the communication identification are not matched, the communication connection state is updated to be the communication off-site state, so that the equipment can be prevented from being started, further, the situation that the last communication on-site state and the current physical on-site state are used for generating a starting instruction, starting misjudgment is caused, and the reliability and the stability of the equipment are improved.
In the method for controlling a device provided in the foregoing embodiment, by obtaining the physical connection state between the device and the external device, it can be known whether the physical connection state between the device and the external device is in a physical in-place state or a physical out-of-place state; by acquiring the communication connection state between the equipment and the external equipment, whether the communication connection state between the equipment and the external equipment is in a communication in-place state or a communication out-of-place state can be known; by updating the communication connection state to the communication off-position state when the physical connection state is the physical off-position state and the communication connection state is the communication on-position state, the situation that the last delayed communication connection state and the current physical connection state are used for starting up judgment can be avoided, the problem of abnormal starting up of the equipment is solved, and the reliability and the stability of the equipment are improved; when the physical connection state is determined to be the physical in-place state and the communication connection state is determined to be the communication in-place state, the starting instruction is generated, and the equipment can be controlled to start according to the starting instruction; the first control instruction is cleared when the physical connection state is determined to be the physical out-of-place state or the communication connection state is determined to be the communication out-of-place state within the preset duration of the received first control instruction, so that the equipment can be prevented from being started, and further, the equipment can be prevented from being abnormally powered off in the starting process; the method has the advantages that the method can avoid the situation that hardware is in-place used with communication after different external devices are sequentially connected with the same interface and the devices, and the devices are mistakenly triggered to be started by acquiring the physical identification of the physical in-place state and the communication identification of the communication in-place state and generating the starting instruction when the physical identification is matched with the communication identification; when the physical identifier is not matched with the communication identifier, the communication connection state is updated to the communication off-site state, so that the equipment can be prevented from being started, further, the situation that starting instructions are generated by using the last communication on-site state and the current physical on-site state, the starting misjudgment is caused, and the reliability and the stability of the equipment are improved.
In an embodiment of the present application, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the processor executes the program instructions to implement the control method for any device provided in the embodiment of the present application.
For example, the program is loaded by a processor and may perform the following steps:
acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state; acquiring a communication connection state between the equipment and the external equipment, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state; and when the physical connection state is a physical not-in-bit state and the communication connection state is a communication in-bit state, updating the communication connection state to a communication not-in-bit state.
The computer-readable storage medium may be an internal storage unit of the electronic device according to the foregoing embodiment, for example, a hard disk or a memory of the electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD Card), a Flash memory Card (Flash Card), and the like provided on the electronic device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of controlling a device, comprising:
acquiring a physical connection state between the equipment and external equipment, wherein the physical connection state comprises a physical in-place state and a physical out-of-place state;
acquiring a communication connection state between the equipment and the external equipment, wherein the communication connection state comprises a communication in-place state and a communication out-of-place state;
and when the physical connection state is a physical not-in-bit state and the communication connection state is a communication in-bit state, updating the communication connection state to a communication not-in-bit state.
2. The method of controlling a device according to claim 1, further comprising:
when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting instruction; and the starting instruction is used for controlling the equipment to start.
3. The method of controlling a device according to claim 1, further comprising:
receiving a first control instruction, wherein the first control instruction is used for indicating the equipment to be started;
within a preset time length of receiving the first control instruction, when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state, generating a starting instruction; and the starting instruction is used for controlling the equipment to start.
4. The device control method according to claim 2 or 3, wherein the generating a power-on command when the physical connection state is a physical in-place state and the communication connection state is a communication in-place state includes:
when the physical connection state is a physical in-place state, acquiring a physical identifier of the physical in-place state;
when the communication connection state is a communication in-place state, acquiring a communication identifier of the communication in-place state;
and when the physical identification is matched with the communication identification, generating the starting-up instruction.
5. The method of controlling a device according to claim 4, further comprising:
and when the physical identification and the communication identification are not matched, updating the communication connection state into a communication off-bit state.
6. The method of controlling a device according to claim 3, further comprising:
and clearing the first control instruction when the physical connection state is a physical out-of-place state or the communication connection state is a communication out-of-place state within a preset time length after receiving the first control instruction.
7. The method of controlling a device according to claim 1, further comprising:
and when the physical connection state is a physical out-of-position state or the communication connection state is an out-of-position state, generating a shutdown instruction, wherein the shutdown instruction is used for controlling the equipment to be shut down.
8. An apparatus characterized by comprising an apparatus body and a controller for executing the control method of the apparatus according to any one of claims 1 to 7.
9. An energy storage device is characterized by comprising a battery module, a charging and discharging circuit, a processor and a memory;
the charging and discharging circuit is used for charging or discharging the battery module after the energy storage equipment is started;
the memory for storing a computer program;
the processor for executing the computer program and implementing a control method of the apparatus of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement a control method of the apparatus according to any one of claims 1 to 7.
CN202210833718.3A 2022-07-15 2022-07-15 Device control method, device, energy storage device and storage medium Pending CN115343980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210833718.3A CN115343980A (en) 2022-07-15 2022-07-15 Device control method, device, energy storage device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210833718.3A CN115343980A (en) 2022-07-15 2022-07-15 Device control method, device, energy storage device and storage medium

Publications (1)

Publication Number Publication Date
CN115343980A true CN115343980A (en) 2022-11-15

Family

ID=83947982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210833718.3A Pending CN115343980A (en) 2022-07-15 2022-07-15 Device control method, device, energy storage device and storage medium

Country Status (1)

Country Link
CN (1) CN115343980A (en)

Similar Documents

Publication Publication Date Title
US11061690B2 (en) Method for updating a boot loader of a multiprocessor device
CN110472421B (en) Mainboard and firmware safety detection method and terminal equipment
CN111158767B (en) BMC-based server safe starting method and device
CN105122259A (en) Retrieving system boot code from a non-volatile memory
US20150082056A1 (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN106528097A (en) Version synchronization method for two pieces of BIOS (Basic Input/ Output System) firmware, and electronic equipment
CN110163012A (en) Mainboard powering method, apparatus and system based on programming device
CN107450953B (en) Method and device for updating BIOS
CN107678871B (en) Electronic equipment starting method and electronic equipment
CN113608930A (en) System chip and electronic device
CN115343980A (en) Device control method, device, energy storage device and storage medium
CN107179911B (en) Method and equipment for restarting management engine
CN115130114B (en) Gateway secure starting method and device, electronic equipment and storage medium
CN111381655A (en) Electronic equipment and power-on control method
US20020095437A1 (en) Information processing apparatus, method for utilizing the same and program for information processing apparatus
CN113672448A (en) BootLoader starting process monitoring method, device and storage medium
CN112448449A (en) Charging control method and device, electronic equipment and storage medium
CN102681910B (en) Recognition method, computer and recognition system
KR101180164B1 (en) Method and apparatus for controlling reset according to power state
CN114584322B (en) Method and device for switching secret key authentication modes of connecting device, connecting device and medium
CN109857701A (en) The activation system and its method of FPGA configuration circuit
EP1645930A1 (en) Method and system for detecting a security violation using an error correction code
JP2001333545A (en) Power supply, electronic device and its stopping/restoring method and recording medium
CN112463446B (en) PCIe device recovery method and system, electronic device and storage medium
CN111813037A (en) Starting-up control method, starting-up control device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination