Control method, computer readable storage medium and terminal

By obtaining the connection information of the energy storage device at the first terminal and asking for approval from the second terminal, control disorders and safety issues when multiple terminals control the same device at the same time are solved, and the stability and safe operation of the energy storage device are ensured.

CN116389635BActive Publication Date: 2025-01-17ECOFLOW INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310305923.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2025-01-17
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

Multiple external terminals simultaneously control the same energy storage device may lead to control disorders and safety issues, such as load overvoltage or overcurrent.

Method used

By obtaining the connection information of the electronic device when the first terminal responds to the operation request instruction, and generating an operation inquiry instruction when the second terminal connection exists, the second terminal user is required to agree to execute the operation request instruction, ensuring that it is sent only after consent Control commands to electronic devices.

Benefits of technology

It effectively avoids functional disorders and safety issues when multiple terminals control the same device at the same time, ensuring the coordination and security of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116389635B_ABST
    Figure CN116389635B_ABST
Patent Text Reader

Abstract

The present application provides a control method, a storage medium and a terminal. The above method is applied to a first terminal, and includes: in response to an operation request instruction for operating an electronic device, obtaining the connection information of the electronic device; if it is confirmed according to the connection information that there is currently a second terminal connected to the electronic device, then generating an operation inquiry instruction to the second terminal connected to the electronic device; the operation inquiry instruction is used to inquire the user of the second terminal whether to agree to execute the operation request instruction; when receiving the operation consent instruction output by the second terminal, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device. In this way, when multiple terminals control the same electronic device, by asking the second terminal whether it agrees to execute the operation, each terminal can control the electronic device in an orderly manner, solving the disorder and safety problems that occur when multiple terminals control the same electronic device at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply control technology, and in particular to a control method, a computer-readable storage medium and a terminal. Background Art

[0002] At present, an application (APP) can be installed on the external terminal, and control instructions can be sent to the energy storage device through the APP to control the energy storage device. Generally, multiple external terminals can be bound to the same energy storage device and control the same energy storage device. However, this may cause disorder in the control of the energy storage device. For example, when external terminal A is controlling the energy storage device, external terminal B may also control the energy storage device, which will cause disorder in the control of the energy storage device. At the same time, this may also cause safety problems. For example, external terminal A has increased the output power of the energy storage device, and external terminal B continues to increase the output power of the energy storage device. This will cause overvoltage or overcurrent of the load connected to the energy storage device, thereby causing safety problems. Summary of the invention

[0003] In view of this, the present application provides a control method, a computer-readable storage medium and a terminal to solve the above problems.

[0004] A first aspect of the present application provides a control method, which is applied to a first terminal and is used to control a connected electronic device. The method includes: in response to an operation request instruction for operating the electronic device, obtaining connection information of the electronic device; if it is confirmed according to the connection information that a second terminal is currently connected to the electronic device, generating an operation inquiry instruction to the second terminal connected to the electronic device; the operation inquiry instruction is used to inquire the user of the second terminal whether to agree to execute the operation request instruction; when receiving the operation consent instruction output by the second terminal, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device.

[0005] In one embodiment, the method also includes: when no response instruction is received from the second terminal within a first preset time, displaying a first prompt message; the first prompt message is used to prompt the user whether to continue to execute the operation request instruction; when receiving the continue execution instruction, performing a user identity verification operation, and after the user identity verification is successful, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device.

[0006] In one embodiment, the method further includes: when the user identity verification fails, generating a verification failure instruction, and not responding to the operation request instruction; wherein the verification failure instruction is used to prompt the user that the identity verification has failed.

[0007] In one embodiment, when the operation request instruction is a shutdown request instruction, before generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device, the method also includes: confirming whether the electronic device is in a shutdown prohibited state according to connection information of the electronic device; when the electronic device is in the shutdown prohibited state, generating a shutdown prohibited prompt instruction; wherein the shutdown prohibited prompt instruction is used to prompt the user that the current electronic device is in a shutdown prohibited state.

[0008] In one embodiment, the method also includes: in response to an operation request instruction for operating the electronic device, obtaining historical operation information of the electronic device; when the time difference between the operation request instruction and the most recent historical operation control instruction in the historical operation information is less than a preset time threshold and the operation of the operation request instruction and the operation of the most recent historical operation control instruction are opposite to each other, displaying operation prompt information; the operation prompt information is used to prompt the user of the most recent historical operation control instruction and the corresponding user information, and prompt whether to continue to execute the operation request instruction; when receiving the continue execution instruction, generating a corresponding operation control instruction and sending it to the electronic device to control the working state of the electronic device.

[0009] In one embodiment, the method further includes: upon receiving a rejection operation instruction output by the second terminal, generating a rejection prompt instruction; wherein the rejection prompt instruction is used to prompt the user that the operation request instruction is rejected.

