CN113891295B - Information sending method, device and equipment based on D2D technology - Google Patents
Information sending method, device and equipment based on D2D technology Download PDFInfo
- Publication number
- CN113891295B CN113891295B CN202111321532.1A CN202111321532A CN113891295B CN 113891295 B CN113891295 B CN 113891295B CN 202111321532 A CN202111321532 A CN 202111321532A CN 113891295 B CN113891295 B CN 113891295B
- Authority
- CN
- China
- Prior art keywords
- channel
- terminal
- time
- current
- value
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/12—Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides an information sending method, device and equipment based on a D2D technology. The method comprises the following steps: the D2D user terminal obtains the signal-to-noise ratio value of each channel to be selected to form a channel sequence; according to the sequence of the channels to be selected in the channel sequence, repeating the following steps until the information transmission channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is occupied by other terminals, acquiring the first time and the second time of the current D2D terminal, and acquiring the third time and the fourth time of the other terminals occupying the current channel to be selected; an information transmission channel is determined based on the time information, and information is transmitted based on the information transmission channel. The method comprehensively considers the actual information transmission condition of other terminals occupying the current channel to be selected and the waiting delay tolerance of the D2D terminal service, and meets the personalized requirements of the service waiting time of different terminal services.
Description
Technical Field
The present disclosure relates to communication technologies, and in particular, to a method, an apparatus, and a device for sending information based on a D2D technology.
Background
The D2D (Device to Device) communication technology is a novel communication technology and has been applied to the communication field. When the D2D terminal transmits information, a channel needs to be determined, and information is transmitted based on the channel.
In the prior art, when a D2D terminal transmits information, the D2D terminal needs to queue according to the time sequence established by the terminal service, and allocates channel resources to transmit information according to the time sequence.
However, in the prior art, when a D2D terminal selects a channel, channel resources are allocated only according to the sequence of time, and the allocation mode is too single, which results in that terminal services with low delay tolerance cannot timely transmit information, and personalized requirements of different terminal services cannot be met.
Disclosure of Invention
The application provides an information sending method, device and equipment based on a D2D technology, which are used for meeting the personalized transmission requirement problem of different terminal services in the D2D communication technology.
In a first aspect, the present application provides a method for transmitting information based on D2D technology, where the method is applied to a D2D terminal, and the method includes:
responding to the information sending request, and acquiring a channel sequence; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low;
Repeating the following steps according to the sequence of channels to be selected in the channel sequence until the information sending channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold and the current channel to be selected is occupied by other terminals, acquiring first time and second time of the current D2D terminal, and acquiring third time and fourth time of other terminals occupying the current channel to be selected, wherein the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is waiting time of the current D2D terminal for waiting for the channel, the third time is time required by the other terminals for information transmission, and the fourth time is transmission time of information transmission of the other terminals; determining an information sending channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminals and the fourth time of the other terminals;
and transmitting channel transmission information according to the information.
In a possible implementation manner, if the other terminal is another D2D terminal or another cellular terminal, determining an information sending channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminal, and the fourth time of the other terminal includes:
Determining a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, and determining a second difference between a third time of the other terminal and a fourth time of the other terminal;
and if the first difference value is larger than or equal to a first value, wherein the first value is the product of the second difference value and a preset parameter, determining that the current channel to be selected is an information transmission channel.
In one possible embodiment, the method further comprises:
and if the first difference value is smaller than the first value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In a possible implementation manner, if the other terminal includes other D2D terminals and other cellular terminals, determining an information transmission channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminals, and the fourth time of the other terminals includes:
determining a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal, determining a third difference between the third time of the other D2D terminal and the fourth time of the other D2D terminal, and determining a fourth difference between the third time of the other cellular terminal and the fourth time of the other cellular terminal;
And determining an information sending channel according to the first difference value, the third difference value and the fourth difference value.
In a possible implementation manner, determining an information sending channel according to the first difference value, the third difference value and the fourth difference value includes:
determining a maximum value between the third difference and the fourth difference, and a minimum value between the third difference and the fourth difference;
if the first difference value is larger than or equal to a second value, wherein the second value is the product of the maximum value and a preset parameter, the current channel to be selected is determined to be an information transmission channel;
if the first difference value is smaller than the second value and the first difference value is larger than or equal to a third value, wherein the third value is the product between the minimum value and the preset parameter, when one other terminal occupying the current channel to be selected in the preset time is determined to release the current channel to be selected, determining an information sending channel according to the updated signal-to-noise ratio of the current channel to be selected;
and if the first difference value is smaller than the third value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In a possible implementation manner, determining an information sending channel according to the updated signal-to-noise ratio of the current channel to be selected includes:
if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining the current channel to be selected as an information sending channel;
and if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In one possible embodiment, the method further comprises:
and if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is not occupied by other terminals, determining the current channel to be selected as an information sending channel.
In one possible embodiment, the method further comprises:
and if the signal to noise ratio of the current channel to be selected is smaller than the preset signal to noise ratio threshold value, discarding sending information.
In one possible embodiment, the channel sequence is taken, comprising:
acquiring the transmitting power and the signal transmission gain of each cellular terminal on the channel to be selected, and acquiring the transmitting power and the signal transmission gain of each D2D terminal on the channel to be selected;
Determining channel occupation information of each cellular terminal on the channel to be selected according to the transmitting power and the signal transmission gain of each cellular terminal on the channel to be selected; determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected;
and determining the signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected and a preset white noise parameter.
In a second aspect, the present application provides an information transmitting apparatus based on D2D technology, the apparatus being applied to a D2D terminal, the apparatus including:
a first acquisition unit configured to acquire a channel sequence in response to an information transmission request; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low;
the circulation unit is used for repeating the second acquisition unit and the first determination unit according to the sequence of the channels to be selected in the channel sequence until the information transmission channel is determined:
The second obtaining unit is configured to obtain a first time and a second time of a current D2D terminal, and obtain a third time and a fourth time of other terminals occupying the current channel to be selected, where the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is a waiting time of the current D2D terminal waiting for the channel, the third time is a time required for the other terminals to transmit information, and the fourth time is a transmitted time of the other terminals to transmit information, if it is determined that the signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold value;
a first determining unit, configured to determine an information sending channel according to a first time of the current D2D terminal, a second time of the current D2D terminal, a third time of the other terminals, and a fourth time of the other terminals;
and the sending unit is used for sending channel transmission information according to the information.
In a possible implementation manner, if the other terminal is another D2D terminal or another cellular terminal, the first determining unit includes:
A first calculating subunit, configured to determine a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, and determine a second difference between a third time of the other terminal and a fourth time of the other terminal;
and the first determining subunit is configured to determine that the current channel to be selected is an information sending channel if the first difference value is greater than or equal to a first value, where the first value is a product between the second difference value and a preset parameter.
In a possible embodiment, the first determining unit further comprises:
and the second determining subunit is configured to determine, if the first difference is determined to be smaller than the first value, that a next channel to be selected adjacent to the current channel to be selected in the channel sequence is a new current channel to be selected.
In a possible implementation manner, if the other terminal includes other D2D terminals and other cellular terminals, the first determining unit includes:
a second calculating subunit, configured to determine a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, determine a third difference between a third time of the other D2D terminal and a fourth time of the other D2D terminal, and determine a fourth difference between the third time of the other cellular terminal and the fourth time of the other cellular terminal;
And the third determining subunit is used for determining an information sending channel according to the first difference value, the third difference value and the fourth difference value.
In a possible embodiment, the third determining subunit includes:
a first determining module, configured to determine a maximum value between the third difference value and the fourth difference value, and a minimum value between the third difference value and the fourth difference value;
the second determining module is configured to determine that the current channel to be selected is an information sending channel if the first difference value is greater than or equal to a second value, where the second value is a product between the maximum value and a preset parameter;
a third determining module, configured to determine, if it is determined that the first difference is smaller than the second value and the first difference is greater than or equal to a third value, where the third value is a product between the minimum value and the preset parameter, determine, when one other terminal occupying the current channel to be selected in a preset time is determined to release the current channel to be selected, an information sending channel according to an updated signal-to-noise ratio of the current channel to be selected;
and a fourth determining module, configured to determine a next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected if the first difference is determined to be smaller than the third value.
In a possible implementation manner, the third determining module is specifically configured to:
if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining the current channel to be selected as an information sending channel;
and if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In a possible embodiment, the apparatus further comprises:
and the second determining unit is used for determining the current channel to be selected as an information sending channel if the signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold and the current channel to be selected is not occupied by other terminals.
In a possible embodiment, the apparatus further comprises:
and the processing unit is used for discarding sending information if the signal-to-noise ratio of the current channel to be selected is determined to be smaller than a preset signal-to-noise ratio threshold value.
In a possible embodiment, the first obtaining unit includes:
a first obtaining subunit, configured to obtain a transmission power and a signal transmission gain of each cellular terminal on the channel to be selected, and obtain a transmission power and a signal transmission gain of each D2D terminal on the channel to be selected;
A fourth determining subunit, configured to determine channel occupation information of each cellular terminal on the channel to be selected according to the transmission power and the signal transmission gain of each cellular terminal on the channel to be selected; determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected;
and a fifth determining subunit, configured to determine a signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected, and a preset white noise parameter.
In a third aspect, the present application provides a D2D terminal device, the D2D terminal device comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
According to the information sending method, device and equipment based on the D2D technology, the signal to noise ratio values of the channels to be selected are obtained, and the channels to be selected are ordered according to the high-low sequence according to the signal to noise ratio values corresponding to the channels to be selected, so that a channel sequence is formed; repeating the following steps according to the sequence of channels to be selected in the channel sequence until the information sending channel is determined: if the signal-to-noise ratio of the current channel to be selected is determined to be greater than or equal to a preset signal-to-noise ratio threshold and the current channel to be selected is occupied by other terminals, acquiring first time and second time of the current D2D terminal, and acquiring third time and fourth time of other terminals occupying the current channel to be selected; and determining an information sending channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminals and the fourth time of the other terminals, and finally transmitting information according to the information sending channel. The method comprehensively considers the actual information transmission condition of other terminals occupying the current channel to be selected and the waiting delay tolerance of the D2D terminal service, and meets the personalized requirements of the service waiting time of different terminal services.
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.
Fig. 1 is a flowchart of an information sending method based on a D2D technology according to an embodiment of the present application;
fig. 2 is a flowchart of another information sending method based on the D2D technology according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an information sending device based on a D2D technology according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another information sending device based on D2D technology according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a D2D terminal device provided in an embodiment of the present application;
fig. 6 is a block diagram of a terminal device, according to an example embodiment.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Cellular networks have undergone a further generation of development, and have not always been able to communicate with each other between users, and have not been able to meet the ever-increasing diversity of demands of people. With the rise of the fifth generation mobile communication technology (5 th Generation Mobile Communication Technology, abbreviated as 5G) network, the D2D communication technology has developed, which not only can promote various performances of the traditional wireless network, but also can solve the increasingly serious problem of resource shortage under the condition of ensuring controllable resources. D2D communication means communication between two peer user nodes, where users can send and receive information and convert information to each other, and can freely store information, and the users can directly obtain information without any other means. The D2D communication technology is different from short-distance information transmission such as Bluetooth connection and wireless local area network, and the transmission carrier is a telecom operator, so that the stability of information transmission is ensured, and the technology is a direct technology independent of network transmission base stations. D2D communication technology is receiving widespread attention due to its flexibility and information exchange characteristics under the control of the base station.
The D2D communication technology has wide application prospect. The D2D communication technology enables two users to conveniently share resources and exchange information, can match more people with the same interests for the users, and can provide related products for residents after analyzing consumption preferences of neighboring residents; when the method is applied to commercial markets, merchants can advertise and popularize related products through the characteristics of the D2D communication technology, so that the purpose of promoting commodities and increasing profits is achieved; according to the characteristics that the two adjacent terminals are used for information transmission and the base station transmission is not needed, the D2D communication technology can be applied to emergency communication; in addition, the D2D communication technology can also be used to solve the huge demand of internet users on the network for future rapid increases: more and more cellular network users access to machine communication terminals with the characteristic of the Internet of things, the users show the characteristic of relying on the communication terminals of the Internet of things, the D2D communication technology can be combined with the Internet of things, the application of enhancing the D2D communication of the Internet of things is generated, and the interconnection and intercommunication wireless communication network in the true sense is realized.
D2D communication technology has many advantages: the load of the base station can be greatly reduced; in the process of using local and point-to-point communication, the access of a core network is not needed, so that the load of the core network can be lightened, and the quality and the speed of network communication are convenient to improve; meanwhile, the energy consumption of the battery is reduced, and the service life of the battery can be prolonged; compared with other resource technologies, the D2D communication is operated under the control of the base station, and some idle frequency spectrums can be properly released and added; when social contact and office business of internet users of small-scale and adjacent groups are performed, the use experience of the users can be improved, the range of communication application is widened, the usable field chain is prolonged, and the throughput of network space is improved; the information in the crowd can be matched quickly, the transmission speed is high, the performance is high, and the D2D can be used for directly accessing the cellular network even under the premise of no network coverage area or network communication infrastructure damage; compared with other technologies, the most obvious characteristics of the D2D communication technology are short distance, strong signal quality, low energy consumption damage and long continuous working time, and the method has great significance for data transmission and handover, pattern development and communication technology deep development in the 5G network era.
The D2D communication technology also has certain drawbacks and disadvantages, and in the prior art, when the D2D terminal transmits information, the D2D terminal needs to queue according to the time sequence of the terminal service establishment, and allocate channel resources to transmit information according to the sequence. The terminal service with higher delay tolerance can not timely and rapidly transmit information when occupying the channel for transmitting information, and can not meet the personalized requirements of different terminal services.
The information sending method based on the D2D technology aims at solving the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an information sending method based on a D2D technology, where the method is applied to a D2D terminal, as shown in fig. 1, and the method includes:
101. responding to the information sending request, and acquiring a channel sequence; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low.
In an exemplary embodiment, when there is a need for transmitting data and information, the D2D user terminal obtains a signal-to-noise ratio value of each channel to be selected in response to a request for transmitting the information, and sorts the channels to be selected according to a sequence from high to low according to a value of the signal-to-noise ratio corresponding to each channel to be selected, so as to form a channel sequence, where the channel with a larger value of the corresponding signal-to-noise ratio is located in the channel sequence with a higher sequence.
102. And (3) repeating the steps 102 and 103 according to the sequence of the channels to be selected in the channel sequence until the information transmission channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to the preset signal-to-noise ratio threshold value and the current channel to be selected is occupied by other terminals, acquiring first time and second time of the current D2D terminal, and acquiring third time and fourth time of other terminals occupying the current channel to be selected, wherein the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is waiting time of the current D2D terminal for waiting for the channel, the third time is time required by other terminals for information transmission, and the fourth time is transmission time of information transmission of other terminals.
The method includes the steps that a channel in a first sequence in a channel sequence is selected as a current channel to be selected, whether a signal-to-noise ratio value corresponding to the channel is larger than or equal to a preset signal-to-noise ratio threshold value is judged, if the signal-to-noise ratio value corresponding to the current channel to be selected is larger than or equal to the preset signal-to-noise ratio threshold value, occupation of the channel is judged, if the current channel to be selected is occupied by other terminals and information transmission cannot be directly carried out, time information of a current information transmission request and information which are being transmitted by the channel to be selected needs to be further judged, first time and second time of the current D2D terminal are acquired, third time and fourth time of other terminals occupying the current channel to be selected are acquired, wherein the first time is a preset waiting time limit value of the current D2D terminal for transmitting information, the second time is waiting time of the current D2D terminal for the channel, the third time is time required by other terminals for transmitting information, and the fourth time is transmitting time of other terminals for transmitting information.
103. And determining an information transmission channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of other terminals and the fourth time of other terminals.
Illustratively, according to the time information of the terminal which needs to perform information transmission at present, namely the first time of the current D2D terminal and the second time of the current D2D terminal; the time information of the terminal of which the current channel to be selected is transmitting information, namely the third time of other terminals and the fourth time of other terminals, determines the waiting tolerance information of the current D2D terminal to the current channel to be selected, and further determines the information transmission channel.
104. And transmitting information according to the information transmission channel.
Illustratively, after determining the information transmission channel, the D2D terminal may transmit information based on the transmission channel.
In this embodiment, the D2D user terminal obtains the signal-to-noise ratio value of each channel to be selected in response to the request sent by the information, and sorts each channel to be selected according to the order from high to low according to the magnitude of the signal-to-noise ratio value corresponding to each channel to be selected, so as to form a channel sequence; according to the sequence of the channels to be selected in the channel sequence, repeating the following steps until the information transmission channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is occupied by other terminals, acquiring the first time and the second time of the current D2D terminal, and acquiring the third time and the fourth time of the other terminals occupying the current channel to be selected; and determining an information transmission channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of other terminals and the fourth time of other terminals, and finally transmitting information according to the information transmission channel. The method comprehensively considers the actual information transmission condition of other terminals occupying the current channel to be selected and the waiting delay tolerance of the D2D terminal service, and meets the personalized requirements of the service waiting time of different terminal services.
Fig. 2 is a flowchart of another method for sending information based on D2D technology according to an embodiment of the present application, where the method is applied to a D2D terminal, as shown in fig. 2, and the method includes:
201. responding to the information sending request, and acquiring a channel sequence; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low.
In one example, step 201 includes the steps of:
and acquiring the transmission power and the signal transmission gain of each cellular terminal on the channel to be selected, and acquiring the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected.
Determining channel occupation information of each cellular terminal on a channel to be selected according to the transmission power and the signal transmission gain of each cellular terminal on the channel to be selected; and determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected.
And determining the signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected and the preset white noise parameter.
For example, there may be a plurality of cellular terminals and a plurality of D2D terminals on each channel to be selected, where when there is a need to transmit data and information, the D2D user terminal responds to the request for transmitting the information, and obtains the transmit power and the signal transmission gain of each cellular terminal on the current channel to be selected, and obtains the transmit power and the signal transmission gain of each D2D terminal on the channel to be selected; algebraic operation is carried out on the obtained transmitting power and signal transmission gain of each cellular terminal on the channel to be selected, so that channel occupation information of each cellular terminal on the channel to be selected is determined; similarly, algebraic operation is carried out on the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected, so as to determine the channel occupation information of each D2D terminal on the channel to be selected; and determining the signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected and the preset white noise parameter. And ordering the channels to be selected according to the value of the signal to noise ratio corresponding to the channels to be selected from high to low to form a channel sequence, wherein the channel with the larger value of the corresponding signal to noise ratio is located in the channel sequence with higher sequence position. In one example, the following equation may be used to determine the signal-to-noise ratio of the channel to be selected:
Wherein Rq is the signal to noise ratio of channel q; p (P) d_i Transmit power for each D2D terminal on channel q; g d_i The signal transmission gain of each D2D terminal on the channel q is given, and N is the total number of D2D terminals on the channel q; p (P) c_j A transmit power for each cellular terminal on channel q; g c_j For the signal transmission gain of each cellular terminal on channel q, M is the total number of cellular terminals on channel q; n (N) 0 Is a preset white noise parameter.
202. According to the order of the channels to be selected in the channel sequence, the following steps 203-209 are repeated until the information transmission channel is determined.
Illustratively, since the information transmission channel needs to satisfy the limitation of a series of conditions, if the current channel to be selected does not meet the conditions, the channel to be selected needs to be reselected as a new current channel to be selected from the channel sequence according to the sequence of the channels to be selected, and the condition screening is performed, that is, the following steps 203 to 209 are repeated until the information transmission channel is determined.
203. If the signal-to-noise ratio of the current channel to be selected is larger than or equal to the preset signal-to-noise ratio threshold value and the current channel to be selected is occupied by other terminals, acquiring first time and second time of the current D2D terminal, and acquiring third time and fourth time of other terminals occupying the current channel to be selected, wherein the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is waiting time of the current D2D terminal for waiting for the channel, the third time is time required by other terminals for information transmission, and the fourth time is transmission time of information transmission of other terminals.
After step 202, the channel to be selected in the first order is selected as the current channel to be selected, first, it is determined whether the value of the signal to noise ratio corresponding to the channel is greater than or equal to a preset signal to noise ratio threshold, if the value of the signal to noise ratio corresponding to the current channel to be selected is greater than or equal to the preset signal to noise ratio threshold, the occupation condition of the channel is determined, if the current channel to be selected is occupied by other terminals, the time information of the information being transmitted by the current information transmission request and the channel to be selected cannot be directly transmitted, the first time and the second time of the current D2D terminal need to be further determined, and the third time and the fourth time of the other terminals occupying the current channel to be selected are acquired, wherein the first time is a preset waiting time limit value of the information transmission of the current D2D terminal, the second time is a waiting time of the waiting channel of the current D2D terminal, the third time is a time required by the other terminals to transmit the information, and the fourth time is a transmitting time of the information of the other terminals.
204. If the other terminal is another D2D terminal or another cellular terminal, determining a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal, and determining a second difference between the third time of the other terminal and the fourth time of the other terminal.
Illustratively, after step 203, if the other terminal occupying the current channel to be selected for information transmission is a cellular terminal, determining a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, and determining a second difference between a third time and a fourth time of the cellular terminal; if the other terminals occupying the current channel to be selected for information transmission are other D2D terminals, determining a first difference value between the first time of the current D2D terminal and the second time of the current D2D terminal, and determining a second difference value between the third time and the fourth time of the other D2D terminals.
205. If the first difference value is larger than or equal to the first value, wherein the first value is the product of the second difference value and the preset parameter, the current channel to be selected is determined to be the information sending channel.
After step 204, the second difference of the cellular terminal or other D2D terminals is multiplied by a preset parameter, where the preset parameter may be a decision parameter, and a first value is obtained, and if the first difference is greater than or equal to the first value, it is indicated that the latency tolerance of the D2D terminal for transmitting information may wait for the cellular terminal or other D2D terminals occupying the current channel to be selected to transmit information, so that the current channel to be selected is determined to be the information transmission channel.
In one example, the determination of the first difference and the first value characterized in step 205 may be expressed using the following equation:
(Th _ wait _d -wait _d )≥α*(Finish_ trans_a -Trans _a )
or alternatively
(Th _ wait _d_ -wait _d )≥α*(Finish_ trans_b_ -Trans _b )
The current channel to be selected is the information transmission channel.
Wherein Th is _ wait _d The method comprises the steps that the first time of a current D2D terminal, namely a preset waiting time limit value of information transmission of the current D2D terminal; wait _d Waiting for a second time of the current D2D terminal, namely waiting time of the channel for the current D2D terminal; alpha is a judgment parameter; finish u trans_a For the third time, i.e. the time required by other D2D terminals to transmit information, trans _a The fourth time, namely, the transmitted time of the other D2D terminals for transmitting information; or Finish u trans_b For a third time, i.e. the time required for the cellular terminal to transmit information, trans _b The fourth time, i.e., the transmitted time at which the cellular terminal transmitted the information.
206. If the first difference value is smaller than the first value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
After step 204, the second difference value of the cellular terminal or other D2D terminal is multiplied by a preset parameter, where the preset parameter may be a decision parameter, and a first value is obtained, if the first difference value is smaller than the first value, it is indicated that the D2D terminal may wait for a period of time insufficient for occupying the currently selected channel or other D2D terminals to transmit the information, and the currently selected channel does not have the condition for transmitting the information by the D2D terminal, so that it is necessary to re-search for a channel satisfying the condition to transmit the information, and re-select a next channel adjacent to the currently selected channel from the channel sequence to be a new currently selected channel.
In one example, the determination of the first difference and the first value characterized by step 206 may be expressed using the following equation:
(Th _ wait _d -wait _d )<α*(Finish_ trans_a -Trans _a )
or alternatively
(Th _ wait _d_ -wait _d )<α*(Finish_ trans_b_ -Trans _b )
Wherein Th is _ wait _d The method comprises the steps that the first time of a current D2D terminal, namely a preset waiting time limit value of information transmission of the current D2D terminal; wait _d Waiting for a second time of the current D2D terminal, namely waiting time of the channel for the current D2D terminal; alpha is a judgment parameter; finish u trans_a For the third time, i.e. the time required by other D2D terminals to transmit information, trans _a The fourth time, namely, the transmitted time of the other D2D terminals for transmitting information; or Finish u trans_b For transmitting information for a third time, i.e. cellular terminalRequired time, trans _b The fourth time, i.e., the transmitted time at which the cellular terminal transmitted the information.
207. If the other terminals comprise other D2D terminals and other cellular terminals, determining a first difference value between the first time of the current D2D terminal and the second time of the current D2D terminal, determining a third difference value between the third time of the other D2D terminals and the fourth time of the other D2D terminals, and determining a fourth difference value between the third time of the other cellular terminals and the fourth time of the other cellular terminals.
Illustratively, after step 203, if the other terminal occupying the current channel to be selected for information transmission is a cellular terminal and other D2D terminals, that is, the cellular terminal and the other D2D terminals occupy the current channel to be selected at the same time, algebraic computation is performed on the first time and the second time of the current D2D terminal, and a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal is determined, where the first difference characterizes an allowable waiting time of the D2D terminal; similarly, algebraic calculation is carried out on the third time and the fourth time of other D2D terminals, a third difference value between the third time and the fourth time of the other D2D terminals is determined, and the third difference value represents the remaining required transmission time of the other D2D terminals in the current channel to be selected; a fourth difference between the third time and a fourth time of the cellular terminal is determined, the fourth difference being indicative of a remaining required transmission time of the cellular terminal at the current channel to be selected.
208. And determining an information sending channel according to the first difference value, the third difference value and the fourth difference value.
In one example, step 208 includes the steps of:
and a first step of determining a maximum value between the third difference value and the fourth difference value and a minimum value between the third difference value and the fourth difference value.
And a second step of determining that the current channel to be selected is an information transmission channel if the first difference value is greater than or equal to a second value, wherein the second value is the product of the maximum value and a preset parameter.
And a third step of determining an information sending channel according to the updated signal-to-noise ratio of the current channel to be selected when determining that one other terminal occupying the current channel to be selected within the preset time releases the current channel to be selected if the first difference value is smaller than the second value and the first difference value is larger than or equal to a third value, wherein the third value is the product of the minimum value and the preset parameter.
And a fourth step of determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected if the first difference value is smaller than the third value.
In one example, when the third step is performed to determine the information sending channel according to the updated signal-to-noise ratio of the channel to be selected, the following manner may be adopted: if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining that the current channel to be selected is an information sending channel; if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
Illustratively, after step 207, a size relationship between the allowable waiting time of the current D2D terminal and the remaining transmission time of the other D2D terminals and the cellular terminal is determined according to the first difference, the third difference, and the fourth difference, so as to determine an information transmission channel. The specific implementation process can be as follows: firstly, determining the maximum value between the third difference value and the fourth difference value, and determining the minimum value between the third difference value and the fourth difference value; multiplying the maximum value between the third difference value and the fourth difference value by a preset parameter to obtain a second value, multiplying the minimum value between the third difference value and the fourth difference value by the preset parameter to obtain a third value, if the first difference value is larger than or equal to the second value, the D2D terminal can wait for occupying the cellular terminal of the current channel to be selected and other D2D terminals to transmit information after transmitting the information, and determining the current channel to be selected as an information transmission channel; if the first difference value is smaller than the second value and larger than or equal to the third value, the D2D terminal can wait for the cellular terminal occupying the current channel to be selected to transmit information with the terminal which is more quickly completed in other D2D terminals, and then transmit information; if the first difference is smaller than the third value, it is indicated that the remaining waiting time of the D2D terminal is insufficient to wait for the cellular terminal occupying the current channel to be selected to complete transmission of information with any one of the other D2D terminals, and the current channel to be selected does not have the condition for the D2D terminal to transmit information, so that the channel meeting the condition needs to be searched again for transmitting information, and the next channel to be selected adjacent to the current channel to be selected is reselected from the channel sequence, that is, the next channel to be selected in the channel sequence is the new current channel to be selected.
In one example, the decision process characterized by step 208 may be expressed using the following formula:
if:
(Th _ wait _d -wait _d )≥α*Max{(Finish_ trans_a -Trans _a ),(Finish_ trans_b_ -Trans _b )}
the current channel to be selected is determined to be the information transmission channel.
If:
α*Min{(Finish_ trans_a -Trans _a ),(Finish_ trans_b_ -Trans _b )}≤(Th _ wait _d -wait _d )
<α*Max{(Finish_ trans_b_ -Trans _b ),(Finish_ trans_b_ -Trans _b )}
then, in the preset waiting time, namely the remaining waiting time of the current D2D terminal for transmitting information, when occupying other cellular terminals or other D2D terminals of the current channel to be selected, finishing information transmission, and releasing the current channel to be selected, recalculating the signal-to-noise ratio of the current channel to be selected at the moment, and if the value of the updated signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, determining the current channel to be selected as an information transmission channel; if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence, namely the next channel to be selected, which is the next sequence bit, as the new current channel to be selected.
If:
(Th _ wait _d -wait _d )<α*Min{(Finish_ trans_a -Trans _a ),(Finish_ trans_b_ -Trans _b )}
the next channel to be selected adjacent to the current channel to be selected, i.e. the next channel to be selected in the channel sequence, is reselected from the channel sequence to be the new current channel to be selected.
209. If the signal-to-noise ratio of the current channel to be selected is larger than or equal to the preset signal-to-noise ratio threshold value and the current channel to be selected is not occupied by other terminals, the current channel to be selected is determined to be an information sending channel.
Illustratively, after step 202, if the signal-to-noise ratio of the current channel to be selected is greater than or equal to the preset signal-to-noise ratio threshold and the current channel to be selected is not occupied by other terminals, that is, the D2D terminal occupies the current channel to be selected without waiting to send information, the current channel to be selected is determined to be an information sending channel.
210. And transmitting information according to the information transmission channel.
Illustratively, after determining the information transmission channel, the D2D terminal may transmit information based on the information transmission channel.
211. And if the signal-to-noise ratio of the current channel to be selected is determined to be smaller than the preset signal-to-noise ratio threshold value, discarding sending information.
For example, after step 202, if it is determined that the signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, it is indicated that the current channel to be selected does not meet the preset condition for information transmission, and problems such as distortion and excessive noise may occur during information transmission, so that the D2D terminal may not transmit information.
In this embodiment, according to the transmission power and signal transmission gain of each cellular terminal, the transmission power and signal transmission gain of each D2D terminal, and a preset white noise parameter, determining the signal-to-noise ratio of the channel to be selected, so as to obtain a channel sequence; according to the sequence of the channels to be selected in the channel sequence, repeating the following steps until the information transmission channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is not occupied by other terminals, determining the current channel to be selected as an information sending channel; if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is occupied by other terminals, acquiring the first time and the second time of the current D2D terminal, and acquiring the third time and the fourth time of the other terminals occupying the current channel to be selected; a first difference between the first time and the second time is determined, and a second difference between the third time of the other terminal and the fourth time of the other terminal is determined. If the other terminals are other D2D terminals or other cellular terminals, obtaining a product of the second difference value and the preset parameter as a first value, and judging the magnitude relation between the first difference value and the first value: if the first difference value is larger than or equal to the first value, determining that the current channel to be selected is an information transmission channel; if the first difference value is smaller than the first value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected; if the other terminals comprise other D2D terminals and other cellular terminals, calculating to obtain a third difference value between the third time of the other D2D terminals and the fourth time of the other D2D terminals and a fourth difference value between the third time of the other cellular terminals and the fourth time of the other cellular terminals, and determining the maximum value and the minimum value between the third difference value and the fourth difference value; and determining an information transmission channel according to the magnitude relation between the maximum value, the minimum value and the first difference value between the third difference value and the fourth difference value. Transmitting information according to the information transmission channel; and if the signal-to-noise ratio of the current channel to be selected is determined to be smaller than the preset signal-to-noise ratio threshold value, discarding sending information. The method comprehensively considers the actual information transmission condition of other terminals occupying the current channel to be selected and the waiting delay tolerance of the D2D terminal service, and meets the personalized requirements of the service waiting time of different terminal services.
Fig. 3 is a schematic structural diagram of an information sending device based on D2D technology according to an embodiment of the present application, where the device is applied to a D2D terminal, as shown in fig. 3, and the device includes:
a first acquisition unit 31 for acquiring a channel sequence in response to an information transmission request; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low.
And a circulation unit 32, configured to repeat the second acquisition unit and the first determination unit according to the order of the channels to be selected in the channel sequence until the information transmission channel is determined.
The second obtaining unit 33 is configured to obtain a first time and a second time of the current D2D terminal, and obtain a third time and a fourth time of the other terminals occupying the current channel to be selected if it is determined that the signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, the first time is a preset waiting time limit for the current D2D terminal to transmit information, the second time is a waiting time for the current D2D terminal to wait for the channel, the third time is a time required for the other terminals to transmit information, and the fourth time is a transmitted time for the other terminals to transmit information.
The first determining unit 34 is configured to determine an information transmission channel according to a first time of the current D2D terminal, a second time of the current D2D terminal, a third time of the other terminals, and a fourth time of the other terminals.
A transmitting unit 35 for transmitting channel transmission information according to the information.
Fig. 4 is a schematic structural diagram of another information sending device based on D2D technology according to an embodiment of the present application, where the device is applied to a D2D terminal, and on the basis of the embodiment shown in fig. 3, as shown in fig. 4, the device includes:
in one example, if the other terminal is another D2D terminal or another cellular terminal, the first determining unit 34 includes:
a first calculating subunit 341, configured to determine a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal, and determine a second difference between the third time of the other terminal and the fourth time of the other terminal.
The first determining subunit 342 is configured to determine the current channel to be selected as the information sending channel if it is determined that the first difference is greater than or equal to a first value, where the first value is a product between the second difference and the preset parameter.
In one example, the first determining unit 34 further includes:
The second determining subunit 343 is configured to determine, if the first difference is determined to be smaller than the first value, a next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In one example, if the other terminals include other D2D terminals and other cellular terminals, the first determining unit 34 includes:
a second calculating subunit 344 is configured to determine a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal, determine a third difference between the third time of the other D2D terminal and the fourth time of the other D2D terminal, and determine a fourth difference between the third time of the other cellular terminal and the fourth time of the other cellular terminal.
A third determining subunit 345, configured to determine the information sending channel according to the first difference, the third difference, and the fourth difference.
In one example, the third determination subunit 345 includes:
the first determining module 3451 is configured to determine a maximum value between the third difference and the fourth difference, and a minimum value between the third difference and the fourth difference.
The second determining module 3452 is configured to determine that the current channel to be selected is an information transmission channel if it is determined that the first difference is greater than or equal to a second value, where the second value is a product between a maximum value and a preset parameter.
And a third determining module 3453, configured to determine, if it is determined that the first difference is smaller than the second value and the first difference is greater than or equal to a third value, where the third value is a product between the minimum value and the preset parameter, the information sending channel according to the updated signal-to-noise ratio of the current channel to be selected when one other terminal occupying the current channel to be selected in the preset time is determined to release the current channel to be selected.
The fourth determining module 3454 is configured to determine, if the first difference is determined to be smaller than the third value, a next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In one example, the third determination module 3453 is specifically configured to:
if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining that the current channel to be selected is an information sending channel; if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
In one example, the apparatus further comprises:
the second determining unit 36 is configured to determine the current channel to be selected as the information sending channel if it is determined that the signal-to-noise ratio of the current channel to be selected is greater than or equal to the preset signal-to-noise ratio threshold and the current channel to be selected is not occupied by other terminals.
In one example, the apparatus further comprises:
the processing unit 37 is configured to discard the transmission information if it is determined that the signal-to-noise ratio of the current channel to be selected is less than the preset signal-to-noise ratio threshold.
In one example, the first acquisition unit 31 includes:
the first obtaining subunit 311 is configured to obtain a transmission power and a signal transmission gain of each cellular terminal on the channel to be selected, and obtain a transmission power and a signal transmission gain of each D2D terminal on the channel to be selected.
A fourth determining subunit 312, configured to determine channel occupation information of each cellular terminal on the channel to be selected according to the transmission power and the signal transmission gain of each cellular terminal on the channel to be selected; and determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected.
A fifth determining subunit 313, configured to determine a signal-to-noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected, and a preset white noise parameter.
Fig. 5 is a schematic structural diagram of a D2D terminal device provided in an embodiment of the present application, where, as shown in fig. 5, the D2D terminal device includes: a memory 51, and a processor 52.
A memory 51; a memory for storing instructions executable by processor 52.
Wherein the processor is configured to perform the method of the above-described embodiments.
Fig. 6 is a block diagram of a terminal device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., in accordance with an exemplary embodiment.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method provided by the above embodiments.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (20)
1. An information sending method based on a D2D technology, wherein the method is applied to a D2D terminal, the method comprising:
responding to the information sending request, and acquiring a channel sequence; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low;
repeating the following steps according to the sequence of channels to be selected in the channel sequence until the information sending channel is determined: if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold and the current channel to be selected is occupied by other terminals, acquiring first time and second time of the current D2D terminal, and acquiring third time and fourth time of other terminals occupying the current channel to be selected, wherein the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is waiting time of the current D2D terminal for waiting for the channel, the third time is time required by the other terminals for information transmission, and the fourth time is transmission time of information transmission of the other terminals; determining an information sending channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminals and the fourth time of the other terminals;
And transmitting channel transmission information according to the information.
2. The method of claim 1, wherein if the other terminal is another D2D terminal or another cellular terminal, determining an information transmission channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminal, and the fourth time of the other terminal comprises:
determining a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, and determining a second difference between a third time of the other terminal and a fourth time of the other terminal;
and if the first difference value is larger than or equal to a first value, wherein the first value is the product of the second difference value and a preset parameter, determining that the current channel to be selected is an information transmission channel.
3. The method according to claim 2, wherein the method further comprises:
and if the first difference value is smaller than the first value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
4. The method of claim 1, wherein if the other terminal includes other D2D terminals and other cellular terminals, determining an information transmission channel according to the first time of the current D2D terminal, the second time of the current D2D terminal, the third time of the other terminal, and the fourth time of the other terminal, comprises:
determining a first difference between the first time of the current D2D terminal and the second time of the current D2D terminal, determining a third difference between the third time of the other D2D terminal and the fourth time of the other D2D terminal, and determining a fourth difference between the third time of the other cellular terminal and the fourth time of the other cellular terminal;
and determining an information sending channel according to the first difference value, the third difference value and the fourth difference value.
5. The method of claim 4, wherein determining an information transmission channel based on the first difference, the third difference, and the fourth difference comprises:
determining a maximum value between the third difference and the fourth difference, and a minimum value between the third difference and the fourth difference;
If the first difference value is larger than or equal to a second value, wherein the second value is the product of the maximum value and a preset parameter, the current channel to be selected is determined to be an information transmission channel;
if the first difference value is smaller than the second value and the first difference value is larger than or equal to a third value, wherein the third value is the product between the minimum value and the preset parameter, when one other terminal occupying the current channel to be selected in the preset time is determined to release the current channel to be selected, determining an information sending channel according to the updated signal-to-noise ratio of the current channel to be selected;
and if the first difference value is smaller than the third value, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
6. The method of claim 5, wherein determining an information transmission channel based on the updated signal-to-noise ratio of the currently selected channel comprises:
if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining the current channel to be selected as an information sending channel;
And if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
7. The method according to claim 1, wherein the method further comprises:
and if the signal-to-noise ratio of the current channel to be selected is larger than or equal to a preset signal-to-noise ratio threshold value and the current channel to be selected is not occupied by other terminals, determining the current channel to be selected as an information sending channel.
8. The method according to claim 1, wherein the method further comprises:
and if the signal to noise ratio of the current channel to be selected is smaller than the preset signal to noise ratio threshold value, discarding sending information.
9. The method according to any of claims 1-8, wherein obtaining a channel sequence comprises:
acquiring the transmitting power and the signal transmission gain of each cellular terminal on the channel to be selected, and acquiring the transmitting power and the signal transmission gain of each D2D terminal on the channel to be selected;
determining channel occupation information of each cellular terminal on the channel to be selected according to the transmitting power and the signal transmission gain of each cellular terminal on the channel to be selected; determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected;
And determining the signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected and a preset white noise parameter.
10. An information transmitting apparatus based on D2D technology, the apparatus being applied to a D2D terminal, the apparatus comprising:
a first acquisition unit configured to acquire a channel sequence in response to an information transmission request; the channel sequence comprises a plurality of channels to be selected, each channel to be selected has a signal-to-noise ratio, and the channels to be selected in the channel sequence are ordered according to the signal-to-noise ratio from high to low;
the circulation unit is used for repeating the second acquisition unit and the first determination unit according to the sequence of the channels to be selected in the channel sequence until the information transmission channel is determined:
the second obtaining unit is configured to obtain a first time and a second time of a current D2D terminal, and obtain a third time and a fourth time of other terminals occupying the current channel to be selected, where the first time is a preset waiting time limit value of information transmission of the current D2D terminal, the second time is a waiting time of the current D2D terminal waiting for the channel, the third time is a time required for the other terminals to transmit information, and the fourth time is a transmitted time of the other terminals to transmit information, if it is determined that the signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold value;
A first determining unit, configured to determine an information sending channel according to a first time of the current D2D terminal, a second time of the current D2D terminal, a third time of the other terminals, and a fourth time of the other terminals;
and the sending unit is used for sending channel transmission information according to the information.
11. The apparatus of claim 10, wherein if the other terminal is another D2D terminal or another cellular terminal, the first determining unit comprises:
a first calculating subunit, configured to determine a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, and determine a second difference between a third time of the other terminal and a fourth time of the other terminal;
and the first determining subunit is configured to determine that the current channel to be selected is an information sending channel if the first difference value is greater than or equal to a first value, where the first value is a product between the second difference value and a preset parameter.
12. The apparatus of claim 11, wherein the first determining unit further comprises:
and the second determining subunit is configured to determine, if the first difference is determined to be smaller than the first value, that a next channel to be selected adjacent to the current channel to be selected in the channel sequence is a new current channel to be selected.
13. The apparatus of claim 10, wherein the first determining unit comprises, if the other terminal comprises other D2D terminals and other cellular terminals:
a second calculating subunit, configured to determine a first difference between a first time of the current D2D terminal and a second time of the current D2D terminal, determine a third difference between a third time of the other D2D terminal and a fourth time of the other D2D terminal, and determine a fourth difference between the third time of the other cellular terminal and the fourth time of the other cellular terminal;
and the third determining subunit is used for determining an information sending channel according to the first difference value, the third difference value and the fourth difference value.
14. The apparatus of claim 13, wherein the third determination subunit comprises:
a first determining module, configured to determine a maximum value between the third difference value and the fourth difference value, and a minimum value between the third difference value and the fourth difference value;
the second determining module is configured to determine that the current channel to be selected is an information sending channel if the first difference value is greater than or equal to a second value, where the second value is a product between the maximum value and a preset parameter;
A third determining module, configured to determine, if it is determined that the first difference is smaller than the second value and the first difference is greater than or equal to a third value, where the third value is a product between the minimum value and the preset parameter, determine, when one other terminal occupying the current channel to be selected in a preset time is determined to release the current channel to be selected, an information sending channel according to an updated signal-to-noise ratio of the current channel to be selected;
and a fourth determining module, configured to determine a next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected if the first difference is determined to be smaller than the third value.
15. The apparatus of claim 14, wherein the third determining module is specifically configured to:
if the updated signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold, determining the current channel to be selected as an information sending channel;
and if the updated signal-to-noise ratio of the current channel to be selected is smaller than the preset signal-to-noise ratio threshold, determining the next channel to be selected adjacent to the current channel to be selected in the channel sequence as a new current channel to be selected.
16. The apparatus of claim 10, wherein the apparatus further comprises:
and the second determining unit is used for determining the current channel to be selected as an information sending channel if the signal-to-noise ratio of the current channel to be selected is greater than or equal to a preset signal-to-noise ratio threshold and the current channel to be selected is not occupied by other terminals.
17. The apparatus of claim 10, wherein the apparatus further comprises:
and the processing unit is used for discarding sending information if the signal-to-noise ratio of the current channel to be selected is determined to be smaller than a preset signal-to-noise ratio threshold value.
18. The apparatus according to any one of claims 10-17, wherein the first acquisition unit comprises:
a first obtaining subunit, configured to obtain a transmission power and a signal transmission gain of each cellular terminal on the channel to be selected, and obtain a transmission power and a signal transmission gain of each D2D terminal on the channel to be selected;
a fourth determining subunit, configured to determine channel occupation information of each cellular terminal on the channel to be selected according to the transmission power and the signal transmission gain of each cellular terminal on the channel to be selected; determining channel occupation information of each D2D terminal on the channel to be selected according to the transmission power and the signal transmission gain of each D2D terminal on the channel to be selected;
And a fifth determining subunit, configured to determine a signal to noise ratio of the channel to be selected according to the channel occupation information of each cellular terminal on the channel to be selected, the channel occupation information of each D2D terminal on the channel to be selected, and a preset white noise parameter.
19. A D2D terminal device, characterized in that the D2D terminal device comprises: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1-9.
20. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111321532.1A CN113891295B (en) | 2021-11-09 | 2021-11-09 | Information sending method, device and equipment based on D2D technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111321532.1A CN113891295B (en) | 2021-11-09 | 2021-11-09 | Information sending method, device and equipment based on D2D technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113891295A CN113891295A (en) | 2022-01-04 |
CN113891295B true CN113891295B (en) | 2023-05-02 |
Family
ID=79016940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111321532.1A Active CN113891295B (en) | 2021-11-09 | 2021-11-09 | Information sending method, device and equipment based on D2D technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113891295B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104904305A (en) * | 2012-12-27 | 2015-09-09 | 摩托罗拉移动有限责任公司 | Methods for device-to-device communication |
CN107592626A (en) * | 2016-07-08 | 2018-01-16 | 中兴通讯股份有限公司 | Channel access method, apparatus and system |
CN107852302A (en) * | 2015-07-16 | 2018-03-27 | 高通股份有限公司 | Low latency device-to-device communicates |
CN109525967A (en) * | 2017-09-19 | 2019-03-26 | 苹果公司 | Control and shared channel in device-to-device communication |
CN109788540A (en) * | 2018-12-05 | 2019-05-21 | 南京邮电大学 | Power control and method for channel allocation in D2D system based on energy acquisition |
CN112970309A (en) * | 2018-11-02 | 2021-06-15 | 华为技术有限公司 | Method and apparatus for sidestream communication and resource allocation |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9191828B2 (en) * | 2012-08-03 | 2015-11-17 | Intel Corporation | High efficiency distributed device-to-device (D2D) channel access |
WO2016099196A1 (en) * | 2014-12-18 | 2016-06-23 | 엘지전자 주식회사 | Method for allocating transmission resources in wireless communication system supporting device-to-device (d2d) communication |
WO2016186268A1 (en) * | 2015-05-15 | 2016-11-24 | 엘지전자(주) | Method for transferring data in wireless communication system that supports device-to-device communication, and apparatus therefor |
-
2021
- 2021-11-09 CN CN202111321532.1A patent/CN113891295B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104904305A (en) * | 2012-12-27 | 2015-09-09 | 摩托罗拉移动有限责任公司 | Methods for device-to-device communication |
CN107852302A (en) * | 2015-07-16 | 2018-03-27 | 高通股份有限公司 | Low latency device-to-device communicates |
CN107592626A (en) * | 2016-07-08 | 2018-01-16 | 中兴通讯股份有限公司 | Channel access method, apparatus and system |
CN109525967A (en) * | 2017-09-19 | 2019-03-26 | 苹果公司 | Control and shared channel in device-to-device communication |
CN112970309A (en) * | 2018-11-02 | 2021-06-15 | 华为技术有限公司 | Method and apparatus for sidestream communication and resource allocation |
CN109788540A (en) * | 2018-12-05 | 2019-05-21 | 南京邮电大学 | Power control and method for channel allocation in D2D system based on energy acquisition |
Non-Patent Citations (2)
Title |
---|
Resource Allocation for D2D Communication With Multiple D2D Pairs Reusing Multiple Channels;Pavel Mach 等;《IEEE Wireless Communications Letters》;第8卷(第4期);全文 * |
蜂窝网络中D2D通信模式选择和信道分配算法;卓干兵 等;《 信息通信》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113891295A (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12004103B2 (en) | Method and apparatus for transmitting synchronized broadcast transmission | |
CN111837425A (en) | Access method, access device and storage medium | |
CN114867106B (en) | Paging response method and device, paging method and device | |
CN108391466B (en) | Method and device for transmitting data | |
CN109156026B (en) | Method, device, equipment and storage medium for sending uplink scheduling request | |
EP3739952A1 (en) | Cell type indication method and apparatus | |
US11963158B2 (en) | Transmission configuration method and apparatus, device, system, and storage medium | |
CN110495193B (en) | Cell reselection method, device and storage medium | |
CN112840708B (en) | Communication method, device and storage medium | |
CN114175740B (en) | Information transmission method, apparatus, communication device and storage medium | |
US11026220B2 (en) | Resource allocation method, apparatus and system | |
CN110959300A (en) | Data transmission method, device, equipment, system and storage medium | |
CN110177379B (en) | Base station access method and system | |
RU2663355C1 (en) | Method and device for installing connection for service | |
US20220346083A1 (en) | Methods and apparatuses for determining network allocation vector, and storage media | |
CN113891295B (en) | Information sending method, device and equipment based on D2D technology | |
CN114190115B (en) | Random access method and device, communication equipment and storage medium | |
CN113228774B (en) | Communication connection configuration method, communication connection configuration device, communication equipment and storage medium | |
US20230073253A1 (en) | Data transmission method, data transmission apparatus and storage medium | |
WO2021081731A1 (en) | Method and apparatus for connection establishment, base station, user equipment, and core network device | |
US20220022226A1 (en) | Information transmission method and apparatus, and base station and terminal | |
CN113966601B (en) | Data transmission method, device, communication equipment and storage medium | |
RU2820333C1 (en) | Method and device for determining set of auxiliary resources, as well as data medium | |
WO2022133689A1 (en) | Model transmission method, model transmission device, and storage medium | |
CN113261211B (en) | Resource allocation method, resource allocation apparatus, 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 |