CN114697359B - Data collection method and device, storage medium and electronic device - Google Patents

Data collection method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114697359B
CN114697359B CN202210213775.1A CN202210213775A CN114697359B CN 114697359 B CN114697359 B CN 114697359B CN 202210213775 A CN202210213775 A CN 202210213775A CN 114697359 B CN114697359 B CN 114697359B
Authority
CN
China
Prior art keywords
target
equipment
data
target equipment
local data
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
CN202210213775.1A
Other languages
Chinese (zh)
Other versions
CN114697359A (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 CN202210213775.1A priority Critical patent/CN114697359B/en
Publication of CN114697359A publication Critical patent/CN114697359A/en
Application granted granted Critical
Publication of CN114697359B publication Critical patent/CN114697359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data collection method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the data collection method comprises the following steps: acquiring communication information of target equipment; when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection through the target equipment is determined, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment; the method comprises the steps of obtaining a collection result of target equipment, determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collection result, and solving the problems that in the prior art, data collection is required to be carried out by consuming flow, the data cannot be obtained in real time, and the data cannot be transmitted to the local server in time.

Description

Data collection method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of smart home, and in particular, to a data collection method and apparatus, a storage medium, and an electronic apparatus.
Background
With the development of internet technology and internet of things technology, more and more devices support the collection and uploading of operation data, but in the related technology, the used log reports the operation information of the devices and is communicated with the cloud, but the operation data cannot be collected and stored locally, in addition, a large amount of data traffic is required to be consumed for interaction with the cloud, the use of other devices in the network can be influenced, the communication time delay is caused, and when the devices have problems and need to check the operation data, the traffic is required to be consumed for downloading, and the problem solving time is increased. When the problem is difficult to locate, a large number of data queries must also be performed.
Aiming at the problems that in the related art, flow is consumed to collect data, the data cannot be acquired in real time and transmitted to a local server in time and the like, an effective technical scheme has not been proposed.
Disclosure of Invention
The embodiment of the invention provides a data collection method and device, a storage medium and an electronic device, which at least solve the problems that in the related technology, data collection is required to be carried out by consuming flow, the data cannot be acquired in real time, and the data cannot be transmitted to a local server in time.
According to an embodiment of the present invention, there is provided a data collection method including: acquiring communication information of target equipment; when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection through the target equipment is determined, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment; and acquiring a collection result of the target equipment, and determining whether the target equipment is set as a transfer node for transmitting local data to the local server according to the collection result.
In one exemplary embodiment, obtaining communication information of a target device includes: transmitting an interaction instruction to target equipment based on a preset communication technology protocol; and acquiring feedback information of the target equipment according to the interaction instruction, and analyzing the feedback information to obtain communication information corresponding to the target equipment, wherein the feedback information is used for indicating the target equipment to establish all communication modes of wireless communication.
In an exemplary embodiment, in a case where the communication information indicates that the target device has at least two communication modes, and at least one of the communication modes is bluetooth communication, the method further includes, before determining that the local data is collected by the target device: the method comprises the steps of sending first indication information to target equipment, wherein the first indication information is used for indicating the target equipment to start Bluetooth communication and sending a connection request to other equipment which is in the same target area with the target equipment; determining a response result of the other equipment to the connection request sent by the target equipment, wherein the response result is used for indicating whether the target equipment completes the establishment of Bluetooth connection with the other equipment; and determining a connection list of the target equipment and other equipment according to the response result.
In an exemplary embodiment, after determining the connection list of the target device and the other devices according to the response result, the method further includes: under the condition that the number of the connections in the connection list is larger than a preset threshold value, determining that the current target equipment is effective equipment; and sending prompt information to the target object bound by the target device, wherein the prompt information is used for inquiring whether the target object agrees to use the target device to collect the local data.
In one exemplary embodiment, determining that local data is collected by a target device includes: sending second indication information to the target equipment, wherein the second indication information is used for indicating the target equipment to acquire operation data in other equipment through the established Bluetooth connection and tidying the operation data; determining that the target equipment responds to the second indication information to obtain a data set, wherein the data set comprises the following components: operational data of the target device and other devices; local data collected by the target device is determined based on the data set.
In an exemplary embodiment, obtaining a collection result of the target device, and determining whether to set the target device as a transit node for local data transmission to the local server according to the collection result includes: determining to set the target device as a transit node for transmitting the local data to the local server under the condition that the collection result indicates that the local data is successfully collected, so as to ensure continuous collection of the local data; and in the case that the collection result indicates that the local data is not successfully collected, prohibiting the target equipment from being set as a transfer node for transmitting the local data to the local server.
In an exemplary embodiment, after obtaining the collection result of the target device and determining whether to set the target device as a transit node for local data transmission to the local server according to the collection result, the method further includes: under the condition that search information sent by a target object is received, the search information is transmitted to a local server through target equipment for inquiry; and acquiring a query result of the search information determined by the local server.
According to another embodiment of the present invention, there is provided a data collection apparatus including: the acquisition module is used for acquiring the communication information of the target equipment; the determining module is used for determining to collect local data through the target equipment when the communication information indicates that the target equipment has at least two communication modes and at least one of the two communication modes is Bluetooth communication, wherein the local data are used for indicating operation data of other equipment which are in the same target area with the target equipment; the setting module is used for acquiring a collection result of the target equipment and determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collection result, wherein the collection result is used for indicating whether an abnormality exists in the collection process.
In an exemplary embodiment, the obtaining module is further configured to transmit an interaction instruction to the target device based on a preset communication technology protocol; and acquiring feedback information of the target equipment according to the interaction instruction, and analyzing the feedback information to obtain communication information corresponding to the target equipment, wherein the feedback information is used for indicating the target equipment to establish all communication modes of wireless communication.
In an exemplary embodiment, the above apparatus further includes: the response module is used for sending first indication information to the target equipment, wherein the first indication information is used for indicating the target equipment to start Bluetooth communication and sending a connection request to other equipment which is in the same target area with the target equipment; determining a response result of the other equipment to the connection request sent by the target equipment, wherein the response result is used for indicating whether the target equipment completes the establishment of Bluetooth connection with the other equipment; and determining a connection list of the target equipment and other equipment according to the response result.
In an exemplary embodiment, the response module further includes: the prompting unit is used for determining that the current target equipment is effective equipment under the condition that the number of the connections in the connection list is larger than a preset threshold value; and sending prompt information to the target object bound by the target device, wherein the prompt information is used for inquiring whether the target object agrees to use the target device to collect the local data.
In an exemplary embodiment, the determining module is further configured to send second indication information to the target device, where the second indication information is used to instruct the target device to obtain operation data in other devices through the established bluetooth connection, and sort the operation data; determining that the target equipment responds to the second indication information to obtain a data set, wherein the data set comprises the following components: operational data of the target device and other devices; local data collected by the target device is determined based on the data set.
In an exemplary embodiment, the setting module is further configured to determine to set the target device as a transit node for transmitting the local data to the local server, so as to ensure continuous collection of the local data, if the collection result indicates that the local data is successfully collected; and in the case that the collection result indicates that the local data is not successfully collected, prohibiting the target equipment from being set as a transfer node for transmitting the local data to the local server.
In an exemplary embodiment, the above apparatus further includes: the query module is used for transmitting the search information to the local server for query through the target equipment under the condition of receiving the search information sent by the target object; and acquiring a query result of the search information determined by the local server.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided 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.
According to the invention, the communication information of the target equipment is obtained; when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection through the target equipment is determined, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment; the method comprises the steps of obtaining a collecting result of target equipment, determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collecting result, namely, determining that the target equipment can collect the local data by determining a communication mode of the target equipment and determining that the target equipment can be used as the transfer node for transmitting the local data to the local server under the condition that the target equipment has a Bluetooth communication function.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method of collecting data according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of collecting data according to an embodiment of the invention;
fig. 3 is a schematic diagram illustrating interaction between a communication module and a local service and an internet of things cloud according to an alternative embodiment of the present invention;
FIG. 4 is a block diagram (one) of a data collection device according to an embodiment of the present invention;
fig. 5 is a block diagram (two) of a structure of a data collection apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application 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 embodiments of the present application 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.
According to one aspect of the embodiments of the present application, a method for collecting data is provided. The data collection method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described data collection method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for collecting data is provided, and fig. 2 is a flowchart of a method for collecting data according to an embodiment of the present invention, where the flowchart includes the following steps:
Step S202, obtaining communication information of target equipment;
step S204, when the communication information indicates that at least two communication modes exist in the target device and at least one of the two communication modes is Bluetooth communication, local data collection is determined to be performed through the target device, wherein the local data are used for indicating operation data of other devices in the same target area with the target device;
step S206, obtaining a collection result of the target device, and determining whether to set the target device as a transfer node for local data transmission to a local server according to the collection result.
Through the steps, the communication information of the target equipment is obtained; when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection through the target equipment is determined, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment; the method comprises the steps of obtaining a collecting result of target equipment, determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collecting result, namely, determining that the target equipment can collect the local data by determining a communication mode of the target equipment and determining that the target equipment can be used as the transfer node for transmitting the local data to the local server under the condition that the target equipment has a Bluetooth communication function.
In one exemplary embodiment, obtaining communication information of a target device includes: transmitting an interaction instruction to target equipment based on a preset communication technology protocol; and acquiring feedback information of the target equipment according to the interaction instruction, and analyzing the feedback information to obtain communication information corresponding to the target equipment, wherein the feedback information is used for indicating the target equipment to establish all communication modes of wireless communication.
In short, by sending interactive instructions of different communication protocols to the target device, the current communication mode of the target object, that is, the bluetooth communication mode corresponding to the bluetooth protocol and the 5G communication mode corresponding to the 5G communication protocol, can be determined according to feedback information made by the target object, so that the communication mode of the target device can be accurately known.
In an exemplary embodiment, in a case where the communication information indicates that the target device has at least two communication modes, and at least one of the communication modes is bluetooth communication, the method further includes, before determining that the local data is collected by the target device: the method comprises the steps of sending first indication information to target equipment, wherein the first indication information is used for indicating the target equipment to start Bluetooth communication and sending a connection request to other equipment which is in the same target area with the target equipment; determining a response result of the other equipment to the connection request sent by the target equipment, wherein the response result is used for indicating whether the target equipment completes the establishment of Bluetooth connection with the other equipment; and determining a connection list of the target equipment and other equipment according to the response result.
That is, when local data collection of other devices is performed through the target device, a bluetooth communication channel between the target device and the other devices needs to be established, local data corresponding to the other devices is collected through the bluetooth communication channel, and in order to ensure the connection identifiability between the target device and the other devices, information of the other devices which successfully establish bluetooth communication with the target device is determined by generating a connection list.
In an exemplary embodiment, after determining the connection list of the target device and the other devices according to the response result, the method further includes: under the condition that the number of the connections in the connection list is larger than a preset threshold value, determining that the current target equipment is effective equipment; and sending prompt information to the target object bound by the target device, wherein the prompt information is used for inquiring whether the target object agrees to use the target device to collect the local data.
In one exemplary embodiment, determining that local data is collected by a target device includes: sending second indication information to the target equipment, wherein the second indication information is used for indicating the target equipment to acquire operation data in other equipment through the established Bluetooth connection and tidying the operation data; determining that the target equipment responds to the second indication information to obtain a data set, wherein the data set comprises the following components: operational data of the target device and other devices; local data collected by the target device is determined based on the data set.
In other words, in order to better collect local data of other devices in the target area where the target device is located, by determining the number of devices in the connection list, which have successfully established bluetooth communication, comparing the number of devices with the number of devices in the target area, when the difference between the number of devices and the number of devices is not large, it is indicated that the target device can obtain local data of other devices in almost all the target area through bluetooth communication, and further the target device can be used as a collection center of the local data, and in order to protect privacy security of the target object, under the condition that the target device is determined to be used as the collection center of the local data, prompt information is sent to the target object bound by the target device, so as to ensure that the target device is authorized by the target object to perform local data collection operation.
In an exemplary embodiment, obtaining a collection result of the target device, and determining whether to set the target device as a transit node for local data transmission to the local server according to the collection result includes: determining to set the target device as a transit node for transmitting the local data to the local server under the condition that the collection result indicates that the local data is successfully collected, so as to ensure continuous collection of the local data; and in the case that the collection result indicates that the local data is not successfully collected, prohibiting the target equipment from being set as a transfer node for transmitting the local data to the local server.
It should be noted that, the local data collection result here refers to that, when the other devices are multiple, it needs to determine that all local data of the other devices are collected successfully or not, so as to ensure consistency of collection of the other devices, and when the other devices that are not collected successfully appear, send an alarm message to the target object, prompt that there is a device that cannot perform bluetooth communication in the other devices existing in the target area, and need to perform security authentication on the other devices in the target area, so as to ensure security of collecting local data in a home unit.
In an exemplary embodiment, after obtaining the collection result of the target device and determining whether to set the target device as a transit node for local data transmission to the local server according to the collection result, the method further includes: under the condition that search information sent by a target object is received, the search information is transmitted to a local server through target equipment for inquiry; and acquiring a query result of the search information determined by the local server.
In order to better understand the process of the data collection method, the following describes the flow of the data collection method in connection with several alternative embodiments.
As an alternative embodiment, a communication module design based on data collection of local service is provided, and fig. 3 is an interaction schematic diagram of a communication module according to an alternative embodiment of the present invention, the local service and the cloud of the internet of things;
optionally, the communication module is composed of a 4G module and a Bluetooth module or a 5G module and a Bluetooth module; it should be noted that, because the 4G module requires small space, it can be used for communication of miniaturized equipment, but because the system resource of the 4G module is very limited, the memory and flash only have space less than 1M, which is not suitable for storing a large amount of data by the host; therefore, the data generated by the 4G module, such as log and trace information that are convenient to locate, module state change data, and alarm data, when stored, need to be paid and flow through the operator network, and uploaded to the cloud through the consumed traffic. This undoubtedly increases the saving cost of data, and therefore, the BLE bluetooth module is added inside the communication module having only the 4G module for establishing communication with the local server. When the communication module is used, the 4G module in the communication module is only used for large circulation and cloud interaction. And the BLE Bluetooth module is added in the 4G module and used for establishing communication with the local server.
Optionally, when the device has the communication module, only necessary cloud control and protocol interaction are performed in the process a of communication with the cloud. In the B flow communicated with the local server, the Bluetooth function of the BLE Bluetooth module is directly connected with the local server, log data is reported at regular time, an alarm, a state information change notification and the like are carried out, so that the miniaturized Internet of things equipment can store the local data in the local server, the subsequent data searching for solving the technical problem is facilitated, and the flow consumption problem caused by using the 4G module is avoided.
In sum, through above-mentioned improvement design, integrate at least two kinds of communication modes including bluetooth communication in the communication module of small-size thing networking equipment for small-size thing networking equipment is when exchanging with high in the clouds and local service, avoids too much flow consumption, has practiced thrift use cost. Compared with the prior art, the design enables the local data to be uploaded to the local server in real time under the condition of not consuming traffic, and is convenient for searching the subsequent local data.
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 instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the collection of data according to the embodiments of the present invention.
The embodiment also provides a data collection device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram (a) of a data collection apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
(1) An obtaining module 42, configured to obtain communication information of the target device;
(2) A determining module 44, configured to determine, when the communication information indicates that there are at least two communication modes of the target device and at least one of the two communication modes is bluetooth communication, to collect local data by the target device, where the local data is used to indicate operation data of other devices that are in the same target area with the target device;
(3) The setting module 46 is configured to obtain a collection result of the target device, and determine whether to set the target device as a transfer node for transmitting local data to a local server according to the collection result, where the collection result is used to indicate whether an anomaly exists in a collection process.
Through the device, the communication information of the target equipment is acquired; when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection through the target equipment is determined, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment; the method comprises the steps of obtaining a collecting result of target equipment, determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collecting result, namely, determining that the target equipment can collect the local data by determining a communication mode of the target equipment and determining that the target equipment can be used as the transfer node for transmitting the local data to the local server under the condition that the target equipment has a Bluetooth communication function.
In an exemplary embodiment, the obtaining module is further configured to transmit an interaction instruction to the target device based on a preset communication technology protocol; and acquiring feedback information of the target equipment according to the interaction instruction, and analyzing the feedback information to obtain communication information corresponding to the target equipment, wherein the feedback information is used for indicating the target equipment to establish all communication modes of wireless communication.
In short, by sending interactive instructions of different communication protocols to the target device, the current communication mode of the target object, that is, the bluetooth communication mode corresponding to the bluetooth protocol and the 5G communication mode corresponding to the 5G communication protocol, can be determined according to feedback information made by the target object, so that the communication mode of the target device can be accurately known.
Fig. 5 is a block diagram (two) of a data collection apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes, in addition to all the modules in fig. 4: a response module 43, a query module 48;
in an exemplary embodiment, the above apparatus further includes: the response module is used for sending first indication information to the target equipment, wherein the first indication information is used for indicating the target equipment to start Bluetooth communication and sending a connection request to other equipment which is in the same target area with the target equipment; determining a response result of the other equipment to the connection request sent by the target equipment, wherein the response result is used for indicating whether the target equipment completes the establishment of Bluetooth connection with the other equipment; and determining a connection list of the target equipment and other equipment according to the response result.
That is, when local data collection of other devices is performed through the target device, a bluetooth communication channel between the target device and the other devices needs to be established, local data corresponding to the other devices is collected through the bluetooth communication channel, and in order to ensure the connection identifiability between the target device and the other devices, information of the other devices which successfully establish bluetooth communication with the target device is determined by generating a connection list.
In an exemplary embodiment, the response module further includes: the prompting unit is used for determining that the current target equipment is effective equipment under the condition that the number of the connections in the connection list is larger than a preset threshold value; and sending prompt information to the target object bound by the target device, wherein the prompt information is used for inquiring whether the target object agrees to use the target device to collect the local data.
In an exemplary embodiment, the determining module is further configured to send second indication information to the target device, where the second indication information is used to instruct the target device to obtain operation data in other devices through the established bluetooth connection, and sort the operation data; determining that the target equipment responds to the second indication information to obtain a data set, wherein the data set comprises the following components: operational data of the target device and other devices; local data collected by the target device is determined based on the data set.
In other words, in order to better collect local data of other devices in the target area where the target device is located, by determining the number of devices in the connection list, which have successfully established bluetooth communication, comparing the number of devices with the number of devices in the target area, when the difference between the number of devices and the number of devices is not large, it is indicated that the target device can obtain local data of other devices in almost all the target area through bluetooth communication, and further the target device can be used as a collection center of the local data, and in order to protect privacy security of the target object, under the condition that the target device is determined to be used as the collection center of the local data, prompt information is sent to the target object bound by the target device, so as to ensure that the target device is authorized by the target object to perform local data collection operation.
In an exemplary embodiment, the setting module is further configured to determine to set the target device as a transit node for transmitting the local data to the local server, so as to ensure continuous collection of the local data, if the collection result indicates that the local data is successfully collected; and in the case that the collection result indicates that the local data is not successfully collected, prohibiting the target equipment from being set as a transfer node for transmitting the local data to the local server.
It should be noted that, the local data collection result here refers to that, when the other devices are multiple, it needs to determine that all local data of the other devices are collected successfully or not, so as to ensure consistency of collection of the other devices, and when the other devices that are not collected successfully appear, send an alarm message to the target object, prompt that there is a device that cannot perform bluetooth communication in the other devices existing in the target area, and need to perform security authentication on the other devices in the target area, so as to ensure security of collecting local data in a home unit.
In an exemplary embodiment, the above apparatus further includes: the query module is used for transmitting the search information to the local server for query through the target equipment under the condition of receiving the search information sent by the target object; and acquiring a query result of the search information determined by the local server.
In the description of the present invention, it should be understood that the directions or positional relationships indicated by the terms "center", "upper", "lower", "front", "rear", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or component to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of the two components. When an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. It will be understood by those of ordinary skill in the art that the terms described above are in the specific sense of the present invention.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring communication information of target equipment;
s2, under the condition that the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection is determined to be carried out through the target equipment, wherein the local data are used for indicating operation data of other equipment which are in the same target area with the target equipment;
s3, acquiring a collection result of the target equipment, and determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collection result.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
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.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps by a computer program:
s1, acquiring communication information of target equipment;
s2, under the condition that the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection is determined to be carried out through the target equipment, wherein the local data are used for indicating operation data of other equipment which are in the same target area with the target equipment;
s3, acquiring a collection result of the target equipment, and determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collection result.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to 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, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (9)

1. A method of collecting data, comprising:
acquiring communication information of target equipment;
when the communication information indicates that at least two communication modes exist in the target equipment and at least one of the two communication modes is Bluetooth communication, local data collection is determined to be carried out through the target equipment, wherein the local data are used for indicating operation data of other equipment in the same target area with the target equipment;
acquiring a collection result of the target equipment, and determining whether to set the target equipment as a transfer node for transmitting local data to a local server according to the collection result;
the obtaining the collection result of the target device, and determining whether to set the target device as a transfer node for transmitting local data to a local server according to the collection result includes:
determining to set the target device as a transit node for local data transmission to a local server to ensure continuous collection of the local data if the collection result indicates successful collection of the local data;
and under the condition that the collection result indicates that the local data is not successfully collected, the target equipment is forbidden to be set as a transfer node for transmitting the local data to the local server.
2. The method of collecting data according to claim 1, wherein acquiring communication information of the target device comprises:
transmitting an interaction instruction to the target equipment based on a preset communication technology protocol;
and acquiring feedback information of the target equipment according to the interaction instruction, and analyzing the feedback information to obtain communication information corresponding to the target equipment, wherein the feedback information is used for indicating all communication modes of the target equipment for establishing wireless communication.
3. The method of claim 1, wherein, in the case where the communication information indicates that there are at least two communication modes of the target device and at least one of the communication modes is bluetooth communication, the method further comprises, before determining that local data is collected by the target device:
the method comprises the steps of sending first indication information to target equipment, wherein the first indication information is used for indicating the target equipment to start Bluetooth communication and sending a connection request to other equipment which is in the same target area with the target equipment;
determining a response result of the other equipment to the connection request sent by the target equipment, wherein the response result is used for indicating whether the target equipment completes the establishment of Bluetooth connection with the other equipment;
And determining a connection list of the target equipment and the other equipment according to the response result.
4. The method for collecting data according to claim 3, wherein after determining the connection list of the target device and the other device according to the response result, the method further comprises:
under the condition that the number of the connections in the connection list is larger than a preset threshold value, determining that the current target equipment is effective equipment;
and sending prompt information to the target object bound by the target device, wherein the prompt information is used for inquiring whether the target object agrees to use the target device to collect local data.
5. The method of collecting data according to claim 1, wherein determining that local data is collected by the target device comprises:
sending second indication information to the target equipment, wherein the second indication information is used for indicating the target equipment to acquire operation data in other equipment through the established Bluetooth connection and tidying the operation data;
determining that the target equipment responds to the second indication information to obtain a data set, wherein the data set comprises the following components: operational data of the target device and other devices;
And determining the local data collected by the target equipment based on the data set.
6. The method for collecting data according to claim 1, wherein after obtaining a collection result of the target device and determining whether to set the target device as a transit node for local data transmission to a local server according to the collection result, the method further comprises:
under the condition that search information sent by a target object is received, the search information is transmitted to a local server for inquiry through the target equipment;
and acquiring the query result of the search information determined by the local server.
7. A data collection device, comprising:
the acquisition module is used for acquiring the communication information of the target equipment;
the determining module is used for determining to collect local data through the target equipment when the communication information indicates that the target equipment has at least two communication modes and at least one of the two communication modes is Bluetooth communication, wherein the local data are used for indicating operation data of other equipment which are in the same target area with the target equipment;
the setting module is used for acquiring a collection result of the target equipment and determining whether the target equipment is set as a transfer node for transmitting local data to a local server according to the collection result, wherein the collection result is used for indicating whether an abnormality exists in a collection process;
The setting module is further configured to determine that the target device is set to be a transfer node for transmitting local data to a local server, so as to ensure continuous collection of the local data, if the collection result indicates that the local data is successfully collected; and under the condition that the collection result indicates that the local data is not successfully collected, the target equipment is forbidden to be set as a transfer node for transmitting the local data to the local server.
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 one of 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 claims 1 to 6 by means of the computer program.
CN202210213775.1A 2022-03-04 2022-03-04 Data collection method and device, storage medium and electronic device Active CN114697359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210213775.1A CN114697359B (en) 2022-03-04 2022-03-04 Data collection method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210213775.1A CN114697359B (en) 2022-03-04 2022-03-04 Data collection method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114697359A CN114697359A (en) 2022-07-01
CN114697359B true CN114697359B (en) 2024-03-22

Family

ID=82136588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210213775.1A Active CN114697359B (en) 2022-03-04 2022-03-04 Data collection method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114697359B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682012A (en) * 2016-03-31 2016-06-15 苏州大学 Data transmission method, mobile sensing node and data transmission system
CN107360636A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium
CN110337099A (en) * 2019-07-03 2019-10-15 百度在线网络技术(北京)有限公司 Control method, device, electronic equipment and the storage medium of equipment room connection
CN110868459A (en) * 2019-11-01 2020-03-06 腾讯科技(深圳)有限公司 Data transmission method, device, terminal and storage medium
CN110958325A (en) * 2019-12-11 2020-04-03 联想(北京)有限公司 Control method, control device, server and terminal
CN112671904A (en) * 2020-12-23 2021-04-16 青岛海尔科技有限公司 Method and device for transmitting equipment state information, storage medium and electronic device
CN113285810A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Target equipment login method and device, storage medium and electronic device
CN113518125A (en) * 2021-06-30 2021-10-19 青岛海尔科技有限公司 Offline data uploading method and system, storage medium and electronic device
CN113613227A (en) * 2021-08-09 2021-11-05 青岛海尔科技有限公司 Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN113645603A (en) * 2021-09-14 2021-11-12 四川长虹网络科技有限责任公司 BLE Bluetooth gateway communication method, system and computer equipment
CN113794779A (en) * 2021-09-29 2021-12-14 南京煜耀智能科技有限公司 Cloud edge cooperative data acquisition system based on distributed architecture
CN114125052A (en) * 2021-09-24 2022-03-01 青岛海尔科技有限公司 Target operation execution method and device, storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10536345B2 (en) * 2016-12-28 2020-01-14 Google Llc Auto-prioritization of device traffic across local network
US11553314B2 (en) * 2019-07-12 2023-01-10 nativeMsg, Inc. Method and system for providing interoperability for rich communication suite (RCS) messaging with local and remote applications with e-commerce and data collection

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682012A (en) * 2016-03-31 2016-06-15 苏州大学 Data transmission method, mobile sensing node and data transmission system
CN107360636A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium
CN110337099A (en) * 2019-07-03 2019-10-15 百度在线网络技术(北京)有限公司 Control method, device, electronic equipment and the storage medium of equipment room connection
CN110868459A (en) * 2019-11-01 2020-03-06 腾讯科技(深圳)有限公司 Data transmission method, device, terminal and storage medium
CN110958325A (en) * 2019-12-11 2020-04-03 联想(北京)有限公司 Control method, control device, server and terminal
CN112671904A (en) * 2020-12-23 2021-04-16 青岛海尔科技有限公司 Method and device for transmitting equipment state information, storage medium and electronic device
CN113285810A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Target equipment login method and device, storage medium and electronic device
CN113518125A (en) * 2021-06-30 2021-10-19 青岛海尔科技有限公司 Offline data uploading method and system, storage medium and electronic device
CN113613227A (en) * 2021-08-09 2021-11-05 青岛海尔科技有限公司 Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN113645603A (en) * 2021-09-14 2021-11-12 四川长虹网络科技有限责任公司 BLE Bluetooth gateway communication method, system and computer equipment
CN114125052A (en) * 2021-09-24 2022-03-01 青岛海尔科技有限公司 Target operation execution method and device, storage medium and electronic device
CN113794779A (en) * 2021-09-29 2021-12-14 南京煜耀智能科技有限公司 Cloud edge cooperative data acquisition system based on distributed architecture

Also Published As

Publication number Publication date
CN114697359A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN110971495B (en) Equipment binding method and device of intelligent household system and storage medium
CN110278568B (en) Method and network system for constructing networking based on network equipment
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN106559259B (en) Equipment abnormal behavior warning method and device and platform information query method and device
CN116225834A (en) Alarm information sending method and device, storage medium and electronic device
CN116382111A (en) Equipment control method and device, storage medium and electronic device
CN113206863B (en) Internet of things equipment management method and device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115474225A (en) Online state determination method and device, storage medium and electronic device
CN115356937A (en) Device control method, device, storage medium, and electronic apparatus
CN115065508A (en) Method and apparatus for processing device twin data, storage medium, and electronic apparatus
CN115348048B (en) Secure communication establishment method and device, storage medium and electronic device
CN113132332A (en) Networking login method, household appliance equipment, household appliance system and storage medium
CN115167163B (en) Scene execution method and device, storage medium and electronic device
CN111726267A (en) Connection method of household appliance, household appliance and computer storage medium
CN117240874A (en) Equipment linkage method and device, storage medium and electronic device
CN115312048B (en) Equipment awakening method and device, storage medium and electronic device
CN115484115B (en) Binding method and device, storage medium and electronic device
CN117707488A (en) Function response method and device, storage medium and electronic device
CN114826901B (en) Device networking method and device, storage medium and electronic device
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN116634464A (en) Network distribution method and device of equipment, storage medium and electronic equipment
CN115314245B (en) Authority management method, system, storage medium and electronic device
CN117749593A (en) Distribution network data filling method and device, storage medium and electronic device

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