CN112738922A - 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
CN112738922A
CN112738922A CN202011296475.1A CN202011296475A CN112738922A CN 112738922 A CN112738922 A CN 112738922A CN 202011296475 A CN202011296475 A CN 202011296475A CN 112738922 A CN112738922 A CN 112738922A
Authority
CN
China
Prior art keywords
gateway
devices
matching relationship
message
gateway devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011296475.1A
Other languages
Chinese (zh)
Other versions
CN112738922B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data processing method, a data processing 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 the gateway devices corresponding to one or more first devices from the multiple gateway devices based on the multiple first messages, and generating a target matching relationship based on the 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, determining the matching relationship between the gateway devices and the devices by acquiring the first message which is sent by the gateway devices and used for indicating the communication quality, and sending the target matching relationship to the gateway devices, thereby achieving the technical effects of improving the reliability of gateway selection, improving the data processing efficiency and simplifying the data processing flow.

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 data storage medium and an electronic device.
Background
The Mesh network is a network topology for many-to-many device communication, and a plurality of devices can exchange and transmit information through the Mesh network. The Mesh network is usually applied to a local scope, and communication with a cloud terminal must be established through a Mesh gateway device, so that a complete Mesh network internet of things solution is formed.
There may be a plurality of 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 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, when the default Mesh gateway device fails, communication is interrupted, or the Mesh device establishes a concurrent channel with a cloud end through each Mesh gateway device, and the cloud end realizes selective receiving. The complexity of the Mesh device and the cloud end is increased by concurrent selective receiving processing in the method, and the data volume of the whole communication is increased by times along with the increase of the data volume of the Mesh device and the cloud end and the increase of the Mesh gateway device.
Aiming at the technical problems of complex data processing mode and low processing efficiency caused by unreliable gateway equipment selection mode in the related technology, an effective solution is not provided at present.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, an apparatus, a storage medium, and an electronic apparatus, so as to at least solve the technical problems in the related art that a data processing method is complex and processing efficiency is low due to an unreliable gateway device selection method.
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 the 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 the plurality of gateway equipment respectively based on the plurality of first messages, 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: the gateway device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving first messages respectively sent by one or more gateway devices, and one first message is used for indicating the communication quality between one gateway device 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 plurality of gateway equipment based on the plurality of first messages respectively and generating a target matching relationship based on a determination result; a sending module, 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
According to a further embodiment of the invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps in any of the above method embodiments.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in any of the above method embodiments when executing the computer program.
By the invention, the gateway equipment corresponding to one or more first equipment is determined from the gateway equipment based on the first messages respectively, and the target matching relation is generated based on the 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, the matching relationship between the gateway devices and the devices is determined by acquiring a first message which is sent by the gateway devices and used for indicating communication quality, and the target matching relationship is sent 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention to a proper form. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an alternative data processing method of an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an alternative data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart diagram of yet another alternative method of processing data in accordance with an embodiment of the present invention;
fig. 4 is a block diagram of an alternative data processing apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail 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 claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and is not intended to limit the structure of the mobile terminal. 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 computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The embodiment of the present application may also operate on the network architecture shown in fig. 2, as shown in fig. 2, the network architecture includes: the system comprises a gateway device 202, a server 204 and a device 206, wherein the device 206 realizes data interaction with the server 204 through the gateway device 202.
In an alternative embodiment, an execution subject of the data processing method may include, but is not limited to, a server or a terminal, for example, where the execution subject is a server, in this embodiment, a data processing method running on the server is provided, and fig. 3 is a schematic flow diagram 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, respectively determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment based on the plurality of first messages, and generating a target matching relationship based on a determination result;
s306, 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.
The executing subject of the above steps may be a server, a terminal, etc., but is not limited thereto.
Optionally, in this embodiment, the target network may include, but is not limited to, an area network, an internet network, 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 transmit information through the Mesh network. The device (device 306) in the Mesh network establishes communication with the cloud (server 304) through the Mesh gateway device (gateway device 302), so that a complete Mesh network internet of things solution is formed.
Optionally, 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 may broadcast a probe signaling for probing a gateway device or a server in a target network, so as to determine the device as the first device after the gateway device detects the probe signaling; the method may further include, but is not limited to, broadcasting, by the gateway device, probe signaling for performing the probe device, so that after the device receives the probe signaling, feedback signaling indicating that the device is detected is fed back to the gateway device, so as to achieve detection of the device in the target network through the gateway device.
Optionally, in this embodiment, the first message may include, but is not limited to, a message including a device list, where the device communication quality associated with the corresponding gateway device is recorded in the device list, and the communication quality may include, but is not limited to, a detailed communication quality parameter, or level information generated according to the communication quality parameter and used for indicating the communication quality.
For example, for the device a, the device B, and the device C, when the gateway device detects the device a, the device B, and the device C in the target network, the gateway device detects communication qualities with the device a, the device B, and the device C, respectively, and generates the first message based on the communication qualities and transmits the first message to the server.
Or, after detecting the device a, the device B, and the device C in the target network, the gateway device detects the communication quality between the device a, the device B, and the device C and the server respectively, and generates the first message based on the communication quality and sends 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 target matching relationship corresponding to the first device as an example, the data processing method may include, but is not limited to, the following:
the server comprehensively calculates that each first device is respectively matched with an optimal gateway device according to the received one or more first messages, and sends the matching relation serving as the target matching relation to the gateway device.
Taking the target matching relationship corresponding to the gateway device as an example, the data processing method may include, but is not limited to, the following:
and the server comprehensively calculates that each gateway device is respectively matched with a device with the optimal communication quality according to the received one or more first messages, and sends the matching relation serving as the target matching relation to the gateway device.
The target matching relationship may be flexibly determined according to a quantity relationship between gateway devices and devices, for example, when the number of the gateway devices is greater than the number of the devices, a corresponding gateway device with the best communication quality may be matched for each device, and when the number of the gateway devices is less than the number of the devices, a corresponding device with the best communication quality may be matched for each gateway device.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the enabling 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, and sending the corresponding device form to the gateway device, where the gateway device detects whether the device is in the device form after receiving data sent by the device in a process of performing data processing, performs data forwarding when the device form includes the device, and does not perform any processing or send an error message to the device in a feedback manner when the device form does not include the device.
It should be noted that, in the case that the device form does not include the device, after any processing is not performed, the data sent by the device may further include, but is not limited to, continuing to broadcast until the data is received by the gateway device whose device form includes the device.
By the invention, the gateway equipment corresponding to one or more first equipment is determined from the gateway equipment based on the first messages respectively, and the target matching relation is generated based on the 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, the matching relationship between the gateway devices and the devices is determined by acquiring a first message which is sent by the gateway devices and used for indicating communication quality, and the target matching relationship is sent to the gateway devices.
As an optional scheme, receiving first messages respectively sent by one or more gateway devices includes: receiving the first message generated and sent by one or more of the gateway devices based on one or more first communication quality parameters, respectively; wherein the one or more first communication instruction parameters are obtained after one or more gateway devices dynamically detect the target network respectively.
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 process of dynamically monitoring may include, but is not limited to, periodically performing detection, and may also include, but is not limited to, performing 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 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.
As an optional scheme, determining, from the plurality of gateway devices, a gateway device corresponding to one or more first devices based on the plurality of first messages, respectively, and generating a target matching relationship based on a determination result, includes: under the condition that a plurality of gateway devices exist in the target network, acquiring a plurality of second communication quality parameters respectively transmitted by the gateway devices, wherein one second communication quality parameter is used for expressing the communication quality between one gateway device and a server; and determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment respectively based on the first message and the second communication quality parameter, and generating a target matching relationship based on a determination result.
Optionally, in this embodiment, the second communication quality parameter may include, but is not limited to, obtaining 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, signal quality, round trip delay, 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.
Optionally, in this embodiment, the target matching relationship may be obtained by performing a comprehensive calculation according to the first communication quality parameter and the second communication quality parameter, but not limited to the above.
As an optional scheme, determining, from the plurality of gateway devices, a gateway device corresponding to one or more first devices based on the plurality of first messages, respectively, and generating a target matching relationship based on a determination result, includes: acquiring device identification information of a plurality of gateway devices respectively sent 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 indicating time information of one gateway device joining the target network and/or establishment time of one gateway device; and determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment respectively based on the first message and the equipment identification information of the gateway equipment, and generating a target matching relationship based on the determination result.
Optionally, 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 for joining the target network.
Optionally, in this embodiment, the communication quality may be determined by including, but not limited to, the device identification information, so as to implement generation of the target matching relationship for executing data exchanged between the forwarding device and the server.
As an optional scheme, 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, and generating a target matching relationship, 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 changes, 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 the 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 of the one or more gateway devices and the server in the target network changes, and updating the target matching relationship based on the third message.
Optionally, 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, when the target network includes device a and device B, the gateway device detects that the communication quality level with device a changes from good to poor, and sends the second message to the server.
Optionally, 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 a gateway device C and a gateway device D, and the gateway device C or D sends the third message to the server after detecting that the gateway device C leaves the target network, where the gateway device C sends the third message to the server when the gateway device C leaves the target network and can interact with the server through another network; the third message may be transmitted from the gateway device D to the server when the gateway device D can communicate with the gateway device C through another network after leaving the target network and the gateway device C cannot communicate with the server, but the present invention is not limited thereto, and the third message may be dynamically or periodically detected directly by the server, and the same operation as that after receiving the third message may be performed when the gateway device C leaves the target network.
Optionally, 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 optional scheme, 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, and may also include, but is not limited to, detection by a device, and sends the relevant parameters to the gateway device, which may include, but is not limited to, sending with the data that needs to be exchanged with the server, the communication quality level determined according to at least one of the signal quality, the round trip delay and the hop count may include, but is not limited to, three classes, a first class for indicating that the device and the gateway device cannot exchange data, a second class for indicating that the device and the gateway device can exchange data, but the efficiency of data exchange is low, the third class level is used for indicating that the equipment and the gateway equipment can exchange data, and the efficiency of data exchange is high.
As an alternative, the target network comprises a wireless cellular mesh network.
Optionally, in this embodiment, the wireless cellular network Mesh network is the Mesh network.
The invention is further explained below with reference to specific examples:
taking the device as a Mesh device, the gateway device as a Mesh gateway device, and the server as a cloud as an example, the Mesh device and the cloud communicate in a Mesh device-Mesh gateway device-cloud mode.
And for each Mesh device M in the Mesh network, the cloud end calculates a gateway device DW providing data communication service for M. In a Mesh network in which the M sends information communicated with a cloud in a broadcasting mode, after receiving the information from the M, the DW forwards the information to the cloud; after receiving the information of M, other Mesh gateway devices ignore 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 reachable Mesh devices.
After the Mesh gateway device is connected to the cloud, a list (including communication quality) of reachable Mesh devices maintained by the Mesh gateway device needs to be reported to the cloud, and the cloud is informed in time when the communication quality of the Mesh devices changes.
And the cloud end calculates a Mesh equipment list which can provide data communication service for each Mesh gateway equipment according to the Mesh equipment list reported by each Mesh gateway equipment, and issues the list to each Mesh gateway equipment.
And the Mesh gateway equipment stores a Mesh equipment list which is issued by the cloud and can provide data communication service. And after receiving the information of the equipment in the list, forwarding the information to the cloud. Information is received for devices not in the list and is ignored.
And after the communication between the Mesh gateway equipment and the cloud is interrupted, emptying a Mesh equipment list capable of providing data communication service.
Mesh equipment side:
and the Mesh equipment sends the information communicated with the cloud end to a Mesh network in a broadcasting mode.
Cloud end side:
in a 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 and information such as a list of the Mesh devices which can be reached by the Mesh gateway device.
The 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 selection algorithm of the Mesh gateway device for each Mesh device may include, but is not limited to, that if the Mesh device is associated with only one gateway device (the Mesh device is present in only one gateway device list), the gateway device is the best gateway for providing the data communication service.
If the 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;
comparing the gateway device identification, the larger value wins.
Optionally, in this embodiment, the timing for running the selection algorithm may include, but is not limited to, that the reachable Mesh device list reported by the gateway device changes; the gateway equipment is offline; the gateway device communication quality changes.
After the operation of the selection algorithm is finished, if the result is changed, a Mesh device list capable of providing data communication service is issued to all changed gateway devices.
It should be noted that the communication quality may include, but is not limited to, comprehensively calculating 5 levels according to signal quality, round trip delay, hop count, and the like: unusable, worse, medium, better, excellent.
Through the embodiment, when a plurality of Mesh gateway devices exist in a Mesh network, the best Mesh gateway device is calculated by each Mesh device at the cloud end, the gateway device provides cloud communication service for the Mesh devices, and the Mesh devices broadcast data communicated with the cloud end in the Mesh network. For any Mesh device, only one Mesh gateway device provides cloud communication service, the whole communication data volume cannot be increased along with the increase of the Mesh gateway devices, and the cloud does not need to perform other complex processing (such as concurrent selective receiving operation). When the Mesh gateway device providing the data communication service breaks down, the cloud end can calculate new Mesh gateway devices providing the data communication service in time, the communication continuity is guaranteed, 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, and better communication guarantee can be provided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, but may also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an 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, the apparatus includes:
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 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, based on the plurality of first messages, a gateway device corresponding to one or more first devices from the plurality of gateway devices, and generate a target matching relationship based on a determination result;
the sending module 406 sends 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 optional solution, the receiving module 402 includes: a receiving unit configured to receive the first message generated and transmitted by one or more gateway devices based on one or more first communication quality parameters, respectively; wherein, the one or more first communication instruction parameters are obtained after one or more gateway devices dynamically detect the target network respectively.
As an optional solution, the processing module 404 includes: a first obtaining unit, configured to, when a plurality of gateway devices exist in the target network, obtain a plurality of second communication quality parameters respectively sent by the plurality of gateway devices, where one of the second communication quality parameters is used to indicate communication quality between one of the gateway devices and a server; a first determining unit, configured to determine, based on the first message and the second communication quality parameter, a gateway device corresponding to one or more first devices from the multiple gateway devices, and generate a target matching relationship based on a determination result.
As an optional solution, the processing module 404 includes: a second obtaining unit, configured to obtain, when multiple gateway devices exist in the target network, device identification information of the multiple gateway devices sent by the multiple gateway devices, where the device identification information of one gateway device is used to indicate time information when the one gateway device joins the target network and/or establishment time of the one gateway device; a second determining unit, configured to determine, based on the first message and the device identification information of the gateway device, gateway devices corresponding to one or more first devices from the multiple gateway devices, and generate a target matching relationship based on a determination result.
As an optional solution, the apparatus is further configured to perform at least one of the following steps: after determining corresponding gateway devices from the one or more gateway devices for the one or more first devices based on the first message and generating a target matching relationship, acquiring a second message sent by the gateway devices, wherein the second message is used for indicating that communication quality between the gateway device and the one or more first devices in the target network changes, 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 the 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 of the one or more gateway devices and the server in the target network changes, and updating the target matching relationship based on the third message.
As an optional scheme, 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, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, where the computer program is arranged to, when executed, perform the steps in any of the above-mentioned method embodiments.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing 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 the target network;
s2, determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment based on the plurality of first messages respectively, and generating a target matching relationship based on the determination result;
and S3, 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.
The computer readable storage medium is further arranged 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 the target network;
s2, determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment based on the plurality of first messages respectively, and generating a target matching relationship based on the determination result;
and S3, 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.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to perform the following steps by 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 the target network;
s2, determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment based on the plurality of first messages respectively, and generating a target matching relationship based on the determination result;
and S3, 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.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented in program code that is executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1. A method for processing data, comprising:
receiving first messages respectively transmitted 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 equipment corresponding to one or more first equipment from the plurality of gateway equipment respectively based on the plurality of first messages, 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.
2. The method of claim 1, wherein receiving the first messages respectively sent by the one or more gateway devices comprises:
receiving the first message generated and sent by one or more of the gateway devices based on one or more first communication quality parameters, respectively;
wherein, the one or more first communication instruction parameters are obtained after one or more gateway devices dynamically detect the target network respectively.
3. The method according to claim 1, wherein determining, from the plurality of gateway devices, a gateway device corresponding to one or more first devices based on the plurality of first messages, respectively, and generating a target matching relationship based on a determination result comprises:
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 expressing the communication quality between one gateway device and a server;
and determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment respectively based on the first message and the second communication quality parameter, and generating a target matching relationship based on a determination result.
4. The method according to claim 1, wherein determining, from the plurality of gateway devices, a gateway device corresponding to one or more first devices based on the plurality of first messages, respectively, and generating a target matching relationship based on a determination result 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 one gateway device joining the target network and/or establishment time of one gateway device;
and determining gateway equipment corresponding to one or more first equipment from the plurality of gateway equipment respectively based on the first message and the equipment identification information of the gateway equipment, and generating a target matching relationship based on a determination result.
5. The method according to 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, and generating the target matching 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 changes, 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 the 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 of the one or more gateway devices and the server in the target network changes, and updating the target matching relationship based on the third message.
6. The method according to any of claims 1 to 5, wherein 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 of any of claims 1 to 5, wherein the target network comprises a wireless cellular mesh network.
8. An apparatus for processing data, 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 plurality of gateway equipment based on the plurality of first messages respectively and generating a target matching relationship based on a determination result;
and the sending module is used for sending the target matching relationship to one or more gateway devices so as to enable the one or more gateway devices to perform data processing according to the target matching relationship.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any one of 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 steps of the method as claimed in any of claims 1 to 7 are implemented when the computer program is executed by the processor.
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 true CN112738922A (en) 2021-04-30
CN112738922B 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 (10)

