CN116761206B - Data transmission method, apparatus, communication device, medium, and program product - Google Patents

Data transmission method, apparatus, communication device, medium, and program product Download PDF

Info

Publication number
CN116761206B
CN116761206B CN202311034893.7A CN202311034893A CN116761206B CN 116761206 B CN116761206 B CN 116761206B CN 202311034893 A CN202311034893 A CN 202311034893A CN 116761206 B CN116761206 B CN 116761206B
Authority
CN
China
Prior art keywords
terminal node
node
network
connection
field 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.)
Active
Application number
CN202311034893.7A
Other languages
Chinese (zh)
Other versions
CN116761206A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202311034893.7A priority Critical patent/CN116761206B/en
Publication of CN116761206A publication Critical patent/CN116761206A/en
Application granted granted Critical
Publication of CN116761206B publication Critical patent/CN116761206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a data transmission method, a data transmission device, a data transmission communication device, a data transmission medium and a data transmission program product of a near field communication network. The method comprises the following steps: the method comprises the steps that a first terminal node obtains a state parameter of a current connected uplink network, whether the first terminal node becomes a relay node of a near-field communication network is determined based on the state parameter, if the first terminal node becomes the relay node, the first terminal node sends a broadcast discovery frame which is connected with a second terminal node, and the second terminal node establishes connection with the first terminal node for data transmission after receiving the broadcast discovery frame. The method can dynamically adjust the node roles according to the state of the node link quality in time, and enhance the robustness of the communication network.

Description

