Point-to-point communication system, method, device, equipment and medium
The server sends notification information to 5G devices, wakes up the device, authenticates and IP notifications, solving the problem of difficult point-to-point communication between 5G devices and realizing reliable connections and communications between devices.
Patent Information
- Application Number
- CN202210586876.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2042-05-26
AI Technical Summary
Point-to-point communication between 5G devices is difficult to proceed smoothly, mainly due to the large power consumption of the device, which leads to a dormant state. The IP address obtained is randomly allocated by the operator, which makes it difficult for both devices to obtain the other party's IP address in a timely manner.
Establish a connection with the first device and the second device through the server, send notification information to the second device according to the target SIM card number, wake it up and perform point-to-point connection, ensure that the device is in an activated state, realize IP notification and identity authentication, if the distance is at a threshold value Communication is carried out within.
It effectively solves the problem of point-to-point communication between 5G devices, ensures that the device is in an activated state, realizes reliable connection and communication between devices, and reduces the difficulty of communication.
Smart Images

Figure CN114900528B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to a point-to-point communication system, method, device, equipment and medium. Background Art
[0002] Traditional point-to-point communication requires penetration to establish point-to-point communication between devices due to the limitation of Internet Protocol version 4 (IPv4) address resources. With the deployment of Internet Protocol version 6 (IPv6), the core nodes of domestic operators have fully supported IPv6. Each fifth-generation mobile communication technology (5G) device can be allocated an independent public IPv6 address, and 5G devices can directly communicate point-to-point.
[0003] In the existing point-to-point communication technology, both devices need to be in an activated state. However, most 5G devices are in a dormant state most of the time due to power consumption reasons, and cannot monitor the port in real time to achieve point-to-point communication. And when the 5G device is awakened and in an activated state, the IP address obtained is randomly assigned by the operator; the two devices cannot obtain the IP address randomly assigned by the other party in time, making it difficult for point-to-point communication between 5G devices. Summary of the invention
[0004] The present invention provides a point-to-point communication system, method, apparatus, device and medium for solving the problem that point-to-point communication between 5G devices is difficult to carry out smoothly.
[0005] In a first aspect, the present invention provides a point-to-point communication system, the system comprising:
[0006] The first device is used to establish a connection with a server, determine a target ID of the second device according to the ID of the second device to be selected provided by the server, and send a request message including the IP address of the first device and the target ID to the server;
[0007] The server is configured to establish a connection with the first device, provide the first device with an ID of a second device to be selected, receive the request information, determine a target SIM card number corresponding to the target ID according to the target ID and the correspondence between the stored ID and the SIM card number, and send notification information including the IP address of the first device to the second device based on the target SIM card number;
[0008] The second device is configured to receive the notification information and initiate a point-to-point connection to the first device according to the IP address of the first device;
[0009] The first device is used to receive the point-to-point connection and perform point-to-point communication with the second device.
[0010] In a possible implementation, the server is specifically configured to call an SMS 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.
[0011] In a possible implementation, the server is also used to send an identity authentication request to the first device and receive identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, determine whether the identity information corresponding to the second device contains the identity authentication information; if so, send a notification message containing the IP address of the first device to the second device.
[0012] 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 identity authentication information.
[0013] In a possible implementation, the server is also used 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; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information, and if the distance is less than a preset distance threshold, send a notification message including the IP address of the first device to the second device.
[0014] In a possible implementation, 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.
[0015] In a second aspect, the present invention provides a point-to-point communication method, applied to a server, the method comprising:
[0016] Establish a connection with a first device and provide the first device with the ID of a second device to be selected; receive a request message sent by the first device containing the IP address of the first device and the determined target ID of the second device; determine the target SIM card number corresponding to the target ID according to the target ID and the correspondence between the saved ID and the SIM card number, and based on the target SIM card number, send a notification message containing the IP address of the first device to the second device, so that the second device can communicate with the first device point-to-point.
[0017] 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:
[0018] Send an identity authentication request to the first device and receive identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, determine whether the identity information corresponding to the second device contains the identity authentication information; if so, perform a subsequent operation of sending a notification information containing the IP address of the first device to the second device.
[0019] 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:
[0020] Sending a first verification request including obtaining location information of the first device to the first device, and receiving the first location information sent by the first device; obtaining the saved second location information of the second device; determining the distance between the first device and the second device based on the first location information and the second location information; if the distance is less than a preset distance threshold, performing a subsequent operation of sending a notification message including the IP address of the first device to the second device.
[0021] In a third aspect, the present invention provides a point-to-point communication method, applied to a second device, the method comprising: receiving a notification message sent by a server containing the IP address of a first device; and initiating a point-to-point connection to the first device according to the IP address of the first device.
[0022] In a fourth aspect, the present invention also provides a point-to-point communication method, applied to a first device, the method comprising: establishing a connection with a server, determining the target ID of the second device according to the ID of the second device to be selected provided by the server, and sending a request message containing the IP address of the first device and the target ID to the server; receiving the point-to-point connection sent by the second device, and performing point-to-point communication with the second device.
[0023] In a fifth aspect, the present invention further provides a point-to-point communication device, the device comprising:
[0024] A first connection module, configured to establish a connection with a first device and provide the first device with an ID of a second device to be selected;
[0025] A first receiving module, configured to receive a request message sent by the first device, including the IP address of the first device and the determined target ID of the second device;
[0026] A determination module, used to determine the target SIM card number corresponding to the target ID according to the target ID and the correspondence between the stored ID and the SIM card number;
[0027] The first sending module is used to send notification information including the IP address of the first device to the second device based on the target SIM card number, so that the second device can communicate with the first device in a point-to-point manner.
[0028] In a possible implementation, the device further includes:
[0029] A verification module is used to send an identity authentication request to the first device and receive identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, determine whether the identity information corresponding to the second device contains the identity authentication information, and if so, trigger the first sending module.
[0030] In a possible implementation, the device further includes:
[0031] The verification module is also used to send a first verification request to the first device, including obtaining the location information of the first device, and receive the first location information sent by the first device; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information; if the distance is less than a preset distance threshold, trigger the first sending module.
[0032] In a sixth aspect, the present invention further provides a point-to-point communication device, the device comprising:
[0033] A second receiving module, used to receive notification information including the IP address of the first device sent by the server;
[0034] The second connection module is used to initiate a point-to-point connection to the first device according to the IP address of the first device.
[0035] In a seventh aspect, the present invention further provides a point-to-point communication device, the device comprising:
[0036] A second sending module is used to establish a connection with a server, determine a target ID of the second device according to the ID of the second device to be selected provided by the server, and send a request message including the IP address of the first device and the target ID to the server;
[0037] The third connection module is used to initiate a point-to-point connection to the first device according to the IP address of the first device.
[0038] In an eighth aspect, the present invention provides an electronic device, comprising at least a processor and a memory, wherein the processor is used to implement the steps of any one of the above-mentioned point-to-point communication methods when executing a computer program stored in the memory.
[0039] In a ninth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by an electronic device, and the computer-executable instructions are used to enable a computer to execute the process executed by any of the aforementioned point-to-point communication methods.
[0040] The present invention establishes a connection between a first device and a server and determines the target ID of a second device, and sends a request message containing the target ID and the IP address of the first device to the server; the server determines the target SIM card number corresponding to the target ID according to the target ID and the correspondence between the saved ID and the SIM card number, and sends a notification message to the second device based on the target SIM card number to wake up the second device, so that both devices are in an activated state; the second device initiates a point-to-point connection to the first device according to the IP address of the first device contained in the received notification message; the first device receives the point-to-point connection, thereby realizing point-to-point communication with the second device, and realizing point-to-point communication between 5G devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A schematic diagram of a point-to-point communication system provided for some embodiments of the present invention;
[0043] Figure 2 One of the process schematic diagrams of a point-to-point communication method provided by some embodiments of the present invention;
[0044] Figure 3One of the structural schematic diagrams of a point-to-point communication device provided in some embodiments of the present invention;
[0045] Figure 4 A second process diagram of a point-to-point communication method provided for some embodiments of the present invention;
[0046] Figure 5 A second structural diagram of a point-to-point communication device provided for some embodiments of the present invention;
[0047] Figure 6 A third process diagram of a point-to-point communication method provided for some embodiments of the present invention;
[0048] Figure 7 A third structural diagram of a point-to-point communication device provided for some embodiments of the present invention;
[0049] Figure 8 A schematic diagram of the structure of an electronic device provided for some embodiments of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] It should be noted that the brief description of the terms in the present invention is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of the present invention. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0052] The terms "first", "second", "third", etc. in the specification and claims of the present invention and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0053] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0054] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0055] The preferred embodiments of the present invention are described below in conjunction with the drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.
[0056] An embodiment of the present invention provides a point-to-point communication system, method, apparatus, device and medium, the system comprising: a first device, used to establish a connection with a server, determine a target ID of a second device according to an ID of a second device stored in the server, and send a request message including an IP address of the first device and the target ID to the server; the server, used to receive the ID request message, determine a target SIM card number corresponding to the target ID according to the target ID and a correspondence between a stored ID and a SIM card number, and send a notification message including the IP address of the first device to the second device based on the target SIM card number; the second device, used to receive the notification message, and initiate a point-to-point connection to the first device according to the IP address of the first device; the first device is also used to receive the point-to-point connection and perform point-to-point communication with the second device.
[0057] In order to solve the problem that point-to-point communication between 5G devices is difficult to carry out smoothly, the embodiments of the present invention provide a point-to-point communication system, method, apparatus, equipment and medium.
[0058] Embodiment 1:
[0059] Figure 1 A schematic diagram of a point-to-point communication system provided for some embodiments of the present invention, such as Figure 1 As shown, the point-to-point communication system includes:
[0060] The first device 101 is used to establish a connection with the server 102, determine the target ID of the second device 103 according to the ID of the second device to be selected provided by the server 102, and send a request message including the IP address of the first device 101 and the target ID to the server 102;
[0061] The server 102 is configured to establish a connection with the first device, provide the first device 101 with the ID of the second device to be selected, receive the request information, determine the target SIM card number corresponding to the target ID according to the correspondence between the target ID and the stored ID and the Subscriber Identity Module (SIM) card number, and send notification information including the IP address of the first device 101 to the second device 103 based on the target SIM card number;
[0062] The second device 103 is used to receive the notification information and initiate a point-to-point connection to the first device 101 according to the IP address of the first device 101;
[0063] The first device 101 is further configured to receive the point-to-point connection and perform point-to-point communication with the second device 103 .
[0064] The point-to-point communication system provided by an embodiment of the present invention includes a server, a first device and a second device; wherein the first device and the second device are both devices with 5G communication functions, which can be called 5G devices.
[0065] Since 5G devices consume a lot of power, they are in sleep mode most of the time. However, in point-to-point communication, both 5G devices need to be activated. Therefore, when point-to-point communication needs to be established between 5G devices, an embodiment of the present invention proposes a method for waking up 5G devices and performing IP notification, so as to solve the problem that point-to-point communication between 5G devices is difficult to carry out smoothly.
[0066] The user can use the first device to establish a connection with the server first. The server pre-stores the ID of the second device. After receiving the connection request of the first device, it establishes a connection with the first device and provides the first device with the ID of the second device to be selected. The first device determines the target ID of the second device for point-to-point communication based on the ID of the second device to be selected provided by the server. Specifically, the first device can receive the input login account, send the login account to the server, and then receive the interface to be displayed sent by the server and display it. The display content contains the ID of each device. According to the displayed content, the user can conveniently select the target ID of the second device for point-to-point communication. After the first device determines the target ID of the second device, it sends a request message for establishing point-to-point communication to the server, and the request message carries the target ID and the IP address of the first device itself; after the server receives the request message, because the server pre-stores the correspondence between the device ID and the SIM card number, the server can determine the target SIM card number corresponding to the target ID based on the target ID of the second device and the correspondence, and then wake up the second device to enable it to communicate point-to-point with the first device. Specifically, the server can send a notification message containing the IP address of the first device to the second device.
[0067] The second device may be awakened by the notification information. The second device receives the notification information and then, based on the IP address of the first device included in the notification information, initiates a request for establishing a point-to-point connection to the first device.
[0068] After receiving the request for establishing a point-to-point connection, the first device can establish a point-to-point communication with the second device.
[0069] The first device in the system of the embodiment of the present invention establishes a connection with the server and determines the target ID of the second device, and sends a request message containing the target ID and the IP address of the first device to the server; the server determines the target SIM card number corresponding to the target ID according to the target ID and the saved correspondence between the ID and the SIM card number, and based on the target SIM card number, sends a notification message to the second device to wake up the second device, so that both devices are in an activated state; the second device initiates a point-to-point connection to the first device according to the IP address of the first device contained in the received notification message; the first device receives the point-to-point connection, thereby realizing a point-to-point communication connection between the first device and the second device, and realizing point-to-point communication between 5G devices.
[0070] Embodiment 2:
[0071] In order to enable smooth point-to-point communication between 5G devices, on the basis of the above embodiments, in an embodiment of the present invention, the server is specifically used to call the operator's SMS platform interface based on the target SIM card number, and send a notification message containing the IP address of the first device to the second device.
[0072] During point-to-point communication between the first device and the second device, the second device is awakened by the server. When the server sends a notification message containing the IP address of the first device to the second device, the server can achieve this by sending a text message, that is, calling the operator's text message platform interface to send a text message to the second device.
[0073] Specifically, the server may call the operator's SMS platform interface to send a SMS message including the IP address of the first device to the second device to wake up the second device.
[0074] In the embodiment of the present invention, the server can conveniently and quickly send notification information to the second device and wake up the second device by calling the operator's SMS platform interface, which effectively reduces the difficulty of 5G devices to perform point-to-point communication.
[0075] Embodiment 3:
[0076] In order to ensure the security of point-to-point communication between 5G devices, on the basis of the above embodiments, in an embodiment of the present invention, the server is also used to send an identity authentication request to the first device and receive identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, it is determined whether the identity information corresponding to the second device contains the identity authentication information, and if so, a notification message containing the IP address of the first device is sent to the second device.
[0077] In the process of point-to-point communication between some 5G devices that require high security, the server can authenticate the first device that first initiates the communication request information, determine whether the first device has the authority to conduct point-to-point communication with the second device, and then send a wake-up notification message to the second device after the verification is passed.
[0078] Specifically, for each device, the server stores the corresponding relationship between the identity information and the device. Because the first device needs to be verified, the server can obtain the corresponding relationship stored for the second device, wherein the corresponding relationship stores the identity information that can control the second device, such as the account that can control the second device. Therefore, the server sends an identity authentication request to the first device. After receiving the identity authentication request, the first device sends the identity authentication information to the server. After receiving the identity authentication information sent by the first device, the server determines whether the identity authentication information is included in the identity information corresponding to the second device. If so, it is determined that the first device has the authority to conduct point-to-point communication with the second device, and then a notification message containing the IP address of the first device is sent to the second device.
[0079] The following is described by a specific embodiment:
[0080] 5G drones are deployed in areas where rescue is needed. When there is a need for rescue, such as people getting lost or landslides, rescuers use the 5G drone controller, which can be a 5G mobile phone, to establish a connection with the 5G drone rescue server, determine the target ID of the 5G drone they want to connect to based on the ID of the 5G drone saved in the server, and send a request message to the 5G drone rescue server to establish point-to-point communication with the 5G drone, obtain control of the 5G drone, and thus remotely control the 5G drone through the 5G network, and call the camera built into the 5G drone to transmit back real-time images of the search and rescue area to search the search and rescue area. In order to ensure the security of point-to-point communication between rescue personnel and 5G drones through 5G mobile phones, the server will authenticate the 5G mobile phone after receiving the request information. It can be verified by requiring the user of the 5G mobile phone to log in to the identity account. The server determines whether the identity account corresponding to the 5G drone contains the target identity account based on the correspondence between the target identity account logged in by the 5G mobile phone received and the saved identity account and the 5G drone. If it does, that is, the identity authentication is passed, the server will call the communication operator's SMS interface to send a text message to the 5G drone, and the text message will contain the IP address of the 5G mobile phone.
[0081] In order to ensure the security of point-to-point communication between 5G devices, on the basis of the above embodiments, in an embodiment of the present invention, the server is also used to send a first rejection message to the first device if the identity information corresponding to the second device does not contain the identity authentication information.
[0082] If the identity information corresponding to the second device does not include the identity authentication information, it is determined that the first device does not have the authority to perform point-to-point communication with the second device, and the communication process is terminated, and a first rejection message is sent to the first device.
[0083] Specifically, taking the above application scenario as an example, if the server determines, based on the target identity account received by the 5G mobile phone for logging in and the correspondence between the saved identity account and the 5G drone, that is, the identity authentication fails, then the 5G mobile phone does not have the authority to conduct point-to-point communication with the 5G drone, and then terminates the communication process, and the server sends a first rejection message to the 5G mobile phone stating that it does not have the authority to conduct point-to-point communication with the 5G drone.
[0084] In an embodiment of the present invention, the server authenticates the first device that first initiates the communication request, thereby ensuring the security of point-to-point communication between 5G devices.
[0085] Embodiment 4:
[0086] In order to ensure the accuracy and security of point-to-point communication between 5G devices, on the basis of the above embodiments, in an embodiment of the present invention, the server is also used to send a first verification request to the first device, including obtaining the location information of the first device, and receive the first location information sent by the first device; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information, and if the distance is less than a preset distance threshold, send a notification information containing the IP address of the first device to the second device.
[0087] In some application scenarios where a limited distance is required for point-to-point communication between 5G devices, the distance threshold for point-to-point communication between the first device and the second device can be pre-set, and whether the first device and the second device have the authority for point-to-point communication can be determined based on the acquired location information of the first device and the second device and the distance threshold. The specific server sends a first verification request including obtaining the location information of the first device to the first device, and receives the first location information sent by the first device; obtains the saved second location information sent by the second device; determines the distance between the first device and the second device based on the first location information and the second location information, and further determines whether the distance between the first device and the second device is less than the distance threshold for point-to-point communication. If the distance is less than the preset distance threshold, it is determined that the first device and the second device can effectively communicate point-to-point, and a notification message containing the IP address of the first device is sent to the second device.
[0088] In a possible implementation, the location information of each second device may be pre-stored in the server. However, in some point-to-point communication applications, the location of the second device may move, such as 5G devices such as drones and shared bicycles. In order to facilitate point-to-point communication, the first device can accurately determine whether it can communicate with the second device based on the location information of the second device. In the embodiment of the present invention, the second device can periodically send its own location information to the server. After receiving the location information of each second device, the server updates the saved location information of the corresponding second device based on the location information.
[0089] The following is described by a specific embodiment:
[0090] Take shared bicycles as an example. When users check nearby shared bicycles on their mobile phones and cannot accurately find shared bicycles through mobile phone positioning due to interference from high-rise buildings in the urban area, they can use the mobile phone APP to communicate with the shared bicycles point-to-point, request to call the built-in camera of the shared bicycle, and transmit the camera data to the mobile phone APP. Users can make judgments based on the video images of the camera, which is convenient for users to find shared bicycles. However, users may endanger public safety when they communicate point-to-point with shared bicycles through mobile phone APP. For example, users communicate point-to-point with shared bicycles through mobile phone APP and call the camera of shared bicycles to monitor others. And it is convenient and fast only when the distance between users and shared bicycles is within the line of sight. Therefore, it can be limited that the point-to-point communication between mobile phones and shared bicycles must be within the line of sight.
[0091] Users can establish a connection with the shared bicycle server through the mobile phone APP, determine the target ID of the target shared bicycle to be connected based on the ID of the shared bicycle sent by the server, and send a request message to the server to establish point-to-point communication with the target shared bicycle, requesting to connect to the shared bicycle. The server obtains the request information of the mobile phone, and can send a first verification request including obtaining the location information of the mobile phone to the mobile phone, and receive the first location information sent by the mobile phone to obtain the location of the mobile phone. The server obtains the saved second location information of the target shared bicycle and obtains the location of the target shared bicycle. It further determines whether the distance between the mobile phone and the target shared bicycle is less than the distance threshold for point-to-point communication. If the distance is less than the preset distance threshold, it is determined that the mobile phone and the target shared bicycle can safely and effectively conduct point-to-point communication, and a notification message containing the IP address of the mobile phone is sent to the target shared bicycle.
[0092] In order to ensure the smooth progress of point-to-point communication between 5G devices, on the basis of the above embodiments, in an embodiment of the present invention, the server is also used to send a second rejection message to the first device if it is determined that the distance is not less than a preset distance threshold.
[0093] If the distance between the first device and the second device is not less than the preset distance threshold, it is determined that the first device and the second device do not meet the distance condition for point-to-point communication, and a second rejection message is sent to the first device indicating that the distance condition for point-to-point communication with the second device is not met.
[0094] Specifically, taking the above application scenario as an example, if the distance between the mobile phone and the target shared bicycle is not less than the distance threshold for point-to-point communication, it is determined that the mobile phone and the target shared bicycle cannot safely and effectively conduct point-to-point communication, and a second rejection message is sent to the mobile phone, indicating that the distance condition for point-to-point communication with the target shared bicycle is not met.
[0095] In an embodiment of the present invention, the server determines the distance between the first device and the second device by obtaining the first location information of the first device and the second location information of the second device, determines the relationship between the distance and a preset distance threshold, and judges whether the first device and the second device meet the distance conditions for point-to-point communication, thereby ensuring the security and effectiveness of point-to-point communication between 5G devices.
[0096] Based on the above embodiments, the present invention further provides a point-to-point communication method, which is applied to a server. Figure 2 One of the process schematic diagrams of a point-to-point communication method provided in some embodiments of the present invention, the process includes:
[0097] S201: Establish a connection with a first device, and provide the first device with an ID of a second device to be selected.
[0098] S202: Receive request information sent by the first device, including the IP address of the first device and the determined target ID of the second device.
[0099] S203: Determine the target SIM card number corresponding to the target ID according to the target ID and the stored correspondence between the ID and the SIM card number.
[0100] S204: Based on the target SIM card number, send notification information including the IP address of the first device to the second device, so that the second device can communicate with the first device in a point-to-point manner.
[0101] 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:
[0102] Send an identity authentication request to the first device and receive identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, determine whether the identity information corresponding to the second device contains the identity authentication information; if so, perform a subsequent operation of sending a notification information containing the IP address of the first device to the second device.
[0103] 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:
[0104] Sending a first verification request including obtaining location information of the first device to the first device, and receiving the first location information sent by the first device; obtaining the saved second location information of the second device; determining the distance between the first device and the second device based on the first location information and the second location information; if the distance is less than a preset distance threshold, performing a subsequent operation of sending a notification message including the IP address of the first device to the second device.
[0105] Based on the above embodiments, the present invention further provides a point-to-point communication device. Figure 3 One of the structural diagrams of a point-to-point communication device provided in some embodiments of the present invention is as follows Figure 3 As shown, the device comprises:
[0106] A first connection module 301, configured to establish a connection with a first device and provide the first device with an ID of a second device to be selected;
[0107] A first receiving module 302 is used to receive a request message sent by the first device, including the IP address of the first device and the determined target ID of the second device;
[0108] A determination module 303, configured to determine a target SIM card number corresponding to the target ID according to the target ID and the stored correspondence between the ID and the SIM card number;
[0109] The first sending module 304 is configured to send notification information including the IP address of the first device to the second device based on the target SIM card number, so that the second device can communicate with the first device in a point-to-point manner.
[0110] In a possible implementation, the device further includes:
[0111] The verification module 305 is used to send an identity authentication request to the first device and receive the identity authentication information sent by the first device; based on the correspondence between the identity authentication information and the saved identity information and the second device, determine whether the identity information corresponding to the second device contains the identity authentication information, and if so, trigger the first sending module 304.
[0112] In a possible implementation, the verification module 305 is also used to send a first verification request to the first device, including obtaining the location information of the first device, and receive the first location information sent by the first device; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information; if the distance is less than a preset distance threshold, trigger the first sending module 304.
[0113] The device can be specifically deployed in a server, and other functions of the server are specifically described in the above other embodiments.
[0114] Based on the above embodiments, the present invention further provides a point-to-point communication method, which is applied to a second device. Figure 4 The second process diagram of a point-to-point communication method provided by some embodiments of the present invention. Figure 4 As shown, the method includes:
[0115] S401: Receive notification information including the IP address of the first device sent by the server.
[0116] S402: Initiate a point-to-point connection to the first device according to the IP address of the first device.
[0117] Based on the above embodiments, the present invention further provides a point-to-point communication device. Figure 5 A second structural diagram of a point-to-point communication device provided in some embodiments of the present invention, such as Figure 5 As shown, the device comprises:
[0118] The second receiving module 501 is used to receive notification information including the IP address of the first device sent by the server;
[0119] The second connection module 502 is configured to initiate a point-to-point connection to the first device according to the IP address of the first device.
[0120] The apparatus may be specifically deployed in a second device, and other functions of the second device may be specifically described in the above other embodiments.
[0121] Based on the above embodiments, the present invention further provides a point-to-point communication method, which is applied to a first device. Figure 6 The third process diagram of a point-to-point communication method provided by some embodiments of the present invention. Figure 6 As shown, the method includes:
[0122] S601: 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 a request message including the IP address of the first device and the target ID to the server.
[0123] S602: Receive a point-to-point connection sent by a second device, and perform point-to-point communication with the second device.
[0124] Based on the above embodiments, the present invention further provides a point-to-point communication device. Figure 7 A third structural diagram of a point-to-point communication device provided in some embodiments of the present invention, such as Figure 7 As shown, the device comprises:
[0125] The second sending module 701 is used to establish a connection with the server, determine the target ID of the second device according to the ID of the second device to be selected provided by the server, and send a request message including the IP address of the first device and the target ID to the server.
[0126] The third connection module 702 is used to initiate a point-to-point connection to the first device according to the IP address of the first device.
[0127] The apparatus may be specifically deployed in a first device, and other functions of the first device may be specifically described in the above other embodiments.
[0128] Based on the above embodiments, the present invention further provides an electronic device, Figure 8 A schematic diagram of an electronic device structure provided in some embodiments of the present invention, such as Figure 8 As shown, it includes: 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 communicate with each other through the communication bus 804;
[0129] The memory 803 stores a computer program, and when the program is executed by the processor 801, the processor 801 completes the steps of any one of the above-mentioned point-to-point communication methods.
[0130] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0131] The communication interface 802 is used for communication between the above electronic device and other devices.
[0132] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0133] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0134] Based on the above embodiments, the present invention provides a computer-readable storage medium, which stores a computer program executable by an electronic device, and the computer-executable instructions are used to enable a computer to execute the process executed by any of the above-mentioned point-to-point communication methods.
[0135] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these 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 also intended to include these modifications and variations.
Claims
1. A point-to-point communication system, characterized in that: The system comprises: The first device is used to establish a connection with a server, determine a target ID of the second device according to the ID of the second device to be selected provided by the server, and send a request message including the IP address of the first device and the target ID to the server; The server is configured to establish a connection with the first device, provide the first device with an ID of a second device to be selected, receive the request information, determine a target SIM card number corresponding to the target ID according to the target ID and a stored correspondence between the ID and the SIM card number, and send notification information including the IP address of the first device to the second device based on the target SIM card number; The server is further configured to send an identity authentication request to the first device and receive identity authentication information sent by the first device; determine whether the identity information corresponding to the second device contains the identity authentication information according to the identity authentication information and the correspondence between the stored identity information and the second device; if so, send a notification message containing the IP address of the first device to the second device; if the identity information corresponding to the second device does not contain the identity authentication information, send a first rejection message to the first device; The second device is configured to receive the notification information and initiate a point-to-point connection to the first device according to the IP address of the first device; The first device is further configured to receive the point-to-point connection and perform point-to-point communication with the second device.
2. The point-to-point communication system according to claim 1, characterized in that: The server is specifically configured to call the operator's SMS platform interface 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 point-to-point communication system according to claim 1, characterized in that: The server is also used 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; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information, and if the distance is less than a preset distance threshold, send a notification message including the IP address of the first device to the second device.
4. The point-to-point communication system according to claim 3, characterized in that: 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.
5. A point-to-point communication method, characterized in that: Applied to a server, the method comprises: Establishing a connection with a first device, and providing the first device with an ID of a second device to be selected; receiving a request message sent by the first device, including the IP address of the first device and the determined target ID of the second device; Determine the target SIM card number corresponding to the target ID according to the target ID and the stored correspondence between the ID and the SIM card number, and send notification information including the IP address of the first device to the second device based on the target SIM card number, so that the second device and the first device can communicate point-to-point; Before sending the notification information including the IP address of the first device to the second device, the method further includes: Send an identity authentication request to the first device and receive identity authentication information sent by the first device; determine whether the identity information corresponding to the second device contains the identity authentication information based on the correspondence between the identity authentication information and the saved identity information and the second device; if so, perform a subsequent operation of sending a notification message containing the IP address of the first device to the second device; if the identity information corresponding to the second device does not contain the identity authentication information, send a first rejection message to the first device.
6. The point-to-point communication method according to claim 5, characterized in that: 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 obtaining location information of the first device to the first device, and receiving first location information sent by the first device; Acquire the saved second location information of the second device; determining a distance between the first device and the second device according to the first location information and the second location information; If the distance is less than a preset distance threshold, a subsequent operation of sending notification information including the IP address of the first device to the second device is performed.
7. A point-to-point communication device, characterized in that: The device comprises: A first connection module, configured to establish a connection with a first device and provide the first device with an ID of a second device to be selected; A first receiving module, configured to receive a request message sent by the first device, including the IP address of the first device and the determined target ID of the second device; A determination module, used to determine the target SIM card number corresponding to the target ID according to the target ID and the correspondence between the stored ID and the SIM card number; a verification module, configured to send an identity authentication request to the first device and receive identity authentication information sent by the first device; determine whether the identity information corresponding to the second device contains the identity authentication information according to the corresponding relationship between the identity authentication information and the stored identity information and the second device, and if so, trigger the first sending module; if the identity information corresponding to the second device does not contain the identity authentication information, send a first rejection message to the first device; The first sending module is used to send notification information including the IP address of the first device to the second device based on the target SIM card number, so that the second device can communicate with the first device in a point-to-point manner.
8. The device according to claim 7, characterized in that The device also includes: A verification module is used to send a first verification request including obtaining the location information of the first device to the first device, and receive the first location information sent by the first device; obtain the saved second location information of the second device; determine the distance between the first device and the second device based on the first location information and the second location information; if the distance is less than a preset distance threshold, trigger the first sending module.
9. An electronic device, characterized in that: The electronic device comprises at least a processor and a memory, and the processor is used to implement the steps of a point-to-point communication method as described in any one of claims 5-6 when executing a computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the steps of a point-to-point communication method as described in any one of claims 5-6.
Citation Information
Patent Citations
Method and mobile communication system capable of establishing peer-to-peer transmission
CN102638789A
Service data transfer method and terminal
CN103888935A
Smart device-based home network system and control method therefor
CN105580344A
Remote wakening system and method based on P2P
CN107659414A
D2D communication discovery method, device and system
CN110191440A
