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

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

Info

Publication number
CN113993201B
CN113993201B CN202111211280.7A CN202111211280A CN113993201B CN 113993201 B CN113993201 B CN 113993201B CN 202111211280 A CN202111211280 A CN 202111211280A CN 113993201 B CN113993201 B CN 113993201B
Authority
CN
China
Prior art keywords
data
transmission power
equipment
interference
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111211280.7A
Other languages
Chinese (zh)
Other versions
CN113993201A (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

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

Abstract

The application relates to a data transmission method, a device, equipment and a storage medium, and relates to the technical field of communication. The data transmission method is applied to a sending device, wherein the sending device is any node device in a mesh network and comprises the following steps: acquiring a channel identifier used for communication; determining that interference equipment exists, wherein the interference equipment is node equipment in a mesh network, the interference equipment uses a channel corresponding to a channel identifier during communication, and the interference equipment does not comprise a sending equipment and a receiving equipment; and controlling the initial transmission power to be adjusted to the target transmission power, and transmitting data to the receiving equipment according to the target transmission power. The application is used for solving the problem of abnormal communication among devices caused by 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 Set, basic service sets) with the same channel or multiple BSSs with different channels, where a single WiFi device, a single mesh network device, or multiple mesh network devices are mounted on the BSS, so as to form a complex network environment, and the devices communicate with each other through a given channel.
Communication between devices of the mesh network (Wireless Mesh Networks, also called wireless mesh network, etc.) is abnormal because of 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 device, equipment and a storage medium, which are used for solving the problem of abnormal communication among equipment caused by the fact that a plurality 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 includes:
acquiring a channel identifier used for communication;
determining that an interference device exists, wherein the interference device is node equipment in the mesh network, the interference device uses a channel corresponding to the channel identifier during communication, and the interference device does not comprise the sending equipment and the receiving equipment;
and controlling the initial transmission power to be adjusted to a target transmission power, and transmitting data to the receiving equipment according to the target transmission power.
Optionally, before the controlling the initial transmission power to be adjusted to the target transmission power, the method further includes:
acquiring a communication distance between the receiving equipment and the receiving equipment;
acquiring the data volume to be transmitted;
and acquiring the target transmission power according to the communication distance and/or the data volume.
Optionally, the acquiring a communication distance between the receiving device and the acquiring 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, there is a positive correlation between the target transmission power and the communication distance, and/or there is a positive correlation between the target transmission power and the data amount.
Optionally, before the controlling the initial transmission power to be adjusted to the target transmission power, the method further includes:
and determining that the interference equipment is transmitting a data packet by using a channel corresponding to the channel identifier.
Optionally, the determining that the interfering device is transmitting a data packet using a 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 volume with a preset data volume threshold;
and if the target data volume is larger than the preset data volume threshold value, determining that the interference equipment is transmitting data packets by using the channel corresponding to the channel identifier.
Optionally, the correspondence between the interference 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 in a sending device, where the sending device is any node device in a mesh network, including:
an acquisition module for acquiring a channel identifier used for communication;
a determining module, configured to determine that an interference device exists, where the interference device is a node device in the mesh network, the interference device uses a channel corresponding to the channel identifier when communicating, and the interference 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 transmitting data to the receiving equipment according to the target transmission power.
Optionally, the data transmission device further comprises a communication distance acquisition module, a data volume acquisition module and a target transmission power acquisition module;
the communication distance acquisition module is used for acquiring the communication distance between the receiving equipment and the communication distance acquisition module;
the data volume acquisition module is used for acquiring the data volume to be transmitted;
the target transmission power obtaining module is configured to obtain the target transmission power according to the communication distance and/or the data volume.
Optionally, the communication distance acquisition module comprises a sending sub-module, a receiving sub-module, a first acquisition sub-module and a second acquisition sub-module;
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 sub-module is used for obtaining the sending time of the heartbeat packet and the receiving time of the confirmation data;
the second obtaining submodule is used for obtaining the communication distance according to the sending time and the receiving time.
Optionally, there is a positive correlation between the target transmission power and the communication distance, and/or there is a positive correlation between the target transmission power and the data amount.
Optionally, the data transmission device further comprises a determining usage module;
the determining and using module is used for determining that the interference equipment is transmitting data packets by using the channel corresponding to the channel identifier.
Optionally, the determining and using module includes a third acquiring 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 sub-module is used for comparing the target data quantity with a preset data quantity threshold value;
and the processing submodule is used for determining that the interference equipment is transmitting a data packet by using a channel corresponding to the channel identifier if the target data quantity is larger than the preset data quantity threshold value.
Optionally, the correspondence between the interference 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 device 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 is used 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 storing a computer program, where the computer program implements the data transmission method according to the first aspect when executed by a processor.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, the sending equipment is any node equipment in the mesh network, the sending equipment acquires the channel identification used for communication, and the existence of the interference equipment is determined, wherein the interference equipment is the node equipment in the mesh network, the interference equipment uses the channel corresponding to the channel identification during communication, the interference equipment does not comprise the sending equipment and the receiving equipment, the initial transmission power is controlled to be adjusted to the target transmission power, and the data is sent to the receiving equipment according to the target transmission power. When interference equipment which uses the same channel with the sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of abnormal communication among the equipment caused by the fact that a plurality 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 application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a data transmission method in an embodiment of the application;
fig. 2 is a flowchart of a method for acquiring a target transmission power according to an embodiment of the present application;
FIG. 3 is a flow chart of a data transmission method according to an embodiment of the application;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The wireless mesh network (Wireless Mesh Networks, also called wireless mesh network, etc.) is a novel network structure based on multi-hop routing and peer-to-peer network technologies, and is increasingly widely used as a communication technology of wireless interconnection. Most of the existing mesh network protocols are based on a fixed networking environment, and the mesh network can comprise dozens of node devices. The mesh network is connected with the Internet through a connection router, the node connected with the router is called a root node, the node connected with the root node is called a child node, and the child nodes are connected with each other besides the root node.
The embodiment of the application provides a data transmission method which is applied to a sending device, wherein the sending device is any node device in a mesh network. The transmitting device refers to a device that is to transmit data, for example, device a is to transmit data to device B, that is, device a is to communicate with device B, that is, device a is a transmitting device, and device B is a receiving device.
In the embodiment of the present application, as shown in fig. 1, the data transmission method mainly includes:
step 101, a channel identifier used for communication is obtained.
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 identifiers, the communication message carries the Color identifiers, the Color identifiers are the same, the equipment works in the same channel, channel interference exists, the Color identifiers are different, the equipment works in different channels, the channel interference does not exist, and normal communication can be achieved. The application is described with the channel identifier as the color identifier, but the channel identifier is not limited to be the color identifier only.
Step 102, determining that an interference device exists, wherein the interference device is node equipment in the mesh network, the interference device uses a channel corresponding to the channel identifier during communication, and the interference device does not comprise a sending device and a receiving device.
The interfering device refers to 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 preset conditions. The communication parameters include at least one of time delay and error rate, and other parameters can be included according to requirements. The communication parameters are used to represent the communication quality of the device. The communication parameters meet the preset conditions, and the time delay can be larger than the preset time delay, the bit error rate can be larger than the preset bit error rate, the time delay can be larger than the preset time delay, and the bit error rate is larger than the preset bit error rate. The communication parameters satisfy a preset condition indicating that the interfering device is communicating and is being interfered. For example: the device A is a transmitting device, the device B is a receiving device, the channel identifier of the device A is red, the devices with the channel identifier of red are the device A, the device B, the device C and the device D, and the error rate of the communication between the device C and the device D is larger than the preset error rate, so that the interference devices are the device C and the device D.
In a specific embodiment, the correspondence between the interference 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, wherein the communication message carries a color identifier and a device identifier, and the device identifier refers to a parameter capable of uniquely determining the device, and for example, the device identifier can be a MAC address (Media Access Control Address, local area network address).
At least one node device in the mesh network extracts color identification and device identification from the 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. And the interference information comparison table is stored with the corresponding relation between the color mark and the equipment mark, and the interference information comparison table is stored in a classified mode according to the color mark. For example: the color of the device A is identified as red, the color of the device B is identified as red, the color of the device C is identified as red, the color of the device D is identified as blue, the color of the device E is identified as blue, the color of the device F is identified as blue, the color of the device G is identified as blue, the interference information comparison table is stored in a classified manner according to the color identification, and the interference information comparison table is stored as follows: color is identified as red, and the corresponding device is identified as the MAC address of device A, the MAC address of device B and the MAC address of device C; color is identified as blue, and the corresponding device is identified as 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 unchanged, i.e. the channel identifier of each device is fixed, and the transmitting device can judge whether the interference device corresponding to the channel identifier exists or not only by receiving the interference information comparison table transmitted by at least one node device in the mesh network and querying the interference information comparison table. 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 transmitting data to the receiving device according to the target transmission power.
The initial transmission power is controlled to be adjusted to the target transmission power, the initial transmission power is controlled to be increased to the target transmission power, the initial transmission power is controlled to be reduced to the target transmission power, the initial transmission power is controlled to be unchanged, and the interference equipment is instructed to be increased from the initial transmission power to the target transmission power. For example: the device A is a transmitting device, the device B is a receiving device, the interfering device is a device C and a device D, the initial transmission power of the device A and the device B can be controlled to be increased to a target transmission power, the transmission power of the device C and the transmission power of the device D are unchanged, the transmission power of the device A and the transmission power of the device B are also controlled to be unchanged, the initial transmission power of the device C and the device D is increased to the target transmission power, the mutual interference between the communication between the device A and the device B and the 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 which uses the same channel with the sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of abnormal communication among the equipment caused by the fact that a plurality of equipment use the same channel is solved.
In one embodiment, as shown in fig. 2, before controlling the initial transmission power to be adjusted to the target transmission power, the data transmission method further includes:
step 201, a communication distance between the receiving device and the obtaining device is obtained.
In one embodiment, obtaining a communication distance between the receiving device comprises: sending a heartbeat packet to a 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.
The confirmation data is confirmation information which is sent to the sending device after the receiving device confirms that the heartbeat packet sent by the sending device is received. According to the sending time and the receiving time, the communication distance is acquired, specifically: and acquiring the communication distance according to the difference between the receiving time and the transmitting time.
The communication distance does not need to be re-acquired every time, and can be any device corresponding to the color identifier when no communication exists between the devices corresponding to the same color identifier, sending a heartbeat packet to other devices corresponding to the color identifier according to an interference information comparison table in a time-sharing manner, acquiring acknowledgement data returned by the other devices corresponding to the color identifier according to the heartbeat packet, acquiring the sending time of sending the heartbeat packet, receiving the receiving time of the acknowledgement data, and acquiring the communication distance between the devices corresponding to the color identifier according to the difference between the receiving time and the sending time. If non-heartbeat communication among devices occurs in the heartbeat polling process, which means that devices in a channel corresponding to the channel identifier are in communication, the heartbeat detection is stopped, and communication abnormality is avoided. The communication distance and a standard value can be divided to obtain a proportionality coefficient, which is called a 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, the corresponding equipment heartbeat coefficient in the interference information comparison table is directly inquired. The device heartbeat coefficients of the devices may also be sorted in the interference information comparison table in order from small to large, or from large to small.
Because each node device in the mesh network has mobility and the position may change, the device heartbeat coefficient in the interference information comparison table needs to be dynamically adjusted, which may be that a heartbeat packet is sent periodically to determine the device heartbeat coefficient, or when a certain device moves, the moving device sends the heartbeat packet to the device using the same channel to update the device heartbeat coefficient.
Step 202, obtaining the data volume to be transmitted.
In step 203, the target transmission power is obtained according to the communication distance and/or the data amount.
In one embodiment, there is a positive correlation between the target transmission power and the communication distance, and/or there is a positive correlation between the target transmission power and the amount of data.
Positive correlation refers to the increase in the independent variable, which is followed by the increase in the dependent variable. 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 amount of data, i.e. the larger the amount of data to be transmitted, the larger the target transmission power. The positive correlation exists between the target transmission power and the communication distance, and the positive correlation exists between the target transmission power and the data volume, which means that the longer the communication distance is, the larger the data volume to be transmitted is, and the larger the target transmission power is.
And under the condition that the communication distance is long, or the data volume to be transmitted is large, or the communication distance is long and the data volume to be transmitted is large, controlling the initial transmission power to be adjusted to the target transmission power can improve the stability of data transmission.
In a specific embodiment, there is a correspondence between the amount of data to be sent and the transmission time length, and the correspondence between the amount of data to be sent and the transmission time length is stored in a reference comparison table, where the reference comparison table is obtained through a large number of experimental tests, and dynamic adjustment is not needed. The target transmission power may be obtained according to the communication distance and/or the data amount by searching the corresponding transmission time length in the reference lookup table according to the data amount to be sent, and the target transmission power may be obtained according to the communication distance and/or the transmission time length.
In one embodiment, before controlling the initial transmission power to be adjusted to the target transmission power, the data transmission method further includes: it is determined that the interfering device is transmitting data packets using a channel corresponding to the channel identification.
Under the condition that the interference equipment is determined to transmit 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 heartbeat packets are only transmitted regularly between the interference equipment 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 can be reduced.
Further, after controlling the initial transmission power to be adjusted to the target transmission power, the data transmission method further includes: and if the data packet of the interference equipment is detected to be transmitted, 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 data packet of the interference device is transmitted, and the target transmission power is reduced to the initial transmission power, so that the transmission power can be saved, and the transmission energy consumption can be 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 an interference device by using a channel corresponding to the channel identifier; comparing the target data volume with a preset data volume threshold; if the target data volume is larger than the preset data volume threshold value, determining that the interference equipment is transmitting the data packet by using the channel corresponding to the channel identifier.
The preset data amount threshold may be a preset value that is greater than the data amount of heartbeat packets that maintain the connection of the communication link. If the target data volume is larger than the preset data volume threshold, the interference devices are not used for transmitting heartbeat packets to maintain the connection of the communication link, but are used for communicating, and data packets with large data volumes are transmitted.
Or, a heartbeat packet for maintaining connection of the communication link may include a specific field, while a data packet transmitted by communication does not include the specific field, and if it is detected that data transmitted by the interfering device using a 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 one 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, wherein 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, the transmitting device sends the heartbeat packet to the receiving device, receives the acknowledgement data returned by the heartbeat packet by the receiving device, obtains the sending time of sending the heartbeat packet and the receiving time of receiving the acknowledgement data, obtains the communication distance according to the sending time and the receiving time, divides the communication distance by a standard value to obtain a proportionality coefficient, namely a device heartbeat coefficient, and stores the device heartbeat coefficient in the interference information comparison table.
Step 303, dynamically adjusting the information of the interference information comparison table.
Step 304, the transmitting device searches the transmission time according to the corresponding relation between the data volume to be transmitted and the transmission time, and determines the transmission power optimization coefficient according to the transmission time and the communication distance.
In step 305, a target transmission power is calculated based on the initial transmission power and the transmission power optimization coefficient.
In step 306, the transmitting device transmits data to the receiving device according to the target transmission power.
In summary, according to the method provided by the embodiment of the application, the sending device is any node device in the mesh network, the sending device obtains the channel identifier used for communication, and it is determined that the interference device exists, wherein the interference device is the node device in the mesh network, the interference device uses the channel corresponding to the channel identifier during communication, the interference device does not include the sending device and the receiving device, the initial transmission power is controlled to be adjusted to the target transmission power, and the data is sent to the receiving device according to the target transmission power. When interference equipment which uses the same channel with the sending equipment exists, the stability of data transmission is improved by adjusting the transmission power of the sending equipment, and the problem of abnormal communication among the equipment caused by the fact that a plurality of equipment use the same channel is solved.
Based on the same conception, the embodiment of the present application provides a data transmission device, the specific implementation of which can be referred to the description of the embodiment of the method, and the repetition is omitted, as shown in fig. 4, the data transmission device is configured in a sending device, and the sending device is any node device in a mesh network, and the device mainly includes:
an obtaining module 401, configured to obtain a channel identifier used for communication;
a determining module 402, configured to determine that an interference device exists, where the interference device is a node device in the mesh network, the interference device uses a channel corresponding to the channel identifier when communicating, and the interference device does not include the sending device and the receiving device;
and the processing module 403 is configured to control the initial transmission power to be adjusted to a target transmission power, and send data to the receiving device according to the target transmission power.
Optionally, the data transmission device further comprises a communication distance acquisition module, a data volume acquisition module and a target transmission power acquisition module;
the communication distance acquisition module is used for acquiring the communication distance between the receiving equipment and the communication distance acquisition module;
the data volume acquisition module is used for acquiring the data volume to be transmitted;
the target transmission power obtaining module is configured to obtain the target transmission power according to the communication distance and/or the data volume.
Optionally, the communication distance acquisition module comprises a sending sub-module, a receiving sub-module, a first acquisition sub-module and a second acquisition sub-module;
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 sub-module is used for obtaining the sending time of the heartbeat packet and the receiving time of the confirmation data;
the second obtaining submodule is used for obtaining the communication distance according to the sending time and the receiving time.
Optionally, there is a positive correlation between the target transmission power and the communication distance, and/or there is a positive correlation between the target transmission power and the data amount.
Optionally, the data transmission device further comprises a determining usage module;
the determining and using module is used for determining that the interference equipment is transmitting data packets by using the channel corresponding to the channel identifier.
Optionally, the determining and using module includes a third acquiring 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 sub-module is used for comparing the target data quantity with a preset data quantity threshold value;
and the processing submodule is used for determining that the interference equipment is transmitting a data packet by using a channel corresponding to the channel identifier if the target data quantity is larger than the preset data quantity threshold value.
Optionally, the correspondence between the interference device and the channel identifier is obtained by at least one node device in the mesh network.
Based on the same conception, the embodiment of the application also provides an electronic device, as shown in fig. 5, which mainly comprises: processor 501, memory 502 and communication bus 503, wherein processor 501 and memory 502 accomplish the communication between each other through 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 to implement the following steps:
acquiring a channel identifier used for communication; determining that interference equipment exists, wherein the interference equipment is node equipment in a mesh network, the interference equipment uses a channel corresponding to a channel identifier during communication, and the interference equipment does not comprise a sending equipment and a receiving equipment; and controlling the initial transmission power to be adjusted to the target transmission power, and transmitting data to the receiving equipment according to the target transmission power.
The communication bus 503 mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated to PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated to 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 not only one bus or one type of bus.
The memory 502 may include random access memory (Random Access Memory, simply RAM) or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also 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 (Central Processing Unit, CPU), a network processor (Network Processor, NP), a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA), or other programmable logic device, discrete gate or transistor logic device, or 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 perform the data transmission method described in the above embodiment.
In the above embodiments, it may be implemented in whole or in part 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 the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, by a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, microwave, etc.) means from one website, computer, server, or data center to another. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. 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 application. Thus, the present application 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 (9)