[0010] In one embodiment, the method also includes: when receiving a rejection operation instruction output by the second terminal, obtaining the priority of the second terminal; when the priority of the second terminal is lower than the priority of the first terminal, performing a user identity verification operation, and after the user identity verification is successful, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device.

[0011] In one embodiment, the method also includes: obtaining current status information of the electronic device; when the current status information does not match the execution status information of the operation request instruction, generating status warning information; the status warning information is used to prompt the user that the current status of the electronic device cannot respond to the operation request instruction.

[0012] In one embodiment, the method further includes: acquiring a lock state of the electronic device in response to an operation request instruction for operating the electronic device; and stopping responding to the operation request instruction when the lock state of the electronic device is in a locked state.

[0013] In one embodiment, the method further includes: when the operation request instruction is a lock instruction and there is currently no second terminal connected to the electronic device, generating a lock control instruction to the electronic device; the lock control instruction is used to control the electronic device to switch to a locked state.

[0014] A second aspect of the present application provides a computer-readable storage medium, which includes one or more computer instructions, and the one or more computer instructions are executed by a processor to implement a control method as described in any possible embodiment of the first aspect above.

[0015] A third aspect of the present application provides a terminal, the terminal includes a processor and a memory, the memory includes one or more computer instructions, and the one or more computer instructions are executed by the processor to implement a control method of any possible embodiment of the first aspect above.

[0016] The control method provided by the present application obtains the connection information of the electronic device in response to the operation request instruction for operating the electronic device, and generates an operation inquiry instruction to the second terminal connected to the electronic device when it is determined according to the connection information that there is currently a second terminal connected to the electronic device, and generates a corresponding operation control instruction according to the operation request instruction and sends it to the electronic device when receiving the operation consent instruction output by the second terminal, so as to control the working state of the electronic device. Thus, when multiple terminals simultaneously control the same electronic device, the connection information of the electronic device can be obtained in response to the operation request instruction for operating the electronic device generated by the user operation, and when there is a second terminal connected to the electronic device, the second terminal is queried, and the electronic device is controlled according to the operation consent instruction replied by the second terminal, so that the control of the electronic device is approved by the user of the second terminal, and solves the problem that when multiple terminals simultaneously control the same electronic device, the electronic device may execute different operation control instructions, thereby causing the electronic device to have functional disorder and safety problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is an application scenario diagram of a control method provided in an embodiment of the present application.

[0018] Figure 2 It is a flow chart of a control method provided in an embodiment of the present application.

[0019] Figure 3 This is a flowchart provided by an embodiment of the present application when no response instruction is received within the first preset time.

[0020] Figure 4 This is a flowchart of performing user identity verification when a rejection operation instruction is received, provided by an embodiment of the present application.

[0021] Figure 5 It is a specific operation flow chart when the operation request instruction is a shutdown request instruction.

[0022] Figure 6This is a flowchart provided by an embodiment of the present application when there is current status information of an electronic device that does not match the execution status information of an operation request instruction.

[0023] Figure 7 This is a flowchart provided by an embodiment of the present application when the operation of the operation request instruction is the opposite operation.

[0024] Figure 8 This is a flow chart when the locking state of the electronic device provided in the embodiment of the present application is the locked state.

[0025] Fig. 9 It is a schematic diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish similar objects rather than to describe a specific order or sequence.

[0027] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.

[0028] Some embodiments will be described below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.

[0029] Figure 1: is an application scenario diagram of a control method provided in an embodiment of the present application. The control method is applied to a terminal 10. The terminal 10 may be at least one of a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) and a wearable electronic device. In some embodiments, the terminal 10 may also be a display module with integrated display and operation control fixed on an electronic device 20. The terminal 10 may be connected to one or more electronic devices 20. In some embodiments, the terminal 10 may be connected to one or more electronic devices 20 by wireless communication such as Bluetooth connection or WiFi direct connection. In some embodiments, the terminal 10 may also be connected to one or more electronic devices 20 through a server 30 by IoT connection (i.e., access to the Internet). The electronic device 20 may be an energy storage device, a power supply, etc. The electronic device 20 may be connected to one or more loads 40. In some embodiments, the electronic device 20 may be connected to one or more loads 40 by wire or wireless means, wherein the load 40 may be a computer, a mobile phone, a car, etc. The terminal 10 may be used to control one or more connected electronic devices 20. The terminal 10 may also be used to obtain the current status information of the electronic device from one or more connected electronic devices 20, and the terminal 10 may also obtain the current status information of the electronic device from the server 30. The current status information of the electronic device 20 may include the connection information of the electronic device. The connection information of the electronic device 20 may include the online information of other terminals connected to the electronic device. It is understood that the connection information of the electronic device 20 may also include the load 40 information connected to the electronic device; the current status information of the electronic device 20 may also include other information, such as the historical operation information of the electronic device 20, the location information of the electronic device 20, etc.

