CN114900528A - Point-to-point communication system, method, device, equipment and medium - Google Patents

Point-to-point communication system, method, device, equipment and medium Download PDF

Info

Publication number
CN114900528A
CN114900528A CN202210586876.3A CN202210586876A CN114900528A CN 114900528 A CN114900528 A CN 114900528A CN 202210586876 A CN202210586876 A CN 202210586876A CN 114900528 A CN114900528 A CN 114900528A
Authority
CN
China
Prior art keywords
equipment
peer
server
target
address
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.)
Pending
Application number
CN202210586876.3A
Other languages
Chinese (zh)
Inventor
董鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210586876.3A priority Critical patent/CN114900528A/en
Publication of CN114900528A publication Critical patent/CN114900528A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a point-to-point communication system, a method, a device, equipment and a medium, wherein in the method, a first device establishes connection with a server, determines a target ID of a second device, and sends request information containing the target ID and an IP address of the first device to the server; the server determines a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sends notification information to the second equipment based on the target SIM card number so as to wake up the second equipment and enable the two equipment to be in an activated state; the second device initiates point-to-point connection to the first device according to the IP address of the first device contained in the received notification information; the first device receives the point-to-point connection, and therefore point-to-point communication between the 5G devices is achieved.

Description

Point-to-point communication system, method, device, equipment and medium
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a peer-to-peer communication system, method, apparatus, device, and medium.
Background
Traditional peer-to-peer Communication needs to be penetrated to establish Communication between devices peer-to-peer due to limitation of Internet Protocol version 4 (IPv 4) address resources, with deployment of Internet Protocol version 6 (IPv 6), a core node of a domestic operator has fully supported IPv6, each fifth Generation Mobile Communication Technology (5G) device has allocated an independent public network IPv6 address, and peer-to-peer Communication between 5G devices can be directly performed.
In the prior art, in the peer-to-peer communication, two devices are required to be in an activated state, but most of 5G devices are in a dormant state for most of time due to power consumption, and a port cannot be monitored in real time to realize the peer-to-peer communication. When the 5G equipment is awakened and is in an activated state, the acquired IP addresses are randomly distributed by an operator; the two devices cannot timely obtain the IP address randomly allocated by the other party, so that the point-to-point communication between the 5G devices is difficult to carry out.
Disclosure of Invention
The invention provides a point-to-point communication system, a point-to-point communication method, a point-to-point communication device, a point-to-point communication equipment and a point-to-point communication medium, which are used for solving the problem that point-to-point communication between 5G equipment is difficult to smoothly carry out.
In a first aspect, the present invention provides a peer-to-peer communications system, the system comprising:
the system comprises a first device, a second device and a server, wherein the first device is used for establishing connection with the server, determining a target ID of the second device according to the ID of the second device to be selected provided by the server, and sending request information containing an IP address of the first device and the target ID to the server;
the server is used for establishing connection with the first equipment, providing an ID of second equipment to be selected for the first equipment, receiving the request information, determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sending notification information containing the IP address of the first equipment to the second equipment based on the target SIM card number;
the second device is configured to receive the notification information, and initiate a peer-to-peer connection to the first device according to the IP address of the first device;
the first device is configured to receive the peer-to-peer connection and perform peer-to-peer communication with the second device.
In a possible implementation manner, the server is specifically configured to invoke a short message platform interface of an operator based on the target SIM card number, and send notification information including an IP address of the first device to the second device.
In a possible implementation manner, the server is further configured to send an authentication request to the first device, and receive authentication information sent by the first device; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, sending notification information containing the IP address of the first equipment to the second equipment.
In a possible implementation manner, the server is further configured to send first rejection information to the first device if the identity information corresponding to the second device does not include the authentication information.
In a possible implementation manner, the server is further configured to send a first verification request including obtaining location information of the first device to the first device, and receive first location information sent by the first device; acquiring the saved second position information of the second device; and determining the distance between the first equipment and the second equipment according to the first position information and the second position information, and if the distance is smaller than a preset distance threshold, sending notification information containing the IP address of the first equipment to the second equipment.
In a possible implementation manner, the server is further configured to send second rejection information to the first device if the distance is not less than a preset distance threshold.
In a second aspect, the present invention provides a peer-to-peer communication method, applied to a server, the method including:
establishing connection with first equipment, and providing the ID of second equipment to be selected for the first equipment; receiving request information which is sent by the first equipment and contains the IP address of the first equipment and the determined target ID of the second equipment; and determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sending notification information containing the IP address of the first equipment to the second equipment based on the target SIM card number so as to enable the second equipment to be in point-to-point communication with the first equipment.
In a possible implementation manner, before sending the notification information including the IP address of the first device to the second device, the method further includes:
sending an authentication request to the first equipment, and receiving authentication information sent by the first equipment; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, carrying out subsequent operation of sending notification information containing the IP address of the first equipment to the second equipment.
In a possible implementation manner, before sending the notification information including the IP address of the first device to the second device, the method further includes:
sending a first verification request including position information of the first device to the first device, and receiving first position information sent by the first device; acquiring saved second position information of the second device; determining the distance between the first equipment and the second equipment according to the first position information and the second position information; and if the distance is smaller than a preset distance threshold value, performing subsequent operation of sending notification information containing the IP address of the first device to the second device.
In a third aspect, the present invention provides a peer-to-peer communication method, applied to a second device, where the method includes: receiving notification information which is sent by a server and contains the IP address of the first equipment; and initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
In a fourth aspect, the present invention further provides a peer-to-peer communication method, applied to a first device, where the method includes: establishing connection with a server, determining a target ID of second equipment according to the ID of the second equipment to be selected provided by the server, and sending request information containing the IP address of the first equipment and the target ID to the server; and receiving the point-to-point connection sent by the second equipment, and carrying out point-to-point communication with the second equipment.
In a fifth aspect, the present invention further provides a peer-to-peer communication apparatus, including:
the first connection module is used for establishing connection with first equipment and providing the ID of second equipment to be selected for the first equipment;
a first receiving module, configured to receive request information sent by the first device and including an IP address of the first device and a determined target ID of the second device;
the determining module is used for determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number;
a first sending module, configured to send notification information including an IP address of the first device to the second device based on the target SIM card number, so that the second device performs peer-to-peer communication with the first device.
In a possible embodiment, the apparatus further comprises:
the authentication module is used for sending an authentication request to the first equipment and receiving authentication information sent by the first equipment; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, triggering a first sending module.
In a possible embodiment, the apparatus further comprises:
the verification module is further used for sending a first verification request including position information of the first device to the first device and receiving the first position information sent by the first device; acquiring saved second position information of the second device; determining the distance between the first equipment and the second equipment according to the first position information and the second position information; and if the distance is smaller than a preset distance threshold value, triggering a first sending module.
In a sixth aspect, the present invention also provides a peer-to-peer communication device, including:
the second receiving module is used for receiving notification information which is sent by the server and contains the IP address of the first equipment;
and the second connection module is used for initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
In a seventh aspect, the present invention further provides a peer-to-peer communication device, including:
the second sending module is used for establishing connection with a server, determining a target ID of the second equipment according to the ID of the second equipment to be selected provided by the server, and sending request information containing the IP address of the first equipment and the target ID to the server;
and the third connection module is used for initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
In an eighth aspect, the present invention provides an electronic device, which comprises at least a processor and a memory, wherein the processor is configured to implement the steps of the peer-to-peer communication method according to any one of the above when executing a computer program stored in the memory.
In a ninth aspect, the present invention provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and computer-executable instructions are used to cause a computer to execute a process performed by any one of the aforementioned peer-to-peer communication methods.
The invention establishes connection with a server through a first device, determines a target ID of a second device, and sends request information containing the target ID and an IP address of the first device to the server; the server determines a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sends notification information to the second equipment based on the target SIM card number so as to wake up the second equipment and enable the two equipment to be in an activated state; the second device initiates point-to-point connection to the first device according to the IP address of the first device contained in the received notification information; the first device receives the point-to-point connection, so that point-to-point communication with the second device is realized, and point-to-point communication between the 5G devices is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a peer-to-peer communication system according to some embodiments of the invention;
fig. 2 is a process diagram of a peer-to-peer communication method according to some embodiments of the invention;
fig. 3 is a schematic structural diagram of an ad hoc communication device according to some embodiments of the present invention;
fig. 4 is a second process diagram of a peer-to-peer communication method according to some embodiments of the invention;
fig. 5 is a second schematic structural diagram of a peer-to-peer communication device according to some embodiments of the present invention;
fig. 6 is a third process diagram illustrating a peer-to-peer communication method according to some embodiments of the invention;
fig. 7 is a third schematic structural diagram of a peer-to-peer communication device according to some embodiments of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to some embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the brief descriptions of the terms in the present invention are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present invention. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the functionality associated with that element.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The embodiment of the invention provides a point-to-point communication system, a method, a device, equipment and a medium, wherein the system comprises the following components: the first device is used for establishing connection with the server, determining a target ID of the second device according to the ID of the second device stored in the server, and sending request information containing the IP address of the first device and the target ID to the server; the server is used for receiving the ID request information, determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sending notification information containing the IP address of the first equipment to the second equipment based on the target SIM card number; the second device is configured to receive the notification information, and initiate a peer-to-peer connection to the first device according to the IP address of the first device; the first device is further configured to receive the peer-to-peer connection and perform peer-to-peer communication with the second device.
In order to solve the problem that peer-to-peer communication between 5G devices is difficult to smoothly perform, embodiments of the present invention provide a peer-to-peer communication system, method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic diagram of a peer-to-peer communication system according to some embodiments of the present invention, as shown in fig. 1, the peer-to-peer communication system includes:
a first device 101, configured to establish a connection with a server 102, determine a target ID of a second device 103 according to an ID of the second device to be selected provided by the server 102, and send request information including an IP address of the first device 101 and the target ID to the server 102;
a server 102, configured to establish a connection with the first device, provide an ID of a second device to be selected to the first device 101, receive the request information, determine a target SIM card number corresponding to the target ID according to the target ID and a correspondence between the stored ID and a Subscriber Identity Module (SIM) card number, and send notification information including an IP address of the first device 101 to the second device 103 based on the target SIM card number;
the second device 103 is configured to receive the notification information, and initiate a peer-to-peer connection to the first device 101 according to the IP address of the first device 101;
the first device 101 is further configured to receive the peer-to-peer connection, and perform peer-to-peer communication with the second device 103.
The point-to-point communication system provided by the embodiment of the invention comprises a server, a first device and a second device; the first device and the second device are both devices with a 5G communication function, and may be referred to as 5G devices.
Because the 5G device has large power consumption, the 5G device is in a dormant state most of the time, and two 5G devices are required to be in an activated state in the peer-to-peer communication, so that the embodiment of the invention provides a method for waking up the 5G device and carrying out the IP notification when the peer-to-peer communication needs to be established between the 5G devices, and solves the problem that the peer-to-peer communication between the 5G devices is difficult to be smoothly carried out.
The user may first establish a connection with the server using the first device. The server prestores the ID of the second device, establishes connection with the first device after receiving the connection request of the first device, and provides the ID of the second device to be selected for the first device. Specifically, the first device may receive an input login account and send the login account to the server, so as to receive and display an interface to be displayed sent by the server, where the display content includes the ID of each device, and according to the displayed content, a user may conveniently select the target ID of the second device performing peer-to-peer communication. After the first device determines the target ID of the second device, sending request information for establishing point-to-point communication to the server, wherein the request information carries the target ID and the IP address of the first device; after the server receives the request information, because the server pre-stores the corresponding relationship between the ID of the device and the SIM card number, the server can determine the target SIM card number corresponding to the target ID according to the target ID of the second device and the corresponding relationship, and further can wake up the second device to perform peer-to-peer communication with the first device, specifically, the server can send notification information including the IP address of the first device to the second device.
The second device may be awakened by the notification message, and the second device may receive the notification message, and may initiate a request for performing peer-to-peer connection to the first device according to the IP address of the first device included in the notification message.
After receiving the request for performing peer-to-peer connection, the first device may perform peer-to-peer communication with the second device.
In the system of the embodiment of the invention, a first device establishes connection with a server, determines a target ID of a second device, and sends request information containing the target ID and an IP address of the first device to the server; the server determines a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sends notification information to the second equipment based on the target SIM card number so as to wake up the second equipment and enable the two equipment to be in an activated state; the second device initiates point-to-point connection to the first device according to the IP address of the first device contained in the received notification information; the first device receives the point-to-point connection, so that point-to-point communication connection between the first device and the second device is realized, and point-to-point communication between the 5G devices is realized.
Example 2:
in order to enable the 5G devices to smoothly perform peer-to-peer communication, on the basis of the above embodiment, in an embodiment of the present invention, the server is specifically configured to invoke a short message platform interface of an operator based on the target SIM card number, and send notification information including the IP address of the first device to the second device.
In the process of point-to-point communication between the first device and the second device, the second device is awakened through the server, and when the server sends notification information containing the IP address of the first device to the second device, the server can send a short message, namely, a short message platform interface of an operator is called to send the short message to the second device.
Specifically, the server may call an operator short message platform interface, send a short message including an IP address of the first device to the second device, and wake up the second device.
In the embodiment of the invention, the server can conveniently and quickly send the notification information to the second equipment and wake up the second equipment by calling the short message platform interface of the operator, thereby effectively reducing the point-to-point difficulty of the 5G equipment.
Example 3:
in order to ensure the security of peer-to-peer communication between 5G devices, on the basis of the foregoing embodiments, in an embodiment of the present invention, the server is further configured to send an authentication request to the first device, and receive authentication information sent by the first device; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, sending notification information containing the IP address of the first equipment to the second equipment.
In the peer-to-peer communication process between 5G devices requiring high security, the server may perform authentication on a first device that first initiates request information for communication, determine whether the first device has a right to perform peer-to-peer communication with a second device, and send wakeup notification information to the second device after the authentication is passed.
Specifically, the server stores, for each device, a corresponding relationship between the identity information and the device, and because the first device is to be verified, the server may obtain the corresponding relationship stored for the second device, where the corresponding relationship stores identity information and the like that can control the second device, for example, an account of the second device can be controlled. Therefore, the server sends an identity authentication request to the first device, the first device sends identity authentication information to the server after receiving the identity authentication request, and the server judges whether the identity authentication information is contained in the identity information corresponding to the second device after receiving the identity authentication information sent by the first device; if yes, determining that the first device has the authority of performing point-to-point communication with the second device, and sending notification information containing the IP address of the first device to the second device.
The following is illustrated by a specific example:
dispose 5G unmanned aerial vehicle in the region that needs the rescue, when there is the rescue demand, if personnel lost, mountain landslide etc., the rescuer passes through 5G unmanned aerial vehicle controller, can be the 5G cell-phone, establish the connection with the server of 5G unmanned aerial vehicle rescue, the target ID of the 5G unmanned aerial vehicle that wants to connect is confirmed according to the ID of the 5G unmanned aerial vehicle that saves in this server, send the request information of establishing point-to-point communication with this 5G unmanned aerial vehicle to the server of 5G unmanned aerial vehicle rescue, acquire this 5G unmanned aerial vehicle's control right, thereby through this 5G unmanned aerial vehicle of 5G network remote control, and call this 5G unmanned aerial vehicle's camera from the area, return the regional real-time image of search and rescue, search for rescue the region. In order to ensure the safety of point-to-point communication between rescuers and a 5G unmanned aerial vehicle through a 5G mobile phone, after the server receives request information, the 5G mobile phone is subjected to identity verification, the verification can be realized by requiring a user of the 5G mobile phone to log in an identity account, the server judges whether the identity account corresponding to the 5G unmanned aerial vehicle contains the target identity account according to the received target identity account logged in by the 5G mobile phone and the stored corresponding relation between the identity account and the 5G unmanned aerial vehicle, if the target identity account contains the target identity account, namely the identity verification passes, the server calls a short message interface of a communication operator, and sends a short message to the 5G unmanned aerial vehicle, wherein the short message contains an IP address of the 5G mobile phone.
In order to ensure the security of peer-to-peer communication between 5G devices, on the basis of the foregoing embodiments, in an embodiment of the present invention, the server is further configured to send first rejection information to the first device if the identity information corresponding to the second device does not include the authentication information.
If the identity information corresponding to the second device does not contain the identity authentication information, determining that the first device does not have the authority of point-to-point communication with the second device, terminating the communication process, and sending first refusal information to the first device.
Specifically, for example, in the application scenario, if the server determines that the target identity account is not included in the identity account corresponding to the 5G drone according to the received target identity account and the stored correspondence between the identity account and the 5G drone, that is, if the authentication fails, the 5G drone does not have the permission to perform peer-to-peer communication with the 5G drone, and then terminates the communication process, and the server sends, to the 5G drone, first reject information that the server does not have the permission to perform peer-to-peer communication with the 5G drone.
In the embodiment of the invention, the server performs identity authentication on the first equipment which firstly initiates the communication request, thereby ensuring the security of point-to-point communication between the 5G equipment.
Example 4:
in order to ensure the accuracy and the security of peer-to-peer communication between 5G devices, on the basis of the foregoing embodiments, in an embodiment of the present invention, the server is further configured to send a first verification request including obtaining location information of the first device to the first device, and receive first location information sent by the first device; acquiring saved second position information of the second device; and determining the distance between the first equipment and the second equipment according to the first position information and the second position information, and if the distance is smaller than a preset distance threshold, sending notification information containing the IP address of the first equipment to the second equipment.
In some application scenarios that the peer-to-peer communication between the 5G devices can be performed only by limiting the distance, whether the first device and the second device have the authority of the peer-to-peer communication can be determined according to the acquired location information of the first device and the second device and the distance threshold by presetting the distance threshold at which the first device and the second device can perform the peer-to-peer communication. The specific server sends a first verification request including position information of the first device to the first device and receives the first position information sent by the first device; acquiring second position information sent by the second device; and determining the distance between the first device and the second device according to the first position information and the second position information, further judging whether the distance between the first device and the second device is smaller than a distance threshold value capable of carrying out point-to-point communication, if the distance is smaller than a preset distance threshold value, determining that the first device and the second device can effectively carry out point-to-point communication, and sending notification information containing the IP address of the first device to the second device.
In one possible embodiment, the server may store the location information of each second device in advance. However, in the application process of some peer-to-peer communication, the location of the second device may move, for example, the 5G device such as the unmanned aerial vehicle and the shared bicycle may determine whether the first device can perform peer-to-peer communication with the second device according to the location information of the second device, so that when performing peer-to-peer communication, the second device may periodically send its location information to the server, and after receiving the location information of each second device, the server updates the stored location information corresponding to the second device according to the location information.
The following is illustrated by a specific example:
with the sharing bicycle as an example, the user looks over near sharing bicycle at the cell-phone end, because of having interference problems such as high building in the urban area, can't fix a position accurate when finding the sharing bicycle through the cell-phone, can carry out point-to-point communication through cell-phone end APP and sharing bicycle, the built-in camera of sharing bicycle is transferred in the request, with the data of camera, conveys cell-phone end APP. The user can judge according to the video image of camera, and convenience of customers seeks sharing bicycle. However, the user carries out point-to-point communication with the shared bicycle through the mobile phone end APP, and the situation that public safety is possibly damaged exists. For example, the user carries out point-to-point communication with the sharing bicycle through the APP at the mobile phone end, and calls the camera of the sharing bicycle to monitor others. And the distance between the user and the shared bicycle is within the sight distance range conveniently and quickly. Therefore, the point-to-point communication between the mobile phone and the shared bicycle can be limited to be carried out within the line-of-sight range.
The user can establish connection with a server of the shared bicycle through the mobile phone APP, the target ID of the target shared bicycle to be connected is determined according to the ID of the shared bicycle sent by the server, and request information for establishing point-to-point communication with the target shared bicycle is sent to the server to request connection of the shared bicycle. The server acquires the request information of the mobile phone, can send a first verification request including the position information of the mobile phone to the mobile phone, and receives the first position information sent by the mobile phone to acquire the position of the mobile phone. And the server acquires the stored second position information of the target shared bicycle and acquires the position of the target shared bicycle. And further judging whether the distance between the mobile phone and the target sharing bicycle is smaller than a distance threshold value capable of carrying out point-to-point communication, if so, determining that the mobile phone and the target sharing bicycle can carry out point-to-point communication safely and effectively, and sending notification information containing the IP address of the mobile phone to the target sharing bicycle.
In order to ensure that peer-to-peer communication between 5G devices is performed smoothly, in the embodiments of the present invention based on the foregoing embodiments, the server is further configured to send second rejection information to the first device if it is determined that the distance is not less than a preset distance threshold.
And if the distance between the first device and the second device is not smaller than a preset distance threshold, determining that the first device and the second device do not meet the distance condition for performing peer-to-peer communication, and sending second rejection information which does not meet the distance condition for performing peer-to-peer communication with the second device to the first device.
Specifically, for example, in the application scenario, if the distance between the mobile phone and the target sharing bicycle is not less than the distance threshold value at which peer-to-peer communication can be performed, it is determined that peer-to-peer communication cannot be performed safely and effectively between the mobile phone and the target sharing bicycle, and second rejection information that does not satisfy the distance condition for peer-to-peer communication with the target sharing bicycle is sent to the mobile phone.
In the embodiment of the invention, the server determines the distance between the first device and the second device by acquiring the first set first position information and the second position information of the second device, determines the size relation between the distance and the preset distance threshold value, and judges whether the first device and the second device meet the distance condition for performing peer-to-peer communication, thereby ensuring the safety and the effectiveness of the peer-to-peer communication between the 5G devices.
On the basis of the foregoing embodiments, the present invention further provides a peer-to-peer communication method, where the method is applied to a server, and fig. 2 is a schematic process diagram of a peer-to-peer communication method according to some embodiments of the present invention, where the process includes:
s201: and establishing connection with the first equipment, and providing the ID of the second equipment to be selected for the first equipment.
S202: and receiving request information which is sent by the first equipment and contains the IP address of the first equipment and the determined target ID of the second equipment.
S203: and determining the target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number.
S204: and sending notification information containing the IP address of the first equipment to the second equipment based on the target SIM card number so as to enable the second equipment to perform point-to-point communication with the first equipment.
In a possible implementation manner, before sending the notification information including the IP address of the first device to the second device, the method further includes:
sending an authentication request to the first equipment, and receiving authentication information sent by the first equipment; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, carrying out subsequent operation of sending notification information containing the IP address of the first equipment to the second equipment.
In a possible implementation manner, before sending the notification information including the IP address of the first device to the second device, the method further includes:
sending a first verification request including position information of the first device to the first device, and receiving first position information sent by the first device; acquiring the saved second position information of the second device; determining the distance between the first equipment and the second equipment according to the first position information and the second position information; and if the distance is smaller than a preset distance threshold value, performing subsequent operation of sending notification information containing the IP address of the first device to the second device.
On the basis of the foregoing embodiments, the present invention further provides an peer-to-peer communication apparatus, and fig. 3 is a schematic structural diagram of a peer-to-peer communication apparatus according to some embodiments of the present invention, as shown in fig. 3, the apparatus includes:
a first connection module 301, configured to establish a connection with a first device, and provide an ID of a second device to be selected to the first device;
a first receiving module 302, configured to receive request information sent by the first device and including an IP address of the first device and a determined target ID of the second device;
a determining module 303, configured to determine, according to the target ID and a correspondence between the stored ID and the SIM card number, a target SIM card number corresponding to the target ID;
a first sending module 304, configured to send notification information including an IP address of the first device to the second device based on the target SIM card number, so that the second device communicates peer-to-peer with the first device.
In a possible embodiment, the apparatus further comprises:
an authentication module 305, configured to send an authentication request to the first device, and receive authentication information sent by the first device; and judging whether the identity information corresponding to the second device contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second device, and if so, triggering a first sending module 304.
In a possible implementation manner, the verification module 305 is further configured to send a first verification request including obtaining location information of the first device to the first device, and receive the first location information sent by the first device; acquiring saved second position information of the second device; determining the distance between the first equipment and the second equipment according to the first position information and the second position information; if the distance is smaller than the preset distance threshold, the first sending module 304 is triggered.
The apparatus may be specifically deployed in a server, and other functions of the server are specifically described in the foregoing description of other embodiments.
On the basis of the foregoing embodiments, the present invention further provides a peer-to-peer communication method, which is applied to the second device, and fig. 4 is a second process diagram of the peer-to-peer communication method according to some embodiments of the present invention. As shown in fig. 4, the method includes:
s401: and receiving notification information which is sent by the server and contains the IP address of the first equipment.
S402: and initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
On the basis of the foregoing embodiments, the present invention further provides an peer-to-peer communication apparatus, and fig. 5 is a second schematic structural diagram of a peer-to-peer communication apparatus according to some embodiments of the present invention, as shown in fig. 5, the apparatus includes:
a second receiving module 501, configured to receive notification information sent by a server and including an IP address of a first device;
a second connection module 502, configured to initiate a peer-to-peer connection to the first device according to the IP address of the first device.
The apparatus may be specifically deployed in the second device, and other functions of the second device are specifically described in the foregoing description of other embodiments.
On the basis of the foregoing embodiments, the present invention further provides a peer-to-peer communication method, which is applied to the first device, and fig. 6 is a third process diagram of the peer-to-peer communication method according to some embodiments of the present invention. As shown in fig. 6, the method includes:
s601: establishing connection with a server, determining a target ID of a second device to be selected according to the ID of the second device provided by the server, and sending request information containing the IP address of the first device and the target ID to the server.
S602: and receiving the point-to-point connection sent by the second equipment, and carrying out point-to-point communication with the second equipment.
On the basis of the foregoing embodiments, the present invention further provides an peer-to-peer communication apparatus, and fig. 7 is a third schematic structural diagram of a peer-to-peer communication apparatus according to some embodiments of the present invention, as shown in fig. 7, the apparatus includes:
a second sending module 701, configured to establish a connection with a server, determine a target ID of a second device to be selected according to an ID of the second device provided by the server, and send request information including an IP address of the first device and the target ID to the server.
A third connection module 702, configured to initiate a peer-to-peer connection to the first device according to the IP address of the first device.
The apparatus may be specifically deployed in the first device, and other functions of the first device are specifically described in the foregoing description of other embodiments.
On the basis of the foregoing embodiments, the present invention further provides an electronic device, and fig. 8 is a schematic structural diagram of an electronic device according to some embodiments of the present invention, as shown in fig. 8, including: the system comprises a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 complete mutual communication through the communication bus 804;
the memory 803 has stored therein a computer program which, when executed by the processor 801, causes the processor 801 to carry out the steps of any of the above described methods of peer-to-peer communication.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 802 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
On the basis of the foregoing embodiments, the present invention provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and computer-executable instructions are used for causing a computer to execute the process performed by any one of the foregoing peer-to-peer communication methods.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (18)