Data transmission method, apparatus, communication device, medium, and program product
Technical Field
The present application relates to the field of wireless communications and terminal technologies, and in particular, to a data transmission method, apparatus, communication device, medium, and program product for a near field communication network.
Background
Technological development is gradually changed, and the technical field of wireless communication gradually occupies market main bodies. In a near field communication network constructed by non-cellular technologies such as WLAN, when a terminal node performs cross-heterogeneous network communication through a relay node, the connection stability between the terminal node and the relay node directly influences the robustness of the whole near field communication network. The choice of relay node is therefore relevant for the robustness of the overall communication, and it is therefore important to choose the appropriate relay node.
In the conventional technology, the selection is mainly performed according to the signal strength of the relay node.
However, only the manner of considering the signal strength affects the robustness of the entire near field communication network and the problem of communication efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data transmission method, apparatus, communication device, medium, and program product for a near field communication network.
In a first aspect, the present application provides a data transmission method of a near field communication network, which is applied to a first terminal node in the near field communication network. The method comprises the following steps:
acquiring state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
determining whether the first terminal node becomes a relay node of the near-field communication network based on the state parameter;
and transmitting a broadcast discovery frame when the first terminal node is determined to be a relay node, wherein the broadcast discovery frame is used for enabling a second terminal node in the near-field communication network to establish connection with the first terminal node, and the first terminal node is used as the relay node for data transmission.
In one embodiment, the determining whether the first terminal node becomes a relay node of the near-field communication network based on the status parameter includes:
determining whether the signal strength of the uplink network is greater than a set first signal strength threshold of the uplink network;
acquiring weights respectively corresponding to the signal strength, the connection duration, the network load and the electric quantity of the uplink network under the condition that the signal strength of the uplink network is larger than a set first signal strength threshold of the uplink network, and carrying out weighted calculation on the signal strength, the connection duration, the network load and the electric quantity of the uplink network based on the weights to obtain the weight of the first terminal node in the near-field communication network;
and when the weight is larger than the set weight threshold, determining that the node is a relay node.
In one embodiment, after determining that the first terminal node itself becomes a relay node, transmitting a broadcast discovery frame includes:
continuously monitoring the signal intensity of the uplink network;
if the signal intensity of the upper network is detected to be larger than the set second signal intensity threshold value of the upper network and the duration time is detected to be larger than the set time threshold value, adding a priority mark in the broadcast discovery frame, wherein the priority mark is used for improving the priority of the connection of the first terminal node by the second terminal node.
In a second aspect, the present application further provides a data transmission method of a near field communication network, applied to a second terminal node in the near field communication network, including:
receiving a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
and establishing connection with the first terminal node and carrying out data transmission based on the broadcast discovery frame.
In one embodiment, a connection is established with the first terminal node and data transmission is performed based on the broadcast discovery frame. Comprising the following steps:
if broadcast discovery frames of a plurality of first terminal nodes are received, generating a node connection list based on the size sequence of the weights corresponding to the first terminal nodes; the weight of each first terminal node is determined based on the state parameters of the uplink network connected with the first terminal node;
and establishing connection with each first terminal node based on the broadcast discovery frames of each first terminal node in turn according to the node connection list.
In a third aspect, the present application also provides a data transmission device of a near field communication network, which is characterized in that the device is applied to a first terminal node in the near field communication network, and the device includes:
the state parameter acquisition module acquires state parameters of the current connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
a relay node determining module configured to determine, based on the status parameter, whether the first terminal node becomes a relay node of the near-field communication network;
and the broadcast sending module is used for sending a broadcast discovery frame when determining that the first terminal node becomes a relay node, wherein the broadcast discovery frame is used for enabling a second terminal node in the near field communication network to establish connection with the first terminal node and carrying out data transmission by taking the first terminal node as the relay node.
In a fourth aspect, the present application also provides a data transmission device of a near field communication network, which is characterized in that the device is applied to a second terminal node in the near field communication network, and the device includes:
a broadcast receiving module for receiving a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
And the connection module establishes connection with the first terminal node and performs data transmission based on the broadcast discovery frame.
In a fifth aspect, the present application also provides a communication device. The communication device comprises a memory, a processor and a communication interface, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
the method comprises the steps that a first terminal node obtains state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
determining whether the first terminal node becomes a relay node of the near-field communication network based on the state parameter;
and transmitting a broadcast discovery frame when the first terminal node is determined to be a relay node, wherein the broadcast discovery frame is used for enabling a second terminal node in the near-field communication network to establish connection with the first terminal node, and the first terminal node is used as the relay node for data transmission.
A second terminal node receives a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
And establishing connection with the first terminal node and carrying out data transmission based on the broadcast discovery frame.
In a sixth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
the method comprises the steps that a first terminal node obtains state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
determining whether the first terminal node becomes a relay node of the near-field communication network based on the state parameter;
and transmitting a broadcast discovery frame when the first terminal node is determined to be a relay node, wherein the broadcast discovery frame is used for enabling a second terminal node in the near-field communication network to establish connection with the first terminal node, and the first terminal node is used as the relay node for data transmission.
A second terminal node receives a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
And establishing connection with the first terminal node and carrying out data transmission based on the broadcast discovery frame.
In a seventh aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
the method comprises the steps that a first terminal node obtains state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
determining whether the first terminal node becomes a relay node of the near-field communication network based on the state parameter;
and transmitting a broadcast discovery frame when the first terminal node is determined to be a relay node, wherein the broadcast discovery frame is used for enabling a second terminal node in the near-field communication network to establish connection with the first terminal node, and the first terminal node is used as the relay node for data transmission.
A second terminal node receives a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
And establishing connection with the first terminal node and carrying out data transmission based on the broadcast discovery frame.
The data transmission method, the device, the communication equipment, the medium and the program product of the near-field communication network are characterized in that a first terminal node in the near-field communication network acquires state parameters of a currently connected uplink network, wherein the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network, whether the first terminal node becomes a relay node of the near-field communication network is determined based on the state parameters, if the first terminal node becomes the relay node, the first terminal node sends a broadcast discovery frame for establishing connection with other terminal nodes in the near-field communication network, and after receiving the broadcast discovery frame, the other terminal nodes establish connection with the first terminal node for data transmission. In the scheme, whether the terminal node becomes a relay node of the near field communication network is determined based on the upper network state parameter of the terminal node in the near field communication network, the terminal node senses the state change faster, and the node role is dynamically adjusted in time according to the state of the node link quality, so that the robustness of the communication system can be improved. After determining that the terminal node itself can become a relay node, the terminal node sends a broadcast discovery frame, so that the method is more suitable for quickly selecting a plurality of potential target relay node states in a heterogeneous network in the presence of multiple terminal nodes, thereby accelerating the speed of selecting the relay node by a far-end node, and effectively improving the connection efficiency and further improving the service experience by shortening the discovery time of the terminal node.
Drawings
FIG. 1 is a diagram of an application environment for a near field communication network data transmission method in one embodiment;
fig. 2 is a flow chart of a data transmission method of a near field communication network according to an embodiment;
fig. 3 is a flowchart of a data transmission method of a near field communication network according to another embodiment;
fig. 4 is a detailed flowchart of a data transmission method of a near field communication network according to an embodiment;
fig. 5 is a block diagram of a data transmission device of a near field communication network according to an embodiment;
fig. 6 is a block diagram of a data transmission apparatus of a near field communication network provided in another embodiment;
fig. 7 is an internal structural diagram of a communication device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The data transmission method of the near field communication network provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Communication relations exist among a plurality of terminal nodes in the near-field communication network, any terminal node can communicate with the communication network, and any terminal node has an opportunity to serve as a relay node of the communication network. The terminal node may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like.
In one embodiment, as shown in fig. 2, there is provided a data transmission method of a near field communication network, which is applied to any terminal node (also referred to as a first terminal node in the present disclosure) in the near field communication network, and includes the following steps:
step S201, a first terminal node acquires state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network.
The uplink network is a network connected with an uplink port of the terminal, communication with the terminal node can be realized through the network, and the uplink network can be a honeycomb or WLAN. The signal strength of the uplink network can be understood as the capability of the uplink network signal found by the terminal node, the connection duration can be understood as the time length of the terminal node connecting the uplink network, the network load can be understood as the flow of the uplink network relay bearing and the quantity of the bearing terminal node, and the electric quantity can be understood as the capability of the terminal device for cruising.
Optionally, in some scenarios, the signal strength and the network load of the uplink network affect, to a greater extent, whether the first terminal node becomes a relay node with respect to the connection duration and the electric quantity.
Step S202 determines whether the first terminal node becomes a relay node of the near field communication network based on the status parameter.
The relay node refers to a node for forwarding a data packet in an incoming network to another network node, and any one of the terminal nodes in the present disclosure may become a relay node.
Illustratively, in the implementation of step S202, since the state parameter may reflect the stability and the data forwarding capability of a node, it may be determined whether the terminal node itself satisfies the condition of becoming a relay node based on the state parameter. For example: the terminal node is more likely to become a relay node when the upper network signal strength of the terminal node is high and the network load is low, and the possibility that the terminal node becomes a relay node is low when the upper network signal strength of the terminal node is low and the network load is high.
In step S203, when it is determined that the first terminal node itself becomes a relay node, a broadcast discovery frame is sent, where the broadcast discovery frame is used to enable a second terminal node in the near-field communication network to establish a connection with the first terminal node, and perform data transmission with the first terminal node as a relay node.
The broadcast discovery frame carries information allowing other nodes to connect and a connection address of the first terminal node. The second terminal node may understand nodes outside the first terminal node in the near field communication network.
Optionally, in the implementation of step S203, the first terminal node determines to be a relay node and starts broadcasting to the neighborhood, and the second terminal node can attempt to establish a connection with the first terminal node for data transmission after receiving the broadcast.
In the above embodiment of the present disclosure, by improving a relay node selection method, a more reasonable relay node is selected, specifically, a first terminal node in a near-field communication network obtains a state parameter of a currently connected uplink network, where the state parameter includes at least two of signal strength, connection duration, network load and electric quantity of the uplink network, determines whether the first terminal node becomes a relay node of the near-field communication network based on the state parameter, and if it is determined that the first terminal node itself becomes a relay node, the first terminal node sends a broadcast discovery frame for establishing connection with other terminal nodes in the near-field communication network. In the scheme, whether the terminal node becomes a relay node of the near field communication network is determined based on the upper network state parameter of the terminal node in the near field communication network, the terminal node senses the state change faster, and the node role is dynamically adjusted in time according to the state of the node link quality, so that the robustness of the communication system can be improved. After determining that the terminal node itself can become a relay node, the terminal node sends a broadcast discovery frame, so that the method is more suitable for quickly selecting a plurality of potential target relay node states in a heterogeneous network in the presence of multiple terminal nodes, thereby accelerating the speed of selecting the relay node by a far-end node, and effectively improving the connection efficiency and further improving the service experience by shortening the discovered time of the relay node.
In one embodiment, the determining whether the first terminal node becomes a relay node of the near-field communication network based on the status parameter comprises: weighting and calculating at least two of signal intensity, connection time, network load and electric quantity of the uplink network to obtain a weight of the first terminal node in the near-field communication network; and when the weight is larger than the set weight threshold, determining that the node is a relay node.
In specific implementation, for example, two items of signal strength and network load of the uplink network are selected to perform weighted calculation to obtain a weight corresponding to the terminal node, and when the weight is greater than a set weight threshold, the terminal node is determined to be a relay node. The weight threshold may be determined based on an empirical value, for example, several empirical values are selected first, and then the selected relay node is brought into the weighted threshold, and an optimal empirical value is determined according to the subsequent performance of the selected relay node, and is used as the weight threshold of the relay node to be determined subsequently.
It can be understood that the weight threshold value can also be determined in other manners, for example, the weight threshold value is set according to the distribution condition of the weights of a plurality of terminal nodes in the current network, so that the weight threshold value better accords with the actual condition of the current network; the present disclosure does not overly limit this.
Further, in an embodiment, the weighting calculation for at least two of the signal strength, the connection duration, the network load, and the electric quantity of the uplink network includes: determining whether the signal strength of the uplink network is greater than a set first signal strength threshold of the uplink network; and under the condition that the signal intensity of the uplink network is larger than a set first signal intensity threshold value of the uplink network, carrying out weighted calculation on at least two of the signal intensity of the uplink network, the connection duration, the network load and the electric quantity.
The signal strength of the uplink network is an important factor for judging whether the terminal node can become a relay node, and the first signal strength threshold value of the uplink network can be set to be an empirical value and can be determined according to the follow-up performance of the selected relay node; or, setting according to the distribution condition of the signal intensity of the upper network of a plurality of terminal nodes in the current network, so that the first signal intensity threshold value is more in line with the actual condition of the current network; the present disclosure does not overly limit this.
Through the embodiment, whether the signal strength of the uplink network of the terminal node meets the condition is firstly judged, and for the terminal node with weak signal strength of the uplink network, the corresponding weight value of the terminal node is not required to be further calculated, so that the calculation resource is saved.
Further, in an embodiment, performing weighted calculation on at least two of signal strength, connection duration, network load and electric quantity of the uplink network to obtain a weight of the first terminal node in the near field communication network, where the weight includes: acquiring weights respectively corresponding to the signal intensity, the connection time, the network load and the electric quantity of the uplink network; and based on the weight, weighting and calculating the signal strength, the connection time length, the network load and the electric quantity of the uplink network to obtain the weight of the first terminal node in the near-field communication network.
The signal strength and the network load of the uplink network corresponding to the terminal node are two important influencing factors, so that the weight allocated to the terminal node can be relatively larger, the connection time length and the electric quantity allocation weight can be relatively smaller, the weight calculated by weighting is more reasonable, and the selected relay node is more stable and has better robustness.
In the above embodiment of the present disclosure, based on the state parameters of the network on which the terminal node itself is connected, the signal strength is first screened and then weighted according to the importance degree, and finally a reasonable relay node is selected.
In one embodiment, after determining that the first terminal node itself becomes a relay node, transmitting a broadcast discovery frame includes: the first terminal node continues to monitor the signal strength of the uplink network; if the signal intensity of the upper network is detected to be larger than the set second signal intensity threshold value of the upper network and the duration time is detected to be larger than the set time threshold value, the first terminal node adds a priority mark in the broadcast discovery frame, and the priority mark is used for improving the priority of the connection of the first terminal node by the second terminal node.
The second signal strength threshold value of the uplink network can be set to be an empirical value, and can be determined according to the subsequent performance of the selected relay node; or, setting according to the distribution condition of signal intensity thresholds of a plurality of terminal nodes in the current network, so that the second signal intensity threshold is more in line with the actual condition of the current network; the present disclosure does not overly limit this.
When the time threshold is selected, the time threshold can be also an empirical value, and the time threshold is determined according to the subsequent performance of the selected relay node; or, setting according to the distribution condition of the time thresholds of a plurality of terminal nodes in the current network, so that the time thresholds are more in line with the actual condition of the current network; the present disclosure does not overly limit this.
In one embodiment, the second signal strength threshold is greater than the first signal strength threshold, and by setting a suitable second signal strength threshold, when the weights of a plurality of terminal nodes are greater than the weight threshold and can become relay nodes, more stable terminal nodes can be further selected from the plurality of terminal nodes, so that other nodes are preferentially connected with the nodes.
In a specific implementation, a priority flag is added to the broadcast discovery frame, and after other terminal nodes receive the broadcast discovery frame, if the priority flag exists, connection is initiated preferentially according to connection address information in the broadcast discovery frame.
In the above embodiment of the present disclosure, when a terminal node is initially screened and its weight is greater than a weight threshold, the terminal node becomes a relay node and transmits a broadcast discovery frame, and when the signal strength threshold of the upper network of the terminal node is greater than a second signal strength threshold, a priority discovery flag is added in the frame, so that the time that the terminal node in a better network state is discovered by other terminal nodes can be effectively shortened, the connection efficiency is improved, and further the service experience is improved.
In one embodiment, as shown in fig. 3, there is provided a data transmission method of a near field communication network, which is applied to a node other than a first terminal node in the near field communication network (the node other than the first terminal node is also referred to as a second terminal node in the present disclosure), including the steps of:
Step S301, a second terminal node receives a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring the state parameter of the current connected uplink network and determining that the first terminal node can become a relay node based on the state parameter; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network.
In the implementation of step S301, the first terminal node sends a broadcast discovery frame carrying information of its own connection permission and its own connection address.
Step S302, based on the broadcast discovery frame, the second terminal node establishes a connection with the first terminal node and performs data transmission.
In this embodiment, the first terminal node transmits a broadcast discovery frame carrying information of own connection permission and an own connection address. Correspondingly, in the implementation of step S302, after receiving the broadcast discovery frame, the second terminal node initiates connection and performs data transmission according to the connection permission information and the connection address of the first terminal node carried in the frame.
The embodiment of the disclosure provides a data transmission method in a near field communication network, for a second terminal node in the near field communication network, the second terminal node receives a broadcast discovery frame sent by a relay node, establishes connection with a corresponding relay node based on the received broadcast frame, and performs data transmission; because the relay node can be any terminal node of the near-field communication network, the method is more suitable for quickly selecting the states of a plurality of potential target relay nodes in the heterogeneous network in which the multi-terminal node exists, thereby accelerating the speed of selecting the relay node by the far-end node.
In one embodiment, the establishing a connection with the first terminal node and performing data transmission based on the broadcast discovery frame includes: and preferentially connecting with the first terminal node under the condition that the broadcast discovery frame of the first terminal node is detected to carry a priority mark.
In the implementation, when detecting that the connection permission information carried in the broadcast discovery frame contains a priority mark, connection is established preferentially according to the connection address information of the terminal node.
In one embodiment, the establishing a connection with the first terminal node and performing data transmission based on the broadcast discovery frame includes: if the second terminal node receives the broadcast discovery frames of the plurality of first terminal nodes, generating a node connection list based on the size sequence of the weights corresponding to the plurality of first terminal nodes; the weight of each first terminal node is determined based on the state parameters of the uplink network connected with the first terminal node; and the second terminal node establishes connection with each first terminal node based on the broadcast discovery frames of each first terminal node in turn according to the node connection list.
The specific calculation manner of the weight of each first terminal node may refer to the description of the above method embodiment, and will not be described in detail.
In the implementation, if the second terminal node receives the broadcast discovery frames of the plurality of first terminal nodes at the same time and all have the priority mark, the second terminal node can sequentially try to connect the first terminal nodes broadcasting the priority mark according to the weight value; if no priority mark is provided, generating a target list from the searched plurality of first terminal nodes according to the weight values, and sequentially initiating connection.
In the above disclosed embodiment, the second terminal node may quickly select an optimal relay node from a plurality of first terminal nodes as its own relay node based on the broadcast discovery frame of the first terminal node and the state parameter of the first terminal node, so as to effectively shorten the time for the terminal node to discover the relay node, scientifically select the optimal relay node, promote the connection efficiency, and further promote the service experience.
In one embodiment, S represents uplink signal strength, STHD represents a first signal strength threshold of a set uplink network, W represents a weight of a terminal node, WTRIG represents a set weight threshold, strag represents a second signal strength of the set uplink network, strag is greater than STHD, PFLAG represents a priority flag in a broadcast frame, T represents duration, and TTRIG represents a duration set threshold, as shown in fig. 4, a detailed implementation procedure of a data transmission method of a near-field communication network includes:
Step S401, acquiring a state parameter of a terminal node. After a terminal node in the near field communication network is accessed to an upper network, state parameters such as signal strength S, connection duration, network load, electric quantity and the like of the upper network are actively acquired.
Step S402, comparing the signal intensity S of the uplink network with a set first signal intensity threshold STHD of the uplink network. If the signal strength S of the own uplink network is greater than the set first signal strength STHD of the uplink network, steps S403 to S406 are executed. If the signal strength S of the own uplink network is smaller than the set first signal strength STHD of the uplink network, steps S407 to S410 are executed.
Step S403, calculating a weight W of a terminal node, obtaining weights corresponding to the signal strength S, the connection time length T, the network load and the electric quantity of the uplink network, and calculating the weights of the signal strength S, the connection time length, the network load and the electric quantity of the uplink network to obtain the weight of the terminal node in the near-field communication network.
In step S404, when the node weight W of the terminal node is greater than the set weight threshold WTRIG, the terminal node becomes a relay node and broadcasts a discovery frame, and responds to other device terminals/service discovery requests.
In step S405, the terminal node continues to monitor the uplink network signal strength S and the duration T.
In step S406, in the case where the signal strength S of the uplink network is greater than the set second signal strength threshold stig of the uplink network and the duration is greater than the set time threshold TTRIG, the priority flag PFLAG is added to the broadcast discovery frame, and the frame broadcast frequency of the broadcast discovery frame is increased.
In step S407, the terminal node searches the near field communication network to perform terminal/service discovery, and searches other terminal nodes to broadcast discovery frames.
Step S408, determining whether the received broadcast discovery frame has the priority flag PFLAG, and if so, executing step S409; if the priority flag PFLAG is not provided, step S410 is performed.
Step S409, if a plurality of relay nodes with priority marks PFLAG are searched, the first terminal node broadcasting the priority marks PFLAG is ranked according to the weight value, and connection is carried out according to the ranking; if only one relay node with the priority flag PFLAG is searched, connection is directly initiated to the relay node.
Step S410, the searched terminal nodes generate a target list according to the weight values, and connection is initiated in sequence.
The embodiments disclosed above have the following advantages over the prior art:
1. the connection and transmission judging scheme and the implementation method based on the node capacity in the near-field network can fully utilize the perception of the terminal node to the mobile network, can quickly perceive the state change of the terminal node in the heterogeneous communication network, dynamically adjust the node roles in time according to the state of the node link quality, and have higher flexibility.
2. The process and the basis conditions of the relay node for judging the self weight and the link quality are different from the judging method only focusing on the link quality state in the prior art, and the method is more suitable for quickly selecting a plurality of potential target relay node states in a heterogeneous network in the presence of a plurality of terminal nodes.
3. Further, the node becomes a relay node and then actively broadcasts, and the speed of selecting the relay node by the remote node is increased by adding the priority flag PFLAG in the broadcast frame.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data transmission device of the near field communication network for realizing the data transmission method of the near field communication network. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitations in the embodiments of one or more near field communication network devices provided below may be referred to the limitations of the near field communication network method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, a data transmission device of a near field communication network is provided, which is characterized by being applied to a first terminal node of the near field communication network. Comprising the following steps: a status parameter acquisition module 501, a relay node determination module 502, and a broadcast module 503, wherein:
a state parameter obtaining module 501, configured to obtain a state parameter of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network.
A relay node determining module 502 is configured to determine whether the first terminal node is a relay node of the near-field communication network based on the status parameter.
And a broadcast module 503, configured to send a broadcast discovery frame when determining that the first terminal node itself becomes a relay node, where the broadcast discovery frame is used to enable a second terminal node in the near domain communication network to establish a connection with the first terminal node, and perform data transmission with the first terminal node as a relay node.
In one embodiment, the relay node determination module 502 further includes: a weight calculation sub-module and a determination sub-module, wherein:
and the weighting calculation sub-module is used for carrying out weighting calculation on at least two of the signal intensity, the connection time length, the network load and the electric quantity of the uplink network to obtain the weight of the first terminal node in the near-field communication network.
And the determining submodule is used for determining that the node is a relay node when the weight is larger than a set weight threshold.
In one embodiment, the weight calculation sub-module is specifically configured to: determining whether the signal strength of the uplink network is greater than a set first signal strength threshold of the uplink network; acquiring weights respectively corresponding to the signal strength, the connection duration, the network load and the electric quantity of the uplink network under the condition that the signal strength of the uplink network is larger than a set first signal strength threshold of the uplink network; and based on the weight, weighting and calculating the signal strength, the connection time length, the network load and the electric quantity of the uplink network to obtain the weight of the first terminal node in the near-field communication network.
In one embodiment, the broadcasting module 503 is specifically configured to continuously monitor the signal strength of the uplink network; if the signal intensity of the upper network is detected to be larger than the set second signal intensity threshold value of the upper network and the duration time is detected to be larger than the set time threshold value, adding a priority mark in the broadcast discovery frame, wherein the priority mark is used for improving the priority of the connection of the first terminal node by the second terminal node.
In one embodiment, as shown in fig. 6, a data transmission device of a near field communication network is provided, which is characterized by being applied to a second terminal node of the near field communication network. Comprising the following steps: a broadcast receiving module 601 and a connection module 602, wherein:
a broadcast receiving module 601, configured to receive a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent by the first terminal node when acquiring node parameters of a current connected uplink network and determining that the first terminal node can become a relay node based on the node parameters; the node parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
and a connection module 602, configured to establish a connection with the first terminal node and perform data transmission based on the broadcast discovery frame.
In one embodiment, the connection module 602 is specifically configured to: and preferentially connecting with the first terminal node under the condition that the broadcast discovery frame of the first terminal node is detected to carry a priority mark. If broadcast discovery frames of a plurality of first terminal nodes are received, generating a node connection list based on the size sequence of the weights corresponding to the first terminal nodes; the weight of each first terminal node is determined based on the state parameters of the uplink network connected with the first terminal node; and establishing connection with each first terminal node based on the broadcast discovery frames of each first terminal node in turn according to the node connection list.
The above-mentioned respective modules in the data transmission device of the near field communication network may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a communication device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 7. The communication device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the communication device is used to exchange information between the processor and the external device. The communication interface of the communication device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a digital transmission method of a near field communication network. The display unit of the communication device is used for forming a visually visible picture and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a communication device is provided, including a memory, a processor, and a communication interface, where the memory stores a computer program, and the processor implements the data transmission method of the near-field communication network of the above embodiment when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the data transmission method of the near field communication network of the above embodiment.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the data transmission method of the near field communication network of the above embodiment.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A data transmission method for a near field communication network, applied to a first terminal node in the near field communication network, the method comprising:
acquiring state parameters of a currently connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
weighting and calculating at least two of signal intensity, connection time, network load and electric quantity of the uplink network to obtain a weight of the first terminal node in the near-field communication network; when the weight is larger than a set weight threshold, determining that the first terminal node is a relay node;
Transmitting a broadcast discovery frame for enabling a second terminal node in the near-field communication network to establish a connection with the first terminal node and transmitting data by taking the first terminal node as a relay node under the condition that the first terminal node is determined to be the relay node;
continuously monitoring the signal intensity of an uplink network connected with the first terminal node; if the signal intensity of the upper network is detected to be larger than a set second signal intensity threshold value and the duration time is detected to be larger than a set time threshold value, the frame broadcast frequency of the broadcast discovery frame sent by the first terminal node is increased, and a priority mark is added in the broadcast discovery frame so as to increase the connection speed of the first terminal node by the second terminal node, and the method specifically comprises the following steps: under the condition that the second terminal node searches a plurality of relay nodes with priority marks, connecting the relay nodes according to the weight sequence based on the plurality of relay nodes; and under the condition that the second terminal node only searches one relay node with the priority mark, directly initiating connection to the relay node.
2. The method of claim 1, wherein weighting at least two of signal strength, connection duration, network load, and power of the uplink network comprises:
Determining whether the signal strength of the uplink network is greater than a set first signal strength threshold of the uplink network;
and under the condition that the signal intensity of the uplink network is larger than a set first signal intensity threshold value of the uplink network, carrying out weighted calculation on at least two of the signal intensity of the uplink network, the connection duration, the network load and the electric quantity.
3. The method of claim 1, wherein weighting at least two of signal strength, connection duration, network load, and power of the uplink network to obtain a weight of the first terminal node in the near field communication network comprises:
acquiring weights respectively corresponding to the signal intensity, the connection time, the network load and the electric quantity of the uplink network;
and based on the weight, weighting and calculating the signal strength, the connection time length, the network load and the electric quantity of the uplink network to obtain the weight of the first terminal node in the near-field communication network.
4. A data transmission method for a near field communication network, applied to a second terminal node in the near field communication network, comprising:
receiving a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent when the first terminal node acquires a state parameter of a current connected uplink network, calculates a weight based on the state parameter, determines that the first terminal node can become a relay node when the weight is larger than a set weight threshold, and increases the broadcast frequency of the broadcast discovery frame and carries a priority mark when the first terminal node continuously detects that the signal strength of the uplink network is larger than a set second signal strength threshold and the duration is larger than a set time threshold; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
Based on the broadcast discovery frame, establishing connection with the first terminal node and transmitting data; the method specifically comprises the following steps: when a plurality of relay nodes with priority marks are detected, connecting the relay nodes according to the weight sequence based on the plurality of relay nodes; when only one relay node with a priority flag is searched, connection is directly initiated to the relay node.
5. The method of claim 4, wherein the establishing a connection with the first end node and transmitting data based on the broadcast discovery frame comprises:
if broadcast discovery frames of a plurality of first terminal nodes are received, generating a node connection list based on the size sequence of the weights corresponding to the first terminal nodes; the weight of each first terminal node is determined based on the state parameters of the uplink network connected with the first terminal node;
and establishing connection with each first terminal node based on the broadcast discovery frames of each first terminal node in turn according to the node connection list.
6. A data transmission device of a near field communication network, applied to a first terminal node in the near field communication network, the device comprising:
The state parameter acquisition module acquires state parameters of the current connected uplink network; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
the relay node determining module is used for carrying out weighted calculation on at least two of signal intensity, connection time length, network load and electric quantity of the uplink network to obtain a weight of the first terminal node in the near-field communication network; when the weight is larger than a set weight threshold, determining that the first terminal node is a relay node;
a broadcast module, configured to send a broadcast discovery frame when determining that the first terminal node itself is a relay node, where the broadcast discovery frame is configured to enable a second terminal node in the near-field communication network to establish a connection with the first terminal node, and perform data transmission with the first terminal node as a relay node; continuously monitoring the signal intensity of an uplink network connected with the first terminal node; if the signal intensity of the upper network is detected to be larger than a set second signal intensity threshold value and the duration time is detected to be larger than a set time threshold value, the frame broadcast frequency of the broadcast discovery frame sent by the first terminal node is increased, and a priority mark is added in the broadcast discovery frame so as to increase the connection speed of the first terminal node by the second terminal node, and the method specifically comprises the following steps: under the condition that the second terminal node searches a plurality of relay nodes with priority marks, connecting the relay nodes according to the weight sequence based on the plurality of relay nodes; and under the condition that the second terminal node only searches one relay node with the priority mark, directly initiating connection to the relay node.
7. The apparatus of claim 6, wherein the relay node determination module is further configured to:
determining whether the signal strength of the uplink network is greater than a set first signal strength threshold of the uplink network;
and under the condition that the signal intensity of the uplink network is larger than a set first signal intensity threshold value of the uplink network, carrying out weighted calculation on at least two of the signal intensity of the uplink network, the connection duration, the network load and the electric quantity.
8. A data transmission device of a near field communication network, applied to a second terminal node in the near field communication network, the device comprising:
a broadcast receiving module for receiving a broadcast discovery frame of a first terminal node in the near field communication network; the broadcast discovery frame is sent when the first terminal node acquires a state parameter of a current connected uplink network, calculates a weight based on the state parameter, determines that the first terminal node can become a relay node when the weight is larger than a set weight threshold, and increases the broadcast frequency of the broadcast discovery frame and carries a priority mark when the first terminal node continuously detects that the signal strength of the uplink network is larger than a set second signal strength threshold and the duration is larger than a set time threshold; the state parameters comprise at least two of signal strength, connection duration, network load and electric quantity of the uplink network;
The connection module establishes connection with the first terminal node and performs data transmission based on the broadcast discovery frame; the method specifically comprises the following steps: when a plurality of relay nodes with priority marks are detected, connecting the relay nodes according to the weight sequence based on the plurality of relay nodes; when only one relay node with a priority flag is searched, connection is directly initiated to the relay node.
9. A communication device comprising a memory, a processor and a communication interface, said memory storing a computer program, characterized in that the computer program when executed by the processor implements the steps of the method according to any of claims 1 to 5.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202311034893.7A 2023-08-17 2023-08-17 Data transmission method, apparatus, communication device, medium, and program product Active CN116761206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311034893.7A CN116761206B (en) 2023-08-17 2023-08-17 Data transmission method, apparatus, communication device, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311034893.7A CN116761206B (en) 2023-08-17 2023-08-17 Data transmission method, apparatus, communication device, medium, and program product