[0030] The terminal 10 is also connected to one or more other terminals 50. In some embodiments, the terminal 10 can be connected to the one or more other terminals 50 through the server 30 in a wired or wireless manner. The terminal 10 can send instructions to the one or more other terminals 50. The terminal 10 can also receive feedback instructions from the one or more other terminals 50.

[0031] In one embodiment, the terminal 10 may obtain the connection information of the electronic device 20 in response to an operation request instruction for operating the electronic device 20. If the terminal 10 confirms that there are other terminals 50 currently connected to the electronic device 20 according to the connection information, the terminal 10 generates an operation inquiry instruction to the second terminal among the other terminals 50 connected to the electronic device 20, so as to inquire the user of the second terminal whether to agree to execute the operation request instruction. When the terminal 10 receives the operation consent instruction output by the second terminal, it generates a corresponding operation control instruction according to the operation request instruction and sends it to the electronic device 20 to control the working state of the electronic device 20. It is understandable that the terminal 10 may also generate a rejection prompt instruction when receiving the rejection operation instruction output by the second terminal, and the rejection prompt instruction is used to prompt the user that the operation request instruction is rejected.

[0032] In one embodiment, the second terminal is the terminal that has most recently operated the electronic device among all the terminals 10 connected to the electronic device 20 , or the second terminal may also be the terminal with the highest priority among all the terminals 10 connected to the electronic device 20 .

[0033] Figure 2 1 is a flow chart of a control method provided in an embodiment of the present application. The method is applied to a first terminal. The first terminal may be at least one of a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and a wearable electronic device. The control method includes:

[0034] S201: In response to an operation request instruction for operating an electronic device, obtaining connection information of the electronic device.

[0035] In some embodiments, before responding to the operation request instruction to operate the electronic device, the method further includes: displaying the application operation interface. For example, the user can click the application icon of the application on the first terminal to open the application, and the first terminal displays the login interface. The user can log in to the application by entering the account and password in the login interface. After the user logs in to the application, the application operation interface of the application will be displayed on the first terminal. The application operation interface may include information of the electronic device connected to the first terminal. It can be understood that if after logging in to the application operation interface of the application, the information of the electronic device is not displayed, but other interfaces, then the interface can be made to include the information of the electronic device through one or more operations, for example, the user can choose to click the button to display the information of the electronic device in the application operation interface to display the information of the electronic device, or the user can click the expansion button to display the information of the folded and hidden electronic device. Among them, the information of the electronic device may include the model of the electronic device, the display icon, and the working status of the electronic device. This application does not limit the specific implementation method of displaying the information of the electronic device.

[0036] After logging into the application, the user can perform operations in the application operation interface to send an operation request instruction. For example, the user can select to perform a preset operation on the electronic device in the application operation interface to generate a corresponding operation request instruction. The preset operation may be, for example, power on, power off, charge, discharge, switch output power, switch output voltage, or switch output current, etc. The corresponding operation request instruction may be, for example, a power on request instruction, a power off request instruction, a discharge request instruction, a switch output power instruction, a switch output voltage instruction, or a switch output current instruction. At this time, in response to the operation request instruction for operating the application operation interface of the electronic device, the first terminal may obtain the connection information of the electronic device.

[0037] In one embodiment, when the user chooses to perform a preset operation on the electronic device in the application operation interface, for example, when the user shuts down the electronic device, switches the output power, output voltage, output current, etc. through the application operation interface, if the electronic device is connected to a load and is supplying power to the load, the application operation interface will display that the electronic device is in a loaded state, and the loading information will be displayed on the application operation interface for the user's reference.

[0038] The connection information of the electronic device may include the online information and connection mode of other terminals connected to the electronic device. For example, if the other terminal connected to the electronic device is a second terminal, the connection information of the electronic device displayed is that the second terminal is online. In some embodiments, for example, if the electronic device is connected to the second terminal by IoT connection, the second terminal can upload the current connection mode with the electronic device to the server, so that the first terminal can obtain the connection information of the electronic device and the second terminal from the server. If the electronic device is connected to the second terminal by Bluetooth connection or WiFi direct connection, the first terminal can also obtain the connection information of the electronic device and the second terminal from the electronic device. It can be understood that there can be multiple terminals connected to the electronic device, in which the terminal to which the method provided by the present application is applied is the first terminal, the other terminal connected to the electronic device is the second terminal, and the number of second terminals connected to the electronic device can be one or more, and the second terminal can be connected by IoT connection, by Bluetooth connection or WiFi direct connection, or partly by IoT connection and the other part by Bluetooth connection or WiFi direct connection. The present application does not limit this.

[0039] S202: If it is confirmed according to the connection information that there is currently a second terminal connected to the electronic device, an operation inquiry instruction is generated to the second terminal connected to the electronic device; the operation inquiry instruction is used to inquire the user of the second terminal whether to agree to execute the operation request instruction.

