CN112738922B - Data processing method and device, storage medium and electronic device - Google Patents

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

Info

Publication number
CN112738922B
CN112738922B CN202011296475.1A CN202011296475A CN112738922B CN 112738922 B CN112738922 B CN 112738922B CN 202011296475 A CN202011296475 A CN 202011296475A CN 112738922 B CN112738922 B CN 112738922B
Authority
CN
China
Prior art keywords
gateway
devices
gateway devices
communication quality
target
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
CN202011296475.1A
Other languages
Chinese (zh)
Other versions
CN112738922A (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 CN202011296475.1A priority Critical patent/CN112738922B/en
Publication of CN112738922A publication Critical patent/CN112738922A/en
Application granted granted Critical
Publication of CN112738922B publication Critical patent/CN112738922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • H04L12/5691Access to open networks; Ingress point selection, e.g. ISP selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The embodiment of the invention provides a data processing method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving first messages respectively sent by one or more gateway devices, respectively determining gateway devices corresponding to the one or more first devices from the gateway devices based on the first messages, and generating a target matching relationship based on the determination result; the method comprises the steps of sending a target matching relationship to one or more gateway devices, enabling the one or more gateway devices to conduct data processing according to the target matching relationship, determining the matching relationship between the gateway devices and the devices by obtaining first information which is sent by the gateway devices and is used for indicating communication quality, and sending the target matching relationship to the gateway devices, so that the technical effects of improving the reliability of gateway selection, improving the data processing efficiency and simplifying the data processing flow are achieved.

Description

Data processing method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data processing method, a data processing device, a storage medium and an electronic device.
Background
Mesh networks are a network topology in which many-to-many devices communicate, and a plurality of devices can exchange and transfer information through the Mesh networks. The Mesh network is usually applied to a local range, and communication with a cloud end is necessarily established through Mesh gateway equipment, so that a complete Mesh network Internet of things solution is formed.
There may be multiple Mesh gateway devices in a Mesh network. When a plurality of Mesh gateway devices exist, the problem of Mesh gateway device selection is necessarily faced.
In the current related art, the Mesh gateway selection method may include: for example, the Mesh device sets a default Mesh gateway device. The method is poor in reliability, communication is interrupted when default Mesh gateway equipment fails, or the Mesh equipment establishes a concurrent channel with a cloud end through each Mesh gateway equipment, and cloud end selection and reception are realized. In the method, the concurrent receiving and sending process increases the complexity of the Mesh device and the cloud, and the data volume of the whole communication is multiplied along with the increase of the data volume of the Mesh device and the cloud and the increase of the Mesh gateway device.
Aiming at the technical problems of complex data processing mode and lower processing efficiency caused by unreliable gateway equipment selection mode in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a device, a storage medium and an electronic device, which are used for at least solving the technical problems of complex data processing mode and lower processing efficiency caused by unreliable gateway equipment selection mode in the related technology.
According to an embodiment of the present invention, there is provided a data processing method including: receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating communication quality between one gateway device and one or more first devices in a target network; determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on the first messages respectively, and generating a target matching relation based on a determination result; and sending the target matching relationship to one or more gateway devices so that the one or more gateway devices perform data processing according to the target matching relationship.
According to another embodiment of the present invention, there is provided a data processing apparatus including: a receiving module, configured to receive first messages respectively sent by one or more gateway devices, where one of the first messages is used to indicate communication quality between one of the gateway devices and one or more first devices in a target network; the processing module is used for determining gateway equipment corresponding to one or more first equipment from the gateway equipment based on the first messages and generating a target matching relation based on a determination result; a transmitting module for transmitting the target matching relationship to one or more gateway devices to enable the one or more gateway devices to perform data processing according to the target matching relationship
According to a further embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor realizes the steps in any of the method embodiments described above.
According to yet another embodiment of the present invention, there is also provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the method embodiments described above when executing the computer program.
According to the method, first messages respectively sent by one or more gateway devices are received, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network, gateway devices corresponding to the one or more first devices are respectively determined from the gateway devices based on the first messages, and a target matching relation is generated based on a determination result; the target matching relationship is sent to one or more gateway devices, so that the one or more gateway devices perform data processing according to the target matching relationship, and the first message which is sent by the gateway devices and is used for indicating the communication quality is obtained to determine the matching relationship between the gateway devices and the devices and send the target matching relationship to the gateway devices.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute an undue limitation of the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an alternative data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative method of processing data according to an embodiment of the invention;
FIG. 3 is a flow chart of yet another alternative method of processing data according to an embodiment of the invention;
fig. 4 is a block diagram of an alternative data processing apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to a data processing method in an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for processing data in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
The embodiment of the present application may also operate on a network architecture shown in fig. 2, where, as shown in fig. 2, the network architecture includes: gateway device 202, server 204, device 206, wherein device 206 implements data interactions with server 204 through gateway device 202.
In an alternative embodiment, the execution body of the data processing method may include, but is not limited to, a server or a terminal, where the execution body is a server, and in this embodiment, a data processing method running on the server is provided, and fig. 3 is a schematic flow chart of an alternative data processing method according to an embodiment of the present invention, as shown in fig. 3, where the flow includes the following steps:
s302, receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network;
s304, determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on a plurality of first messages respectively, and generating a target matching relation based on a determination result;
s306, the target matching relationship is sent to one or more gateway devices, so that the one or more gateway devices perform data processing according to the target matching relationship.
The main execution body of the above steps may be a server, a terminal, or the like, but is not limited thereto.
Optionally, in this embodiment, the target network may include, but is not limited to, an area network, an internetwork, or other internet of things established in a Mesh network architecture.
The Mesh network is a network topology for many-to-many device communication, and a plurality of devices can exchange and transfer information through the Mesh network. Devices (306) in the Mesh network establish communication with the cloud (server 304) through the Mesh gateway device (302), thereby forming a complete Mesh network internet of things solution.
Alternatively, in this embodiment, the first device may include, but is not limited to, a device that is allowed to be detected by the gateway device in the target network.
For example, but not limited to, the one or more devices broadcasting probe signaling for probing a gateway device or a server in a target network to determine the device as the first device after the gateway device detects the probe signaling; and may further include, but is not limited to, broadcasting, by the gateway device, probe signaling for the probe device to feedback, to the gateway device, feedback signaling indicating that the device was detected after the device receives the probe signaling, to enable detection of the device in the target network by the gateway device.
Alternatively, in this embodiment, the first message may include, but is not limited to, a message including a device list, in which a device communication quality associated with the corresponding gateway device is recorded, and the communication quality may include, but is not limited to, a detailed communication quality parameter, or class information indicating the communication quality generated according to the communication quality parameter.
For example, for the device a, the device B, and the device C, after the gateway device detects the device a, the device B, and the device C in the target network, the gateway device detects the communication quality with the device a, the device B, and the device C, respectively, and generates the first message based on the communication quality, and sends the first message to the server.
Or after the gateway device detects the device A, the device B and the device C in the target network, detecting the communication quality between the gateway device and the server through the device A, the device B and the device C respectively, generating the first message based on the communication quality, and sending the first message to the server.
Optionally, in this embodiment, the target matching relationship corresponds to the first device or the gateway device.
Taking the example that the target matching relationship corresponds to the first device, the method for processing data may include, but is not limited to, the following:
And the server comprehensively calculates to match each first device with an optimal gateway device according to the received one or more first messages, and sends the matching relationship to the gateway device as the target matching relationship.
Taking the example that the target matching relationship corresponds to the gateway device, the method for processing data may include, but is not limited to, the following:
and the server comprehensively calculates to match each gateway device with a device with optimal communication quality according to the received one or more first messages, and sends the matching relationship to the gateway device as the target matching relationship.
The objective matching relationship may be flexibly determined according to the number relationship between gateway devices and devices, for example, in the case that the number of gateway devices is greater than the number of devices, a corresponding gateway device with optimal communication quality may be matched for each device, in the case that the number of gateway devices is less than the number of devices, a corresponding device with optimal communication quality may be matched for each gateway device, and may include, but not be limited to, in the case that the number of gateway devices is less than the number of devices, a corresponding device with optimal communication quality may be matched for each device, so that the one gateway device may be used as a gateway device with optimal communication quality for a plurality of devices.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the foregoing causing one or more gateway devices to perform data processing according to the target matching relationship may include, but is not limited to, generating a corresponding device form according to the target matching relationship, sending the device form to the gateway device, where the gateway device, after receiving data sent by a device in a process of performing data processing, detects whether the device is in the device form, performs forwarding of the data if the device form includes the device, and does not perform any processing or feedback a message of a sending error to the device if the device form does not include the device.
In the case where the device table does not include the device, after any processing is not performed, the data transmitted by the device may also include, but is not limited to, continuing broadcasting until received by the gateway device in which the device table includes the device.
According to the method, first messages respectively sent by one or more gateway devices are received, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network, gateway devices corresponding to the one or more first devices are respectively determined from the gateway devices based on the first messages, and a target matching relation is generated based on a determination result; the target matching relationship is sent to one or more gateway devices, so that the one or more gateway devices perform data processing according to the target matching relationship, and the first message which is sent by the gateway devices and is used for indicating the communication quality is obtained to determine the matching relationship between the gateway devices and the devices and send the target matching relationship to the gateway devices.
As an alternative, receiving the first messages respectively sent by the one or more gateway devices includes: receiving the first messages generated and transmitted by one or more gateway devices based on one or more first communication quality parameters, respectively; the one or more first communication instruction parameters are respectively obtained after the one or more gateway devices dynamically detect the target network.
Optionally, in this embodiment, the first message is generated after the gateway device dynamically monitors the target network to obtain the one or more first communication quality parameters, and the dynamic monitoring process may include, but is not limited to, periodic detection, and may also include, but is not limited to, detection when it is detected that data sent by the device cannot be processed.
The above is merely an example, and the present embodiment is not described in any detail.
Optionally, in this embodiment, the communication quality parameters may include, but are not limited to, signal quality, round trip delay, hop count, and the like, and may include, but are not limited to, comprehensively calculating 5 levels according to signal quality, round trip delay, hop count, and the like: unusable, worse, medium, better, excellent.
As an alternative, determining gateway devices corresponding to one or more first devices from the plurality of gateway devices based on the plurality of first messages, and generating a target matching relationship based on the determination result, including: under the condition that a plurality of gateway devices exist in the target network, acquiring a plurality of second communication quality parameters respectively sent by the gateway devices, wherein one second communication quality parameter is used for representing the communication quality between one gateway device and a server; and determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on the first message and the second communication quality parameter, and generating a target matching relation based on a determination result.
Optionally, in this embodiment, the second communication quality parameter may include, but is not limited to, acquiring a communication quality between the gateway device and the server to determine the second communication quality parameter, where the second communication quality parameter may include, but is not limited to, a signal quality, a round trip delay, a hop count, and the like, and may further include, but is not limited to, comprehensively calculating 5 levels according to the signal quality, the round trip delay, the hop count, and the like: unusable, worse, medium, better, excellent.
Alternatively, in this embodiment, the target matching relationship may be obtained by performing a comprehensive calculation according to parameters including, but not limited to, the first communication quality parameter and the second communication quality parameter.
As an alternative, determining gateway devices corresponding to one or more first devices from the plurality of gateway devices based on the plurality of first messages, and generating a target matching relationship based on the determination result, including: acquiring device identification information of a plurality of gateway devices sent by the plurality of gateway devices respectively under the condition that the plurality of gateway devices exist in the target network, wherein the device identification information of one gateway device is used for representing time information of joining the target network by one gateway device and/or establishing time of the gateway device; and determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on the first message and the equipment identification information of the gateway equipment, and generating a target matching relation based on a determination result.
Alternatively, in this embodiment, the device identification information may include, but is not limited to, identification information preconfigured for each gateway device, for example, production identification information, and may also include, but is not limited to, the device identification information allocated by a server after the gateway device joins the target network.
The production identification information is used for indicating the establishment time of the gateway equipment, and the equipment identification information distributed by the server is used for indicating the time information of the gateway equipment joining the target network.
Alternatively, in the present embodiment, the above-described communication quality may be determined by including, but not limited to, the above-described device identification information to achieve generation of the above-described target matching relationship for executing data exchanged between the forwarding device and the server.
As an alternative, after determining, for the one or more first devices, a corresponding gateway device from the one or more gateway devices based on the first message, respectively, the method further includes at least one of: acquiring a second message sent by the gateway device, wherein the second message is used for indicating that the communication quality between the gateway device and one or more first devices in the target network is changed, and updating the target matching relationship based on the second message; acquiring a third message sent by the gateway device, wherein the third message is used for indicating that one or more gateway devices in the target network leave the target network, and updating the target matching relationship based on the third message; and acquiring a fourth message sent by the gateway device, wherein the fourth message is used for indicating that the communication quality between the one or more gateway devices in the target network and the server is changed, and updating the target matching relationship based on the third message.
Alternatively, in this embodiment, the second message may include, but is not limited to, a message sent to the server after the gateway device dynamically detects or periodically detects the communication quality between the gateway device and the one or more first devices, and determines that the communication quality has changed.
For example, in the case where the target network includes the devices a and B, the gateway device detects that the communication quality level with the device a has changed from good to poor, and transmits the second message to the server.
Alternatively, in this embodiment, the third message may include, but is not limited to, a message sent to a server after detecting that the gateway device leaves the target network.
For example, the target network includes gateway device C and gateway device D, and after detecting that the gateway device C leaves the target network, the gateway device C or D sends the third message to the server, where the gateway device C sends the third message to the server when the gateway device C can interact with the server through another network after leaving the target network; when the gateway device C leaves the target network and the gateway device D can communicate with the gateway device C via another network and the gateway device C cannot communicate with the server, the gateway device D may send the third message to the server, which may include, but is not limited to, directly detecting the connection state between the gateway device and the server dynamically or periodically, and when detecting that the gateway device C leaves the target network, performing the same operation as after receiving the third message.
Alternatively, in this embodiment, the fourth message may include, but is not limited to, a message sent to the server after the gateway device dynamically detects or periodically detects the communication quality between the gateway device and the one or more first devices, and determines that the communication quality has changed.
As an alternative, the communication quality includes at least one of: signal quality, round trip delay, hop count, and a communication quality level determined based on at least one of the signal quality, the round trip delay, and the hop count.
Optionally, in this embodiment, the signal quality, round trip delay and hop count may include, but are not limited to, detection by a gateway device, detection by a device and sending related parameters to the gateway device, the sending process may include, but is not limited to, sending the data with the data that needs to be exchanged with a server, the communication quality level determined according to at least one of the signal quality, round trip delay and hop count may include, but is not limited to, three classes, a first class is used to indicate that the device cannot exchange data with the gateway device, a second class is used to indicate that the device can exchange data with the gateway device, but the efficiency of exchanging data is low, and a third class is used to indicate that the device can exchange data with the gateway device, and the efficiency of exchanging data is high.
As an alternative, the target network comprises a wireless cellular mesh network.
Optionally, in this embodiment, the wireless cellular Mesh network is the Mesh network.
The invention is further illustrated by the following examples:
taking a device as a Mesh device, a gateway device as a Mesh gateway device, a server as a cloud as an example, and the mode of communication between the Mesh device and the cloud is Mesh device-Mesh gateway device-cloud.
And for each Mesh device M in the Mesh network, the cloud calculates gateway devices DW for providing data communication service for the M. M sends information communicated with the cloud end in a broadcasting mode to the Mesh network, and after the DW receives the information from the M, the information is forwarded to the cloud end; and after receiving the information of M, other Mesh gateway equipment ignores the information.
Specific implementations may include, but are not limited to, the following:
mesh gateway device side:
the Mesh gateway device needs to dynamically detect the reachable Mesh devices in the Mesh network and evaluate the communication quality of the Mesh devices.
After the Mesh gateway equipment is connected with the cloud, a reachable Mesh equipment list (containing communication quality) which is required to be maintained by the Mesh gateway equipment is reported to the cloud, and the cloud is timely informed when the communication quality of the Mesh equipment changes.
According to the Mesh device list reported by each Mesh gateway device, the cloud calculates a Mesh device list which can provide data communication service for each Mesh gateway device, and issues the list to each Mesh gateway device.
The Mesh gateway device stores a Mesh device list which is issued by the cloud and can provide data communication service. And after receiving the information of the devices in the list, forwarding the information to the cloud. Information is received for devices not in the list and ignored.
After the Mesh gateway device is interrupted from communication with the cloud, a Mesh device list which can provide data communication service is emptied.
Mesh device side:
and the Mesh device sends the information communicated with the cloud to the Mesh network in a broadcasting mode.
Cloud side:
in one Mesh network, there may be 0 to a plurality of Mesh gateway devices. The cloud end can select an optimal gateway device for each Mesh device to provide data communication service according to the communication quality of the Mesh gateway device, the reachable Mesh device list of the Mesh gateway device and other information.
Wherein, parameters to be considered in the process of executing the selection algorithm (corresponding to the target matching relationship) of the Mesh gateway device may include, but are not limited to:
the communication quality between each gateway device and the cloud end;
A list of reachable Mesh devices for each gateway device.
The Mesh gateway device selection algorithm for each Mesh device may include, but is not limited to, if a Mesh device is associated with only one gateway device (Mesh devices appear in only one gateway device list), then that gateway device is the best gateway to provide data communication services.
If a Mesh device is associated with a plurality of gateway devices, the best gateway device is selected in the following order.
The communication quality between the gateway equipment and the cloud end is high;
the Mesh device and the Mesh gateway device have high communication quality;
and comparing the gateway equipment identifiers, and winning the numerical value.
Optionally, in this embodiment, the time for running the selection algorithm may include, but is not limited to, a change in the reachable Mesh device list reported by the gateway device; the gateway equipment is off line; the gateway device communication quality changes.
After the operation of the selection algorithm is finished, if the result is changed, a Mesh device list which can provide data communication service is issued to all changed gateway devices.
It should be noted that the above communication quality may include, but is not limited to, comprehensively calculating 5 levels according to signal quality, round trip delay, hop count, etc.: unusable, worse, medium, better, excellent.
According to the embodiment, when a plurality of Mesh gateway devices exist in a Mesh network, each Mesh device in the cloud calculates an optimal Mesh gateway device, the gateway device provides cloud communication service for the Mesh devices, the Mesh devices broadcast data communicated with the cloud in the Mesh network, in addition, the cloud can determine the optimal gateway device according to parameters such as communication quality of the Mesh gateway devices and the cloud, communication quality of the Mesh devices and the Mesh gateway devices, and the like, so that the optimal Mesh gateway device is designated through the cloud, and when the Mesh devices and the cloud communicate, only the optimal Mesh gateway device and the cloud need to communicate, and other complex processing (such as concurrent operation) is not needed. For any Mesh device, only one Mesh gateway device provides cloud communication service, the whole communication data volume is not increased along with the increase of the Mesh gateway device, and the cloud does not need to do other complex processing (such as concurrent sending and receiving operations). When the Mesh gateway equipment providing the data communication service fails, the cloud can timely calculate new Mesh gateway equipment providing the data communication service, so that the continuity of communication is ensured, and the reliability is improved. The optimal Mesh gateway equipment can be dynamically selected through parameters such as the communication quality between the Mesh gateway equipment and the cloud end, the communication quality between the Mesh equipment and the Mesh gateway equipment, and the like, so that better communication guarantee can be provided.
From the above description of 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 necessary general hardware platform, but may alternatively be implemented 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 method according to the embodiments of the present invention.
The embodiment also provides a data processing device, which is used for implementing the foregoing embodiments and preferred implementations, 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 of an alternative data processing apparatus according to an embodiment of the present invention, as shown in fig. 4, including:
a receiving module 402, configured to receive first messages respectively sent by one or more gateway devices, where one of the first messages is used to indicate a communication quality between one of the gateway devices and one or more first devices in a target network;
a processing module 404, configured to determine gateway devices corresponding to one or more first devices from the plurality of gateway devices based on the plurality of first messages, and generate a target matching relationship based on a determination result;
and a sending module 406, configured to send the target matching relationship to one or more gateway devices, so that the one or more gateway devices perform data processing according to the target matching relationship.
As an alternative, the receiving module 402 includes: a receiving unit configured to receive the first messages generated and transmitted by one or more of the gateway devices based on one or more first communication quality parameters, respectively; the one or more first communication instruction parameters are respectively obtained after the one or more gateway devices dynamically detect the target network.
As an alternative, the processing module 404 includes: a first obtaining unit, configured to obtain, when a plurality of gateway devices exist in the target network, a plurality of second communication quality parameters sent by the plurality of gateway devices, where one of the second communication quality parameters is used to represent communication quality between one of the gateway devices and a server; and the first determining unit is used for determining gateway devices corresponding to one or more first devices from the gateway devices based on the first message and the second communication quality parameter, and generating a target matching relationship based on the determination result.
As an alternative, the processing module 404 includes: a second obtaining unit, configured to obtain, when a plurality of gateway devices exist in the target network, device identification information of a plurality of gateway devices sent by the plurality of gateway devices, where the device identification information of one gateway device is used to represent time information of joining the target network by one gateway device and/or setup time of one gateway device; and the second determining unit is used for determining gateway devices corresponding to one or more first devices from the gateway devices based on the first message and the device identification information of the gateway devices, and generating a target matching relationship based on the determination result.
As an alternative, the apparatus is further configured to perform the step of at least one of: after determining corresponding gateway equipment from one or more gateway equipment for the one or more first equipment based on the first message, generating a target matching relation, acquiring a second message sent by the gateway equipment, wherein the second message is used for indicating that the communication quality between the gateway equipment and the one or more first equipment in the target network is changed, and updating the target matching relation based on the second message; acquiring a third message sent by the gateway device, wherein the third message is used for indicating that one or more gateway devices in the target network leave the target network, and updating the target matching relationship based on the third message; and acquiring a fourth message sent by the gateway device, wherein the fourth message is used for indicating that the communication quality between the one or more gateway devices in the target network and the server is changed, and updating the target matching relationship based on the third message.
As an alternative, the communication quality includes at least one of: signal quality, round trip delay, hop count, and a communication quality level determined based on at least one of the signal quality, the round trip delay, and the hop count.
As an alternative, the target network comprises a wireless cellular mesh network.
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.
Embodiments of the present invention also provide a computer readable 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 the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
s1, receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network;
s2, determining gateway equipment corresponding to one or more first equipment from the gateway equipment based on the first messages, and generating a target matching relation based on a determination result;
And S3, sending the target matching relationship to one or more gateway devices so that the one or more gateway devices can process data according to the target matching relationship.
The computer readable storage medium is further configured to store a computer program for performing the steps of:
s1, receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network;
s2, determining gateway equipment corresponding to one or more first equipment from the gateway equipment based on the first messages, and generating a target matching relation based on a determination result;
and S3, sending the target matching relationship to one or more gateway devices so that the one or more gateway devices can process data according to the target matching relationship.
In one exemplary embodiment, the computer readable 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, the above-mentioned processor may be arranged to perform the following steps by means of a computer program:
s1, receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network;
s2, determining gateway equipment corresponding to one or more first equipment from the gateway equipment based on the first messages, and generating a target matching relation based on a determination result;
and S3, sending the target matching relationship to one or more gateway devices so that the one or more gateway devices can process data according to the target matching relationship.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of processing data, comprising:
receiving first messages respectively sent by one or more gateway devices, wherein one first message is used for indicating the communication quality between one gateway device and one or more first devices in a target network;
determining gateway devices corresponding to one or more first devices from the gateway devices based on the first messages, and generating a target matching relationship based on a determination result, wherein the target matching relationship comprises: a first device corresponds to a gateway device for which server communication services are provided;
transmitting the target matching relationship to one or more gateway devices so that the one or more gateway devices perform data processing according to the target matching relationship, wherein the one or more first devices are set to transmit information communicated with a server to the target network in a broadcast form, and the one or more gateway devices forward the information communicated with the server to the server according to the target matching relationship;
wherein the generating the target matching relationship based on the determination result includes: matching a corresponding gateway device with optimal communication quality for each first device under the condition that the number of the gateway devices is larger than that of the first devices; and matching a corresponding first device with optimal communication quality for each gateway device under the condition that the number of the gateway devices is smaller than that of the first devices.
2. The method of claim 1, wherein receiving the first messages respectively sent by the one or more gateway devices comprises:
receiving the first messages generated and transmitted by one or more gateway devices based on one or more first communication quality parameters, respectively;
the one or more first communication instruction parameters are respectively obtained after the one or more gateway devices dynamically detect the target network.
3. The method according to claim 1, wherein determining gateway devices corresponding to one or more of the first devices from among the plurality of gateway devices based on the plurality of first messages, respectively, and generating the target matching relationship based on the determination results, comprises:
acquiring a plurality of second communication quality parameters respectively transmitted by a plurality of gateway devices under the condition that the gateway devices exist in the target network, wherein one second communication quality parameter is used for representing the communication quality between one gateway device and a server;
and determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on the first message and the second communication quality parameter, and generating a target matching relation based on a determination result.
4. The method according to claim 1, wherein determining gateway devices corresponding to one or more of the first devices from among the plurality of gateway devices based on the plurality of first messages, respectively, and generating the target matching relationship based on the determination results, comprises:
acquiring device identification information of a plurality of gateway devices respectively transmitted by the plurality of gateway devices under the condition that the plurality of gateway devices exist in the target network, wherein the device identification information of one gateway device is used for representing time information of joining the target network by one gateway device and/or establishing time of the one gateway device;
and determining gateway equipment corresponding to one or more first equipment from a plurality of gateway equipment based on the first message and the equipment identification information of the gateway equipment, and generating a target matching relation based on a determination result.
5. The method of claim 1, wherein after determining, for the one or more first devices, corresponding gateway devices from the one or more gateway devices, respectively, based on the first message, generating a target match relationship, the method further comprises at least one of:
Acquiring a second message sent by the gateway device, wherein the second message is used for indicating that the communication quality between the gateway device and one or more first devices in the target network is changed, and updating the target matching relationship based on the second message;
acquiring a third message sent by the gateway device, wherein the third message is used for indicating that one or more gateway devices in the target network leave the target network, and updating the target matching relationship based on the third message;
and acquiring a fourth message sent by the gateway device, wherein the fourth message is used for indicating that the communication quality between the one or more gateway devices in the target network and the server is changed, and updating the target matching relationship based on the third message.
6. The method according to any one of claims 1 to 5, characterized in that the communication quality comprises at least one of: signal quality, round trip delay, hop count, and a communication quality level determined based on at least one of the signal quality, the round trip delay, and the hop count.
7. The method according to any one of claims 1 to 5, wherein the target network comprises a wireless cellular mesh network.
8. A data processing apparatus, comprising:
a receiving module, configured to receive first messages respectively sent by one or more gateway devices, where one of the first messages is used to indicate communication quality between one of the gateway devices and one or more first devices in a target network;
the processing module is used for determining gateway equipment corresponding to one or more first equipment from the gateway equipment based on the first messages, and generating a target matching relation based on a determination result, wherein the target matching relation comprises the following components: a first device corresponds to a gateway device for which server communication services are provided;
the sending module is used for sending the target matching relation to one or more gateway devices so that the one or more gateway devices can process data according to the target matching relation, wherein the one or more first devices send information communicated with a server to the target network in a broadcast mode, and the one or more gateway devices forward the information communicated with the server to the server according to the target matching relation;
The processing module generates a target matching relationship by: matching a corresponding gateway device with optimal communication quality for each first device under the condition that the number of the gateway devices is larger than that of the first devices; and matching a corresponding first device with optimal communication quality for each gateway device under the condition that the number of the gateway devices is smaller than that of the first devices.
9. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
CN202011296475.1A 2020-11-18 2020-11-18 Data processing method and device, storage medium and electronic device Active CN112738922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011296475.1A CN112738922B (en) 2020-11-18 2020-11-18 Data processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011296475.1A CN112738922B (en) 2020-11-18 2020-11-18 Data processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112738922A CN112738922A (en) 2021-04-30
CN112738922B true CN112738922B (en) 2023-07-21

Family

ID=75597575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011296475.1A Active CN112738922B (en) 2020-11-18 2020-11-18 Data processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112738922B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN106804062A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of networking
CN110838991A (en) * 2019-11-05 2020-02-25 深圳前海达闼云端智能科技有限公司 Gateway connection method, device, storage medium, electronic device and gateway device
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640147B (en) * 2015-01-28 2019-01-22 新华三技术有限公司 A kind of selection method and equipment of working channel
CN106803789A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for configuring gateway
CN108259283B (en) * 2018-04-19 2021-01-05 深圳市银河风云网络系统股份有限公司 Wireless device communication method and system based on wide area network Mesh technology
CN109068347B (en) * 2018-09-28 2021-10-19 新华三技术有限公司 Main/standby link switching method and device
CN111565474B (en) * 2020-04-28 2022-04-19 深圳中科国威信息系统技术有限公司 Method and system for establishing communication connection between AP (access point) equipment and target terminal based on Mesh network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN106804062A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of networking
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN110838991A (en) * 2019-11-05 2020-02-25 深圳前海达闼云端智能科技有限公司 Gateway connection method, device, storage medium, electronic device and gateway device
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment

Also Published As

Publication number Publication date
CN112738922A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
EP3076709A1 (en) Zigbee network-based data transmission method, apparatus, and system
US10985836B2 (en) Communication processing system, communication processing method, base station, and control method and control program thereof
US10171986B2 (en) Radio relay device and system with waiting time optimization
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
JP2018533308A (en) Method and device for measuring signal strength
CN109561398B (en) AP neighbor table establishing method
CN111884875A (en) Offline device determination method and device
CN112671904A (en) Method and device for transmitting equipment state information, storage medium and electronic device
US9814052B2 (en) Data distribution system, distribution device, terminal device, and data distribution method providing enhanced communication efficiency
CN113347679A (en) Data transmission method and device, storage medium and electronic device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN114786241B (en) Network selection method, related device, network equipment and storage medium
CN112738922B (en) Data processing method and device, storage medium and electronic device
CN113852667A (en) Message pushing method and device, storage medium and electronic device
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium
CN107018088B (en) Transmission link selection method and device
TWI761733B (en) Network path selection method and network node device using the same
JP6518029B2 (en) Management device, wireless communication system, wireless terminal device and communication control program
CN111757275B (en) Device connection method and device, storage medium and electronic device
CN111869246B (en) Message transmission method, BLE equipment and BLE chip
CN116782255A (en) Same-frequency subnet fusion method and device, communication node and storage medium
CN108495299B (en) Method and device for receiving service information and multimode terminal
CN108173910B (en) Method and system for managing application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant