CN113993201A - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN113993201A
CN113993201A CN202111211280.7A CN202111211280A CN113993201A CN 113993201 A CN113993201 A CN 113993201A CN 202111211280 A CN202111211280 A CN 202111211280A CN 113993201 A CN113993201 A CN 113993201A
Authority
CN
China
Prior art keywords
data
transmission power
sending
receiving
communication
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
CN202111211280.7A
Other languages
Chinese (zh)
Other versions
CN113993201B (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111211280.7A priority Critical patent/CN113993201B/en
Publication of CN113993201A publication Critical patent/CN113993201A/en
Application granted granted Critical
Publication of CN113993201B publication Critical patent/CN113993201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/243TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account interferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
    • H04W52/283Power depending on the position of the mobile
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application relates to a data transmission method, a data transmission device, data transmission equipment and a storage medium, and relates to the technical field of communication. The data transmission method is applied to a sending device, the sending device is any node device in a mesh network, and the method comprises the following steps: acquiring a channel identifier used for communication; determining that an interference device exists, wherein the interference device is a node device in a mesh network, the interference device uses a channel corresponding to a channel identifier during communication, and the interference device does not include a sending device and a receiving device; and controlling the initial transmission power to adjust to the target transmission power, and sending data to the receiving equipment according to the target transmission power. The method and the device are used for solving the problem that communication between the devices is abnormal due to the fact that a plurality of devices use the same channel.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
In a communication environment, there may be multiple BSSs (Basic Service sets) with the same channel or multiple BSSs with different channels, and a single WiFi device, a single mesh network device, or multiple mesh network devices are mounted under the BSSs to form a complex network environment, and the devices communicate with each other through a predetermined channel.
When devices of a Mesh network (also called a Wireless Mesh network, etc.) communicate with each other, communication between the devices is abnormal due to channel interference caused by other sub-devices of the same channel under the BSS service.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, equipment and a storage medium, which are used for solving the problem that communication between the equipment is abnormal because a plurality of pieces of equipment use the same channel.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a sending device, where the sending device is any node device in a mesh network, and the method includes:
acquiring a channel identifier used for communication;
determining that there is an interfering device, wherein the interfering device is a node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the transmitting device and the receiving device;
and controlling the initial transmission power to adjust to the target transmission power, and sending data to the receiving equipment according to the target transmission power.
Optionally, before the controlling the initial transmission power to adjust to the target transmission power, the method further includes:
acquiring a communication distance between the receiving device and the receiving device;
acquiring the data volume to be sent;
and acquiring the target transmission power according to the communication distance and/or the data volume.
Optionally, the obtaining a communication distance between the receiving device and the obtaining device includes:
sending a heartbeat packet to the receiving device;
receiving confirmation data returned by the receiving equipment according to the heartbeat packet;
acquiring the sending time of sending the heartbeat packet and the receiving time of receiving the confirmation data;
and acquiring the communication distance according to the sending time and the receiving time.
Optionally, a positive correlation exists between the target transmission power and the communication distance, and/or a positive correlation exists between the target transmission power and the data amount.
Optionally, before the controlling the initial transmission power to adjust to the target transmission power, the method further includes:
determining that the interfering device is transmitting a data packet using a channel corresponding to the channel identifier.
Optionally, the determining that the interfering device is transmitting the data packet using the channel corresponding to the channel identifier includes:
acquiring a target data volume transmitted by the interference equipment by using a channel corresponding to the channel identifier;
comparing the target data quantity with a preset data quantity threshold value;
and if the target data volume is larger than the preset data volume threshold, determining that the interference equipment is transmitting a data packet by using a channel corresponding to the channel identifier.
Optionally, the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, configured to a sending device, where the sending device is any node device in a mesh network, and the data transmission apparatus includes:
the acquisition module is used for acquiring a channel identifier used by communication;
a determining module, configured to determine that there is an interfering device, where the interfering device is a node device in the mesh network, and the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the sending device and the receiving device;
and the processing module is used for controlling the initial transmission power to be adjusted to the target transmission power and sending data to the receiving equipment according to the target transmission power.
Optionally, the data transmission device further includes a communication distance obtaining module, a data amount obtaining module and a target transmission power obtaining module;
the communication distance acquisition module is used for acquiring the communication distance between the receiving equipment and the communication device;
the data volume acquisition module is used for acquiring the data volume to be sent;
and the target transmission power obtaining module is used for obtaining the target transmission power according to the communication distance and/or the data volume.
Optionally, the communication distance obtaining module includes a sending submodule, a receiving submodule, a first obtaining submodule, and a second obtaining submodule;
the sending submodule is used for sending a heartbeat packet to the receiving equipment;
the receiving submodule is used for receiving the confirmation data returned by the receiving equipment according to the heartbeat packet;
the first obtaining submodule is used for obtaining the sending time of the heartbeat packet and the receiving time of the confirmation data;
and the second obtaining submodule is used for obtaining the communication distance according to the sending time and the receiving time.
Optionally, a positive correlation exists between the target transmission power and the communication distance, and/or a positive correlation exists between the target transmission power and the data amount.
Optionally, the data transmission apparatus further includes a determination use module;
and the determining and using module is used for determining that the interference equipment is transmitting the data packet by using the channel corresponding to the channel identification.
Optionally, the determining and using module includes a third obtaining sub-module, a comparing sub-module, and a processing sub-module;
the third obtaining sub-module is configured to obtain a target data amount transmitted by the interfering device using a channel corresponding to the channel identifier;
the comparison submodule is used for comparing the target data volume with a preset data volume threshold;
and the processing submodule is configured to determine that the interfering device is transmitting a data packet using a channel corresponding to the channel identifier if the target data amount is greater than the preset data amount threshold.
Optionally, the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the data transmission method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the data transmission method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the method provided by the embodiment of the application, a sending device is any node device in a mesh network, the sending device acquires a channel identifier used for communication, and determines that an interfering device exists, wherein the interfering device is the node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, the interfering device does not include the sending device and a receiving device, the initial transmission power is controlled to be adjusted to a target transmission power, and data is sent to the receiving device according to the target transmission power. When interference equipment using the same channel with sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of communication abnormity among the equipment caused by the fact that a plurality of pieces of equipment use the same channel is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a data transmission method in an embodiment of the present application;
fig. 2 is a flow chart illustrating a method for obtaining a target transmission power according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Wireless Mesh Networks (also called Wireless Mesh Networks, etc.) are a new network structure based on multi-hop routing and peer-to-peer network technologies, and are increasingly widely used as a Wireless interconnected communication technology. Most of the existing mesh network protocols are based on a fixed networking environment, and a mesh network can contain dozens of node devices. The mesh network realizes the connection of the internet by connecting routers, nodes connected with the routers are called root nodes, nodes connected with the root nodes are called child nodes, and the child nodes are also connected with each other besides the root nodes.
In the embodiment of the application, a data transmission method is provided, and is applied to a sending device, and the sending device is any node device in a mesh network. The sending device is a device to which data is to be sent, for example, the device a sends data to the device B, that is, the device a is to be communicated with the device B, the device a is the sending device, and the device B is the receiving device.
In the embodiment of the present application, as shown in fig. 1, the data transmission method mainly includes:
step 101, acquiring a channel identifier used for communication.
When the transmitting device communicates with the receiving device, the transmitting device and the receiving device operate on the same channel. Channel identification refers to a parameter that can uniquely determine the channel used by a device. In the WiFi6 standard, a BSS Color coloring mechanism is used, the channel identifiers are Color (Color) identifiers, the communication packets carry the Color identifiers, the same Color identifier indicates that the devices operate on the same channel, there is channel interference, and the different Color identifiers indicate that the devices operate on different channels, there is no channel interference, and normal communication is possible. In this application, the channel identifier is used as a color identifier for explanation, but the channel identifier is not limited to be only a color identifier.
Step 102, determining that there is an interfering device, where the interfering device is a node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include a sending device and a receiving device.
The interfering device is a device whose channel identifier is the same as that of the transmitting device, except for the transmitting device and the receiving device, and whose communication parameters satisfy a preset condition. The communication parameter includes at least one of a time delay and a bit error rate, and may further include other parameters as needed. The communication parameter is used to indicate the communication quality of the device. The communication parameter meets a preset condition, wherein the time delay is greater than a preset time delay, the error rate is greater than a preset error rate, or the time delay is greater than a preset time delay, and the error rate is greater than a preset error rate. The communication parameter satisfies a preset condition, which indicates that the interfering device is communicating and is interfered. For example: the device A is a sending device, the device B is a receiving device, the channel identifier of the device A is red, the devices with the channel identifiers red are the device A, the device B, the device C and the device D, and the error rate of communication between the device C and the device D is larger than the preset error rate, the interference devices are the device C and the device D.
In a specific embodiment, the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
The node devices in the mesh network can communicate with each other, and at least one node device in the mesh network can acquire data sent by each node device in the mesh network. At least one node device in the mesh network can monitor a communication message of each node device in the mesh network, where the communication message carries a color identifier and a device identifier, where the device identifier refers to a parameter that can uniquely determine a device, and for example, the device identifier may be a Media Access Control Address (MAC Address).
At least one node device in the mesh network extracts a color identifier and a device identifier from a communication message of each node device in the mesh network. And establishing an interference information comparison table according to the color identifier and the equipment identifier. The interference information comparison table stores the corresponding relation between the color identifier and the equipment identifier, and the interference information comparison table stores the color identifier in a classified manner. For example: the color identification of the device A is red, the color identification of the device B is red, the color identification of the device C is red, the color identification of the device D is blue, the color identification of the device E is blue, the color identification of the device F is blue, the color identification of the device G is blue, the interference information comparison table is classified and stored according to the color identification, and the interference information comparison table is stored as follows: the color identifier is red, and the corresponding device identifiers are the MAC address of the device A, the MAC address of the device B and the MAC address of the device C; the color identifier is blue, and the corresponding device identifiers are the MAC address of device D, the MAC address of device E, the MAC address of device F, and the MAC address of device G.
The channel used by each device is not changed, that is, the channel identifier of each device is fixed, and the sending device only needs to receive the interference information comparison table sent by at least one node device in the mesh network and query the interference information comparison table to judge whether the interference device corresponding to the channel identifier exists. At least one node device in the mesh network may also include a sending device, or the sending device may query the interference information comparison table stored in the sending device itself.
Step 103, controlling the initial transmission power to adjust to the target transmission power, and sending data to the receiving device according to the target transmission power.
Controlling the initial transmission power to adjust to the target transmission power, controlling the initial transmission power to increase to the target transmission power, controlling the initial transmission power to decrease to the target transmission power, or controlling the initial transmission power to remain unchanged, and instructing the interfering device to increase from the initial transmission power to the target transmission power. For example: the device A is a sending device, the device B is a receiving device, the interfering devices are a device C and a device D, the initial transmission power of the device A and the initial transmission power of the device B can be controlled to be increased to the target transmission power, the transmission power of the device C and the transmission power of the device D are not changed, the transmission power of the device A and the transmission power of the device B can also be controlled to be unchanged, the initial transmission power of the device C and the initial transmission power of the device D are increased to the target transmission power, mutual interference between communication between the device A and the device B and communication between the device C and the device D is avoided as much as possible, and the stability of data transmission is improved.
When interference equipment using the same channel with sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of communication abnormity among the equipment caused by the fact that a plurality of pieces of equipment use the same channel is solved.
In an embodiment, as shown in fig. 2, before controlling the initial transmission power to adjust to the target transmission power, the data transmission method further includes:
step 201, acquiring and receiving a communication distance between devices.
In one embodiment, obtaining and receiving a communication distance between devices includes: sending a heartbeat packet to receiving equipment; receiving confirmation data returned by the receiving equipment according to the heartbeat packet; acquiring the sending time of sending the heartbeat packet and the receiving time of receiving the confirmation data; and acquiring the communication distance according to the sending time and the receiving time.
The confirmation data is confirmation information sent to the sending equipment by the receiving equipment after the receiving equipment confirms that the heartbeat packet sent by the sending equipment is received. Acquiring a communication distance according to the sending time and the receiving time, specifically: and acquiring the communication distance according to the difference value between the receiving time and the sending time.
The communication distance does not need to be acquired again every time, and when no communication exists between the devices corresponding to the same color identifier, any device corresponding to the color identifier sends heartbeat packets to other devices corresponding to the color identifier in different periods according to the interference information comparison table, acquires the confirmation data returned by the other devices corresponding to the color identifier according to the heartbeat packets, acquires the sending time of sending the heartbeat packets and the receiving time of receiving the confirmation data, and acquires the communication distance between the devices corresponding to the color identifier according to the difference value between the receiving time and the sending time. If non-heartbeat communication between the devices occurs in the heartbeat polling process, which indicates that the devices in the channel corresponding to the channel identifier are communicating, the heartbeat detection is stopped, and abnormal communication is avoided. The communication distance and a standard value can be divided to obtain a proportionality coefficient called the device heartbeat coefficient, and the device heartbeat coefficient is also stored in the interference information comparison table. When the communication distance needs to be acquired, directly inquiring the corresponding equipment heartbeat coefficient in the interference information comparison table. The device heartbeat coefficients of the devices can also be sorted from small to large or from large to small in the interference information comparison table.
Since each node device in the mesh network has mobility and may change its position, it is necessary to dynamically adjust the device heartbeat coefficient in the interference information comparison table, and it may be to periodically send a heartbeat packet to determine the device heartbeat coefficient, or when a certain device moves, the moving device sends a heartbeat packet to a device using the same channel to update the device heartbeat coefficient.
Step 202, obtaining the data volume to be sent.
And step 203, acquiring target transmission power according to the communication distance and/or the data volume.
In one embodiment, a positive correlation exists between the target transmission power and the communication distance, and/or a positive correlation exists between the target transmission power and the data amount.
A positive correlation relationship means that the independent variable grows and the dependent variable also grows. There is a positive correlation between the target transmission power and the communication distance, i.e., the longer the communication distance, the greater the target transmission power. There is a positive correlation between the target transmission power and the data amount, i.e., the larger the data amount to be transmitted, the larger the target transmission power. The target transmission power and the communication distance have a positive correlation, and the target transmission power and the data amount have a positive correlation, which means that the longer the communication distance is, the larger the data amount to be transmitted is, the larger the target transmission power is.
Under the condition of long communication distance, large data quantity to be sent, or long communication distance and large data quantity to be sent, the initial transmission power is controlled to be adjusted to the target transmission power, and the stability of data transmission can be improved.
In a specific embodiment, there is a correspondence between the amount of data to be sent and the transmission duration, and the correspondence between the amount of data to be sent and the transmission duration is stored in a reference comparison table, which is obtained through a large number of experimental tests and does not require dynamic adjustment. The target transmission power is obtained according to the communication distance and/or the data amount, and may be obtained by finding a corresponding transmission duration in a reference look-up table according to the data amount to be transmitted and obtaining the target transmission power according to the communication distance and/or the transmission duration.
In one embodiment, before controlling the initial transmission power to adjust to the target transmission power, the data transmission method further includes: and determining that the interference equipment transmits the data packet by using the channel corresponding to the channel identification.
Under the condition that the interference equipment is determined to be transmitting the data packet by using the channel corresponding to the channel identifier, the initial transmission power is required to be controlled to be increased to the target transmission power, and if the interference equipment only transmits the heartbeat packet regularly to maintain the connection of the communication link, the initial transmission power is not required to be controlled to be increased to the target transmission power, so that the transmission power can be saved, and the transmission energy consumption is reduced.
Also, after controlling the initial transmission power to be adjusted to the target transmission power, the data transmission method further includes: and if the transmission of the data packet of the interference equipment is detected to be finished, adjusting the target transmission power to the initial transmission power. After the initial transmission power is controlled to be increased to the target transmission power, the target transmission power is reduced to the initial transmission power after the data packet transmission of the interference equipment is finished, so that the transmission power can be saved, and the transmission energy consumption is reduced.
In a specific embodiment, determining that the interfering device is transmitting the data packet using the channel corresponding to the channel identifier includes: acquiring a target data volume transmitted by the interference equipment by using a channel corresponding to the channel identifier; comparing the target data quantity with a preset data quantity threshold value; and if the target data volume is larger than the preset data volume threshold value, determining that the interference equipment uses the channel corresponding to the channel identifier to transmit the data packet.
The preset data volume threshold may be a preset value greater than the data volume of heartbeat packets maintaining the connection of the communication link. If the target data volume is larger than the preset data volume threshold, it is indicated that the interfering devices are communicating and transmitting data packets with large data volume instead of transmitting heartbeat packets to maintain the connection of the communication link.
Or, a heartbeat packet used to maintain a connection of the communication link may include a specific field, but a data packet of the communication transmission does not include the specific field, and if it is detected that the data transmitted by the interfering device using the channel corresponding to the channel identifier does not include the specific field, it is determined that the interfering device is transmitting the data packet using the channel corresponding to the channel identifier.
In a specific embodiment, as shown in fig. 3, the data transmission method mainly includes:
step 301, at least one node device in the mesh network monitors a communication message of each node device in the mesh network, the communication message carries a color identifier and an MAC address, and an interference information comparison table is established according to the color identifier and the MAC address.
Step 302, a sending device sends a heartbeat packet to a receiving device, receives acknowledgement data returned by the receiving device according to the heartbeat packet, obtains a sending time for sending the heartbeat packet and a receiving time for receiving the acknowledgement data, obtains a communication distance according to the sending time and the receiving time, divides the communication distance by a standard value to obtain a proportionality coefficient, which is called a device heartbeat coefficient, and stores the device heartbeat coefficient in an interference information comparison table.
Step 303, dynamically adjusting the information of the interference information comparison table.
Step 304, the sending device searches the transmission duration according to the corresponding relation between the data volume to be sent and the transmission duration, and determines the transmission power optimization coefficient according to the transmission duration and the communication distance.
Step 305, calculating the target transmission power according to the initial transmission power and the transmission power optimization coefficient.
Step 306, the sending device sends data to the receiving device according to the target transmission power.
To sum up, in the method provided in this embodiment of the present application, a sending device is any node device in a mesh network, and the sending device obtains a channel identifier used for communication, and determines that there is an interfering device, where the interfering device is a node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the sending device and a receiving device, controls an initial transmission power to adjust to a target transmission power, and sends data to the receiving device according to the target transmission power. When interference equipment using the same channel with sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of communication abnormity among the equipment caused by the fact that a plurality of pieces of equipment use the same channel is solved.
Based on the same concept, in the embodiments of the present application, a data transmission apparatus is provided, and specific implementation of the apparatus may refer to description of the method embodiment, and repeated parts are not described again, as shown in fig. 4, the data transmission apparatus is configured in a sending device, where the sending device is any node device in a mesh network, and the apparatus mainly includes:
an obtaining module 401, configured to obtain a channel identifier used for communication;
a determining module 402, configured to determine that there is an interfering device, where the interfering device is a node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the sending device and the receiving device;
the processing module 403 is configured to control the initial transmission power to adjust to a target transmission power, and send data to the receiving device according to the target transmission power.
Optionally, the data transmission device further includes a communication distance obtaining module, a data amount obtaining module and a target transmission power obtaining module;
the communication distance acquisition module is used for acquiring the communication distance between the receiving equipment and the communication device;
the data volume acquisition module is used for acquiring the data volume to be sent;
and the target transmission power obtaining module is used for obtaining the target transmission power according to the communication distance and/or the data volume.
Optionally, the communication distance obtaining module includes a sending submodule, a receiving submodule, a first obtaining submodule, and a second obtaining submodule;
the sending submodule is used for sending a heartbeat packet to the receiving equipment;
the receiving submodule is used for receiving the confirmation data returned by the receiving equipment according to the heartbeat packet;
the first obtaining submodule is used for obtaining the sending time of the heartbeat packet and the receiving time of the confirmation data;
and the second obtaining submodule is used for obtaining the communication distance according to the sending time and the receiving time.
Optionally, a positive correlation exists between the target transmission power and the communication distance, and/or a positive correlation exists between the target transmission power and the data amount.
Optionally, the data transmission apparatus further includes a determination use module;
and the determining and using module is used for determining that the interference equipment is transmitting the data packet by using the channel corresponding to the channel identification.
Optionally, the determining and using module includes a third obtaining sub-module, a comparing sub-module, and a processing sub-module;
the third obtaining sub-module is configured to obtain a target data amount transmitted by the interfering device using a channel corresponding to the channel identifier;
the comparison submodule is used for comparing the target data volume with a preset data volume threshold;
and the processing submodule is configured to determine that the interfering device is transmitting a data packet using a channel corresponding to the channel identifier if the target data amount is greater than the preset data amount threshold.
Optionally, the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 5, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502, so as to implement the following steps:
acquiring a channel identifier used for communication; determining that an interference device exists, wherein the interference device is a node device in a mesh network, the interference device uses a channel corresponding to a channel identifier during communication, and the interference device does not include a sending device and a receiving device; and controlling the initial transmission power to adjust to the target transmission power, and sending data to the receiving equipment according to the target transmission power.
The communication bus 503 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 502 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the aforementioned processor 501.
The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the data transmission method described in the above embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data transmission method is applied to a sending device, wherein the sending device is any node device in a mesh network, and the method comprises the following steps:
acquiring a channel identifier used for communication;
determining that there is an interfering device, wherein the interfering device is a node device in the mesh network, the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the transmitting device and the receiving device;
and controlling the initial transmission power to adjust to the target transmission power, and sending data to the receiving equipment according to the target transmission power.
2. The data transmission method of claim 1, wherein before the controlling the initial transmission power to adjust to the target transmission power, the method further comprises:
acquiring a communication distance between the receiving device and the receiving device;
acquiring the data volume to be sent;
and acquiring the target transmission power according to the communication distance and/or the data volume.
3. The data transmission method according to claim 2, wherein the obtaining of the communication distance between the receiving device and the obtaining device comprises:
sending a heartbeat packet to the receiving device;
receiving confirmation data returned by the receiving equipment according to the heartbeat packet;
acquiring the sending time of sending the heartbeat packet and the receiving time of receiving the confirmation data;
and acquiring the communication distance according to the sending time and the receiving time.
4. The data transmission method according to claim 2, wherein there is a positive correlation between the target transmission power and the communication distance, and/or a positive correlation between the target transmission power and the data amount.
5. The data transmission method of claim 1, wherein before the controlling the initial transmission power to adjust to the target transmission power, the method further comprises:
determining that the interfering device is transmitting a data packet using a channel corresponding to the channel identifier.
6. The data transmission method according to claim 5, wherein the determining that the interfering device is transmitting the data packet using the channel corresponding to the channel identifier comprises:
acquiring a target data volume transmitted by the interference equipment by using a channel corresponding to the channel identifier;
comparing the target data quantity with a preset data quantity threshold value;
and if the target data volume is larger than the preset data volume threshold, determining that the interference equipment is transmitting a data packet by using a channel corresponding to the channel identifier.
7. The data transmission method according to any one of claims 1 to 6, wherein the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
8. A data transmission apparatus, configured to a sending device, where the sending device is any node device in a mesh network, and the apparatus includes:
the acquisition module is used for acquiring a channel identifier used by communication;
a determining module, configured to determine that there is an interfering device, where the interfering device is a node device in the mesh network, and the interfering device uses a channel corresponding to the channel identifier during communication, and the interfering device does not include the sending device and the receiving device;
and the processing module is used for controlling the initial transmission power to be adjusted to the target transmission power and sending data to the receiving equipment according to the target transmission power.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and implement the data transmission method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 7.
CN202111211280.7A 2021-10-18 2021-10-18 Data transmission method, device, equipment and storage medium Active CN113993201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111211280.7A CN113993201B (en) 2021-10-18 2021-10-18 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111211280.7A CN113993201B (en) 2021-10-18 2021-10-18 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113993201A true CN113993201A (en) 2022-01-28
CN113993201B CN113993201B (en) 2023-11-10

Family

ID=79739160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111211280.7A Active CN113993201B (en) 2021-10-18 2021-10-18 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113993201B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314126A (en) * 2022-08-05 2022-11-08 浙江瑞瀛物联科技有限公司 ZigBee communication anti-interference method, device, system and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018082A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 Power control method and device of the access point
CN101697624A (en) * 2009-10-30 2010-04-21 福建星网锐捷网络有限公司 Co-channel interference detection method, co-channel interference detection device and access point equipment
US20130039205A1 (en) * 2010-03-11 2013-02-14 Nippon Telegraph And Telephone Corporation Wireless communication method, base station, wireless communication system, and communication apparatus
CN103238281A (en) * 2010-08-25 2013-08-07 Utc消防及保安公司 Frequency agility for wireless embedded system
CN107432000A (en) * 2014-06-25 2017-12-01 英特尔公司 For strengthening the technology of Wireless Personal Network performance under disturbance regime
CN108184272A (en) * 2018-01-12 2018-06-19 海能达通信股份有限公司 A kind of method, interference processing unit and computer storage media for interfering processing
CN109413730A (en) * 2018-12-14 2019-03-01 锐捷网络股份有限公司 Power regulating method, access controller, system and storage medium
CN110166151A (en) * 2018-02-12 2019-08-23 华为技术有限公司 A kind of data transmission method and relevant device
CN111836276A (en) * 2019-04-17 2020-10-27 华为技术有限公司 Method and device for optimizing data transmission, wireless local area network equipment and chip
CN112615823A (en) * 2020-12-04 2021-04-06 广东亚太天能科技股份有限公司 Private encryption communication method and system for secondary encryption
US20210235459A1 (en) * 2020-01-24 2021-07-29 Cisco Technology, Inc. Cohesive resource management for wireless networks

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018082A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 Power control method and device of the access point
CN101697624A (en) * 2009-10-30 2010-04-21 福建星网锐捷网络有限公司 Co-channel interference detection method, co-channel interference detection device and access point equipment
US20130039205A1 (en) * 2010-03-11 2013-02-14 Nippon Telegraph And Telephone Corporation Wireless communication method, base station, wireless communication system, and communication apparatus
CN103238281A (en) * 2010-08-25 2013-08-07 Utc消防及保安公司 Frequency agility for wireless embedded system
CN107432000A (en) * 2014-06-25 2017-12-01 英特尔公司 For strengthening the technology of Wireless Personal Network performance under disturbance regime
CN108184272A (en) * 2018-01-12 2018-06-19 海能达通信股份有限公司 A kind of method, interference processing unit and computer storage media for interfering processing
CN110166151A (en) * 2018-02-12 2019-08-23 华为技术有限公司 A kind of data transmission method and relevant device
CN109413730A (en) * 2018-12-14 2019-03-01 锐捷网络股份有限公司 Power regulating method, access controller, system and storage medium
CN111836276A (en) * 2019-04-17 2020-10-27 华为技术有限公司 Method and device for optimizing data transmission, wireless local area network equipment and chip
US20210235459A1 (en) * 2020-01-24 2021-07-29 Cisco Technology, Inc. Cohesive resource management for wireless networks
CN112615823A (en) * 2020-12-04 2021-04-06 广东亚太天能科技股份有限公司 Private encryption communication method and system for secondary encryption

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314126A (en) * 2022-08-05 2022-11-08 浙江瑞瀛物联科技有限公司 ZigBee communication anti-interference method, device, system and storage medium
CN115314126B (en) * 2022-08-05 2024-03-29 浙江瑞瀛物联科技有限公司 ZigBee communication anti-interference method, device, system and storage medium

Also Published As

Publication number Publication date
CN113993201B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
US10630548B2 (en) Update file download method, device, and system
KR101604599B1 (en) Providing communication path information in hybrid networks
US11265092B2 (en) Network connection method and device for ensuring network connectivity in a newly connected routing device
EP3082285B1 (en) Ethernet data rate selection based on cable parameters
US9468025B2 (en) System and method for configuring device connections in an extended network environment
US11706118B2 (en) Methods and apparatus for detecting internet connection problems
US11902939B2 (en) Communication channel selection method
CN114040467A (en) Transmission path determining method, device, server and storage medium
CN113993201A (en) Data transmission method, device, equipment and storage medium
CN112235811A (en) Method for networking multiple routers, router, electronic device and storage medium
CN113965474A (en) Network quality evaluation method, electronic device and storage medium
CN106797261B (en) Remedial action based on inter-packet received power
CN109981462B (en) Message processing method and device
US9036471B2 (en) Wireless communication management system and method
US20210250827A1 (en) Method for managing a connection in a distributed wireless network
EP4038837B1 (en) Quality of experience measurements for control of wi-fi networks
CN114531392A (en) Multicast service design method, server and storage medium
US20240098600A1 (en) Physical layer rate estimates in wireless communication systems
CN113891354B (en) method, device, equipment and storage medium for updating mesh network
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
US20230413053A1 (en) Wireless intrusion prevention
MOLLAEI et al. Statistical analysis of different traffic types effect on qos of wireless ad hoc networks
EP3547613A1 (en) Method of performance monitoring and corresponding apparatus
CN112312584A (en) Channel conflict avoiding method in Bluetooth mesh network
CN116801310A (en) Data transmission method, device and system, electronic equipment and 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