[0040] In some embodiments, there is currently a second terminal connected to the electronic device, and the state of the second terminal connected to the electronic device is displayed as an online state.

[0041] In some embodiments, the second terminal may be the terminal that last sent a historical operation control instruction to the electronic device. Specifically, the first terminal may obtain historical operation information of the electronic device. The historical operation information may be, for example, that the second terminal turned on the electronic device at a certain time and place. The first terminal may determine the terminal of the most recent historical operation control instruction in the historical operation information, such as the second terminal. The first terminal may also determine whether the terminal of the most recent historical operation control instruction is online based on the connection information, for example, determining whether the second terminal is still online. If the terminal of the most recent historical operation control instruction is online, the first terminal may determine that the second terminal is the terminal of the most recent historical operation control instruction. At this time, the first terminal sends an operation inquiry instruction to the second terminal.

[0042] In some embodiments, the second terminal may be all other terminals currently connected to the electronic device. It is understandable that the status of all other terminals currently connected to the electronic device is an online status. Specifically, when the first terminal determines whether the terminal of the most recent historical operation control instruction is online based on the connection information, if the terminal of the most recent historical operation control instruction is not online, the first terminal may determine that all other terminals currently connected to the electronic device are second terminals. At this time, the first terminal sends an operation inquiry instruction to all other terminals. It is understandable that at this time, except for the first terminal operated by the user, each terminal connected to the electronic device can be called a second terminal. At this time, if the first terminal wants to control the working status of the electronic device, it needs to send an operation inquiry instruction to all other terminals.

[0043] In some embodiments, the operation inquiry instruction includes an operation request instruction. The operation inquiry instruction may be, for example, whether to agree to the user's power-on request instruction. At this time, the user of the second terminal may choose to agree to the power-on request instruction of the user of the first terminal or reject the power-on request instruction of the user of the first terminal.

[0044] S203: When receiving the operation approval instruction output by the second terminal, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device.

[0045] In some embodiments, both the first terminal and the second terminal have a communication module, and the first terminal and the second terminal can communicate through the communication module, and the second terminal can feedback a response instruction to the first terminal through the communication module.

[0046] In some embodiments, the response instruction may be an instruction to agree to the operation. For example, when the user of the second terminal chooses to agree, the second terminal may feedback the instruction to agree to the operation to the first terminal. At this time, the first terminal may generate a corresponding operation control instruction according to the operation request instruction and send it to the electronic device. The electronic device may perform a corresponding operation according to the operation control instruction, such as a power-on operation.

[0047] Thus, when multiple terminals (for example, a first terminal and a second terminal) control the same electronic device at the same time, the first terminal can respond to an operation request instruction for operating the electronic device generated by a user's operation, obtain the connection information of the electronic device, and when a second terminal is connected to the electronic device, inquire the second terminal, and control the electronic device according to the consent operation instruction fed back by the second terminal, so that the control of the electronic device is approved by the user of the second terminal, thereby solving the confusion and security problems that occur when multiple terminals control the same electronic device at the same time.

[0048] In some embodiments, the response instruction may be a rejection operation instruction. For example, when the user of the second terminal chooses to reject, the second terminal may feedback the rejection operation instruction to the first terminal. At this time, the first terminal may generate a corresponding rejection prompt instruction according to the rejection operation instruction, and display the rejection prompt instruction. Thus, the user can understand that the operation request instruction is rejected according to the rejection prompt instruction.

[0049] In some embodiments, Figure 3 Specifically, the method further includes:

[0050] S301: When no response instruction is received from the second terminal within a first preset time, display a first prompt message; the first prompt message is used to prompt the user whether to continue to execute the operation request instruction.

[0051] In some embodiments, the user of the second terminal may not perform any operation or refuse the feedback response instruction, and the second terminal does not feedback the rejection operation instruction to the first terminal within the first preset time. At this time, when the first terminal does not receive the feedback response instruction within the first preset time, the first prompt information may be displayed. The first prompt information may be, for example, whether to continue to execute the operation request instruction. The user can choose to continue to execute the operation request instruction or choose to refuse to continue to execute the operation request instruction.

[0052] S302: Perform a user identity verification operation when a continue execution instruction is received, and after the user identity verification is successful, generate a corresponding operation control instruction according to the operation request instruction and send it to the electronic device to control the working state of the electronic device.

[0053] In some embodiments, when the user chooses to continue executing the operation request instruction, the first terminal may receive the continue execution instruction.

[0054] In some embodiments, the user identity verification operation may be at least one of password verification, pattern verification, PIN verification (Personal identification number), fingerprint verification, face verification, iris verification, voice verification, and sound wave verification.

