Nothing Special   »   [go: up one dir, main page]

CN113518125A - Offline data uploading method and system, storage medium and electronic device - Google Patents

Offline data uploading method and system, storage medium and electronic device Download PDF

Info

Publication number
CN113518125A
CN113518125A CN202110739525.7A CN202110739525A CN113518125A CN 113518125 A CN113518125 A CN 113518125A CN 202110739525 A CN202110739525 A CN 202110739525A CN 113518125 A CN113518125 A CN 113518125A
Authority
CN
China
Prior art keywords
equipment
data
server
offline
router
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110739525.7A
Other languages
Chinese (zh)
Inventor
钱东生
刘建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110739525.7A priority Critical patent/CN113518125A/en
Publication of CN113518125A publication Critical patent/CN113518125A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an off-line data uploading method and system, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a data transmission mode between first equipment and a server; determining whether the first equipment is main equipment or not according to the transmission mode, wherein the main equipment is used for indicating the equipment with the capability of directly communicating with the server; under the condition that the first device is determined to be the main device, offline data of a second device which cannot upload data through the router connection server in the target area are received, and the offline data are uploaded to the server, wherein the second device is used for indicating the device which is not the main device and is in an offline state, the problems that offline reasons of the device cannot be monitored in time and the like in the prior art are solved, the offline reasons of the offline device are reported in time, and the occurrence of an event that a target object cannot acquire the offline device in time is avoided.

Description