Publications (2)

Publication Number Publication Date
CN116761206A CN116761206A (en) 2023-09-15
CN116761206B true CN116761206B (en) 2023-11-21

Family

ID=87950030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311034893.7A Active CN116761206B (en) 2023-08-17 2023-08-17 Data transmission method, apparatus, communication device, medium, and program product

Country Status (1)

Country Link
CN (1) CN116761206B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211026A (en) * 2014-12-22 2016-12-07 中兴通讯股份有限公司 A kind of method, network control node and subscriber equipment realizing the selection of equipment straightforward trunking
CN108322926A (en) * 2017-12-26 2018-07-24 努比亚技术有限公司 Method for network access, terminal, network server and computer readable storage medium
CN109905915A (en) * 2019-01-16 2019-06-18 深圳职业技术学院 A kind of internet of things data transmission method of multihop network framework
WO2022036612A1 (en) * 2020-08-19 2022-02-24 Oppo广东移动通信有限公司 Relay node switching method, terminal device, and network device
CN114945205A (en) * 2022-04-29 2022-08-26 中国电信股份有限公司 Relay node reselection method, mobile terminal, network system, and storage medium
CN115336300A (en) * 2020-04-08 2022-11-11 高通股份有限公司 Relay discovery pool for sidelink
WO2023011122A1 (en) * 2021-08-03 2023-02-09 RealMe重庆移动通信有限公司 Method and apparatus for adjusting terminal network camping policy, electronic device, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211026A (en) * 2014-12-22 2016-12-07 中兴通讯股份有限公司 A kind of method, network control node and subscriber equipment realizing the selection of equipment straightforward trunking
CN108322926A (en) * 2017-12-26 2018-07-24 努比亚技术有限公司 Method for network access, terminal, network server and computer readable storage medium
CN109905915A (en) * 2019-01-16 2019-06-18 深圳职业技术学院 A kind of internet of things data transmission method of multihop network framework
CN115336300A (en) * 2020-04-08 2022-11-11 高通股份有限公司 Relay discovery pool for sidelink
WO2022036612A1 (en) * 2020-08-19 2022-02-24 Oppo广东移动通信有限公司 Relay node switching method, terminal device, and network device
WO2023011122A1 (en) * 2021-08-03 2023-02-09 RealMe重庆移动通信有限公司 Method and apparatus for adjusting terminal network camping policy, electronic device, and storage medium
CN114945205A (en) * 2022-04-29 2022-08-26 中国电信股份有限公司 Relay node reselection method, mobile terminal, network system, and storage medium