[0055] In some embodiments, upon receiving the instruction to continue execution, the first terminal may display a preset verification interface, such as a password verification interface. The preset verification interface is used to receive an input password. The user may enter a password in the preset verification interface. The first terminal may detect that the user has entered a password in the preset verification interface and compare the input password with the pre-stored password. If the input password matches the pre-stored password, the first terminal determines that the user identity verification is successful. It is understandable that the preset verification interface may also be a pattern verification interface, a PIN verification interface, a fingerprint verification interface, a face verification interface, an iris verification interface, a voice verification interface, or a sound wave verification interface, and the present application does not limit the content and form of the preset verification interface.

[0056] In some embodiments, if the input password does not match the pre-stored password, the first terminal determines that the user identity verification has failed. The method further includes: when the user identity verification fails, generating a verification failure instruction, and not responding to the operation request instruction; wherein the verification failure instruction is used to prompt the user that the identity verification has failed. In some embodiments, the first terminal may also display an identity verification failure prompt message to prompt the user that the identity verification has failed.

[0057] In some embodiments, when receiving the rejection operation instruction output by the second terminal, the electronic device can continue to be controlled through user identity verification, such as Figure 4 Specifically, the method further includes:

[0058] S401: upon receiving a rejection operation instruction output by a second terminal, obtaining a priority of the second terminal.

[0059] In some embodiments, the first terminal may obtain the priority of the second terminal from the server. Before obtaining the priority of the second terminal, the method further includes: setting the priority of the terminal, for example, setting the priority of the first terminal and the second terminal. Specifically, the method includes: setting the priority of the terminal (for example, the second terminal) in response to the setting priority instruction; uploading the priority of the terminal (for example, the second terminal) to the server. In some embodiments, the terminal (for example, the second terminal) may display a password setting interface. The user may enter a password in the password setting interface. The terminal (for example, the second terminal) may detect that the user enters a password in the password setting interface and compare the entered password with the pre-stored password. If the entered password matches the pre-stored password, it is determined that the terminal has the highest priority and responds to the above-mentioned setting priority instruction. If the entered password does not match the pre-stored password, the above-mentioned setting priority instruction is not responded. It can be understood that each terminal can set its own priority; the priority of the terminal can also be set before receiving the rejection operation instruction of the second terminal, or before responding to the operation request instruction to operate the electronic device, and this application does not limit this.

[0060] It is understood that each terminal can also upload the priority of the terminal and the password when setting the priority of the terminal to the server, so that the server can compare the passwords and determine the priority of the terminal. This application does not limit this. It is understood that the password setting interface can also be a pattern verification interface, a PIN verification interface, a fingerprint verification interface, a face verification interface, an iris verification interface, a voice verification interface, or a sound wave verification interface. This application does not limit the content and form of the password setting interface.

[0061] In one embodiment, the terminal that most recently operated the electronic device has the highest priority, while the priorities of other terminals connected to the electronic device are the same. For example, the second terminal that most recently operated the electronic device has the highest priority. At this time, when the first terminal needs to control the electronic device, it only needs to send the operation inquiry instruction to the second terminal with the highest priority.

[0062] In some embodiments, the priority of the second terminal has the highest priority or has the lowest priority.

[0063] S402: When the priority of the second terminal is lower than that of the first terminal, perform a user identity verification operation, and after the user identity verification succeeds, generate a corresponding operation control instruction according to the operation request instruction and send it to the electronic device to control the working state of the electronic device.

[0064] In some embodiments, if the priority of the second terminal is the highest priority, the first terminal determines that the priority of the second terminal is higher than the priority of the first terminal. If the priority of the second terminal is the lowest priority, the first terminal determines that the priority of the second terminal is lower than the priority of the first terminal.

[0065] The process of performing the user identity verification operation in step S402 is similar to the process of performing the user identity verification operation in step S302, and will not be repeated here.

[0066] Thus, the user of the first terminal with a higher priority has a veto power. Even if the user of the second terminal rejects the operation of the user of the first terminal, since the priority of the first terminal is higher than that of the second terminal, the user of the first terminal with a higher priority can continue to control the electronic device by successfully verifying the user identity.

[0067] It is understandable that there may be two results for obtaining the priority of the second terminal, for example, the priority of the second terminal is higher than the priority of the first terminal, or the priority of the second terminal is lower than the priority of the first terminal, and this application does not impose any restrictions on this.

[0068] In some embodiments, the operation request instruction may be a shutdown request instruction, such as Figure 5Specifically, when the operation request instruction is a shutdown request instruction, before generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device, the method further includes:

[0069] S501: Determine whether the electronic device is in a shutdown prohibited state according to the connection information of the electronic device.

[0070] In some embodiments, the connection information of the electronic device may also include load information connected to the electronic device. The load information may include load type, etc. The load type may be identified by a load icon, a load name, or a load icon and a load name. It is understood that the load information may also include other information, such as the number of loads, etc., which is not limited in this application.