1. A point-to-point communication system, the system comprising:
the system comprises a first device, a second device and a server, wherein the first device is used for establishing connection with the server, determining a target ID of the second device according to the ID of the second device to be selected provided by the server, and sending request information containing an IP address of the first device and the target ID to the server;
the server is used for establishing connection with the first equipment, providing an ID of second equipment to be selected for the first equipment, receiving the request information, determining a target SIM card number corresponding to the target ID according to the target ID and a corresponding relation between the stored ID and the SIM card number, and sending notification information containing an IP address of the first equipment to the second equipment based on the target SIM card number;
the second device is configured to receive the notification information, and initiate a peer-to-peer connection to the first device according to the IP address of the first device;
the first device is further configured to receive the peer-to-peer connection and perform peer-to-peer communication with the second device.
2. The peer-to-peer communication system according to claim 1, wherein the server is specifically configured to invoke a short message platform interface of an operator based on the target SIM card number, and send notification information including the IP address of the first device to the second device.
3. The peer-to-peer communication system according to claim 1, wherein the server is further configured to send an authentication request to the first device and receive authentication information sent by the first device; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, sending notification information containing the IP address of the first equipment to the second equipment.
4. The peer-to-peer communication system according to claim 3, wherein the server is further configured to send a first rejection message to the first device if the identity information corresponding to the second device does not include the authentication information.
5. The peer-to-peer communication system according to claim 1, wherein the server is further configured to send a first authentication request including obtaining location information of the first device to the first device, and receive the first location information sent by the first device; acquiring saved second position information of the second device; and determining the distance between the first equipment and the second equipment according to the first position information and the second position information, and if the distance is smaller than a preset distance threshold, sending notification information containing the IP address of the first equipment to the second equipment.
6. The peer-to-peer communication system according to claim 5, wherein the server is further configured to send a second rejection message to the first device if the distance is not less than a preset distance threshold.
7. A peer-to-peer communication method applied to a server, the method comprising:
establishing connection with first equipment, and providing the ID of second equipment to be selected for the first equipment;
receiving request information which is sent by the first equipment and contains the IP address of the first equipment and the determined target ID of the second equipment;
and determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number, and sending notification information containing the IP address of the first equipment to the second equipment based on the target SIM card number so as to enable the second equipment to be in point-to-point communication with the first equipment.
8. The peer-to-peer communication method according to claim 7, wherein before the sending the notification information including the IP address of the first device to the second device, the method further comprises:
sending an authentication request to the first equipment, and receiving authentication information sent by the first equipment; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, carrying out subsequent operation of sending notification information containing the IP address of the first equipment to the second equipment.
9. The peer-to-peer communication method according to claim 7, wherein before the sending the notification information including the IP address of the first device to the second device, the method further comprises:
sending a first verification request including position information of the first device to the first device, and receiving first position information sent by the first device;
acquiring saved second position information of the second device;
determining the distance between the first equipment and the second equipment according to the first position information and the second position information;
and if the distance is smaller than a preset distance threshold value, performing subsequent operation of sending notification information containing the IP address of the first device to the second device.
10. A peer-to-peer communication method applied to a second device, the method comprising:
receiving notification information which is sent by a server and contains the IP address of the first equipment;
and initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
11. A peer-to-peer communication method applied to a first device, the method comprising:
establishing connection with a server, determining a target ID of second equipment according to the ID of the second equipment to be selected provided by the server, and sending request information containing the IP address of the first equipment and the target ID to the server;
and receiving the point-to-point connection sent by the second equipment, and carrying out point-to-point communication with the second equipment.
12. A peer-to-peer communications apparatus, the apparatus comprising:
the first connection module is used for establishing connection with first equipment and providing the ID of second equipment to be selected for the first equipment;
a first receiving module, configured to receive request information sent by the first device and including an IP address of the first device and a determined target ID of the second device;
the determining module is used for determining a target SIM card number corresponding to the target ID according to the target ID and the corresponding relation between the stored ID and the SIM card number;
a first sending module, configured to send notification information including an IP address of the first device to the second device based on the target SIM card number, so that the second device performs peer-to-peer communication with the first device.
13. The apparatus of claim 12, further comprising:
the authentication module is used for sending an authentication request to the first equipment and receiving authentication information sent by the first equipment; and judging whether the identity information corresponding to the second equipment contains the identity authentication information or not according to the identity authentication information and the corresponding relation between the stored identity information and the second equipment, and if so, triggering a first sending module.
14. The apparatus of claim 12, further comprising:
the verification module is used for sending a first verification request including position information of the first equipment to the first equipment and receiving the first position information sent by the first equipment; acquiring saved second position information of the second device; determining the distance between the first equipment and the second equipment according to the first position information and the second position information; and if the distance is smaller than a preset distance threshold value, triggering a first sending module.
15. A peer-to-peer communications apparatus, the apparatus comprising:
the second receiving module is used for receiving notification information which is sent by the server and contains the IP address of the first equipment;
and the second connection module is used for initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
16. A peer-to-peer communications apparatus, the apparatus comprising:
the second sending module is used for establishing connection with a server, determining a target ID of the second equipment according to the ID of the second equipment to be selected provided by the server, and sending request information containing the IP address of the first equipment and the target ID to the server;
and the third connection module is used for initiating point-to-point connection to the first equipment according to the IP address of the first equipment.
17. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to carry out the steps of a method of peer-to-peer communication according to any of claims 7-11 when executing a computer program stored in the memory.
18. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of a method for peer-to-peer communication according to any of claims 7-11.
CN202210586876.3A 2022-05-26 2022-05-26 Point-to-point communication system, method, device, equipment and medium Pending CN114900528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210586876.3A CN114900528A (en) 2022-05-26 2022-05-26 Point-to-point communication system, method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210586876.3A CN114900528A (en) 2022-05-26 2022-05-26 Point-to-point communication system, method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114900528A true CN114900528A (en) 2022-08-12

