CN114125052B - 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
CN114125052B
CN114125052B CN202111123102.9A CN202111123102A CN114125052B CN 114125052 B CN114125052 B CN 114125052B CN 202111123102 A CN202111123102 A CN 202111123102A CN 114125052 B CN114125052 B CN 114125052B
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.)
Active
Application number
CN202111123102.9A
Other languages
Chinese (zh)
Other versions
CN114125052A (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

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 that the disconnection of the network connection with the cloud server is detected, a connection channel with the cloud server is established through a preset communication transfer device, wherein the connection channel comprises: near field wireless communication channels of the communication transfer equipment and the target equipment and network channels of the communication transfer equipment and the cloud server; receiving timing tasks synchronized by the cloud server through the connection channel, wherein the timing tasks are used for indicating: target operation executed by target equipment at a preset time point; under the condition that a preset time point is reached, the target equipment is controlled to execute target operation, and the technical scheme is adopted, so that the problems that in the related art, if a home network or a public network of the target equipment is in a problem, an instruction cannot be issued to the target equipment, a timing task cannot be completed, user experience is affected 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 apparatus for performing a target operation, a storage medium, and an electronic apparatus.
Background
Along with the progress of scientific technology and the development of the Internet, along with the continuous upgrading of equipment, the functions are continuously perfected, a user runs on the cloud end at a timing task set by using applications such as APP and the like, and after the time set by the user is reached, the cloud end gives corresponding instructions to target equipment, so that the equipment executes, and the completion of the timing task is realized. Because the timing task in the existing mode runs on the cloud, the corresponding instruction of the device is issued at the specific time set by the user, so that the target device executes the target operation, if the problem occurs in the home network or the public network of the target device, the instruction cannot be issued to the target device, the timing task cannot be completed, and the user experience is affected.
Aiming at the problems that in the related art, if a home network or a public network of target equipment is problematic, an instruction cannot be issued to the target equipment, a timing task cannot be completed, user experience is affected and the like, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the invention provides a target operation executing method and device, a storage medium and an electronic device, which at least solve the problems that in the related art, if a home network or a public network of target equipment is in a problem, an instruction cannot be issued to the target equipment, a timing task cannot be completed, user experience is affected and the like.
According to an embodiment of the present invention, there is provided a method for performing a target operation, including: under the condition that the disconnection of the network connection with the cloud server is detected, 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 transit equipment and the target equipment and a network channel between the communication transit equipment 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 target equipment at a preset time point; and controlling the target equipment to execute the target operation under the condition that the preset time point is reached.
In an exemplary embodiment, in a process of establishing a connection channel with the cloud server through a preset communication transit device, the method includes: transmitting a transfer request message in a broadcasting mode or a multicasting mode, and receiving a response message transmitted by preset communication transfer equipment after receiving the transfer request message; and under the condition that response messages sent by a plurality of preset communication transfer devices are received, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions in 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 between the cloud server and the communication relay device is established through the preset communication relay device, the method further includes: the target device periodically sends a heartbeat packet to the cloud server according to a 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 with the cloud server.
In an exemplary embodiment, before the connection channel between the cloud server and the communication relay device is established through the preset communication relay 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 connection between the target equipment and the cloud server is disconnected.
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 under the condition that the timing task is established on the equipment electric control board of the target equipment, sending first state information to the cloud server, wherein the first state information is used for indicating that the timing task is established on the equipment electric control board of the target equipment.
In an exemplary embodiment, after controlling the target device to perform the target operation if 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 the second state information is sent to the cloud server through the connection channel, the method further includes: receiving a task to be executed, which is synchronized by the cloud server through the connection channel, again under the condition that the cloud server receives third state information for indicating that the target equipment does not execute the target operation at a preset time point; the third state information is used for indicating that the target device does not execute the target operation in preset time; and after receiving the task to be executed, which is synchronized by the cloud server through the connection channel, controlling the target equipment to execute the operation to be executed indicated by the task to be executed.
According to another embodiment of the present invention, there is also provided an apparatus for performing a target operation, including: the system comprises an establishing module, a communication transfer module and a communication processing module, wherein the establishing module is used for establishing a connection channel with a cloud server through a preset communication transfer device under the condition that the network connection with the cloud server is disconnected, and the connection channel comprises: a near field wireless communication channel between the communication transit equipment and the target equipment and a network channel between the communication transit equipment and the cloud server; the receiving module is used for receiving timing tasks synchronized by the cloud server through the connecting channel, wherein the timing tasks are used for indicating: target operation executed by 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 that the preset time point is reached.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the execution method of the above-described target operation when run.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the execution method of the target operation described above through the computer program.
In the embodiment of the invention, under the condition that the disconnection of the network with the cloud server is detected, 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 transit equipment and the target equipment and a network channel between the communication transit equipment 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 target equipment at a preset time point; under the condition that a preset time point is reached, the target equipment is controlled to execute target operation, namely, under the condition that the connection between the target equipment and the cloud server is disconnected, a connection channel between the target equipment and the cloud server is established based on the communication transfer equipment, and timing tasks are synchronized through the connection channel.
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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for performing 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 invention;
FIG. 3 is a flow chart of a method of performing a target operation according to an alternative embodiment of the invention;
FIG. 4 is a block diagram (I) of a target operation execution apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram (ii) of a structure of an execution apparatus of a target operation according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 embodiments provided in the embodiments of the present application may be performed in a computer terminal, a mobile terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, a mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for performing a target operation in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-described method. 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 remotely located relative to the processor 102, which may be connected to the mobile terminal via 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 means 106 is arranged to receive or transmit 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 (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for executing a target operation is provided, which is applied to the mobile terminal, 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 it is detected that the network connection with the cloud server is disconnected, a connection channel between the target device and the cloud server is established through a preset communication transfer device, where the connection channel includes: a near field wireless communication channel between the communication transit equipment and the target equipment and a network channel between the communication transit equipment 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 target equipment at a preset time point;
and step S206, controlling the target equipment to execute the target operation under the condition that the preset time point is reached.
Through the steps, under the condition that the network connection between the target equipment and the cloud server is disconnected, a connection channel between the target equipment and the cloud server is established through the communication transfer equipment, wherein the connection channel comprises: a near field wireless communication channel between the communication transit equipment and the target equipment and a network channel between the communication transit equipment and the cloud server; receiving timing tasks synchronized by the cloud server through the connection channel, wherein the timing tasks are used for indicating: target operation executed by target equipment at a preset time point; under the condition that a preset time point is reached, the target equipment is controlled to execute target operation, namely, under the condition that the connection between the target equipment and the cloud server is disconnected, a connection channel between the target equipment and the cloud server is established based on the communication transfer equipment, and timing tasks are synchronized through the connection channel.
In an exemplary embodiment, in a process of establishing a connection channel with the cloud server through a preset communication transit device, the method includes: transmitting a transfer request message in a broadcasting mode or a multicasting mode, and receiving a response message transmitted by preset communication transfer equipment after receiving the transfer request message; and under the condition that response messages sent by a plurality of preset communication transfer devices are received, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions in the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
That is, in the case where there are a plurality of communication relay apparatuses, a target relay communication apparatus is determined based on near field communication and network communication quality, specifically, whether near field communication and network communication quality of the relay communication apparatus satisfy preset conditions is compared, and in the case where it is determined that near field communication and network communication quality of the target relay communication apparatus satisfy preset conditions, a near field wireless communication channel is established with the target relay communication apparatus.
In an exemplary embodiment, establishing a connection channel between the target device and the cloud server based on the communication relay device includes: acquiring the communication transit 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 connection between the target device and the cloud server is disconnected, the account information bound by the target device is determined, the communication transfer device corresponding to the target device is determined according to the account information, the Bluetooth connection between the communication transfer device and the target device is established, and the network connection between the communication transfer device and the cloud server is further connected with the Bluetooth connection between the communication transfer device and the target device, so that the communication transfer device and the cloud server are further used for communicating with the cloud, and the communication stability between the target terminal and the cloud server is maintained.
In an exemplary embodiment, before a connection channel between the target device and the cloud server is established through a preset communication transfer device, the target device periodically sends a heartbeat packet to the cloud server according to a 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 with the cloud server.
In order to keep the communication stability of the target terminal and the cloud server, presetting an interval time, so that the target terminal periodically sends a heartbeat packet to the cloud server according to the preset interval time, and determining that the target device is normally connected with the cloud server under the condition that the target device successfully sends the heartbeat packet; under the condition that the target equipment does not successfully send the heartbeat packet, determining that the connection between the target equipment and the cloud server is disconnected, and in short, determining whether the connection between the target equipment and the cloud server is disconnected according to the condition that whether the target equipment sends the successful heartbeat packet or not.
In an exemplary embodiment, before a connection channel between the wireless router and the cloud server is established through a preset communication transfer device, checking a transmission rate of a 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 connection between the target equipment and the cloud server is disconnected.
In one exemplary embodiment, the transmission rate of the wireless network of the wireless router is checked by: the method comprises the steps of determining the number of received request packets of a wireless router in unit time and the number of response request packets of the wireless router in unit time, and determining the transmission rate of a wireless network of the wireless router according to the number of the received request packets and the number of response request packets of the wireless router in unit time. Under the condition that the transmission rate is smaller than a preset threshold value, determining that the connection between the target equipment and the cloud server is disconnected; and under the condition that the transmission rate is larger than a preset threshold, determining that the connection between the target equipment and the cloud server is not disconnected.
In an exemplary embodiment, after receiving the timing task sent by the cloud server, the timing task is established on the device electronic control board of the target device; and under the condition that the timing task is established on the equipment electric control board of the target equipment, sending first state information to the cloud server, wherein the first state information is used for indicating that the timing task is established on the equipment electric control board of the target equipment.
That is, after the target device receives the timing task sent by the cloud server, the target device establishes the timing task on the device electronic control board, and under the condition that the timing task is established on the device electronic control board of the target device, the first state information that the target device has established the timing task on the device electronic control board of the target device is sent to the cloud server; 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 the 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 has established a timing task on a device electric control board of the target device; and under the condition that the cloud server receives the third state information sent by the target equipment, the cloud server synchronizes the third state information to the mobile terminal so that the mobile terminal displays that the target equipment does not establish a timing task on an equipment electric control board of the target equipment.
For example, after a user sets a timing task for an air conditioner on a mobile terminal, the cloud server establishes the timing task, and simultaneously issues the timing task to the air conditioner to establish the timing task on the equipment electric control board, for example, the air conditioner is adjusted to 27 ℃ at 12 pm, and after the air conditioner establishes the timing task on the equipment electric control board, the state information is sent to the cloud server, and it is to be noted that the above values are only for better understanding of the embodiment of the present invention, and the embodiment of the present invention is not limited.
In an exemplary embodiment, after the target device is controlled to perform the target operation when the preset time point is reached, generating second state information of the target device, where the second state 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 the user, a target operation performed by the target device at the preset time point is performed, for example, the temperature of the air conditioner is adjusted to 27 ℃. 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 mobile terminal, and displaying on the mobile terminal. And the user checks the execution condition through the mobile terminal.
In an exemplary embodiment, after the second state information is sent to the cloud server through the connection channel, if the cloud server receives third state information for indicating that the target device does not execute the target operation at a preset time point, the task to be executed 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 preset time; and after receiving the task to be executed, which is synchronized by the cloud server through the connection channel, controlling the target equipment to execute the operation to be executed indicated by the task to be executed.
That is, if the cloud server does not receive the second state information at the preset time point of the timing task, the real-time task is sent again through the connection channel, so as to control the target device to execute the target operation.
In order to better understand the process of the execution method of the above target operation, the following describes the implementation method flow of the execution of the above target operation in combination with the alternative embodiment, but is not used to limit the technical solution of the embodiment of the present invention.
As shown in fig. 3, fig. 3 is a flowchart of a method for performing a target operation according to an alternative embodiment of the present invention, specifically as follows:
step S301: setting a timing task for target equipment on a mobile terminal by a user;
step S302: the cloud server establishes a timing task;
step S303: issuing a 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 is successfully set, the state information is fed back to the cloud server;
step S305: synchronizing the state information to the mobile terminal, and displaying whether the timing task setting is successful or not in 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 the determined time interval;
step S307: if communication with the cloud server through the WiFi network fails, a near-field wireless communication channel is established between the user mobile phone (corresponding to the communication transfer device in the embodiment) and the target device, and a network channel is established between the user mobile phone and the cloud server, so that the mobile phone network is used for communication with the cloud server, and the communication stability is maintained;
step S308: after the timing task of the target equipment reaches the user set time, executing corresponding target operation;
Step S309: after the target equipment executes 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 timed task log through the mobile terminal, so as to determine the execution condition.
If the user or the application sets multiple groups of timing tasks, multiple groups of timing tasks are set on the cloud side and the equipment side, and the execution process is as in step S301-step S311.
Through the steps, under the condition that the network connection between the target equipment and the cloud server is disconnected, a connection channel between the target equipment and the cloud server is established based on the mobile terminal, wherein the connection channel comprises: bluetooth channels of the mobile terminal and the target equipment, and network channels of the mobile terminal and the cloud server; receiving timing tasks synchronized by the cloud server through the connection channel, wherein the timing tasks are used for indicating: target operation executed by target equipment at a preset time point; under the condition that a preset time point is reached, controlling the target equipment to execute target operation, namely under the condition that the connection between the target equipment and the cloud server is disconnected, establishing a connection channel between the target equipment and the cloud server based on the mobile terminal, and synchronizing timing tasks through the connection channel.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
FIG. 4 is a block diagram (I) of a target operation execution apparatus 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 transfer device when detecting that the network connection with the cloud server is disconnected, where the connection channel includes: the communication transfer equipment and the Bluetooth channel of the target equipment are connected with the network channel of the cloud server;
The receiving module 44 is configured to receive a timing task synchronized by the cloud server through the connection channel, where the timing task is used to instruct: target operation executed by target equipment at a preset time point;
and the control module 46 is used for controlling the target equipment to execute the target operation under the condition that the preset time point is reached.
Through the device, the establishing module establishes a connection channel with the cloud server through the preset communication transfer equipment under the condition that the network connection with the cloud server is disconnected, wherein the connection channel comprises: near field wireless communication channels of the communication transfer equipment and the target equipment and network channels of the communication transfer equipment and the cloud server; the receiving module receives timing tasks synchronized by the cloud server through the connecting channel, wherein the timing tasks are used for indicating: target operation executed by target equipment at a preset time point; the control module is used for controlling the target equipment to execute target operation under the condition that a preset time point is reached, namely, under the condition that the connection between the target equipment and the cloud server is disconnected, a connection channel between the target equipment and the cloud server is established based on the communication transfer equipment, and timing tasks are synchronized through the connection channel.
In an exemplary embodiment, the establishing module is further configured to send a transfer request packet in a broadcast manner or a multicast manner, and receive a response packet sent by a preset communication transfer device after receiving the transfer request packet; and under the condition that response messages sent by a plurality of preset communication transfer devices are received, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions in the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
That is, in the case where there are a plurality of communication relay apparatuses, a target relay communication apparatus is determined based on near field communication and network communication quality, specifically, whether near field communication and network communication quality of the relay communication apparatus satisfy preset conditions is compared, and in the case where it is determined that near field communication and network communication quality of the target relay communication apparatus satisfy preset conditions, a near field wireless communication channel is established with the target relay communication apparatus.
In an exemplary embodiment, a building module is configured to obtain, from 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 connection between the target device and the cloud server is disconnected, the account information bound by the target device is determined, the communication transfer device corresponding to the target device is determined according to the account information, the Bluetooth connection between the communication transfer device and the target device is established, and the network connection between the communication transfer device and the cloud server is further connected with the Bluetooth connection between the communication transfer device and the target device, so that the communication transfer device and the cloud server are further used for communicating with the cloud, and the communication stability between the target terminal and the cloud server is maintained.
In one exemplary embodiment, fig. 5 is a block diagram (ii) of a structure of an execution apparatus of a target operation according to an embodiment of the present invention; as shown in fig. 5, the apparatus further includes: the determining module 52 is configured to periodically send a heartbeat packet to the cloud server by using the target device according to a 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 with the cloud server.
In order to keep the communication stability of the target terminal and the cloud server, presetting an interval time, so that the target terminal periodically sends a heartbeat packet to the cloud server according to the preset interval time, and determining that the target device is normally connected with the cloud server under the condition that the target device successfully sends the heartbeat packet; under the condition that the target equipment does not successfully send the heartbeat packet, determining that the connection between the target equipment and the cloud server is disconnected, and in short, determining whether the connection between the target equipment and the cloud server is disconnected according to the condition that whether the target equipment sends the successful heartbeat packet or not.
In an exemplary embodiment, a 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 connection between the target equipment and the cloud server is disconnected.
In one exemplary embodiment, the transmission rate of the wireless network of the wireless router is checked by: the method comprises the steps of determining the number of received request packets of a wireless router in unit time and the number of response request packets of the wireless router in unit time, and determining the transmission rate of a wireless network of the wireless router according to the number of the received request packets and the number of response request packets of the wireless router in unit time. Under the condition that the transmission rate is smaller than a preset threshold value, determining that the connection between the target equipment and the cloud server is disconnected; and under the condition that the transmission rate is larger than a preset threshold, determining that the connection between the target equipment and the cloud server is not disconnected.
In one exemplary embodiment, fig. 5 is a block diagram (ii) of a structure of an execution apparatus of a target operation according to an embodiment of the present invention; as shown in fig. 5, the apparatus further includes: a sending module 54, configured to establish a timing task on an equipment electronic control board of the target equipment; and under the condition that the timing task is established on the equipment electric control board of the target equipment, sending first state information to the cloud server, wherein the first state information is used for indicating that the timing task is established on the equipment electric control board of the target equipment.
That is, after the target device receives the timing task sent by the cloud server, the target device establishes the timing task on the device electronic control board, and under the condition that the timing task is established on the device electronic control board of the target device, the first state information that the target device has established the timing task on the device electronic control board of the target device is sent to the cloud server; 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 the 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 has established a timing task on a device electric control board of the target device; and under the condition that the cloud server receives the third state information sent by the target equipment, the cloud server synchronizes the third state information to the communication transfer equipment so that the communication transfer equipment displays that the target equipment does not establish a timing task on an equipment electric control board of the target equipment.
For example, after a user sets a timing task for an air conditioner on a communication transfer device, the cloud server establishes the timing task, and simultaneously issues the timing task to the air conditioner to establish the timing task on a device electric control board, for example, the air conditioner adjusts to 27 ℃ at 12 pm, and after the air conditioner establishes the timing task on the device electric control board, the state information is sent to the cloud server, which is to be noted, and the above values are only for better understanding of the embodiment of the present invention, and the embodiment of the present invention is not limited.
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 point in time; 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 the user, a target operation performed by the target device at the preset time point is performed, for example, the temperature of the air conditioner is adjusted to 27 ℃. After the target equipment executes 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 communication transfer equipment, and displaying the second state information on the communication transfer equipment. The user checks the execution condition through the communication relay equipment.
In an exemplary embodiment, the control module is further configured to, when the cloud server receives third state information for indicating that the target device does not execute the target operation at a preset time point, receive, again, a task to be executed that is synchronized by the cloud server through the connection channel; the third state information is used for indicating that the target device does not execute the target operation in preset time; and after receiving the task to be executed, which is synchronized by the cloud server through the connection channel, controlling the target equipment to execute the operation to be executed indicated by the task to be executed.
That is, if the cloud server does not receive the second state information at the preset time point of the timing task, the real-time task is sent again through the connection channel, so as to control the target device to execute the target operation.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
S1, under the condition that the disconnection of the network connection with a cloud server is detected, 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 transit equipment and the target equipment and a network channel between the communication transit equipment and the cloud server;
s2, 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 a target preset time point is set;
and S3, controlling the target equipment to execute the target operation under the condition that the preset time point is reached.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, under the condition that the disconnection of the network connection with a cloud server is detected, 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 transit equipment and the target equipment and a network channel between the communication transit equipment and the cloud server;
s2, 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 target equipment at a preset time point;
and S3, controlling the target equipment to execute the target operation under the condition that the preset time point is reached.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for performing a target operation, applied to a target device, the method comprising:
Under the condition that the disconnection of the network connection with the cloud server is detected, 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 transit equipment and the target equipment and a network channel between the communication transit equipment 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 target equipment at a preset time point;
controlling the target equipment to execute the target operation under the condition that the preset time point is reached;
in the process of establishing a connection channel with the cloud server through a preset communication transfer device, the method comprises the following steps:
transmitting a transfer request message in a broadcasting mode or a multicasting mode, and receiving a response message transmitted by preset communication transfer equipment after receiving the transfer request message;
and under the condition that response messages sent by a plurality of preset communication transfer devices are received, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions in the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
2. The method for performing the target operation according to claim 1, wherein before the connection channel with the cloud server is established through the preset communication relay device, the method further comprises:
the target device periodically sends a heartbeat packet to the cloud server according to a 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 with the cloud server.
3. The method for performing the target operation according to claim 1, wherein before the connection channel with the cloud server is established through the 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 connection between the target equipment and the cloud server is disconnected.
4. The method for performing 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 under the condition that the timing task is established on the equipment electric control board of the target equipment, sending first state information to the cloud server, wherein the first state information is used for indicating that the timing task is established on the equipment electric control board of the target equipment.
5. The method of performing a target operation according to claim 1, wherein, in a case where the preset time point is reached, the method further comprises, after controlling the target device to perform the target operation:
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.
6. The method according to claim 5, wherein after sending the second status information to the cloud server through the connection channel, the method further comprises:
receiving a task to be executed, which is synchronized by the cloud server through the connection channel, again under the condition that the cloud server receives third state information for indicating that the target equipment does not execute the target operation at a preset time point; the third state information is used for indicating that the target device does not execute the target operation in preset time;
and after receiving the task to be executed, which is synchronized by the cloud server through the connection channel, controlling the target equipment to execute the operation to be executed indicated by the task to be executed.
7. An execution apparatus of a target operation, comprising:
the system comprises an establishing module, a communication transfer module and a communication processing module, wherein the establishing module is used for establishing a connection channel with a cloud server through a preset communication transfer device under the condition that the network connection with the cloud server is disconnected, and the connection channel comprises: a near field wireless communication channel between the communication transit equipment and the target equipment and a network channel between the communication transit equipment and the cloud server;
the receiving module is used for receiving timing tasks synchronized by the cloud server through the connecting channel, wherein the timing tasks are used for indicating: target operation executed by target equipment at a preset time point; the control module is used for controlling the target equipment to execute the target operation under the condition that the preset time point is reached;
the system comprises a building module, a communication relay device and a communication relay device, wherein the building module is also used for sending a relay request message in a broadcasting mode or a multicasting mode and receiving a response message sent by the preset communication relay device after receiving the relay request message;
and under the condition that response messages sent by a plurality of preset communication transfer devices are received, determining target transfer communication devices with near field communication and network communication quality meeting preset conditions in the plurality of preset communication transfer devices, and establishing a near field wireless communication channel with the target transfer communication devices.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 6.
9. 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 according to any of the claims 1 to 6 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 CN114125052A (en) 2022-03-01
CN114125052B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697359B (en) * 2022-03-04 2024-03-22 青岛海尔科技有限公司 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

Also Published As

Publication number Publication date
CN114125052A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN109769239A (en) Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network
US9462053B2 (en) Method and apparatus for connection establishment
CN103037359A (en) Method, terminal and system for achieving device-to-device communication
CN110636483A (en) Network distribution method and system
CN103517371A (en) Device-to-device communication method, apparatus and system
CN101998543B (en) Switching method, system and device
CN106961426B (en) Communication method and device of intelligent equipment
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
CN108012294B (en) Network switching method and device
CN114125052B (en) Target operation execution method and device, storage medium and electronic device
CN113721966A (en) Node upgrading method and device, storage medium and electronic device
CN111884875A (en) Offline device determination method and device
CN103516766A (en) Method and system of communication between client-side and application server
CN106912043A (en) A kind of Wi Fi equipment, distribution method and system
CN106851198A (en) Web camera operation method and web camera
CN112218247A (en) Internet of things message issuing method and device, electronic equipment and storage medium
CN113132157B (en) Equipment configuration method and device, storage medium and electronic device
KR20200108305A (en) Data transmission method and apparatus, computer storage medium
CN110572440B (en) Method and device for data transmission, household appliance and storage medium
CN107172188A (en) P2P update methods between mobile unit
CN109451596B (en) Data transmission method and related device
CN109495918B (en) Data transmission method and device
CN108260182B (en) Wireless binding sending method, receiving method, sending end and receiving end
US20090122780A1 (en) System and method for providing scheduled data communications in a communication system

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