[0071] In some embodiments, the first terminal may determine whether the electronic device is in a shutdown prohibited state based on the load type in the connection information of the electronic device. If the load type in the connection information of the electronic device is a load that cannot be powered off, the first terminal determines that the electronic device is in a shutdown prohibited state. If the load type in the connection information of the electronic device is not a load that cannot be powered off, the first terminal determines that the electronic device is not in a shutdown prohibited state. The load that cannot be powered off may be, for example, a medical device. It is understandable that the loads in the load information connected to the electronic device are all in working condition.

[0072] S502: When the electronic device is in a shutdown prohibited state, generate a shutdown prohibited prompt instruction; wherein the shutdown prohibited prompt instruction is used to prompt the user that the current electronic device is in a shutdown prohibited state.

[0073] In some embodiments, the first terminal may further display shutdown prohibition prompt information to prompt the user that the current electronic device is in a shutdown prohibition state.

[0074] It is understandable that if the electronic device is disconnected from the load that cannot be powered off, it is determined that the electronic device is not in a prohibited shutdown state; the condition for determining that the electronic device is in a prohibited shutdown state may also be other conditions, such as if the electronic device is performing an upgrade operation, or is executing an instruction that cannot be interrupted; this application does not impose any restrictions on this.

[0075] In some embodiments, when the current status information such as the load type in the connection information of the electronic device does not match, the user may be prompted, such as Figure 6 Specifically, the method further includes:

[0076] S601: Acquire current status information of the electronic device.

[0077] In some embodiments, the current status information may include connection information of the electronic device, historical operation information of the electronic device, and location information of the electronic device. The connection information of the electronic device may include online information of other terminals (such as the second terminal) to which the electronic device is connected, and connection methods of other terminals (such as the second terminal) and the electronic device. The connection methods of other terminals and electronic devices may be, for example, the second terminal is connected to the electronic device via Bluetooth connection, the second terminal is connected to the electronic device via WiFI direct connection, and the second terminal is connected to the electronic device via IoT. The connection information of the electronic device may also include load information of the electronic device connection. The location information of the electronic device may be a geographic location. It is understandable that the location information of the electronic device may also be other information, such as longitude and latitude information, etc., and this application does not limit this.

[0078] In some embodiments, before responding to an operation request instruction to operate the electronic device, the current status information of the electronic device is obtained. Before responding to an operation request instruction to operate the electronic device, the method also includes: displaying the current status information of the electronic device. In some embodiments, the first terminal can display the current status information of the electronic device in the application operation interface. Thus, the user of the first terminal can view the current status information of the electronic device, and determine whether to control the electronic device after viewing the current status information of the electronic device. For example, when the user views the location information of the electronic device and finds that it is not in a regular location, it is determined that other users are using the electronic device, and then it can be determined whether to control the electronic device. If the user still determines to control the electronic device after viewing the current status information of the electronic device, the first device can respond to the operation request instruction to operate the electronic device.

[0079] S602: When the current state information does not match the execution state information of the operation request instruction, generate state warning information; the state warning information is used to prompt the user that the current state of the electronic device cannot respond to the operation request instruction.

[0080] In some embodiments, the current state information does not match the execution state information of the operation request instruction, for example, the current state information of the electronic device includes that the electronic device is connected to a load and the load is not a load that cannot be powered off, and the execution state information of the operation request instruction is shutdown, switching output power, switching output voltage, or switching output current, etc. The first terminal may also display status warning information. The status warning information may be, for example, that the electronic device is running with load, and the type of load when running with load is a load that cannot be powered off, such as a medical device, so that the user can be prompted that the electronic device is running with load at this time and cannot respond to the operation request instruction.

[0081] In some embodiments, the method further includes: performing a user identity verification operation, and after the user identity verification is successful, generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device to control the working state of the electronic device. Thus, even if the electronic device is running with load, as long as the load running with load is not a load that cannot be powered off, the user can continue to control the electronic device through the success of the user identity verification.

[0082] The execution of the user identity verification operation in step S602, and generating a corresponding operation control instruction according to the operation request instruction after the user identity verification is successful, and sending it to the electronic device to control the working state of the electronic device, is similar to the execution of the user identity verification operation in step S302, and generating a corresponding operation control instruction according to the operation request instruction after the user identity verification is successful, and sending it to the electronic device to control the working state of the electronic device, and will not be repeated here.

[0083] In some embodiments, when there is an operation that is opposite to the operation request instruction, the user may also be prompted, such as Figure 7 Specifically, the method further includes:

[0084] S701: In response to an operation request instruction for operating an electronic device, acquiring historical operation information of the electronic device.

[0085] In some embodiments, when the first terminal responds to an operation request instruction for operating the application operation interface of the electronic device, it not only obtains the connection information of the electronic device, but also obtains the historical operation information of the electronic device. The process of obtaining the historical operation information of the electronic device in step S701 is similar to the process of obtaining the historical operation information of the electronic device in step S202, and will not be repeated here.

