CN109275197B - Communication connection establishing method, base station, terminal and storage medium - Google Patents
Communication connection establishing method, base station, terminal and storage medium Download PDFInfo
- Publication number
- CN109275197B CN109275197B CN201811123826.1A CN201811123826A CN109275197B CN 109275197 B CN109275197 B CN 109275197B CN 201811123826 A CN201811123826 A CN 201811123826A CN 109275197 B CN109275197 B CN 109275197B
- Authority
- CN
- China
- Prior art keywords
- communication
- position information
- calling terminal
- communication connection
- terminal
- 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
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- 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
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the application provides a communication connection establishing method, a base station, a terminal and a storage medium, wherein the method comprises the following steps: when a communication connection request of a calling terminal is received, acquiring first position information of the calling terminal from the communication connection request, wherein the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; sending the communication connection request to the called terminal; when a first response instruction which responds to the communication connection request and is sent by the called terminal is received, second position information of the called terminal is obtained from the first response instruction; and when the first position information and the second position information are judged to meet the preset communication condition, distributing a communication channel for the calling terminal so that the calling terminal can establish device-to-device communication with the called terminal by using the communication channel.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a method for establishing a communication connection, a base station, a terminal, and a storage medium.
Background
The long term evolution of the third Generation Partnership Project (3 GPP), and in particular the future fifth Generation mobile communication technology (5G, 5th Generation) communication, facilitates access to a local Internet Protocol (IP) service in an office, home, public hot spot, or outdoor environment. The most simple case of local connection or local access is a mode of directly communicating between short-distance terminals with a distance of ten meters or even hundred meters, that is, Device-to-Device (D2D) communication, D2D communication is communication between terminals as the name suggests, and a general D2D communication flow is that, when a calling terminal needs to communicate with a called terminal, the calling terminal first establishes communication connection with a base station and sends a D2D communication request to the base station, since the calling terminal reports its own position to the base station when a preset time period arrives, the base station determines a time period for reporting the position information of the calling terminal, when the time period is too long, the base station sends a request for reporting its own position information to the calling terminal and the called terminal, and when it is determined that the calling terminal and the called terminal satisfy the D2D communication condition, a communication channel is allocated to the calling terminal, for the calling terminal to use the communication channel to realize D2D communication with the called terminal.
However, the time period for the base station to determine that the calling terminal reports the position information of the calling terminal, and the process for the base station to send the request for reporting the position information of the base station to the calling terminal and the called terminal respectively lead to complicated steps for establishing D2D communication, thereby reducing the connection speed of D2D communication.
Disclosure of Invention
The embodiment of the application provides a communication connection establishing method, a base station, a terminal and a storage medium, which can simplify the step of establishing D2D communication and improve the connection speed of D2D communication.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a communication connection establishing method, which is applied to a base station and comprises the following steps:
when a communication connection request of a calling terminal is received, acquiring first position information of the calling terminal from the communication connection request, wherein the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal;
sending the communication connection request to the called terminal;
when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction;
and when the first position information and the second position information are judged to meet the preset communication condition, distributing a communication channel for the calling terminal so that the calling terminal can establish the device-to-device communication with the called terminal by using the communication channel.
In the above method, after the second location information of the called terminal is obtained from the first response instruction and before the communication channel is allocated to the calling terminal, the method further includes:
acquiring a difference value between the first position information and the second position information;
and when the difference value is within a preset communication range, representing that the first position information and the second position information meet the preset communication condition.
In the above method, after obtaining the difference between the first location information and the second location information, the method further includes:
when the difference value is not within the preset communication range, representing that the first position information and the second position information do not meet the preset communication condition;
and when the first position information and the second position information are judged not to meet the preset communication condition, establishing a first wireless communication connection between the calling device and the called device, wherein the first wireless communication connection is a communication mode except the device-to-device communication.
The embodiment of the application provides a communication connection establishing method, which is applied to a calling terminal and comprises the following steps:
sending a communication connection request to a base station, wherein the communication connection request carries first position information, and the communication connection request is a request for establishing device-to-device communication with a called terminal;
and when receiving the communication channel allocated by the base station, establishing the device-to-device communication with the called terminal by using the communication channel.
In the above method, before the sending the communication connection request to the base station, the method further includes:
when receiving a first operation of establishing communication connection with the called terminal, acquiring the first position information based on the first operation;
carrying the first location information in the communication connection request.
An embodiment of the present application provides a base station, including:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring first position information of a calling terminal from a communication connection request when the communication connection request of the calling terminal is received, and the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction;
a first sending unit, configured to send the communication connection request to the called terminal;
and the allocating unit is used for allocating a communication channel to the calling terminal when the first position information and the second position information are judged to meet the preset communication condition, so that the calling terminal can establish the device-to-device communication with the called terminal by using the communication channel.
In the above base station, the first obtaining unit is further configured to obtain a difference between the first location information and the second location information; and when the difference value is within a preset communication range, representing that the first position information and the second position information meet the preset communication condition.
In the above base station, the base station further includes: a first establishing communication unit;
the first establishing communication unit is used for representing that the first position information and the second position information do not meet the preset communication condition when the difference value is not within the preset communication range; and when the first position information and the second position information are judged not to meet the preset communication condition, establishing a first wireless communication connection between the calling device and the called device, wherein the first wireless communication connection is a communication mode except the device-to-device communication.
An embodiment of the present application provides a base station, including: a first memory, a first transmitter, a first processor and a computer program stored on the first memory and executable on the first processor, which when executed by the first processor implements a communication connection establishment method as in any one of the above.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and the computer program is applied to a base station, and when the computer program is executed by a first processor, the computer program implements the communication connection establishment method according to any one of the above.
The embodiment of the present application provides a calling terminal, the calling terminal includes:
a second sending unit, configured to send a communication connection request to a base station, where the communication connection request carries first location information, and the communication connection request is a request for establishing device-to-device communication with a called terminal;
a second establishing communication unit configured to establish the device-to-device communication with the called terminal using the communication channel when receiving the communication channel allocated by the base station.
In the above calling terminal, the base station further includes: a second acquiring unit and a carrying unit;
a second acquisition unit configured to acquire the first location information based on a first operation when the first operation of establishing a communication connection with the called terminal is received;
a carrying unit, configured to carry the first location information in the communication connection request.
The embodiment of the present application provides a calling terminal, the calling terminal includes: a second memory, a second processor, a second transmitter and a computer program stored on the second memory and executable on the second processor, which when executed by the second processor implements a communication connection establishment method as in any one of the above.
The embodiment of the present application provides a second storage medium, on which a computer program is stored, and the computer program is applied to a calling terminal, and when being executed by a second processor, the computer program implements the communication connection establishment method according to any one of the above.
The embodiment of the application provides a communication connection establishing method, a base station, a terminal and a storage medium, wherein the method comprises the following steps: when a communication connection request of a calling terminal is received, acquiring first position information of the calling terminal from the communication connection request, wherein the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; sending the communication connection request to the called terminal; when a first response instruction which responds to the communication connection request and is sent by the called terminal is received, second position information of the called terminal is obtained from the first response instruction; and when the first position information and the second position information are judged to meet the preset communication condition, distributing a communication channel for the calling terminal so that the calling terminal can establish device-to-device communication with the called terminal by using the communication channel. By adopting the method, when the calling terminal sends the communication connection request to the base station, the first position information of the calling terminal is firstly acquired, and the first position information is carried in the communication connection request and sent to the base station, at the moment, the base station directly acquires the current first position information of the calling terminal, and the process of determining the time period for reporting the position information of the calling terminal by the calling terminal and sending the request for reporting the position information of the calling terminal to the calling terminal by the base station is not required, so that the step of establishing D2D communication can be simplified, and the connection speed of D2D communication is improved.
Drawings
Fig. 1 is a first flowchart of a communication connection establishment method according to an embodiment of the present application;
fig. 2 is a second flowchart of a communication connection establishment method according to an embodiment of the present application;
fig. 3 is a display diagram of an exemplary interface for a calling terminal to determine a terminal identifier of a called terminal according to an embodiment of the present application;
fig. 4 is an interaction diagram of a communication connection establishment method according to an embodiment of the present application;
fig. 5 is a first schematic structural diagram of a base station according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a base station according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a calling terminal according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a calling terminal according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application. And are not intended to limit the present application.
Example one
An embodiment of the present application provides a communication connection establishing method, which is applied to a base station, and as shown in fig. 1, the method may include:
s101, when a communication connection request of a calling terminal is received, first position information of the calling terminal is obtained from the communication connection request, and the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal.
The communication connection establishing method provided by the embodiment of the application is suitable for a scene of establishing D2D communication between a calling terminal and a called terminal.
In this embodiment, the calling terminal and the called terminal may be any devices with communication and storage functions, for example: the mobile terminal comprises a tablet Computer, a mobile phone, an electronic reader, a remote controller, a Personal Computer (PC), a notebook Computer, a vehicle-mounted device, a network television, a wearable device and other devices, which are specifically selected according to actual conditions, and the embodiment of the application is not specifically limited.
In the embodiment of the application, when the calling terminal and the called terminal establish the D2D communication connection, the calling terminal acquires the first location information of the current location, carries the first location information in the communication connection request, and sends the communication connection request to the base station, and when the base station receives the communication connection request sent by the calling terminal, the base station searches the first location information of the calling terminal from the communication connection request.
In the embodiment of the present application, the calling terminal obtains the first location information by using a Global Positioning System (GPS).
And S102, sending the communication connection request to the called terminal.
After the base station acquires the first location information of the calling terminal from the communication connection request, the base station transmits the communication connection request to the called terminal.
In the embodiment of the application, after the base station receives the communication connection request of the calling terminal and acquires the first location information of the calling terminal from the communication connection request, the base station detects whether the calling terminal and the called terminal can perform D2D communication, first, the base station adds the location request information to the communication connection request and sends the communication connection request to the called terminal, and at this time, the base station informs the called terminal of the communication connection request by using the communication connection request and requests the called terminal to send its own second location information.
S103, when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction.
After the base station sends the communication connection request to the called terminal, the base station acquires the second position information of the called terminal from the first response instruction when receiving the first response instruction sent by the called terminal and responding to the communication connection request.
In the embodiment of the application, a called terminal receives a communication connection request sent by a base station, displays the communication connection request on a current display interface of the called terminal according to a preset display mode, measures second position information of the called terminal by using a GPS when the called terminal receives a touch operation agreeing to establish a D2D connection on the current display interface, carries the second position information in a first response instruction responding to the communication connection request, and sends the first response instruction to the base station, wherein at the moment, the base station obtains the second position information of the called terminal from the first response instruction.
And S104, when the first position information and the second position information are judged to meet the preset communication condition, distributing a communication channel for the calling terminal so that the calling terminal can establish device-to-device communication with the called terminal by using the communication channel.
And after the base station acquires the second position information of the called terminal from the first response instruction, the base station allocates a communication channel for the calling terminal when judging that the second position information and the second position information meet the preset communication condition.
In the embodiment of the application, the terminal calculates a difference between the first position information and the second position information, compares the difference with a preset communication range, and when the difference is within the preset communication range, the base station judges that the first position information and the second position information meet a preset communication condition, at this time, the base station allocates a communication channel for performing D2D communication to the calling terminal, and the calling terminal establishes a D2D communication connection with the called terminal by using the communication channel.
Further, the base station judges whether the D2D communication between the calling terminal and the called terminal is possible according to the distance information of the calling terminal and the called terminal, the D2D capabilities of the calling terminal and the called terminal, and the channel quality of the calling terminal and the called terminal, and when the base station judges that the D2D communication is possible between the calling terminal and the called terminal, the base station allocates a communication channel for the D2D communication to the calling terminal.
In the embodiment of the application, after the D2D links of the calling terminal and the called terminal are successfully established, the calling terminal and the called terminal perform data transmission on the D2D link by using an Internet Protocol (IP) address interconnected between networks of opposite terminals without passing through a base station.
Further, when the base station determines that the difference between the first location information and the second location information is not within the preset communication range, the first location information and the second location information are represented not to meet the preset communication condition, and at this time, the base station establishes a first wireless communication connection between the calling device and the called device, where the first wireless communication connection is a communication mode other than D2D communication.
In an embodiment of the application, the first wireless communication connection comprises a cellular mobile communication connection.
It can be understood that, when the calling terminal sends the communication connection request to the base station, the first location information of the calling terminal is obtained first, and the first location information is carried in the communication connection request and sent to the base station, at this time, the base station directly obtains the current first location information of the calling terminal, and the process of determining the time period for reporting the location information of the calling terminal by the calling terminal and sending the request for reporting the location information of the calling terminal to the calling terminal by the base station is not required, so that the step of establishing D2D communication can be simplified, and the connection speed of D2D communication is improved.
Example two
An embodiment of the present application provides a communication connection establishing method, which is applied to a calling terminal, and as shown in fig. 2, the method may include:
s201, a communication connection request is sent to a base station, the communication connection request carries first position information, and the communication connection request is a request for establishing device-to-device communication with a called terminal.
The communication connection establishing method provided by the embodiment of the application is suitable for a scene of establishing D2D communication between a calling terminal and a called terminal.
In the embodiment of the application, a user selects the called terminal identification of the called terminal on the communication connection interface of the calling terminal and clicks the call button, at the moment, the calling terminal starts the GPS according to the operation of clicking the call button, measures the first position information of the calling terminal by using the GPS, carries the first position in the communication connection request and sends the first position information to the base station.
Illustratively, as shown in fig. 3, on the communication connection interface of the calling terminal, the user inputs the number "123" of the called terminal and clicks the call button, at which time the calling terminal receives a first operation of establishing a communication connection with the called terminal.
In this embodiment, the first location information includes three-dimensional coordinate information of longitude, latitude and altitude of the calling terminal.
S202, when the communication channel allocated by the base station is received, the communication channel is utilized to establish device-to-device communication with the called terminal.
After the calling terminal carries the first position information in the communication connection request and sends the first position information to the base station, the calling terminal establishes device-to-device communication with the called terminal by using the communication channel when the calling terminal receives the communication channel allocated by the base station.
In the embodiment of the application, when the calling terminal receives the communication channel allocated by the base station, the calling terminal establishes D2D communication with the called terminal by using the communication channel, and after the D2D links of the calling terminal and the called terminal are successfully established, the calling terminal and the called terminal use the IP address of the opposite terminal to perform data transmission on the D2D link without passing through the base station.
It can be understood that, when the calling terminal sends the communication connection request to the base station, the first location information of the calling terminal is obtained first, and the first location information is carried in the communication connection request and sent to the base station, at this time, the base station directly obtains the current first location information of the calling terminal, and the process of determining the time period for reporting the location information of the calling terminal by the calling terminal and sending the request for reporting the location information of the calling terminal to the calling terminal by the base station is not required, so that the step of establishing D2D communication can be simplified, and the connection speed of D2D communication is improved.
EXAMPLE III
An embodiment of the present application provides a communication connection establishing method, as shown in fig. 4, the method may include:
s301, when the calling terminal receives a first operation of establishing communication connection with the called terminal, the calling terminal acquires first position information based on the first operation.
The communication connection establishing method provided by the embodiment of the application is suitable for a scene of establishing D2D communication between a calling terminal and a called terminal.
In this embodiment, the calling terminal and the called terminal may be any devices with communication and storage functions, for example: the mobile terminal comprises a tablet Computer, a mobile phone, an electronic reader, a remote controller, a Personal Computer (PC), a notebook Computer, a vehicle-mounted device, a network television, a wearable device and other devices, which are specifically selected according to actual conditions, and the embodiment of the application is not specifically limited.
In the embodiment of the application, a terminal identification list is displayed on a communication interface of a calling terminal, a user selects a called terminal identification from the terminal identification list, or a numeric keyboard is displayed on the communication interface of the calling terminal, the user sequentially clicks a numeric sequence corresponding to the called terminal identification on the numeric keyboard, the user clicks a dialing button after determining the called terminal identification, and at the moment, the calling terminal receives a first operation of establishing communication connection with the called terminal.
In the embodiment of the application, after the calling terminal receives a first operation of establishing communication connection with the called terminal, the calling terminal starts a GPS based on the first operation and acquires the current first position information by using the GPS.
In this embodiment, the first location information includes three-dimensional coordinate information of longitude, latitude and altitude of the calling terminal.
S302, the calling terminal carries the first position information in the communication connection request.
After the calling terminal acquires the first location information based on the first operation, the calling terminal carries the first location information in the communication connection request.
In the embodiment of the application, the calling terminal carries the current first position information in the communication connection request.
S303, the calling terminal sends a communication connection request to the base station, wherein the communication connection request carries the first position information, and the communication connection request is a request for establishing device-to-device communication with the called terminal.
After the calling terminal carries the first location information in the communication connection request, the calling terminal transmits the communication connection request to the base station.
In the embodiment of the application, the calling terminal sends the communication connection request carrying the first location information to the base station, so as to send a request for establishing D2D communication with the called terminal to the base station.
S304, the base station acquires the first position information of the calling terminal from the communication connection request.
After the calling terminal sends the communication connection request to the base station, the base station acquires the first location information of the calling terminal from the communication connection request.
In the embodiment of the application, the base station acquires the first position information of the calling terminal from the communication connection request.
S305, the base station sends the communication connection request to the called terminal.
After the base station acquires the first position information of the calling terminal from the communication connection request, the base station transmits the communication connection request to the called terminal.
In the embodiment of the application, the base station determines the called terminal, which requests the establishment of D2D communication, from the communication connection request, carries a request for requesting the called terminal to send location information in the communication connection request, and sends the communication connection request to the called terminal.
S306, when the base station receives a first response instruction which is sent by the called terminal and responds to the communication connection request, the base station acquires second position information of the called terminal from the first response instruction.
After the base station sends the communication connection request to the called terminal, the called terminal acquires second position information of the called terminal according to the communication connection request, adds the second position information to a first response instruction responding to the communication connection request, and sends the first response instruction to the base station, at this time, the base station can acquire the second position information of the called terminal from the first response instruction, and send the second position information.
In the embodiment of the application, a called terminal receives a communication connection request sent by a base station, displays the communication connection request on a current display interface of the called terminal according to a preset display mode, measures second position information of the called terminal by using a GPS when the called terminal receives a touch operation agreeing to establish a D2D connection on the current display interface, carries the second position information in a first response instruction responding to the communication connection request, and sends the first response instruction to the base station, wherein at the moment, the base station obtains the second position information of the called terminal from the first response instruction.
S307, the base station acquires the difference value of the first position information and the second position information.
After the base station acquires the second position information of the called terminal from the first response instruction, the base station calculates the difference between the first position information and the second position information.
In the embodiment of the present application, the base station calculates a difference between the first location information and the second location information, and specifically, the base station determines the distance between the calling terminal and the called terminal by calculating the difference between the first location information and the second location information.
And S308, when the difference value is within the preset communication range, representing that the first position information and the second position information meet the preset communication condition.
After the base station calculates the difference between the first location information and the second location information, the base station determines whether the difference is within a preset communication range.
In the embodiment of the application, the base station compares the difference between the first location information and the second location information with a preset communication range, and when the difference between the first location information and the second location information is within the preset communication range, the calling terminal and the called terminal are represented to meet the D2D communication condition.
Further, the preset communication conditions include distance information between the calling terminal and the called terminal, D2D capabilities of the calling terminal and the called terminal, and channel qualities of the calling terminal and the called terminal, which are specifically selected according to actual situations, and the embodiment of the present application is not specifically limited.
S309, when the base station judges that the first position information and the second position information meet the preset communication condition, the base station allocates a communication channel for the calling terminal.
And when the base station judges that the first position information and the second position information meet the preset communication condition, the base station allocates a communication channel for the calling terminal.
In the embodiment of the application, when the base station determines that the calling terminal and the called terminal can perform D2D communication, the base station allocates a communication channel for performing D2D communication to the calling terminal.
S310, the calling device establishes device-to-device communication with the called terminal by using the communication channel.
After the base station allocates a communication channel to the calling terminal, the calling device establishes device-to-device communication with the called terminal using the communication channel.
In the embodiment of the application, the calling terminal establishes a D2D link with the called terminal by using a communication channel, and after the D2D link is successfully established, the calling terminal and the called terminal perform data transmission on the D2D link by using the IP address of the opposite terminal without passing through a base station.
And S311, when the difference value is not in the preset communication range, representing that the first position information and the second position information do not meet the preset communication condition.
And when the base station judges that the difference value between the first position information and the second position information is not in the preset communication range, the first position information and the second position information are represented to be not satisfied with the preset communication condition.
In the embodiment of the application, the base station compares the difference value between the first position information and the second position information with a preset communication range, and when the difference value between the first position information and the second position information is not within the preset communication range, the calling terminal and the called terminal are represented to not satisfy the D2D communication condition.
And S312, when the base station judges that the first position information and the second position information do not meet the preset communication condition, the base station establishes a first wireless communication connection between the calling device and the called device, wherein the first wireless communication connection is a communication mode except device-to-device communication.
When the base station judges that the first position information and the second position information do not meet the preset communication condition, the base station needs to establish a first wireless communication connection between the calling device and the called device.
In the embodiment of the application, the base station establishes a first wireless communication connection between the calling device and the called device, wherein the first wireless communication connection is a communication mode except for D2D communication.
In an embodiment of the application, the first wireless communication connection comprises a cellular mobile communication connection.
In the embodiment of the application, after the base station establishes the first wireless communication connection between the calling device and the called device, the calling device communicates with the called device through the base station.
S308 to S310 and S311 to S312 are two parallel steps after S307, which are specifically selected according to actual situations, and the embodiment of the present application is not specifically limited.
It can be understood that, when the calling terminal sends the communication connection request to the base station, the first location information of the calling terminal is obtained first, and the first location information is carried in the communication connection request and sent to the base station, at this time, the base station directly obtains the current first location information of the calling terminal, and the process of determining the time period for reporting the location information of the calling terminal by the calling terminal and sending the request for reporting the location information of the calling terminal to the calling terminal by the base station is not required, so that the step of establishing D2D communication can be simplified, and the connection speed of D2D communication is improved.
Example four
An embodiment of the present application provides a base station 1, as shown in fig. 5, where the base station 1 includes:
a first obtaining unit 10, configured to obtain first location information of a calling terminal from a communication connection request when the communication connection request of the calling terminal is received, where the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction;
a first sending unit 11, configured to send the communication connection request to the called terminal;
the allocating unit 12 is configured to allocate a communication channel to the calling terminal when it is determined that the first location information and the second location information satisfy a preset communication condition, so that the calling terminal establishes the device-to-device communication with the called terminal by using the communication channel.
Optionally, the first obtaining unit 10 is further configured to obtain a difference between the first location information and the second location information; and when the difference value is within a preset communication range, representing that the first position information and the second position information meet the preset communication condition.
Optionally, the base station 1 further includes: a first establishing communication unit 13;
the first establishing communication unit 13 is configured to, when the difference is not within the preset communication range, characterize that the first location information and the second location information do not satisfy the preset communication condition; and when the first position information and the second position information are judged not to meet the preset communication condition, establishing a first wireless communication connection between the calling device and the called device, wherein the first wireless communication connection is a communication mode except the device-to-device communication.
In practical applications, based on the same inventive concept of the first and third embodiments, as shown in fig. 6, the base station 1 may include: a first processor 14, a first memory 15, a first transmitter 16 and a first communication interface 17 and a first bus 18;
the first acquiring Unit 10, the allocating Unit 12 and the first establishing communication Unit 13 may be implemented by a first Processor 14 located on the base station 1, the first transmitting Unit 11 may be implemented by a first transmitter 16, and the first Processor 14 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller and a microprocessor. It is understood that, for different devices, the electronic devices for implementing the first processor function may be other devices, and the embodiment of the present application is not particularly limited, and the base station 1 further includes a first memory 15, where the first memory 15 is used for storing executable program codes, the program codes include computer operation instructions, and the first memory 15 may include a high-speed RAM memory, and may also include a nonvolatile memory, such as at least one disk memory.
The first bus 18 is used for connecting the first communication interface 17, the first processor 14, the first memory 15, the first transmitter 16 and the intercommunication among these devices;
the first communication interface 17 is configured to perform data transmission with an external network element;
the first memory 15 for storing instructions and data;
the first transmitter 16, configured to send the communication connection request to the called terminal;
the first processor 14 executing the instructions to: when a communication connection request of a calling terminal is received, acquiring first position information of the calling terminal from the communication connection request, wherein the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction; and when the first position information and the second position information are judged to meet the preset communication condition, distributing a communication channel for the calling terminal so that the calling terminal can establish the device-to-device communication with the called terminal by using the communication channel.
In practical applications, the first Memory 15 may be a volatile first Memory (volatile Memory), such as a Random-Access first Memory (RAM); or a non-volatile first Memory (non-volatile Memory), such as a Read-Only first Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of first memories of the kind described above and provides instructions and data to the first processor 14.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and the computer program is applied in the base station 1, and when the computer program is executed by the first processor 14, the fault detection method according to the first embodiment and the third embodiment is implemented.
EXAMPLE five
An embodiment of the present application provides a terminal 2, as shown in fig. 7, where the terminal 2 includes:
a second sending unit 20, configured to send a communication connection request to a base station, where the communication connection request carries first location information, and the communication connection request is a request for establishing device-to-device communication with a called terminal;
a second establishing communication unit 21 configured to establish the device-to-device communication with the called terminal using the communication channel when receiving the communication channel allocated by the base station.
Optionally, the base station 2 further includes: a second acquiring unit 22 and a carrying unit 23;
a second obtaining unit 22 configured to, when a first operation of establishing a communication connection with the called terminal is received, obtain the first location information based on the first operation;
a carrying unit 23, configured to carry the first location information in the communication connection request.
In practical applications, based on the same inventive concept of the second embodiment and the third embodiment, as shown in fig. 8, the terminal 2 may include: a second processor 24, a second memory 25, a second transmitter 26, a second communication interface 27 and a second bus 28;
the second establishing communication unit 21, the second obtaining unit 22 and the carrying unit 23 may be implemented by a second processor 24 located on the terminal 2, the second sending unit 20 may be implemented by a second sender 26, and the second processor 24 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller and a microprocessor. It will be appreciated that, for different devices, the electronic devices for implementing the second processor function may be other devices, and the embodiment of the present application is not particularly limited, and the terminal 2 further includes a second memory 25, where the second memory 25 is used for storing executable program codes, the program codes include computer operation instructions, and the second memory 25 may include a high-speed RAM memory and may also include a nonvolatile memory, such as at least one disk memory.
The second bus 28 is used for connecting the second communication interface 27, the second processor 24, the second memory 25, the second transmitter 26 and the intercommunication among these devices;
the second communication interface 27 is configured to perform data transmission with an external network element;
the second memory 25 for storing instructions and data;
the second transmitter 26 is configured to transmit a communication connection request to the base station, where the communication connection request carries the first location information, and the communication connection request is a request for establishing device-to-device communication with the called terminal;
the second processor 24, executing the instructions, is configured to: and when receiving the communication channel allocated by the base station, establishing the device-to-device communication with the called terminal by using the communication channel.
In practical applications, the second memory 25 may be a volatile second memory, such as a random access RAM; or a nonvolatile second memory such as a ROM, a flash second memory, an HDD, or an SSD; or a combination of the above types of second memory and provides instructions and data to the second processor 24.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and the computer program is applied in the terminal 2, and when the computer program is executed by the second processor 24, the fault detection method according to the second embodiment and the third embodiment is implemented.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (14)
1. A communication connection establishment method applied to a base station is characterized by comprising the following steps:
when a communication connection request of a calling terminal is received, acquiring first position information of the calling terminal from the communication connection request, wherein the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal;
sending the communication connection request to the called terminal;
when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction;
when the first position information and the second position information are judged to meet the preset communication condition, a communication channel is distributed to the calling terminal, so that the calling terminal can establish the device-to-device communication with the called terminal by using the communication channel;
the preset communication conditions comprise device-to-device communication capacity conditions of the calling terminal and the called terminal and channel quality conditions of the calling terminal and the called terminal.
2. The method according to claim 1, wherein after the second location information of the called terminal is obtained from the first response instruction and before the communication channel is allocated to the calling terminal, the method further comprises:
acquiring a difference value between the first position information and the second position information;
and when the difference value is within a preset communication range, representing that the first position information and the second position information meet the preset communication condition.
3. The method of claim 2, wherein after obtaining the difference between the first location information and the second location information, the method further comprises:
when the difference value is not within the preset communication range, representing that the first position information and the second position information do not meet the preset communication condition;
and when the first position information and the second position information are judged not to meet the preset communication condition, establishing a first wireless communication connection between the calling terminal and the called terminal, wherein the first wireless communication connection is a communication mode except the device-to-device communication.
4. A communication connection establishing method is applied to a calling terminal, and is characterized in that the method comprises the following steps:
sending a communication connection request to a base station, wherein the communication connection request carries first position information, so that the base station judges the first position information and second position information of a called terminal by using a preset communication condition and allocates a communication channel for the calling terminal, and the communication connection request is a request for establishing device-to-device communication with the called terminal;
when a communication channel allocated by the base station is received, establishing the device-to-device communication with the called terminal by using the communication channel;
the preset communication conditions comprise device-to-device communication capacity conditions of the calling terminal and the called terminal and channel quality conditions of the calling terminal and the called terminal.
5. The method of claim 4, wherein before sending the communication connection request to the base station, the method further comprises:
when receiving a first operation of establishing communication connection with the called terminal, acquiring the first position information based on the first operation;
carrying the first location information in the communication connection request.
6. A base station, characterized in that the base station comprises:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring first position information of a calling terminal from a communication connection request when the communication connection request of the calling terminal is received, and the communication connection request is a request for establishing device-to-device communication between the calling terminal and a called terminal; when a first response instruction which is sent by the called terminal and responds to the communication connection request is received, second position information of the called terminal is obtained from the first response instruction;
a first sending unit, configured to send the communication connection request to the called terminal;
the allocation unit is used for allocating a communication channel to the calling terminal when the first position information and the second position information are judged to meet the preset communication condition, so that the calling terminal establishes the device-to-device communication with the called terminal by using the communication channel;
the preset communication conditions comprise device-to-device communication capacity conditions of the calling terminal and the called terminal and channel quality conditions of the calling terminal and the called terminal.
7. The base station of claim 6,
the first obtaining unit is further configured to obtain a difference between the first position information and the second position information; and when the difference value is within a preset communication range, representing that the first position information and the second position information meet the preset communication condition.
8. The base station of claim 7, wherein the base station further comprises: a first establishing communication unit;
the first establishing communication unit is used for representing that the first position information and the second position information do not meet the preset communication condition when the difference value is not within the preset communication range; and when the first position information and the second position information are judged not to meet the preset communication condition, establishing a first wireless communication connection between the calling terminal and the called terminal, wherein the first wireless communication connection is a communication mode except the device-to-device communication.
9. A base station, characterized in that the base station comprises: a first memory, a first transmitter, a first processor and a computer program stored on the first memory and executable on the first processor, which when executed by the first processor implements the method of any of claims 1-3.
10. A storage medium having stored thereon a computer program for application in a base station, characterized in that the computer program, when being executed by a first processor, is adapted to carry out the method according to any one of claims 1-3.
11. A calling terminal, characterized in that the calling terminal comprises:
a second sending unit, configured to send a communication connection request to a base station, where the communication connection request carries first location information, so that the base station determines, by using a preset communication condition, the first location information and second location information of a called terminal, and allocates a communication channel to the calling terminal, where the communication connection request is a request for establishing device-to-device communication with the called terminal, and the preset communication condition includes device-to-device communication capability conditions of the calling terminal and the called terminal and channel quality conditions of the calling terminal and the called terminal;
a second establishing communication unit configured to establish the device-to-device communication with the called terminal using the communication channel when receiving the communication channel allocated by the base station.
12. The calling terminal of claim 11, wherein the base station further comprises: a second acquiring unit and a carrying unit;
a second acquisition unit configured to acquire the first location information based on a first operation when the first operation of establishing a communication connection with the called terminal is received;
a carrying unit, configured to carry the first location information in the communication connection request.
13. A calling terminal, characterized in that the calling terminal comprises: a second memory, a second processor, a second transmitter and a computer program stored on the second memory and executable on the second processor, which when executed by the second processor implements the method according to any of claims 4-5.
14. A second storage medium having a computer program stored thereon for use in a calling terminal, wherein the computer program, when executed by a second processor, implements the method of any of claims 4-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123826.1A CN109275197B (en) | 2018-09-26 | 2018-09-26 | Communication connection establishing method, base station, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123826.1A CN109275197B (en) | 2018-09-26 | 2018-09-26 | Communication connection establishing method, base station, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109275197A CN109275197A (en) | 2019-01-25 |
CN109275197B true CN109275197B (en) | 2021-03-16 |
Family
ID=65198142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811123826.1A Active CN109275197B (en) | 2018-09-26 | 2018-09-26 | Communication connection establishing method, base station, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109275197B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111148276B (en) * | 2020-01-13 | 2023-05-05 | 武汉慧联无限科技有限公司 | Communication method, device, base station and storage medium based on LoRa technology |
CN112512023A (en) * | 2020-12-04 | 2021-03-16 | 中国联合网络通信集团有限公司 | Communication method, device and system |
CN113115227B (en) * | 2021-04-21 | 2022-11-01 | 鹏城实验室 | Processing method and device for preventing terminal from losing coverage of high-altitude base station and high-altitude base station |
CN114285829B (en) * | 2021-12-14 | 2023-04-18 | 上海哔哩哔哩科技有限公司 | WebRTC (Web real-time communication) connection method and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686743A (en) * | 2013-12-31 | 2014-03-26 | 遵义天义利威机电有限责任公司 | D2D communication channel resource allocation method based on graph theory |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102958066B (en) * | 2011-08-31 | 2017-09-05 | 华为技术有限公司 | D2D terminal communicating methods and equipment |
KR102096895B1 (en) * | 2013-02-13 | 2020-04-03 | 삼성전자주식회사 | A method and apparatus for initial entry in a radio communication system |
CN103533529B (en) * | 2013-10-15 | 2016-06-01 | 北京邮电大学 | A kind of method of resource multiplex improving D2D system energy efficiency and system |
CN103701563B (en) * | 2013-12-12 | 2017-07-28 | 南京邮电大学 | A kind of terminal direct connection communication means based on network code |
CN110191440B (en) * | 2014-04-22 | 2024-03-01 | 华为技术有限公司 | D2D communication discovery method, device and system |
CN105338471B (en) * | 2015-09-29 | 2019-01-15 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method for early warning and relevant apparatus based on D2D communication |
CN105979476A (en) * | 2016-05-13 | 2016-09-28 | 北京北方烽火科技有限公司 | Terminal-to-terminal communication auxiliary method and device |
-
2018
- 2018-09-26 CN CN201811123826.1A patent/CN109275197B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686743A (en) * | 2013-12-31 | 2014-03-26 | 遵义天义利威机电有限责任公司 | D2D communication channel resource allocation method based on graph theory |
Also Published As
Publication number | Publication date |
---|---|
CN109275197A (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109275197B (en) | Communication connection establishing method, base station, terminal and storage medium | |
CN104584490B (en) | Data transmission method for uplink and device | |
CN109792287B (en) | Method and device for transmitting response message | |
CN108282846B (en) | Service request processing method and device | |
CN103596160B (en) | Method and device for data transmission | |
CN105794258B (en) | Congestion notification method, relevant device and system | |
EP3046351A1 (en) | Method and device for realizing terminal wifi talkback | |
CN108632307B (en) | Session connection establishing method and SMF entity | |
CN102868593A (en) | Method and terminal for information acquisition | |
CN111264068A (en) | Positioning processing method, positioning processing device, base station, terminal equipment and storage medium | |
CN111263338A (en) | Network distribution method of Bluetooth Mesh network and related network distribution equipment and system | |
CN109005594B (en) | D2D communication connection method, device, equipment and storage medium | |
CN109068306A (en) | A kind of data transmission method and terminal, storage medium | |
CN106465072B (en) | Call forwarding method and terminal | |
CN101668258B (en) | Method, system and device for data transmission | |
CN104969598B (en) | A kind of method and apparatus using white spectrum communication | |
CN104010269A (en) | Method and device for sending file in communication terminal | |
CN115695497A (en) | Diagnostic data remote transmission method and device, electronic equipment and medium | |
JP2019513309A (en) | Communication method based on device to device | |
CN105191460B (en) | Information transmission method, equipment and system | |
CN109040503B (en) | Traffic sharing method and server | |
CN108966185B (en) | Resource release method, terminal and computer readable storage medium | |
CN113853817A (en) | Information transmission method, device, communication equipment and storage medium | |
CN107211479B (en) | Method and device for selecting access network | |
CN107071828A (en) | Message forwarding method and device |
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 |