1. The data transmission method is characterized by being 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 an interference device exists, wherein the interference device is node equipment in the mesh network, the interference device uses a channel corresponding to the channel identifier during communication, and the interference device does not comprise the sending equipment and the receiving equipment;
the method comprises the steps of detecting that data transmitted by an interference device through a channel corresponding to a channel identifier does not contain a specific field, determining that the interference device is transmitting a data packet through the channel corresponding to the channel identifier, wherein the specific field is contained in a heartbeat packet for maintaining connection of a communication link;
and controlling the initial transmission power to be adjusted to a target transmission power, and transmitting data to the receiving equipment according to the target transmission power.
2. The data transmission method according to claim 1, wherein before the controlling the initial transmission power to be adjusted to the target transmission power, the method further comprises:
acquiring a communication distance between the receiving equipment and the receiving equipment;
acquiring the data volume to be transmitted;
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 acquiring the communication distance between the receiving device and the receiving 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.
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 there is a positive correlation between the target transmission power and the data amount.
5. The method of data transmission according to claim 1, wherein said determining that the interfering device is transmitting data packets using a channel corresponding to the channel identification comprises:
acquiring a target data volume transmitted by the interference equipment by using a channel corresponding to the channel identifier;
comparing the target data volume with a preset data volume threshold;
and if the target data volume is larger than the preset data volume threshold value, determining that the interference equipment is transmitting data packets by using the channel corresponding to the channel identifier.
6. The data transmission method according to any one of claims 1 to 5, wherein the correspondence between the interfering device and the channel identifier is obtained by at least one node device in the mesh network.
7. The data transmission device is characterized by being configured in a sending device, wherein the sending device is any node device in a mesh network, and the data transmission device comprises:
an acquisition module for acquiring a channel identifier used for communication;
a determining module, configured to determine that an interference device exists, where the interference device is a node device in the mesh network, the interference device uses a channel corresponding to the channel identifier when communicating, and the interference device does not include the sending device and the receiving device; the method comprises the steps of detecting that data transmitted by an interference device through a channel corresponding to a channel identifier does not contain a specific field, determining that the interference device is transmitting a data packet through the channel corresponding to the channel identifier, wherein the specific field is contained in a heartbeat packet for maintaining connection of a communication link;
and the processing module is used for controlling the initial transmission power to be adjusted to the target transmission power and transmitting data to the receiving equipment according to the target transmission power.
8. An electronic device, comprising: the device 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 is used for storing a computer program;
the processor is configured to execute a program stored in the memory, and implement the data transmission method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the data transmission method of any one of claims 1 to 6.
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 CN113993201A (en) 2022-01-28
CN113993201B true 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)