[0086] S702: When the time difference between the operation request instruction and the most recent historical operation control instruction in the historical operation information is less than the preset time threshold and the operation request instruction and the most recent historical operation control instruction are opposite operations, an operation prompt message is displayed; the operation prompt message is used to prompt the user of the most recent historical operation control instruction and the corresponding user information, and whether to continue executing the operation request instruction.

[0087] In some embodiments, the first terminal may determine the time of the most recent historical operation control instruction in the historical operation information. The first terminal may also determine the operation of the most recent historical operation control instruction in the historical operation information, such as turning on the electronic device. The operation request instruction and the operation of the most recent historical operation control instruction are opposite to each other. For example, the operation of the operation request instruction and the operation of the most recent historical operation control instruction are respectively a shutdown operation and a power-on operation; or for example, the operation of the operation request instruction and the operation of the most recent historical operation control instruction are respectively a boost operation and a buck operation, or respectively an output current increase operation and an output current reduction operation, etc.

[0088] In some embodiments, the first user powered on the electronic device through the second terminal 5 minutes ago. When the second user continues to perform the same power-on operation through the first terminal, the operation prompt information may be, for example, whether the first user turned on the device 5 minutes ago and whether to continue the operation.

[0089] S703: When receiving the continue execution instruction, generate a corresponding operation control instruction and send it to the electronic device to control the working state of the electronic device.

[0090] It is understandable that when the first terminal receives the continue execution instruction, it generates a corresponding operation control instruction and sends it to the electronic device to control the working state of the electronic device.

[0091] It is understandable that when a non-continuation instruction is received, a corresponding rejection prompt instruction may be generated according to the non-continuation instruction, and the rejection prompt instruction may be displayed. Thus, the user may know that the operation request instruction is rejected according to the rejection prompt instruction.

[0092] In some embodiments, it is also possible to stop responding to operation request instructions, such as Figure 8 Specifically, the method further includes:

[0093] S801: In response to an operation request instruction for operating an electronic device, obtaining a lock state of the electronic device.

[0094] In some embodiments, the locked state of the electronic device can be achieved by the user directly operating the application of the first terminal. Specifically, when the operation request instruction is a lock instruction, and there is currently no second terminal connected to the electronic device, the first terminal can generate a lock control instruction to the electronic device; the lock control instruction is used to control the electronic device to switch to a locked state. The electronic device switches to a locked state according to the lock control instruction. Among them, the first terminal can determine that there are currently no other terminals (for example, the second terminal) connected to the electronic device based on the connection information of the electronic device. For example, when the online information of other terminals connected to the electronic device included in the connection information of the electronic device is empty, it is determined that there are currently no other terminals connected to the electronic device. Thus, the user of the first terminal can lock the electronic device through the application.

[0095] In some embodiments, the locked state of the electronic device can be achieved by the user directly operating the electronic device. Specifically, the electronic device may include a lock button. The lock button is used to trigger the lock of the electronic device. In response to the lock control instruction to operate the lock button, the electronic device can switch to a locked state. It is understandable that the preset button can be a physical button or a virtual button, and this application does not limit this. Thus, the user can lock the electronic device through on-site operation.

[0096] S802: When the lock state of the electronic device is in the locked state, stop responding to the operation request instruction.

[0097] It is understandable that if the response to the operation request instruction is stopped, that is, if the operation request instruction is not responded, the first terminal will not continue to generate the operation inquiry instruction to the second terminal connected to the electronic device, nor will it continue to control the working state of the electronic device, but will display information such as the electronic device has been locked. Thus, when the electronic device is in the locked state, it can prevent children in the family from arbitrarily operating the electronic device, which may cause safety hazards.

[0098] It is understandable that the user of the first terminal may also lock the electronic device through the application to prevent the user of the second terminal from controlling the electronic device through the application, and this application does not impose any limitation on this.

[0099] In some embodiments, the method further includes: in response to an unlock request instruction for unlocking the electronic device, performing a user identity verification operation, and after the user identity verification is successful, generating a corresponding unlock control instruction according to the unlock request instruction and sending it to the electronic device, wherein the unlock control instruction is used to control the electronic device to switch to an unlocked state. The electronic device switches from the locked state to the unlocked state according to the unlock control instruction.

[0100] It can be understood that after the user of the first terminal locks the electronic device through an application, the user of the first terminal or the second terminal can also unlock the electronic device through an unlock request instruction; after the user of the first terminal who locked the electronic device goes offline, the electronic device can switch from a locked state to an unlocked state.

[0101] It is understandable that if the operation of the most recent historical operation control instruction is an on-site operation, the first terminal can also generate an on-site inquiry instruction and send it to the electronic device to inquire whether the on-site user of the electronic device agrees to execute the operation request instruction, and when receiving the consent operation instruction output by the electronic device, generate a corresponding operation control instruction according to the operation request instruction and send it to the electronic device to control the working state of the electronic device. The electronic device can inquire the on-site user of the electronic device through a display module, an audio-visual module, etc., and this application does not limit this.