* 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
CN104640147A (en) * 2015-01-28 2015-05-20 杭州华三通信技术有限公司 Selection method and equipment of working channel
CN106803789A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for configuring gateway
CN106804062A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of networking
CN108259283A (en) * 2018-04-19 2018-07-06 深圳市银河风云网络***股份有限公司 Wireless device communication means and system based on wide area network Mesh technologies
CN109068347A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of active/standby link switchover method and device
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
CN111565474A (en) * 2020-04-28 2020-08-21 深圳中科国威信息***技术有限公司 Method and system for establishing communication connection between AP (access point) equipment and target terminal based on Mesh network
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment

Patent Citations (10)

* 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
CN104640147A (en) * 2015-01-28 2015-05-20 杭州华三通信技术有限公司 Selection method and equipment of working channel
CN106803789A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for configuring gateway
CN106804062A (en) * 2015-12-03 2017-06-06 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of networking
CN108259283A (en) * 2018-04-19 2018-07-06 深圳市银河风云网络***股份有限公司 Wireless device communication means and system based on wide area network Mesh technologies
CN109068347A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of active/standby link switchover method and device
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
CN111565474A (en) * 2020-04-28 2020-08-21 深圳中科国威信息***技术有限公司 Method and system for establishing communication connection between AP (access point) equipment and target terminal based on Mesh network
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
CN112738922B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109302346B (en) Method and device for transmitting data flow
CN111884875A (en) Offline device determination method and device
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN113596859B (en) Node networking method, node networking device, electronic equipment and storage medium
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
US9814052B2 (en) Data distribution system, distribution device, terminal device, and data distribution method providing enhanced communication efficiency
EP3892026B1 (en) Node outage determination and reporting in a mesh network
CN113347679A (en) Data transmission method and device, storage medium and electronic device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN106301472A (en) Method and the website of relay is selected in power line network
CN113572698B (en) Multicast group capacity testing method and device, storage medium and electronic device
CN113852667A (en) Message pushing method and device, storage medium and electronic device
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN107018088B (en) Transmission link selection method and device
CN112738922B (en) Data processing method and device, storage medium and electronic device
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium
CN112788636B (en) Method, device and network management system for determining cell state
CN111757275B (en) Device connection method and device, storage medium and electronic device
CN116782255A (en) Same-frequency subnet fusion method and device, communication node and storage medium
CN114466395A (en) Method and device for testing performance of base station, storage medium and electronic device
JP2020014236A (en) Wireless communication device, wireless communication system, wireless communication method and program
CN113783586B (en) Method, device, electronic equipment and storage medium for automatically selecting communication frequency band
CN110603833B (en) Signal measuring and selecting method and device and computer storage medium

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