Offline data uploading method and system, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to an offline data uploading method and system, a storage medium and an electronic device.
Background
With the rapid development of the internet of things era, the smart home era has come, and numerous types of smart home appliances have entered thousands of households, so that numerous living and working convenience are brought to users.
The existing product architecture is a connection mode of intelligent equipment and a router, data communication does not exist between the intelligent equipment, after the equipment is disconnected from the router, if the equipment cannot be online again after being offline, the offline reason cannot be reported in time, important data cannot be reported, and household economic property loss can be caused. When the intelligent device cannot connect the route due to the problem of the intelligent device, the intelligent device cannot report the offline reason in time, and the user cannot know the offline reason of the intelligent device. When a problem occurs in the router in the home, the equipment cannot be connected, the intelligent equipment in the home loses the remote interaction capacity with the cloud server, the intelligent equipment in the home is remotely off-line, the off-line reason cannot be reported in time, and a user cannot know the off-line of the equipment.
Aiming at the problems that the offline reason of the equipment cannot be monitored in time and the like in the related technology, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides an offline data uploading method and system, a storage medium and an electronic device, and at least solves the problem that the offline reason of equipment cannot be monitored in time in the related art.
According to an embodiment of the present invention, there is provided an offline data uploading method, including: acquiring a data transmission mode between first equipment and a server; determining whether the first equipment is a main equipment according to the transmission mode, wherein the main equipment is used for indicating equipment with the capability of directly communicating with a server; and under the condition that the first equipment is determined to be the main equipment, receiving offline data of second equipment which cannot be connected with the server through a router to upload data in a target area, and uploading the offline data to the server, wherein the second equipment is used for indicating the equipment which is not the main equipment and has an offline equipment state.
In an exemplary embodiment, in a case that it is determined that the first device is a master device, receiving offline data of a second device in a target area, which cannot be connected to the server through a router to upload data, and uploading the offline data to the server includes: under the condition that all equipment in a target area cannot establish connection with a router, the main equipment actively initiates mobile connection with the server; and determining the main equipment as a communication node according to the mobile connection so as to forward the offline data of the plurality of second equipment in the target area through the main equipment.
In an exemplary embodiment, after determining the master device as a communication node according to the mobile connection, so as to forward offline data of a plurality of second devices in the target area through the master device, the method further includes: determining an offline reason of the second device according to the offline data; and sending prompt information to a target object in the target area when the offline reason is an abnormal reason, wherein the prompt information is used for prompting the target object to detect the abnormal offline second equipment.
In an exemplary embodiment, determining whether the first device is a master device according to the transmission manner includes: determining that the first equipment is a main equipment under the condition that the transmission mode indicates that the first equipment is not connected with a server through a router and the first equipment allows the direct connection with the server; and under the condition that the transmission mode indicates that the first equipment is connected with a server through a router, determining that the first equipment is not the main equipment, and acquiring the transmission efficiency of the first equipment for the data information.
In an exemplary embodiment, determining that the first device is not a master device, and obtaining the transmission efficiency of the first device for the data information includes: acquiring an equipment efficiency list recorded in a server, wherein the equipment efficiency list is used for indicating the data transmission efficiency when each piece of equipment existing in a target area communicates with the server; and determining the transmission efficiency of the first device when the first device transmits data with the server through the router according to the device efficiency list.
In an exemplary embodiment, after determining, according to the device efficiency list, a transmission efficiency when the first device performs data transmission with the server through the router, the method further includes: acquiring a preset transmission efficiency threshold, wherein the transmission efficiency threshold is used for indicating a value of transmission efficiency corresponding to equipment which is connected with a router and has network quality meeting the requirement of simultaneously transmitting different equipment data in a target area; and under the condition that the transmission efficiency of the first equipment does not accord with the transmission efficiency threshold, forbidding the first equipment to forward the offline data corresponding to the second equipment.
According to another embodiment of the present invention, there is provided an offline data uploading system, including: a server, a device in a target area connected with the server through a router, wherein the device comprises: a first device, a second device; the first device is used for determining whether the first device is a master device according to the acquired transmission mode, receiving offline data of a second device which cannot be connected with the server through a router to upload data in a target area under the condition that the first device is determined to be the master device, and uploading the offline data to the server, wherein the master device is used for indicating a device which has the capability of directly communicating with the server; the second device is used for indicating the device which is not the main device and is in an off-line state.
In an exemplary embodiment, the first device is further configured to determine that the first device is a master device when the transmission manner indicates that the first device is not connected to the server through the router and the first device allows a direct connection with the server; and under the condition that the transmission mode indicates that the first equipment is connected with a server through a router, determining that the first equipment is not the main equipment, and acquiring the transmission efficiency of the first equipment for the data information.
In an exemplary embodiment, the first device is further configured to, when it is determined that all devices existing in the target area cannot establish a connection with the router, actively initiate a mobile connection with the server by the first device serving as a master device; and determining the main equipment as a communication node according to the mobile connection so as to forward the offline data of the plurality of second equipment in the target area through the main equipment.
In an exemplary embodiment, the first device is further configured to determine an offline reason of the second device according to the offline data; and sending prompt information to a target object in the target area when the offline reason is an abnormal reason, wherein the prompt information is used for prompting the target object to detect the abnormal offline second equipment.
In an exemplary embodiment, the first device is further configured to obtain a device efficiency list recorded in a server, where the device efficiency list is used to indicate data transmission efficiency when each device existing in a target area communicates with the server; and determining the transmission efficiency of the first device when the first device transmits data with the server through the router according to the device efficiency list.
In an exemplary embodiment, the first device is further configured to obtain a preset transmission efficiency threshold, where the transmission efficiency threshold is used to indicate a value of transmission efficiency corresponding to a device that is connected to the router and has a network quality that meets the requirement of simultaneously transmitting data of different devices in the target area; and under the condition that the transmission efficiency of the first equipment does not accord with the transmission efficiency threshold, forbidding the first equipment to forward the offline data corresponding to the second equipment.
In an exemplary embodiment, the second device is further configured to determine historical transmission efficiency of a first device to be connected according to the cached historical device efficiency list, and establish a data connection with the first device when the historical transmission efficiency meets a preset transmission efficiency threshold, where the data connection includes at least one of: wireless bluetooth type data connection, multicast type data connection, transmission control protocol type data connection.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the data transmission mode between the first equipment and the server is obtained; determining whether the first equipment is main equipment or not according to the transmission mode, wherein the main equipment is used for indicating the equipment with the capability of directly communicating with the server; and under the condition that the first equipment is determined to be the main equipment, receiving offline data of second equipment which cannot be connected with the server through the router to upload the data in the target area, and uploading the offline data to the server, wherein the second equipment is used for indicating the equipment which is not the main equipment and has an offline equipment state. That is to say, under the condition that it is determined that the main device and the offline device in the target area cannot upload the offline data through the router, the main device is used as an offline data forwarding node of the offline device, and then, real-time uploading of the offline data is ensured.
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 structure of an equipment terminal of an offline data uploading method according to an embodiment of the present invention;
fig. 2 is a flowchart of an offline data uploading method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an offline data uploading method according to an alternative embodiment of the present invention;
fig. 4 is a flowchart illustrating an offline data uploading method according to an alternative embodiment of the present invention (ii);
fig. 5 is a flowchart illustrating an offline data uploading method according to an alternative embodiment of the present invention (iii);
fig. 6 is a block diagram illustrating an offline data uploading apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
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.
The method provided by the embodiment of the application can be executed in a computer terminal or a similar operation device of an equipment terminal. Taking an example of running on an equipment terminal, fig. 1 is a hardware structure block diagram of the equipment terminal of the method for uploading offline data according to the embodiment of the present invention. As shown in fig. 1, the device terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and 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 is not intended to limit the structure of the terminal of the above-described device. For example, the device 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 a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the offline data uploading method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. 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 device 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 device 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, an offline data uploading method is provided, and fig. 2 is a flowchart of the offline data uploading method according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, acquiring a data transmission mode between the first equipment and the server;
optionally, the transmission mode may be that the first device establishes a transmission connection of data with the server through the router, or that the device of the first device has a network communication function and can directly connect to the server to transmit data.
Step S204, determining whether the first device is a master device according to the transmission mode, wherein the master device is used for indicating a device with the capability of directly communicating with a server;
step S206, receiving offline data of a second device in the target area, which cannot be connected to the server through the router to upload data, when it is determined that the first device is the master device, and uploading the offline data to the server, where the second device is used to indicate a device that is not the master device and whose device status is offline.
Through the steps, a data transmission mode between the first equipment and the server is obtained; determining whether the first equipment is main equipment or not according to the transmission mode, wherein the main equipment is used for indicating the equipment with the capability of directly communicating with the server; and under the condition that the first equipment is determined to be the main equipment, receiving offline data of second equipment which cannot be connected with the server through the router to upload the data in the target area, and uploading the offline data to the server, wherein the second equipment is used for indicating the equipment which is not the main equipment and has an offline equipment state. That is to say, under the condition that it is determined that the main device and the offline device in the target area cannot upload the offline data through the router, the main device is used as an offline data forwarding node of the offline device, and then, real-time uploading of the offline data is ensured.
In an exemplary embodiment, in a case that it is determined that the first device is a master device, receiving offline data of a second device in a target area, which cannot be connected to the server through a router to upload data, and uploading the offline data to the server includes: under the condition that all equipment in a target area cannot establish connection with a router, the main equipment actively initiates mobile connection with the server; and determining the main equipment as a communication node according to the mobile connection so as to forward the offline data of the plurality of second equipment in the target area through the main equipment.
For example, when the smart device A, B, C, D is unable to establish a connection with a router, device a, which is the master device, may open a mobile network to establish data communication with a server. The smart device B, C, D may attempt to establish a connection with the master device a and, after the connection is successful, send the respective offline reason to the server via the master device a.
In an exemplary embodiment, after determining the master device as a communication node according to the mobile connection, so as to forward offline data of a plurality of second devices in the target area through the master device, the method further includes: determining an offline reason of the second device according to the offline data; and sending prompt information to a target object in the target area when the offline reason is an abnormal reason, wherein the prompt information is used for prompting the target object to detect the abnormal offline second equipment.
It can be understood that, in order to improve the viewing efficiency of the target object for the abnormal offline device, when it is determined that the offline reason of the offline device is the abnormal reason according to the offline data, a prompt instruction is sent to the device which is connected to the target area and can be used for sending the prompt information, so that the prompt device can instruct the target object to detect the abnormal offline device according to the prompt instruction.
In an exemplary embodiment, determining whether the first device is a master device according to the transmission manner includes: determining that the first equipment is a main equipment under the condition that the transmission mode indicates that the first equipment is not connected with a server through a router and the first equipment allows the direct connection with the server; and under the condition that the transmission mode indicates that the first equipment is connected with a server through a router, determining that the first equipment is not the main equipment, and acquiring the transmission efficiency of the first equipment for the data information.
In an exemplary embodiment, determining that the first device is not a master device, and obtaining the transmission efficiency of the first device for the data information includes: acquiring an equipment efficiency list recorded in a server, wherein the equipment efficiency list is used for indicating the data transmission efficiency when each piece of equipment existing in a target area communicates with the server; and determining the transmission efficiency of the first device when the first device transmits data with the server through the router according to the device efficiency list.
It can be understood that, in order to ensure the transmission efficiency between the device and the server, when the device is networked between the servers through the router for data transmission, the network quality of the data transmission is acquired in real time, so as to determine the transmission efficiency lists of the device in the networking state at different time points, and flexibly arrange each device to carry out the time point of a large amount of data transmission according to the determined transmission efficiency lists, thereby avoiding the waste of network resources and improving the uploading efficiency of device data.
In short, because the network connection effects of different devices are different, when the wireless connection is established between the main device and the offline device, a plurality of devices with better network quality data may pass through, and in order to reduce unnecessary transmission time, a path of the wireless connection established between the main device and the offline device is acquired; and taking the path with the least wireless connection times in the paths as a priority uploading path of the main equipment and the off-line equipment.
In an exemplary embodiment, after determining, according to the device efficiency list, a transmission efficiency when the first device performs data transmission with the server through the router, the method further includes: acquiring a preset transmission efficiency threshold, wherein the transmission efficiency threshold is used for indicating a value of transmission efficiency corresponding to equipment which is connected with a router and has network quality meeting the requirement of simultaneously transmitting different equipment data in a target area; and under the condition that the transmission efficiency of the first equipment does not accord with the transmission efficiency threshold, forbidding the first equipment to forward the offline data corresponding to the second equipment.
In short, in order to improve the transmission efficiency of the offline data of the second device, the existing transmission efficiency of the first device is determined, and when the network of the first device is poor, the first device with poor network quality is not used to forward the offline data corresponding to the second device, and a new target first device meeting the transmission efficiency requirement is searched again in the target area to transmit the data information.
In order to better understand the process of the above offline data uploading method, the following describes a flow of the above offline data uploading method with reference to two alternative embodiments.
In an optional embodiment of the present invention, there is mainly provided an offline data uploading method, where when there are multiple intelligent devices in a home environment, at least one of the intelligent devices serves as a master device (a), and the master device a has a capability of directly connecting to a server for data communication and also has a capability of connecting to the server for data communication through a router. The router connection is preferentially used by default. When the router fails to connect, the server is directly connected.
Alternatively, multiple smart devices (A, B, C, D) in the home may connect to the router, connect to the cloud server through the router, and report network quality data of the devices to the server. When the intelligent device is in the networking state, the network quality data of other devices in the family can be cached. Each intelligent device maintains a connection state with the router. When the connection state with the router is disconnected, the equipment is offline equipment.
Optionally, as shown in fig. 3, which is a flowchart (one) of an offline data uploading method according to an optional embodiment of the present invention, after the intelligent device B becomes an offline device, the intelligent device B may select an intelligent device (C) with a better network according to the cached network quality data of the intelligent device to establish a data connection (which may be in a bluetooth/multicast/TCP manner) successfully, then may read a networking state of the intelligent device C, and when the device C is in a normal connection state, send an offline reason of the device B to the server.
Optionally, as shown in fig. 4, which is a flowchart of an offline data uploading method according to an optional embodiment of the present invention (ii), 4, when a data connection between the intelligent device B and the intelligent device C fails or the intelligent device C is an offline device, the connection between the intelligent device B and the intelligent device D is attempted, and after the connection is successful, the networking state of the intelligent device D is read, and when the device D is in a normal connection state, the offline reason of the device B is sent to the server.
Optionally, as shown in fig. 5, which is a flowchart (iii) of an offline data uploading method according to an optional embodiment of the present invention, when the intelligent device A, B, C, D cannot be connected to the router, the master device a opens the mobile network to establish data communication with the server. The smart device B, C, D may attempt to establish a connection with master a and, upon successful connection, send the offline reason to the server. Specifically, when the smart device A, B, C, D cannot establish a connection with the router, the master device a opens the mobile network and establishes data communication with the server. The intelligent device B cannot be connected with the main device A, the intelligent device C can be connected with the main device A, the intelligent device B can be connected with the intelligent device C, under the condition, the intelligent device B can send offline reasons to the intelligent device C, forwards the offline reasons to the main device A and reports the offline reasons to the cloud service.
In summary, according to the optional embodiment of the present invention, the capability of data interaction between the intelligent devices is improved by determining the master device, and when some of the devices are offline, the master device in other devices in the home can report the offline reason, thereby ensuring the timeliness of data reporting. And because the main equipment has the capability of directly communicating with the cloud service and does not completely depend on the data access capability of the router, when the local area network cannot be normally used due to the problem of the router, the main equipment can be actively connected with the cloud server to establish a new data path, and other equipment can still report the connection reason to the cloud service through the main equipment, so that the timeliness of data reporting is ensured.
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 (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an offline data uploading system is further provided, and the system is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted.
Fig. 6 is a block diagram of a structure of an offline data uploading system according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
a server 62, a device 66 in a target area connected to the server via a router 64, wherein the device comprises: a first device 72, a second device 74;
the first device 72 is configured to determine whether the first device is a master device according to the acquired transmission manner, receive offline data of a second device in a target area, which cannot be connected to the server through a router to upload data, and upload the offline data to the server when the first device is determined to be the master device, where the master device is configured to indicate a device having a capability of directly communicating with the server;
the second device 74 is used to indicate a device that is not the master device and whose device status is offline.
Acquiring a data transmission mode between the first equipment and the server through the system; determining whether the first equipment is main equipment or not according to the transmission mode, wherein the main equipment is used for indicating the equipment with the capability of directly communicating with the server; and under the condition that the first equipment is determined to be the main equipment, receiving offline data of second equipment which cannot be connected with the server through the router to upload the data in the target area, and uploading the offline data to the server, wherein the second equipment is used for indicating the equipment which is not the main equipment and has an offline equipment state. That is to say, under the condition that it is determined that the main device and the offline device in the target area cannot upload the offline data through the router, the main device is used as an offline data forwarding node of the offline device, and then, real-time uploading of the offline data is ensured.
Optionally, the server is configured to receive offline data uploaded by the router or the first device serving as the master device, and perform data statistical analysis.
In an exemplary embodiment, the first device is further configured to determine that the first device is a master device when the transmission manner indicates that the first device is not connected to the server through the router and the first device allows a direct connection with the server; and under the condition that the transmission mode indicates that the first equipment is connected with a server through a router, determining that the first equipment is not the main equipment, and acquiring the transmission efficiency of the first equipment for the data information.
In an exemplary embodiment, the first device is further configured to, when it is determined that all devices existing in the target area cannot establish a connection with the router, actively initiate a mobile connection with the server by the first device serving as a master device; and determining the main equipment as a communication node according to the mobile connection so as to forward the offline data of the plurality of second equipment in the target area through the main equipment.
For example, when the smart device A, B, C, D is unable to establish a connection with a router, device a, which is the master device, may open a mobile network to establish data communication with a server. The smart device B, C, D may attempt to establish a connection with the master device a and, after the connection is successful, send the respective offline reason to the server via the master device a.
In an exemplary embodiment, the first device is further configured to determine an offline reason of the second device according to the offline data; and sending prompt information to a target object in the target area when the offline reason is an abnormal reason, wherein the prompt information is used for prompting the target object to detect the abnormal offline second equipment.
It can be understood that, in order to improve the viewing efficiency of the target object for the abnormal offline device, when it is determined that the offline reason of the offline device is the abnormal reason according to the offline data, a prompt instruction is sent to the device which is connected to the target area and can be used for sending the prompt information, so that the prompt device can instruct the target object to detect the abnormal offline device according to the prompt instruction.
In an exemplary embodiment, the first device is further configured to obtain a device efficiency list recorded in a server, where the device efficiency list is used to indicate data transmission efficiency when each device existing in a target area communicates with the server; and determining the transmission efficiency of the first device when the first device transmits data with the server through the router according to the device efficiency list.
It can be understood that, in order to ensure the transmission efficiency between the device and the server, when the device is networked between the servers through the router for data transmission, the network quality of the data transmission is acquired in real time, so as to determine the transmission efficiency lists of the device in the networking state at different time points, and flexibly arrange each device to carry out the time point of a large amount of data transmission according to the determined transmission efficiency lists, thereby avoiding the waste of network resources and improving the uploading efficiency of device data.
In short, because the network connection effects of different devices are different, when the wireless connection is established between the main device and the offline device, a plurality of devices with better network quality data may pass through, and in order to reduce unnecessary transmission time, a path of the wireless connection established between the main device and the offline device is acquired; and taking the path with the least wireless connection times in the paths as a priority uploading path of the main equipment and the off-line equipment.
In an exemplary embodiment, the first device is further configured to obtain a preset transmission efficiency threshold, where the transmission efficiency threshold is used to indicate a value of transmission efficiency corresponding to a device that is connected to the router and has a network quality that meets the requirement of simultaneously transmitting data of different devices in the target area; and under the condition that the transmission efficiency of the first equipment does not accord with the transmission efficiency threshold, forbidding the first equipment to forward the offline data corresponding to the second equipment.
In short, in order to improve the transmission efficiency of the offline data of the second device, the existing transmission efficiency of the first device is determined, and when the network of the first device is poor, the first device with poor network quality is not used to forward the offline data corresponding to the second device, and a new target first device meeting the transmission efficiency requirement is searched again in the target area to transmit the data information.
In an exemplary embodiment, the second device is further configured to determine historical transmission efficiency of a first device to be connected according to the cached historical device efficiency list, and establish a data connection with the first device when the historical transmission efficiency meets a preset transmission efficiency threshold, where the data connection includes at least one of: wireless bluetooth type data connection, multicast type data connection, transmission control protocol type data connection.
Optionally, as shown in fig. 3, which is a flowchart (one) of an offline data uploading method according to an optional embodiment of the present invention, after the intelligent device B becomes an offline device, the intelligent device B may select an intelligent device (C) with a better network according to the cached network quality data of the intelligent device to establish a data connection (which may be in a bluetooth/multicast/TCP manner) successfully, then may read a networking state of the intelligent device C, and when the device C is in a normal connection state, send an offline reason of the device B to the server.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a data transmission mode between the first equipment and the server;
s2, determining whether the first device is a master device according to the transmission mode, wherein the master device is used for indicating a device with the capability of direct communication with a server;
and S3, receiving offline data of a second device which cannot be connected with the server through the router to upload data in the target area under the condition that the first device is determined to be the main device, and uploading the offline data to the server, wherein the second device is used for indicating the device which is not the main device and has an offline device state.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, 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.
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.
In an exemplary embodiment, 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.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a data transmission mode between the first equipment and the server;
s2, determining whether the first device is a master device according to the transmission mode, wherein the master device is used for indicating a device with the capability of direct communication with a server;
and S3, receiving offline data of a second device which cannot be connected with the server through the router to upload data in the target area under the condition that the first device is determined to be the main device, and uploading the offline data to the server, wherein the second device is used for indicating the device which is not the main device and has an offline device state.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them 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. An off-line data uploading method, comprising:
acquiring a data transmission mode between first equipment and a server;
determining whether the first equipment is a main equipment according to the transmission mode, wherein the main equipment is used for indicating equipment with the capability of directly communicating with a server;
and under the condition that the first equipment is determined to be the main equipment, receiving offline data of second equipment which cannot be connected with the server through a router to upload data in a target area, and uploading the offline data to the server, wherein the second equipment is used for indicating the equipment which is not the main equipment and has an offline equipment state.
2. The method of claim 1, wherein receiving offline data of a second device in a target area, which cannot be connected to the server through a router to upload data, and uploading the offline data to the server if the first device is determined to be a master device, comprises:
under the condition that all equipment in a target area cannot establish connection with a router, the main equipment actively initiates mobile connection with the server;
and determining the main equipment as a communication node according to the mobile connection so as to forward the offline data of the plurality of second equipment in the target area through the main equipment.
3. The method of claim 2, wherein after determining the primary device as a communication node according to the mobile connection to forward offline data of the plurality of second devices in the target area through the primary device, the method further comprises:
determining an offline reason of the second device according to the offline data;
and sending prompt information to a target object in the target area when the offline reason is an abnormal reason, wherein the prompt information is used for prompting the target object to detect the abnormal offline second equipment.
4. The method of claim 1, wherein determining whether the first device is a master device according to the transmission mode comprises:
determining that the first equipment is a main equipment under the condition that the transmission mode indicates that the first equipment is not connected with a server through a router and the first equipment allows the direct connection with the server;
and under the condition that the transmission mode indicates that the first equipment is connected with a server through a router, determining that the first equipment is not the main equipment, and acquiring the transmission efficiency of the first equipment for the data information.
5. The method of claim 4, wherein determining that the first device is not a master device and obtaining the transmission efficiency of the first device for the data information comprises:
acquiring an equipment efficiency list recorded in a server, wherein the equipment efficiency list is used for indicating the data transmission efficiency when each piece of equipment existing in a target area communicates with the server;
and determining the transmission efficiency of the first device when the first device transmits data with the server through the router according to the device efficiency list.
6. The method of claim 5, wherein after determining the transmission efficiency of the first device in data transmission with the server through the router according to the device efficiency list, the method further comprises:
acquiring a preset transmission efficiency threshold, wherein the transmission efficiency threshold is used for indicating a value of transmission efficiency corresponding to equipment which is connected with a router and has network quality meeting the requirement of simultaneously transmitting different equipment data in a target area;
and under the condition that the transmission efficiency of the first equipment does not accord with the transmission efficiency threshold, forbidding the first equipment to forward the offline data corresponding to the second equipment.
7. An off-line data uploading system, comprising:
a server, a device in a target area connected with the server through a router, wherein the device comprises: a first device, a second device;
the first device is used for determining whether the first device is a master device according to the acquired transmission mode, receiving offline data of a second device which cannot be connected with the server through a router to upload data in a target area under the condition that the first device is determined to be the master device, and uploading the offline data to the server, wherein the master device is used for indicating a device which has the capability of directly communicating with the server;
the second device is used for indicating the device which is not the main device and is in an off-line state.
8. The system according to claim 7, wherein the second device is further configured to determine historical transmission efficiency of a first device to be connected according to the cached historical device efficiency list, and establish a data connection with the first device when the historical transmission efficiency meets a preset transmission efficiency threshold, where the data connection includes at least one of: wireless bluetooth type data connection, multicast type data connection, transmission control protocol type data connection.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202110739525.7A 2021-06-30 2021-06-30 Offline data uploading method and system, storage medium and electronic device Pending CN113518125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110739525.7A CN113518125A (en) 2021-06-30 2021-06-30 Offline data uploading method and system, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110739525.7A CN113518125A (en) 2021-06-30 2021-06-30 Offline data uploading method and system, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113518125A true CN113518125A (en) 2021-10-19

Family

ID=78066597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110739525.7A Pending CN113518125A (en) 2021-06-30 2021-06-30 Offline data uploading method and system, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113518125A (en)

Cited By (3)

* 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
CN114826810A (en) * 2022-04-28 2022-07-29 宁波奥克斯电气股份有限公司 Intelligent household equipment offline control method, system, equipment, server and medium
CN116074375A (en) * 2021-10-29 2023-05-05 青岛海尔科技有限公司 Method, system and equipment for updating remote online state of equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468291A (en) * 2014-11-18 2015-03-25 深圳市金博通科技有限公司 WiFi module communication method and device
CN204334626U (en) * 2014-06-06 2015-05-13 佛山市顺德区美的电热电器制造有限公司 Household electrical appliance and communication system thereof
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204334626U (en) * 2014-06-06 2015-05-13 佛山市顺德区美的电热电器制造有限公司 Household electrical appliance and communication system thereof
CN104468291A (en) * 2014-11-18 2015-03-25 深圳市金博通科技有限公司 WiFi module communication method and device
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074375A (en) * 2021-10-29 2023-05-05 青岛海尔科技有限公司 Method, system and equipment for updating remote online state of equipment
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
CN114826810A (en) * 2022-04-28 2022-07-29 宁波奥克斯电气股份有限公司 Intelligent household equipment offline control method, system, equipment, server and medium
CN114826810B (en) * 2022-04-28 2024-05-10 宁波奥克斯电气股份有限公司 Offline control method, system, device, server and medium for intelligent household equipment

Similar Documents

Publication Publication Date Title
CN111143061B (en) Multi-device linkage control method, device and storage medium
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN111865736B (en) Equipment control method and device
CN109617731A (en) Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN107733672A (en) Fault handling method, device and controller
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN110808948B (en) Remote procedure calling method, device and system
CN102045192A (en) Apparatus and system for estimating network configuration
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN111405492A (en) Method, device, storage medium, and electronic device for connecting to target network
CN111884875A (en) Offline device determination method and device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
EP3188418B1 (en) Near field discovery method, user equipment, and storage medium
CN113452576A (en) Network environment monitoring method and device, storage medium and electronic device
CN112637931A (en) Method and device for establishing network connection
CN115004650A (en) Node configuration method, device, distributed system and computer readable medium
CN105141657A (en) Novel network communication method suitable for intelligent household control system
CN105045110B (en) Method and device for forwarding household appliance service call request
CN113852667A (en) Message pushing method and device, storage medium and electronic device
CN111050356A (en) Data transmission processing method and device, storage medium and electronic device
KR20140125223A (en) Method for collecting information with management interface in contents network based on information centric networking, content network management system, and node apparatus
CN112689010B (en) Equipment message transmission method and device, storage medium and electronic device
CN112738922B (en) Data processing method and device, storage medium and electronic device
CN107248935B (en) System and method for network management to discover and monitor network elements
CN110300035B (en) Method, system, device and server for judging load state of storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211019