[0102] Fig. 9 It is a schematic diagram of a terminal provided in an embodiment of the present application.

[0103] In one embodiment of the present application, the terminal 10 includes, but is not limited to, a memory 102 , a processor 103 , and a computer program stored in the memory 102 and executable on the processor 103 , such as an application program.

[0104] The processor 103 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 103 is the computing core and control center of the terminal 10, and uses various interfaces and lines to connect various parts of the entire terminal 10, and obtain the operating system of the terminal 10 and various installed applications, program codes, etc.

[0105] The processor 103 obtains the operating system of the terminal 10 and various installed applications. The processor 103 obtains the application to implement the steps in the above-mentioned various control method embodiments, for example Figures 2 to 8 .

[0106] The memory 102 can be used to store computer programs and / or modules. The processor 103 implements various functions of the terminal 10 by running or acquiring computer programs and / or modules stored in the memory 102, and calling data stored in the memory 102. The memory 102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 102 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0107] The memory 102 may be an external memory and / or an internal memory of the terminal 10. Furthermore, the memory 102 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.

[0108] If the program code and various data in the memory 102 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, such as the control method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), etc.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A control method, characterized in that: Applied to a first terminal, and used to control a connected electronic device, the method includes: In response to an operation request instruction for operating the electronic device, acquiring connection information of the electronic device from the electronic device or a server; the connection information includes online information of other terminals connected to the electronic device; If it is confirmed according to the connection information that there is currently a second terminal connected to the electronic device, an operation inquiry instruction is generated to the second terminal connected to the electronic device; the operation inquiry instruction is used to inquire the user of the second terminal whether to agree to execute the operation request instruction; Upon receiving the operation consent instruction output by the second terminal, generating a corresponding operation control instruction according to the operation request instruction and sending the instruction to the electronic device to control the working state of the electronic device; When receiving the rejection operation instruction output by the second terminal, generating a rejection prompt instruction; wherein the rejection prompt instruction is used to prompt the user that the operation request instruction is rejected; or, Upon receiving the rejection operation instruction output by the second terminal, obtaining the priority of the second terminal; When the priority of the second terminal is lower than that of the first terminal, a user identity verification operation is performed, and after the user identity verification is successful, a corresponding operation control instruction is generated according to the operation request instruction and sent to the electronic device to control the working state of the electronic device.

2. The method according to claim 1, characterized in that The method further comprises: When no response instruction is received from the second terminal within a first preset time, a first prompt message is displayed; the first prompt message is used to prompt the user whether to continue to execute the operation request instruction; When a continue execution instruction is received, a user identity verification operation is performed, and after the user identity verification is successful, a corresponding operation control instruction is generated according to the operation request instruction and sent to the electronic device to control the working state of the electronic device.

3. The method according to claim 2, characterized in that The method further comprises: When the user identity verification fails, a verification failure instruction is generated, and the operation request instruction is not responded to; wherein the verification failure instruction is used to prompt the user that the identity verification has failed.

4. The method according to claim 1, characterized in that When the operation request instruction is a shutdown request instruction, before generating a corresponding operation control instruction according to the operation request instruction and sending it to the electronic device, the method further includes: confirming whether the electronic device is in a shutdown prohibited state according to the connection information of the electronic device; When the electronic device is in a shutdown prohibited state, a shutdown prohibited prompt instruction is generated; wherein the shutdown prohibited prompt instruction is used to prompt a user that the electronic device is currently in a shutdown prohibited state.

5. The method according to claim 1, characterized in that The method further comprises: In response to an operation request instruction for operating the electronic device, acquiring historical operation information of the electronic device; When the time difference between the operation request instruction and the most recent historical operation control instruction in the historical operation information is less than a preset time threshold and the operation of the operation request instruction and the operation of the most recent historical operation control instruction are opposite operations to each other, displaying operation prompt information; the operation prompt information is used to prompt the user of the most recent historical operation control instruction and the corresponding user information, and prompt whether to continue to execute the operation request instruction; When a continue execution instruction is received, a corresponding operation control instruction is generated and sent to the electronic device to control the working state of the electronic device.

6. The method according to claim 1, characterized in that The method further comprises: In response to an operation request instruction for operating the electronic device, acquiring a lock state of the electronic device; When the lock state of the electronic device is in the locked state, stop responding to the operation request instruction.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises one or more computer instructions, and the one or more computer instructions are executed by a processor to implement the control method according to any one of claims 1 to 6.

8. A terminal, characterized in that: The terminal includes a processor and a memory, the memory includes one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for controlling controlled device

    CN104320479A

  • Instruction processing method and apparatus, electronic device and storage medium

    WO2020228031A1