Family

ID=82725035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210586876.3A Pending CN114900528A (en) 2022-05-26 2022-05-26 Point-to-point communication system, method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114900528A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105580344A (en) * 2013-07-26 2016-05-11 高康姆有限公司 Smart device-based home network system and control method therefor
CN107659414A (en) * 2017-10-13 2018-02-02 深圳市尚云互联技术有限公司 Remote wakening system and method based on P2P
CN110191440A (en) * 2014-04-22 2019-08-30 华为技术有限公司 A kind of the discovery method, apparatus and system of D2D communication
US20200221542A1 (en) * 2019-01-09 2020-07-09 Altair Semiconductor Ltd. Collaboration among wireless devices operating over both long-range and short-range networks
CN112165698A (en) * 2020-09-10 2021-01-01 上海擎感智能科技有限公司 Method, system, server and computer-readable storage medium for controlling vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105580344A (en) * 2013-07-26 2016-05-11 高康姆有限公司 Smart device-based home network system and control method therefor
CN110191440A (en) * 2014-04-22 2019-08-30 华为技术有限公司 A kind of the discovery method, apparatus and system of D2D communication
CN107659414A (en) * 2017-10-13 2018-02-02 深圳市尚云互联技术有限公司 Remote wakening system and method based on P2P
US20200221542A1 (en) * 2019-01-09 2020-07-09 Altair Semiconductor Ltd. Collaboration among wireless devices operating over both long-range and short-range networks
CN112165698A (en) * 2020-09-10 2021-01-01 上海擎感智能科技有限公司 Method, system, server and computer-readable storage medium for controlling vehicle