Families Citing this family (1)

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

Citations (9)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8897163B2 (en) * 2010-03-11 2014-11-25 Nippon Telegraph And Telephone Corporation Wireless communication method, base station, wireless communication system, and communication apparatus
US11330600B2 (en) * 2020-01-24 2022-05-10 Cisco Technology, Inc. Cohesive resource management for wireless networks

Patent Citations (9)

* 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
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
CN112615823A (en) * 2020-12-04 2021-04-06 广东亚太天能科技股份有限公司 Private encryption communication method and system for secondary encryption

Also Published As

Publication number Publication date
CN113993201A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US10623237B2 (en) Method of managing zigbee network in the internet of things
US8787330B2 (en) Dense mesh network communications
JP3149928B2 (en) Channel selection method and channel selection device for wireless packet communication system
CN108347346B (en) Method for upgrading equipment in mesh network
TW200934156A (en) Gathering and reporting data concerning communication channel conditions for a wireless device in a wireless network
CN106330723B (en) Discovery method and device of network neighbor equipment
CN113993201B (en) Data transmission method, device, equipment and storage medium
WO2022062931A1 (en) Network anomaly determination method and apparatus
US11902939B2 (en) Communication channel selection method
CN113965474A (en) Network quality evaluation method, electronic device and storage medium
CN114786241B (en) Network selection method, related device, network equipment and storage medium
CN106797261B (en) Remedial action based on inter-packet received power
JP2020167442A (en) Operation management device, operation management system, and operation management method
US11388090B2 (en) Bandwidth measurement method and measurement device
CN114531392A (en) Multicast service design method, server and storage medium
WO2021092548A1 (en) Quality of experience measurements for control of wi-fi networks
US9942123B2 (en) Device and method for monitoring communication in network including a plurality of nodes
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
KR20210002548A (en) Multicast packet processing method and network device
CN111885613B (en) SIG MESH-based networking method, node equipment and computer equipment
US20220312546A1 (en) Drx parameter configuration method, processing method, network node, and user equipment
US11877318B2 (en) Channel assessment in a single contention-free channel access period
WO2024036643A1 (en) Method and apparatus for acquiring custom identifier, method and apparatus for use of custom identifier, and device and storage medium
WO2022095855A1 (en) Connection method, apparatus and system, and electronic device and computer-readable storage medium
CN103595636A (en) A method, an apparatus and a system for obtaining maintenance entity group end point MAC addresses

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