Disclosure of Invention
The invention aims to overcome the defects and shortcomings in the prior art and provides a D2D communication discovery method which can realize D2D discovery and connection between SIM cards belonging to different operators.
One embodiment of the present invention provides a discovery method of D2D communication, including the steps of:
When the D2D discovery terminal and the D2D terminal to be discovered search a shared network respectively for a first SIM card and a second SIM card belonging to different operators according to a preset network search strategy and reside in the same shared network cell, acquiring a first time-frequency resource position of the shared network cell;
Acquiring a D2D discovery signal sent by the D2D terminal to be discovered at the first time-frequency resource position, wherein the D2D discovery signal comprises identification information of the D2D terminal to be discovered;
And sending a D2D direct communication invitation to the D2D terminal to be discovered according to the D2D terminal identification information to be discovered and the D2D terminal identification information to be discovered.
Compared with the prior art, in the D2D communication discovery method, when the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell, the D2D discovery terminal acquires a D2D discovery signal sent by the D2D terminal to be discovered at the same time-frequency resource position, and then the D2D discovery terminal and the D2D terminal to be discovered perform direct communication connection, so as to realize D2D communication discovery and connection between SIM cards belonging to different operators.
Further, the process that the D2D discovery terminal and the D2D terminal to be discovered search for the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell includes the following steps:
The D2D discovery terminal searches the shared network according to a first PLMN list preset by the first SIM card, if the shared network is searched, the shared network is resided, otherwise, searches the shared network according to a second PLMN list preset by the first SIM card, and if the shared network is searched, the shared network is resided;
The first PLMN list is used for storing PLMNs of the non-home operator shared network, and the second PLMN list is used for storing PLMNs of the home operator shared network. Since the number of the covered SIM cards of the non-home operator shared network is greater than that of the home operator shared network, searching the shared network according to the first PLMN list first can improve the efficiency of the D2D discovery terminal successfully searching the shared network.
Further, the process that the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell further includes the following steps;
And the D2D terminal searches the shared network according to a first PLMN list preset by the second SIM card, if the shared network is searched, the shared network is resided, otherwise, searches the shared network according to a second PLMN list preset by the second SIM card, and if the shared network is searched, the shared network is resided. Because the types of the covered SIM cards of the non-home operator shared network are more than those of the home operator shared network, the efficiency of the D2D terminal to be found to successfully search the shared network can be improved by searching the shared network according to the first PLMN list.
Further, when the D2D discovery terminal cannot search the shared network according to the second PLMN list preset by the first SIM card, the D2D discovery terminal blindly detects the D2D discovery signal in the full frequency band. And enabling the D2D discovery terminal to detect the D2D discovery signal when the shared network is not resident in the full-band blind detection mode.
Further, when the D2D to-be-discovered terminal cannot search the shared network according to the second PLMN list preset by the second SIM card, the D2D to-be-discovered terminal blindly discovers the D2D discovery signal in the full frequency band. And the D2D terminal to be discovered can send out the D2D discovery signal when the terminal is not in the shared network through a full-band blind transmission mode.
The embodiment of the invention also provides a discovery system of the D2D communication, which comprises a first time-frequency resource acquisition module, a D2D discovery signal acquisition module and a direct communication invitation module;
The first time-frequency resource obtaining module is used for obtaining a first time-frequency resource position of a shared network cell when the D2D discovery terminal and the D2D terminal to be discovered search a shared network respectively for a first SIM card and a second SIM card belonging to different operators according to a preset network searching strategy and reside in the same shared network cell;
The D2D discovery signal acquisition module is used for acquiring a D2D discovery signal sent by the D2D terminal to be discovered at the first time-frequency resource position, wherein the D2D discovery signal comprises identification information of the D2D terminal to be discovered;
The direct communication invitation module is used for sending D2D direct communication invitation to the D2D terminal to be discovered according to the D2D terminal identification information to be discovered and the D2D terminal identification information to be discovered.
Compared with the prior art, when the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search strategy and reside in the same shared network cell, the D2D discovery terminal acquires the D2D discovery signal sent by the D2D terminal to be discovered at the same time-frequency resource position, and then the D2D discovery terminal and the D2D terminal to be discovered are in direct communication connection, so that D2D communication discovery and connection among the SIM cards belonging to different operators are realized.
The system further comprises a first resident network module, wherein the first resident network module is used for searching the shared network according to a first PLMN list preset by the first SIM card, and resident the shared network if the shared network is searched;
The first PLMN list is used for storing PLMNs of the non-home operator shared network, and the second PLMN list is used for storing PLMNs of the home operator shared network. Since the number of the covered SIM cards of the non-home operator shared network is greater than that of the home operator shared network, searching the shared network according to the first PLMN list first can improve the efficiency of the D2D discovery terminal successfully searching the shared network.
The system further comprises a second resident network module, wherein the second resident network module is used for searching the shared network according to a first PLMN list preset by the second SIM card, if the shared network is searched, the shared network is resident, otherwise, the shared network is searched according to a second PLMN list preset by the second SIM card, and if the shared network is searched, the shared network is resident. Because the types of the covered SIM cards of the non-home operator shared network are more than those of the home operator shared network, the efficiency of the D2D terminal to be found to successfully search the shared network can be improved by searching the shared network according to the first PLMN list.
An embodiment of the present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the discovery method of D2D communication as described above.
An embodiment of the invention also provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the steps of the discovery method of D2D communication as described above when the computer program is executed.
In order that the invention may be more clearly understood, specific embodiments thereof will be described below with reference to the accompanying drawings.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of a discovery method of D2D communication (Device-to-Device Communication) according to one embodiment of the present invention includes the following steps:
S1, when the D2D discovery terminal and the D2D to-be-discovered terminal respectively search a shared network and reside in the same shared network cell on a first SIM card (Subscriber Identity Module Card) and a second SIM card belonging to different operators according to a preset network searching strategy, acquiring a first time-frequency resource position of the shared network cell;
s2, acquiring a D2D discovery signal sent by the D2D terminal to be discovered at the first time-frequency resource position, wherein the D2D discovery signal comprises identification information of the D2D terminal to be discovered;
And S3, sending a D2D direct communication invitation to the D2D terminal to be discovered according to the D2D terminal identification information to be discovered and the D2D terminal identification information to be discovered.
D2D communication refers to a communication scheme in which two peer user nodes communicate directly with each other. Compared with other direct connection technologies which do not depend on infrastructure, the D2D is more flexible, can be connected under the control of a base station, and can also perform information interaction when no network infrastructure exists.
The D2D discovery terminal and the D2D terminal to be discovered are terminals which can be inserted into SIM cards, such as mobile phones, tablet computers and the like.
The SIM card is a subscriber identity card of a digital cellular mobile telephone for allowing a network user to connect to a mobile network. The mobile phone or the card-inserted tablet computer can search for a mobile network and reside in the mobile network by inserting a SIM card, and one SIM card uniquely identifies one client. A plurality of PLMNs are provided in the SIM card, and each PLMN is an identity of the mobile communication network, and each PLMN includes an MCC (Mobile country code, country code) and an MNC (Mobile Network Code ), so that PLMNs of each mobile communication operator are different.
The shared network refers to a mobile cellular network commonly built by at least two operators, for example, an access network of a shared co-built 5G (5 th generation mobile networks, fifth generation mobile communication technology) NSA (Non-Standalone, non-independent networking)/SA (Standalone, independent networking), wherein the coverage area of the 5G network is reduced due to high communication rate of the 5G network, and in order to reduce the construction cost of the 5G network, the shared network is built by the mode that at least two operators commonly build the same mobile cellular network.
The shared network cell is the effective range of the shared network in a certain area. Since the shared network is coverage-enabled by a plurality of base stations, a base station may generate at least one shared network cell, and the names or parameters of different shared network cells are not the same.
The first time-frequency resource location refers to a time domain and a frequency domain allocated to the shared network cell by the base station for communication.
Compared with the prior art, in the D2D communication discovery method, when the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell, the D2D discovery terminal acquires a D2D discovery signal sent by the D2D terminal to be discovered at the same time-frequency resource position, and then the D2D discovery terminal and the D2D terminal to be discovered perform direct communication connection, so as to realize D2D communication discovery and connection between SIM cards belonging to different operators.
In a possible embodiment, the process that the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell includes the following steps:
The D2D discovery terminal searches the shared network according to a first PLMN list preset by the first SIM card, if the shared network is searched, the shared network is resided, otherwise, searches the shared network according to a second PLMN list preset by the first SIM card, and if the shared network is searched, the shared network is resided;
the first PLMN list is used for storing PLMNs of the non-home operator shared network, and the second PLMN list is used for storing PLMNs of the home operator shared network.
The PLMN of the non-home operator shared network is a PLMN which is shared by other operators and used for residing the shared network, and the PLMN of the home operator shared network is a PLMN which is set by the SIM card home operator and used for residing the shared network. Because the shared network is commonly built and commonly used by at least two operators, the number of PLMNs for residing the shared network shared by other operators is larger than the number of PLMNs for residing the shared network set by the SIM card home operator, so that the efficiency of successfully searching the shared network by the D2D discovery terminal can be improved by searching the shared network according to the first PLMN list.
In a possible embodiment, the process that the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell further includes the following steps;
And the D2D terminal searches the shared network according to a first PLMN list preset by the second SIM card, if the shared network is searched, the shared network is resided, otherwise, searches the shared network according to a second PLMN list preset by the second SIM card, and if the shared network is searched, the shared network is resided.
Because the types of the covered SIM cards of the non-home operator shared network are more than those of the home operator shared network, searching the shared network according to the first PLMN list can improve the efficiency of the D2D terminal to be found to successfully search the shared network.
In a possible embodiment, when the D2D discovery terminal cannot search the shared network according to the second PLMN list preset by the first SIM card, the D2D discovery terminal blindly detects the D2D discovery signal in a full frequency band.
The blind detection means that the D2D discovery terminal knows that the D2D discovery signal needs to be expected, but does not know the specific position of the D2D discovery signal, and only searches one by one in full frequency band, but has low searching efficiency, and the D2D discovery terminal can still possibly search for the D2D discovery signal when the D2D discovery terminal does not reside in the shared network through a full frequency band blind detection mode.
In a possible embodiment, when the D2D to-be-discovered terminal cannot search the shared network according to the second PLMN list preset by the second SIM card, the D2D to-be-discovered terminal blindly discovers the D2D discovery signal in a full frequency band. And the D2D terminal to be discovered can send out the D2D discovery signal when the terminal is not in the shared network through a full-band blind transmission mode.
The blind sending may be that the D2D terminal to be discovered sends the D2D discovery signal in any frequency band, or sends the D2D discovery signal in different frequency bands according to a set sending period, preferably, the period of the blind detection is unequal to the period of the blind sending, so as to avoid that the periods are equal and are not in the same frequency band for a long time.
The embodiment of the invention also provides a discovery system of the D2D communication, which comprises a first time-frequency resource acquisition module 1, a D2D discovery signal acquisition module 2 and a direct communication invitation module 3;
the first time-frequency resource obtaining module 1 is configured to obtain a first time-frequency resource position of a shared network cell when the D2D discovery terminal and the D2D terminal to be discovered search for the shared network respectively on a first SIM card and a second SIM card belonging to different operators according to a preset network search policy and reside in the same shared network cell;
The D2D discovery signal acquisition module 2 is used for acquiring a D2D discovery signal sent by the D2D terminal to be discovered at the first time-frequency resource position, wherein the D2D discovery signal comprises identification information of the D2D terminal to be discovered;
The direct communication invitation module 3 is configured to send a D2D direct communication invitation to the D2D terminal to be discovered according to the D2D terminal identification information to be discovered and the D2D terminal identification information to be discovered.
The D2D discovery terminal and the D2D terminal to be discovered are terminals which can be inserted into SIM cards, such as mobile phones, tablet computers and the like.
The SIM card is a subscriber identity card of a digital cellular mobile telephone for allowing a network user to connect to a mobile network. The mobile phone or the card-inserted tablet computer can search for a mobile network and reside in the mobile network by inserting a SIM card, and one SIM card uniquely identifies one client. A plurality of PLMNs are provided in the SIM card, and each PLMN is an identity of the mobile communication network, and each PLMN includes an MCC (Mobile country code, country code) and an MNC (Mobile Network Code ), so that PLMNs of each mobile communication operator are different.
The shared network refers to a mobile cellular network commonly built by at least two operators, for example, an access network of a shared co-built 5G (5 th generation mobile networks, fifth generation mobile communication technology) NSA (Non-Standalone, non-independent networking)/SA (Standalone, independent networking), wherein the coverage area of the 5G network is reduced due to high communication rate of the 5G network, and in order to reduce the construction cost of the 5G network, the shared network is built by the mode that at least two operators commonly build the same mobile cellular network.
The shared network cell is the effective range of the shared network in a certain area. Since the shared network is coverage-enabled by a plurality of base stations, a base station may generate at least one shared network cell, and the names or parameters of different shared network cells are not the same.
The first time-frequency resource location refers to a time domain and a frequency domain allocated to the shared network cell by the base station for communication.
Compared with the prior art, when the D2D discovery terminal and the D2D terminal to be discovered search the shared network of the first SIM card and the second SIM card belonging to different operators according to a preset network search strategy and reside in the same shared network cell, the D2D discovery terminal acquires the D2D discovery signal sent by the D2D terminal to be discovered at the same time-frequency resource position, and then the D2D discovery terminal and the D2D terminal to be discovered are in direct communication connection, so that D2D communication discovery and connection among the SIM cards belonging to different operators are realized.
In one possible embodiment, the system further comprises a first resident network module, wherein the first resident network module is used for searching the shared network according to a first PLMN list preset by the first SIM card, if the shared network is searched, the shared network is resident, otherwise, the system searches the shared network according to a second PLMN list preset by the first SIM card, and if the shared network is searched, the system is resident;
the first PLMN list is used for storing PLMNs of the non-home operator shared network, and the second PLMN list is used for storing PLMNs of the home operator shared network.
The PLMN of the non-home operator shared network is a PLMN which is shared by other operators and used for residing the shared network, and the PLMN of the home operator shared network is a PLMN which is set by the SIM card home operator and used for residing the shared network. Because the shared network is commonly built and commonly used by at least two operators, the number of PLMNs for residing the shared network shared by other operators is larger than the number of PLMNs for residing the shared network set by the SIM card home operator, so that the efficiency of successfully searching the shared network by the D2D discovery terminal can be improved by searching the shared network according to the first PLMN list.
In a possible embodiment, the system further comprises a second resident network module, wherein the second resident network module is used for searching the shared network according to a first PLMN list preset by the second SIM card, and resident the shared network if the shared network is searched, otherwise, searching the shared network according to a second PLMN list preset by the second SIM card, and resident the shared network if the shared network is searched.
Because the types of the covered SIM cards of the non-home operator shared network are more than those of the home operator shared network, the efficiency of the D2D terminal to be found to successfully search the shared network can be improved by searching the shared network according to the first PLMN list.
An embodiment of the present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the discovery method of D2D communication as described above.
An embodiment of the invention also provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the steps of the discovery method of D2D communication as described above when the computer program is executed.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.