CN114125052A - Target operation execution method and device, storage medium and electronic device - Google Patents

Target operation execution method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114125052A
CN114125052A CN202111123102.9A CN202111123102A CN114125052A CN 114125052 A CN114125052 A CN 114125052A CN 202111123102 A CN202111123102 A CN 202111123102A CN 114125052 A CN114125052 A CN 114125052A
Authority
CN
China
Prior art keywords
target
cloud server
communication
equipment
preset
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.)
Granted
Application number
CN202111123102.9A
Other languages
Chinese (zh)
Other versions
CN114125052B (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111123102.9A priority Critical patent/CN114125052B/en
Publication of CN114125052A publication Critical patent/CN114125052A/en
Application granted granted Critical
Publication of CN114125052B publication Critical patent/CN114125052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a target operation execution method and device, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition of detecting the network connection disconnection with the cloud server, establish the connection channel with the cloud server through the communication transfer device that presets, wherein, connection channel includes: the system comprises a near field wireless communication channel between the communication transfer equipment and target equipment, and a network channel between the communication transfer equipment and a cloud server; receiving a timing task synchronized by a cloud server through a connecting channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; by adopting the technical scheme, the problems that in the related art, if the problem occurs in the home network or the public network of the target equipment, the target equipment cannot be issued with the instruction, the timing task cannot be completed, the user experience is influenced and the like are solved.

Description

Target operation execution method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for executing a target operation, a storage medium, and an electronic apparatus.
Background
Along with scientific and technological progress and the development of internet, along with the continuous upgrading of equipment, the continuous perfect of function, the user is using application such as APP and is running at the high in the clouds timing task that the high in the clouds set for, and after the time that arrives the user and set for, the high in the clouds gives the target device and issues corresponding instruction, makes equipment carry out, realizes the completion of timing task. Because the timing task in the existing mode runs at the cloud, a corresponding instruction is sent to the device only at a specific time set by a user, so that the target device executes target operation, and if the home network or the public network of the target device fails, the instruction cannot be sent to the target device, the timing task cannot be completed, and the user experience is influenced.
Aiming at the problems that in the related art, if the home network or the public network of the target equipment has problems, the target equipment cannot be issued with instructions, the timing task cannot be completed, the user experience is influenced, and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a target operation execution method and device, a storage medium and an electronic device, and aims to at least solve the problems that in the related art, if a problem occurs in a home network or a public network of a target device, an instruction cannot be issued to the target device, a timing task cannot be completed, user experience is influenced and the like.
According to an embodiment of the present invention, there is provided a method for executing a target operation, including: under the condition that the network connection with a cloud server is detected to be disconnected, a connection channel with the cloud server is established through a preset communication transfer device, wherein the connection channel comprises: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server; receiving a timing task synchronized by the cloud server through the connection channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; and controlling the target equipment to execute the target operation when the preset time point is reached.
In an exemplary embodiment, in the process of establishing a connection channel with the cloud server through a preset communication relay device, the method includes: transmitting a transfer request message in a broadcasting mode or a multicast mode, and receiving a response message transmitted by a preset communication transfer device after receiving the transfer request message; under the condition of receiving response messages sent by a plurality of preset communication transfer devices, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions from the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
In an exemplary embodiment, before the connection channel with the cloud server is established through a preset communication transit device, the method further includes: the target device periodically sends heartbeat packets to the cloud server according to preset interval time; and under the condition that the target equipment does not successfully send the heartbeat packet, determining that the target equipment is disconnected from the cloud server.
In an exemplary embodiment, before the connection channel with the cloud server is established through a preset communication transit device, the method further includes: checking the transmission rate of the wireless network of the wireless router according to a preset interval time; and under the condition that the transmission rate is smaller than a preset threshold value, determining that the target equipment is disconnected from the cloud server.
In an exemplary embodiment, after receiving the timing task sent by the cloud server, the method further includes: establishing a timing task on an equipment electric control board of the target equipment; and sending first state information to the cloud server under the condition that a timing task is established on the equipment electric control board of the target equipment, wherein the first state information is used for indicating that the target equipment establishes the timing task on the equipment electric control board of the target equipment.
In an exemplary embodiment, after controlling the target device to perform the target operation in case that the preset time point is reached, the method further includes: generating second state information of the target device, wherein the second state information is used for indicating whether the target device executes the target operation at the preset time point; and sending the second state information to the cloud server through the connection channel.
In an exemplary embodiment, after sending the second status information to the cloud server through the connection channel, the method further includes: under the condition that the cloud server receives third state information used for indicating that the target device does not execute the target operation at a preset time point, receiving the task to be executed synchronized by the cloud server through the connection channel again; the third state information is used for indicating that the target device does not execute the target operation in a preset time; and controlling the target equipment to execute the to-be-executed operation indicated by the to-be-executed task after receiving the to-be-executed task synchronized by the cloud server through the connection channel.
According to another embodiment of the present invention, there is also provided an apparatus for executing a target operation, including: the establishing module is used for establishing a connection channel with the cloud server through preset communication transfer equipment under the condition that the network connection with the cloud server is detected to be disconnected, wherein the connection channel comprises: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server; a receiving module, configured to receive a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by the target equipment at a preset time point; and the control module is used for controlling the target equipment to execute the target operation under the condition of reaching the preset time point.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the execution method of the above-mentioned target operation when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for executing the target operation through the computer program.
In the embodiment of the present invention, when a network connection with a cloud server is detected to be disconnected, a connection channel with the cloud server is established through a preset communication relay device, where the connection channel includes: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server; receiving a timing task synchronized by the cloud server through the connection channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; the technical scheme is adopted, the problems that in the related technology, if a problem occurs in a home network or a public network of the target device, the target device cannot be issued with an instruction, the timing task cannot be completed, user experience is influenced and the like are solved, and further timing task execution of the target device is not influenced by the network.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal for performing a method of a target operation according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of performing a target operation according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of performing a target operation in accordance with an alternative embodiment of the present invention;
FIG. 4 is a block diagram (one) of an apparatus for executing a target operation according to an embodiment of the present invention;
fig. 5 is a block diagram (ii) of an execution apparatus of a target operation according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a computer terminal, a mobile terminal or a similar operation device. Taking the mobile terminal as an example, fig. 1 is a hardware block diagram of the mobile terminal of an execution method of a target operation according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, which in an exemplary embodiment may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the execution method of the target operation in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for executing a target operation is provided, and is applied to the mobile terminal described above, and fig. 2 is a flowchart of a method for executing a target operation according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, when detecting that the network connection with the cloud server is disconnected, establishing a connection channel between the target device and the cloud server through a preset communication relay device, where the connection channel includes: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
step S204, receiving a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by the target equipment at a preset time point;
and step S206, controlling the target device to execute the target operation when the preset time point is reached.
Through the steps, under the condition that the network connection between the target device and the cloud server is disconnected, a connection channel between the target device and the cloud server is established through the communication transfer device, wherein the connection channel comprises: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server; receiving a timing task synchronized by a cloud server through a connecting channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; the technical scheme is adopted, the problems that in the related technology, if a problem occurs in a home network or a public network of the target device, the target device cannot be issued with an instruction, the timing task cannot be completed, user experience is influenced and the like are solved, and further timing task execution of the target device is not influenced by the network.
In an exemplary embodiment, in the process of establishing a connection channel with the cloud server through a preset communication relay device, the method includes: transmitting a transfer request message in a broadcasting mode or a multicast mode, and receiving a response message transmitted by a preset communication transfer device after receiving the transfer request message; under the condition of receiving response messages sent by a plurality of preset communication transfer devices, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions from the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
That is, when a plurality of communication relay devices are provided, a target relay communication device is determined according to the near field communication and the network communication quality, specifically, whether the near field communication and the network communication quality of the relay communication device satisfy a preset condition is compared, and when the near field communication and the network communication quality of the target relay communication device satisfy the preset condition, a near field wireless communication channel is established with the target relay communication device.
In an exemplary embodiment, establishing a connection channel between the target device and the cloud server based on the communication transit device includes: acquiring the communication transfer equipment associated with the target equipment according to the target equipment; establishing a Bluetooth channel of the communication transfer equipment and the target equipment and a network channel of the communication transfer equipment and the cloud server; and establishing a connection channel between the target device and the cloud server according to the Bluetooth channel and the network channel.
In other words, under the condition that the target device is disconnected from the cloud server, account information bound to the target device is determined, a communication transfer device corresponding to the target device is determined according to the account information, a bluetooth connection between the communication transfer device and the target device and a network connection between the communication transfer device and the cloud server are established, and then the communication is performed with the cloud by using the network connection between the communication transfer device and the cloud server through the bluetooth connection between the communication transfer device and the target device, so that the communication stability between the target terminal and the cloud server is maintained.
In an exemplary embodiment, before a connection channel with the cloud server is established through a preset communication relay device, the target device periodically sends heartbeat packets to the cloud server at preset intervals; and under the condition that the target equipment does not successfully send the heartbeat packet, determining that the target equipment is disconnected from the cloud server.
In order to maintain the communication stability of a target terminal and a cloud server, presetting interval time so that the target terminal periodically sends heartbeat packets to the cloud server according to the preset interval time, and determining that the target device and the cloud server are normally connected under the condition that the target device successfully sends the heartbeat packets; in short, whether the connection between the target device and the cloud server is disconnected is determined according to the condition that whether the target device sends the heartbeat packet successfully or not.
In an exemplary embodiment, before a connection channel with the cloud server is established through a preset communication transfer device, the transmission rate of a wireless network of the wireless router is checked according to a preset interval time; and under the condition that the transmission rate is smaller than a preset threshold value, determining that the target equipment is disconnected from the cloud server.
In one exemplary embodiment, the transmission rate of a wireless network of a wireless router is checked by: the number of received request packets of the wireless router in unit time and the number of responding request packets of the wireless router in unit time are determined, and the transmission rate of the wireless network of the wireless router is determined according to the number of received request packets and the number of responding request packets of the wireless router in unit time. Under the condition that the transmission rate is smaller than the preset threshold value, the connection between the target device and the cloud server is disconnected; and under the condition that the transmission rate is determined to be greater than the preset threshold value, determining that the connection between the target equipment and the cloud server is not disconnected.
In an exemplary embodiment, after receiving a timing task sent by a cloud server, establishing the timing task on a device electronic control board of the target device; and sending first state information to the cloud server under the condition that a timing task is established on the equipment electric control board of the target equipment, wherein the first state information is used for indicating that the target equipment establishes the timing task on the equipment electric control board of the target equipment.
That is to say, after receiving a timing task sent by a cloud server, a target device establishes the timing task on a device electronic control board, and sends first state information that the target device has established the timing task on the device electronic control board of the target device to the cloud server under the condition that the timing task has been established on the device electronic control board of the target device; and under the condition that the timing task is not established on the equipment electric control board of the target equipment, sending third state information that the timing task is not established on the equipment electric control board of the target equipment by the target equipment to the cloud server.
Further, under the condition that the cloud server receives first state information sent by the target device, the cloud server synchronizes the first state information to the mobile terminal, so that the mobile terminal displays that the target device establishes a timing task on a device electric control board of the target device; under the condition that the cloud server receives third state information sent by the target device, the cloud server synchronizes the third state information to the mobile terminal, so that the mobile terminal displays that the target device does not establish a timing task on the device electric control board of the target device.
For example, after a user sets a timing task for an air conditioner on a mobile terminal, a cloud server establishes the timing task, and simultaneously issues the timing task to the air conditioner to establish the timing task on an equipment electric control board, for example, the air conditioner is adjusted to 27 ℃ at 12 pm for 10 minutes, and after the air conditioner establishes the timing task on the equipment electric control board, state information is sent to the cloud server.
In an exemplary embodiment, in the case that the preset time point is reached, after the target device is controlled to execute the target operation, second state information of the target device is generated, wherein the second state information is used for indicating whether the target device executes the target operation at the preset time point; and sending the second state information to the cloud server through the connection channel.
Specifically, after the target device reaches a preset time point set by a user, the target operation executed by the target device at the preset time point is executed, for example, the temperature of the air conditioner is adjusted to 27 ℃. And after the target equipment finishes executing the corresponding target operation, reporting the execution condition of the target operation to the cloud server, forming a timing task log by the cloud server, synchronizing the second state information to the mobile terminal, and displaying the second state information on the mobile terminal. And the user checks the execution condition through the mobile terminal.
In an exemplary embodiment, after the second status information is sent to the cloud server through the connection channel, in a case that the cloud server receives third status information indicating that the target device does not execute the target operation at a preset time point, the to-be-executed task synchronized by the cloud server through the connection channel is received again; the third state information is used for indicating that the target device does not execute the target operation in a preset time; and controlling the target equipment to execute the to-be-executed operation indicated by the to-be-executed task after receiving the to-be-executed task synchronized by the cloud server through the connection channel.
That is to say, when the cloud server does not receive the second status information at the preset time point of the timing task, the real-time task is sent again through the connection channel to control the target device to execute the target operation.
In order to better understand the process of the method for executing the target operation, the following describes a flow of a method for implementing the target operation with reference to an alternative embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
As shown in fig. 3, fig. 3 is a flowchart of a method for executing a target operation according to an alternative embodiment of the present invention, which is as follows:
step S301: a user sets a timing task for target equipment on a mobile terminal;
step S302: the cloud server establishes a timing task;
step S303: issuing the timing task to target equipment, and establishing the timing task on an equipment electric control board;
step S304: after the device electric control board of the target device successfully sets the timing task, feeding the state information back to the cloud server;
step S305: synchronizing the state information to the mobile terminal, and displaying whether the setting of the timing task is successful or not on the mobile terminal;
step S306: after the timing task is set, the target equipment checks whether the WiFi network connection condition is normal or not according to a determined time interval;
step S307: if the communication between the WiFi network and the cloud server fails, establishing a near-field wireless communication channel with the target device and establishing a network channel between the user mobile phone and the cloud server by using a mobile phone network through establishing a near-field wireless communication channel with the user mobile phone (equivalent to the communication relay device in the embodiment) and maintaining the communication stability;
step S308: after the timing task of the target equipment reaches the time set by the user, executing corresponding target operation;
step S309: after the target equipment executes the corresponding target operation, reporting the execution condition of the target equipment to a cloud server, and forming a timing task log by the cloud server;
step S310: synchronizing the timing task log to the mobile terminal, and displaying the timing task log on the mobile terminal;
step S311: and the user checks the timing task log through the mobile terminal so as to determine the execution condition.
If a user or an application sets multiple sets of timing tasks, multiple sets of timing tasks are also set on the cloud side and the device side, and the execution process is as in steps S301 to S311.
Through the steps, under the condition that the network connection between the target device and the cloud server is disconnected, a connection channel between the target device and the cloud server is established based on the mobile terminal, wherein the connection channel comprises: the Bluetooth channel of the mobile terminal and the target device, and the network channel of the mobile terminal and the cloud server; receiving a timing task synchronized by a cloud server through a connecting channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; the technical scheme is adopted, the problems that in the related technology, if a problem occurs in a home network or a public network of the target device, the target device cannot be issued with an instruction, the timing task cannot be completed, user experience is affected and the like are solved, and further timing task execution of the target device is not affected by the network.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
FIG. 4 is a block diagram (one) of an apparatus for executing a target operation according to an embodiment of the present invention; as shown in fig. 4, includes:
the establishing module 42 is configured to establish a connection channel with the cloud server through a preset communication relay device when detecting that a network connection with the cloud server is disconnected, where the connection channel includes: a Bluetooth channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
a receiving module 44, configured to receive a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by the target equipment at a preset time point;
and a control module 46, configured to control the target device to perform the target operation when the preset time point is reached.
Through above-mentioned device, the establishing module, under the condition that detects the network connection disconnection with high in the clouds server, through the communication transit equipment that presets establish with high in the clouds server the access, wherein, the access includes: the system comprises a near field wireless communication channel between the communication transfer equipment and target equipment, and a network channel between the communication transfer equipment and a cloud server; the receiving module receives a timing task synchronized by the cloud server through a connecting channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point; the control module controls the target device to execute target operation when the preset time point is reached, namely, under the condition that the connection between the target device and the cloud server is disconnected, a connection channel between the target device and the cloud server is established based on the communication transfer device, and the timing task is synchronized through the connection channel.
In an exemplary embodiment, the establishing module is further configured to send a relay request message in a broadcast manner or a multicast manner, and receive a response message sent by a preset communication relay device after receiving the relay request message; under the condition of receiving response messages sent by a plurality of preset communication transfer devices, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions from the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
That is, when a plurality of communication relay devices are provided, a target relay communication device is determined according to the near field communication and the network communication quality, specifically, whether the near field communication and the network communication quality of the relay communication device satisfy a preset condition is compared, and when the near field communication and the network communication quality of the target relay communication device satisfy the preset condition, a near field wireless communication channel is established with the target relay communication device.
In an exemplary embodiment, the establishing module is configured to obtain, according to the target device, the communication relay device associated with the target device; establishing a Bluetooth channel of the communication transfer equipment and the target equipment and a network channel of the communication transfer equipment and the cloud server; and establishing a connection channel between the target device and the cloud server according to the Bluetooth channel and the network channel.
In other words, under the condition that the target device is disconnected from the cloud server, account information bound to the target device is determined, a communication transfer device corresponding to the target device is determined according to the account information, a bluetooth connection between the communication transfer device and the target device and a network connection between the communication transfer device and the cloud server are established, and then the communication is performed with the cloud by using the network connection between the communication transfer device and the cloud server through the bluetooth connection between the communication transfer device and the target device, so that the communication stability between the target terminal and the cloud server is maintained.
In an exemplary embodiment, fig. 5 is a block diagram of an execution apparatus for a target operation according to an embodiment of the present invention (ii); as shown in fig. 5, the above apparatus further includes: the determining module 52 is configured to periodically send a heartbeat packet to the cloud server according to a preset interval time by the target device; and under the condition that the target equipment does not successfully send the heartbeat packet, determining that the target equipment is disconnected from the cloud server.
In order to maintain the communication stability of a target terminal and a cloud server, presetting interval time so that the target terminal periodically sends heartbeat packets to the cloud server according to the preset interval time, and determining that the target device and the cloud server are normally connected under the condition that the target device successfully sends the heartbeat packets; in short, whether the connection between the target device and the cloud server is disconnected is determined according to the condition that whether the target device sends the heartbeat packet successfully or not.
In an exemplary embodiment, the determining module 52 is configured to check a transmission rate of the wireless network of the wireless router according to a preset interval time; and under the condition that the transmission rate is smaller than a preset threshold value, determining that the target equipment is disconnected from the cloud server.
In one exemplary embodiment, the transmission rate of a wireless network of a wireless router is checked by: the number of received request packets of the wireless router in unit time and the number of responding request packets of the wireless router in unit time are determined, and the transmission rate of the wireless network of the wireless router is determined according to the number of received request packets and the number of responding request packets of the wireless router in unit time. Under the condition that the transmission rate is smaller than the preset threshold value, the connection between the target device and the cloud server is disconnected; and under the condition that the transmission rate is determined to be greater than the preset threshold value, determining that the connection between the target equipment and the cloud server is not disconnected.
In an exemplary embodiment, fig. 5 is a block diagram of an execution apparatus for a target operation according to an embodiment of the present invention (ii); as shown in fig. 5, the above apparatus further includes: a sending module 54, configured to establish a timing task on a device electrical control board of the target device; and sending first state information to the cloud server under the condition that a timing task is established on the equipment electric control board of the target equipment, wherein the first state information is used for indicating that the target equipment establishes the timing task on the equipment electric control board of the target equipment.
That is to say, after receiving a timing task sent by a cloud server, a target device establishes the timing task on a device electronic control board, and sends first state information that the target device has established the timing task on the device electronic control board of the target device to the cloud server under the condition that the timing task has been established on the device electronic control board of the target device; and under the condition that the timing task is not established on the equipment electric control board of the target equipment, sending third state information that the timing task is not established on the equipment electric control board of the target equipment by the target equipment to the cloud server.
Further, under the condition that the cloud server receives first state information sent by the target device, the cloud server synchronizes the first state information to the communication transfer device, so that the communication transfer device displays that the target device establishes a timing task on a device electric control board of the target device; under the condition that the cloud server receives third state information sent by the target device, the cloud server synchronizes the third state information to the communication transfer device, so that the communication transfer device displays that the target device does not establish a timing task on the device electric control board of the target device.
For example, after a timing task is set for an air conditioner on a communication relay device by a user, a cloud server establishes the timing task, and simultaneously issues the timing task to the air conditioner to establish the timing task on an equipment electric control board, for example, the air conditioner is adjusted to 27 ℃ at 12 minutes at night and 10 minutes, and after the timing task is established on the equipment electric control board by the air conditioner, state information is sent to the cloud server.
In an exemplary embodiment, the sending module is further configured to generate second status information of the target device, where the second status information is used to indicate whether the target device performs the target operation at the preset time point; and sending the second state information to the cloud server through the connection channel.
Specifically, after the target device reaches a preset time point set by a user, the target operation executed by the target device at the preset time point is executed, for example, the temperature of the air conditioner is adjusted to 27 ℃. And after the target equipment executes the corresponding target operation, reporting the execution condition of the target operation to a cloud server, forming a timing task log by the cloud server, synchronizing the second state information to the communication transfer equipment, and displaying the second state information on the communication transfer equipment. The user checks the execution situation through the communication relay apparatus.
In an exemplary embodiment, the control module is further configured to, in a case that the cloud server receives third status information indicating that the target device does not execute the target operation at a preset time point, receive a task to be executed synchronized by the cloud server through the connection channel again; the third state information is used for indicating that the target device does not execute the target operation in a preset time; and controlling the target equipment to execute the to-be-executed operation indicated by the to-be-executed task after receiving the to-be-executed task synchronized by the cloud server through the connection channel.
That is to say, when the cloud server does not receive the second status information at the preset time point of the timing task, the real-time task is sent again through the connection channel to control the target device to execute the target operation.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, when detecting that the network connection with the cloud server is disconnected, establishing a connection path with the cloud server through a preset communication relay device, where the connection path includes: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
s2, receiving a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by a target preset time point;
and S3, controlling the target device to execute the target operation when the preset time point is reached.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when detecting that the network connection with the cloud server is disconnected, establishing a connection path with the cloud server through a preset communication relay device, where the connection path includes: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
s2, receiving a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by the target equipment at a preset time point;
and S3, controlling the target device to execute the target operation when the preset time point is reached.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for executing target operation is applied to a target device, and is characterized in that the method comprises the following steps:
under the condition that the network connection with a cloud server is detected to be disconnected, a connection channel with the cloud server is established through a preset communication transfer device, wherein the connection channel comprises: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
receiving a timing task synchronized by the cloud server through the connection channel, wherein the timing task is used for indicating: target operation executed by the target equipment at a preset time point;
and controlling the target equipment to execute the target operation when the preset time point is reached.
2. The method for executing the target operation according to claim 1, wherein in the process of establishing a connection channel with the cloud server through a preset communication relay device, the method includes:
transmitting a transfer request message in a broadcasting mode or a multicast mode, and receiving a response message transmitted by a preset communication transfer device after receiving the transfer request message;
under the condition of receiving response messages sent by a plurality of preset communication transfer devices, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions from the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
3. The method for executing the target operation according to claim 1, wherein before the connection channel with the cloud server is established through a preset communication relay device, the method further comprises:
the target device periodically sends heartbeat packets to the cloud server according to preset interval time;
and under the condition that the target equipment does not successfully send the heartbeat packet, determining that the target equipment is disconnected from the cloud server.
4. The method for executing the target operation according to claim 1, wherein before the connection channel with the cloud server is established through a preset communication relay device, the method further comprises:
checking the transmission rate of the wireless network of the wireless router according to a preset interval time;
and under the condition that the transmission rate is smaller than a preset threshold value, determining that the target equipment is disconnected from the cloud server.
5. The method for executing the target operation according to claim 1, wherein after receiving the timing task sent by the cloud server, the method further comprises:
establishing a timing task on an equipment electric control board of the target equipment;
and sending first state information to the cloud server under the condition that a timing task is established on the equipment electric control board of the target equipment, wherein the first state information is used for indicating that the target equipment establishes the timing task on the equipment electric control board of the target equipment.
6. The method for executing the target operation according to claim 1, wherein after controlling the target device to execute the target operation when the preset time point is reached, the method further comprises:
generating second state information of the target device, wherein the second state information is used for indicating whether the target device executes the target operation at the preset time point;
and sending the second state information to the cloud server through the connection channel.
7. The method of claim 6, wherein after sending the second status information to the cloud server via the connection channel, the method further comprises:
under the condition that the cloud server receives third state information used for indicating that the target device does not execute the target operation at a preset time point, receiving the task to be executed synchronized by the cloud server through the connection channel again; the third state information is used for indicating that the target device does not execute the target operation in a preset time;
and controlling the target equipment to execute the to-be-executed operation indicated by the to-be-executed task after receiving the to-be-executed task synchronized by the cloud server through the connection channel.
8. An apparatus for performing a target operation, comprising:
the establishing module is used for establishing a connection channel with the cloud server through preset communication transfer equipment under the condition that the network connection with the cloud server is detected to be disconnected, wherein the connection channel comprises: a near field wireless communication channel between the communication transfer device and the target device, and a network channel between the communication transfer device and the cloud server;
a receiving module, configured to receive a timing task synchronized by the cloud server through the connection channel, where the timing task is used to indicate: target operation executed by the target equipment at a preset time point;
and the control module is used for controlling the target equipment to execute the target operation under the condition of reaching the preset time point.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202111123102.9A 2021-09-24 2021-09-24 Target operation execution method and device, storage medium and electronic device Active CN114125052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111123102.9A CN114125052B (en) 2021-09-24 2021-09-24 Target operation execution method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111123102.9A CN114125052B (en) 2021-09-24 2021-09-24 Target operation execution method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114125052A true CN114125052A (en) 2022-03-01
CN114125052B CN114125052B (en) 2024-03-22

Family

ID=80441201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111123102.9A Active CN114125052B (en) 2021-09-24 2021-09-24 Target operation execution method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114125052B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697359A (en) * 2022-03-04 2022-07-01 青岛海尔科技有限公司 Data collection method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system
CN110830334A (en) * 2018-08-13 2020-02-21 珠海格力电器股份有限公司 Household appliance control method, device, system, server and household appliance
CN112020062A (en) * 2019-05-28 2020-12-01 青岛海尔电冰箱有限公司 Communication control method and system for household appliance
CN113423105A (en) * 2021-06-10 2021-09-21 杭州华橙软件技术有限公司 Network connection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830334A (en) * 2018-08-13 2020-02-21 珠海格力电器股份有限公司 Household appliance control method, device, system, server and household appliance
CN112020062A (en) * 2019-05-28 2020-12-01 青岛海尔电冰箱有限公司 Communication control method and system for household appliance
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system
CN113423105A (en) * 2021-06-10 2021-09-21 杭州华橙软件技术有限公司 Network connection method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697359A (en) * 2022-03-04 2022-07-01 青岛海尔科技有限公司 Data collection method and device, storage medium and electronic device
CN114697359B (en) * 2022-03-04 2024-03-22 青岛海尔科技有限公司 Data collection method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114125052B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN111865736B (en) Equipment control method and device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN112165413B (en) Equipment state reporting method and device and electronic device
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN106851799B (en) Method and device for sending heartbeat packet in long connection
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN108012294B (en) Network switching method and device
CN110831245A (en) Network connection method, device and router
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN114125052B (en) Target operation execution method and device, storage medium and electronic device
EP2582162A1 (en) Method, transmission centre, base station and system for sending broadcast television signals,
CN103516766A (en) Method and system of communication between client-side and application server
CN112749017A (en) Mobile communication method and device, storage medium, and electronic device
JP2004129235A (en) Wireless communication method with channel shared function, and wireless communication system for operating time division multiple access with single communication channel
CN112218247A (en) Internet of things message issuing method and device, electronic equipment and storage medium
CN103002548B (en) The method of the connection of mobile terminal and maintenance mobile terminal and application server
CN113141580B (en) Method, equipment and medium for reporting and determining interest of multicast broadcast service
CN110611589B (en) Control method and device of regional control system and air conditioning system
CN110677898B (en) Interactive electronic label equipment communication system and method
CN108260182B (en) Wireless binding sending method, receiving method, sending end and receiving end
CN112887416A (en) Frequency adjustment method and device for sending keep-alive packets
CN101789958B (en) Method, system and equipment of data synchronization based on equipment management service
JP6199678B2 (en) Wireless communication system
CN107547723B (en) Method and device for receiving information by application

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
GR01 Patent grant
GR01 Patent grant