Also Published As

Publication number Publication date
CN116761206A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US20220400421A1 (en) Cell reselection method and apparatus, and communication device
US11284347B2 (en) Activation system information transmission method, apparatus, and device
WO2019047117A1 (en) Network access method, terminal device and network device
US10764821B2 (en) System and method for wireless network selection
CN107484236A (en) Wi-Fi hotspot scan control method, mobile terminal and storage medium
CN110784912B (en) Management method of session correspondence and terminal equipment
CN116761206B (en) Data transmission method, apparatus, communication device, medium, and program product
WO2016184040A1 (en) Access method and access terminal for satellite communication link
WO2012073059A1 (en) Methods, apparatuses and computer program products for using downlink and uplink over separate radio channels or different operators
CN111193805B (en) Resource discovery method and device
CN106330504A (en) Method for realizing application and service controller
CN114143854B (en) Communication method and device
CN114845360A (en) Frequency band searching method and device, electronic equipment and computer readable storage medium
JP2021510020A (en) Wireless communication method and equipment
CN114793353A (en) Network selection method, configuration method, terminal and network side equipment
WO2021026925A1 (en) Wireless communication method and terminal device
CN114258088A (en) Method, device and system for discovering intermediate session management function device and storage medium
CN111935831B (en) Frequency band allocation method, device, storage medium, network equipment and terminal
CN114827199B (en) Device migration method, device, computer device and storage medium
WO2023185810A1 (en) Ue route selection policy (ursp) determination method, user equipment, and network-side device
CN116916417A (en) Networking method, networking device, computer equipment and storage medium
CN110972146B (en) Configuration method of wireless network and network equipment
CN113613311A (en) Cell access method, device, computer equipment and computer storage medium
CN118158771A (en) Network access method, device, computer equipment and storage medium
WO2021077341A1 (en) Data request method and device, system, server, 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