Similar Documents

Publication Publication Date Title
US11096051B2 (en) Connection establishment method, device, and system
CN108521644B (en) Network access method, equipment and system
EP2472927A1 (en) Method and system for controlling an intelligent card remotely
CN104168557A (en) Upgrading method for operating systems and upgrading device for operating systems
JP2013516805A (en) Evolved packet system and emergency call attachment processing method
CN113067859B (en) Communication method and device based on cloud mobile phone
CN112738143B (en) Account number binding method, device and system
CN110719583B (en) Communication method and device
CN114980065B (en) Voice calling method and device and electronic equipment
CN105592019A (en) Method for bidirectional access to application between dual execution environments
WO2017219587A1 (en) Master-slave device switching method, slave device, management server, and storage medium
CN105025273B (en) Connection method, cipher set-up method and the system of storied building visible intercommunication system
CN111554013A (en) Access control passing method, device, equipment and storage medium
CN114900528A (en) Point-to-point communication system, method, device, equipment and medium
CN111741463B (en) Communication connection method, related equipment and storage medium
CN112637844A (en) Security authentication method, device, equipment and medium
CN104281811A (en) Terminal self-destruction method, system and device
CN112822644A (en) Group establishing method and equipment
US10547603B2 (en) Secure call answering
CN105630710A (en) Access control method of peripheral equipment, access control system of peripheral equipment and server
CN107295698B (en) Call connection establishing method, device and system
CN112291749A (en) Method and device for awakening T-Box, T-Box and server
WO2017148337A1 (en) Methods of providing and acquiring terminal service, device, and terminal
WO2018133551A1 (en) Communication number verification method and device
JP2008077217A (en) Communication system and its communication method

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