JP7299268B2 - PEER-TO-PEER CONNECTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM - Google Patents

PEER-TO-PEER CONNECTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM Download PDF

Info

Publication number
JP7299268B2
JP7299268B2 JP2021094947A JP2021094947A JP7299268B2 JP 7299268 B2 JP7299268 B2 JP 7299268B2 JP 2021094947 A JP2021094947 A JP 2021094947A JP 2021094947 A JP2021094947 A JP 2021094947A JP 7299268 B2 JP7299268 B2 JP 7299268B2
Authority
JP
Japan
Prior art keywords
peer
terminal device
connection
service
discovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021094947A
Other languages
Japanese (ja)
Other versions
JP2021141609A (en
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.)
Apollo Intelligent Connectivity Beijing Technology Co Ltd
Original Assignee
Apollo Intelligent Connectivity Beijing Technology Co 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 Apollo Intelligent Connectivity Beijing Technology Co Ltd filed Critical Apollo Intelligent Connectivity Beijing Technology Co Ltd
Publication of JP2021141609A publication Critical patent/JP2021141609A/en
Application granted granted Critical
Publication of JP7299268B2 publication Critical patent/JP7299268B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Description

本開示は、ネットワーク技術の分野に関し、特に、無線接続技術の分野に関する。 The present disclosure relates to the field of network technology, and more particularly to the field of wireless access technology.

無線接続(Wi-Fi)ピアツーピア(Peer to Peer、略称P2P)技術は柔軟性が高い、遠隔接続が可能、伝送データ量が大きい等の特徴から、注目を集めるようになり、効率的でかつ安定的で、正確な接続方式を確立することが重要な課題である。Wi-Fi P2P技術はアンドロイド(android)システムを搭載したスマートデバイス間の接続に適用される。 Wireless connection (Wi-Fi) peer-to-peer (P2P) technology has attracted a lot of attention due to its flexibility, remote connection capability, large amount of data transmission, etc., and has become an efficient and stable technology. Establishing a suitable and accurate connection method is an important issue. Wi-Fi P2P technology is applied to the connection between smart devices with android system.

従来のWi-Fi P2Pには一般に2種の接続形態がある。 Conventional Wi-Fi P2P generally has two topologies.

形態1は、サービス発見(discoverServices)で、即ちローカルサービスを発見することである。まず2つの端末をサービス側及びクライアントに設定し、両方が特定の名称を取り決める。サービス側がWi-Fi P2P接続をオンし、当該名称でローカルサービスを作成し、クライアントがローカルサービスの発見を開始し、発見したサービスの中から、当該特定の名称とのマッチングで接続すべきサービス側であるかどうかを判断し、その上で接続を確立する。 Mode 1 is service discovery (discoverServices), ie discovering local services. First, two terminals are set up as a service side and a client, and both agree on a specific name. The service side turns on the Wi-Fi P2P connection, creates a local service with that name, the client starts discovering the local service, and among the found services, the service side that should be connected by matching that particular name. , and then establish a connection.

形態2はピア発見(discoverPeers)で、即ちピアを発見することである。まず2つの端末をサービス側及びクライアントに設定し、サービス側がWi-Fi P2P接続を起動する。クライアントがピア(Peers)発見を行い、Wi-Fi P2Pをオンした周辺デバイスリストを得る。次に、当該デバイスリストのデバイスを走査して接続することで、ターゲットのサービス側デバイスを見つける。 Mode 2 is peer discovery (discoverPeers), ie discovering peers. First, two terminals are set as the service side and the client, and the service side activates the Wi-Fi P2P connection. The client does Peers discovery and gets a list of peripheral devices that have turned on Wi-Fi P2P. Next, the target service side device is found by scanning and connecting to the devices in the device list.

前記形態1は効率が悪く、長時間にわたってターゲットデバイス見つけられないことがある。形態2ではWi-Fi P2P接続をオンした周辺デバイスを全て検出しなければならず、その後ポーリングしてどのデバイスがターゲットのサービス側デバイスであるかを決定し接続を確立する。このような方法は効率が悪く欠点がある。 Mode 1 is inefficient and may not find the target device for a long time. Mode 2 must discover all peripheral devices that have turned on the Wi-Fi P2P connection, then poll to determine which device is the target serving device and establish the connection. Such methods are inefficient and have drawbacks.

本開示は、ピアツーピア接続方法、装置、電子デバイス及び記憶媒体を提供する。 The present disclosure provides peer-to-peer connection methods, apparatus, electronic devices and storage media.

本開示の一態様では、
サービス発見及びピア発見を起動することと、
先にサービス発見によりサービス端末デバイスを発見したことに応じて、サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、サービス端末デバイスとのピアツーピア接続を開始し、サービス端末デバイスの識別情報を保存することと、
先にピア発見によりピアデバイス対象リストを発見したことに応じて、ピアデバイス対象リストにおいてサービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、当該デバイスとのピアツーピア接続を開始することとを含む、ピアツーピア接続方法を提供する。
In one aspect of the present disclosure,
activating service discovery and peer discovery;
Initiating a peer-to-peer connection with the service terminal device if the instance name of the service terminal device matches the pre-arranged name in response to previously discovering the service terminal device by service discovery, and storing identifying information;
In response to previously discovering a peer device target list by peer discovery, if there is a device matching the identification information of the service terminal device in the peer device target list, starting a peer-to-peer connection with that device. To provide a peer-to-peer connection method, including:

さらに、本開示の一態様では、
サービス発見に対する監視及びピア発見に対する監視を起動することと、
サービス発見に対する監視方式又はピア発見に対する監視により接続要求メッセージを監視できたことに応じて、当該接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックすることとを含む、別のピアツーピア接続方法を提供する。
Furthermore, in one aspect of the present disclosure,
activating monitoring for service discovery and monitoring for peer discovery;
and feeding back a connection success message to the client terminal device that sent the connection request message in response to the connection request message being monitored by the monitoring method for service discovery or the monitoring for peer discovery. I will provide a.

さらに、本開示の一態様では、
サービス発見及びピア発見を起動するための同時スキャンモジュールと、
先にサービス発見によりサービス端末デバイスを発見したことに応じて、サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、サービス端末デバイスとのピアツーピア接続を開始し、サービス端末デバイスの識別情報を保存するための第1接続モジュールと、
先にピア発見によりピアデバイス対象リストを発見したことに応じて、ピアデバイス対象リストにおいてサービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、当該デバイスとのピアツーピア接続を開始するための第2接続モジュールとを備える、ピアツーピア接続装置を提供する。
Furthermore, in one aspect of the present disclosure,
a concurrent scanning module for triggering service discovery and peer discovery;
Initiating a peer-to-peer connection with the service terminal device if the instance name of the service terminal device matches the pre-arranged name in response to previously discovering the service terminal device by service discovery, and a first connection module for storing identification information;
If a device matching the identification information of the service terminal device exists in the peer device target list in response to having previously discovered the peer device target list by peer discovery, a first step for starting a peer-to-peer connection with that device. 2 connection modules.

さらに、本開示の一態様では、
サービス発見に対する監視及びピア発見に対する監視を起動するための同時監視モジュールと、
サービス発見に対する監視方式又はピア発見に対する監視により接続要求メッセージを監視できたことに応じて、当該接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックするための接続確立モジュールとを含む、ピアツーピア接続装置を提供する。
Furthermore, in one aspect of the present disclosure,
a concurrent monitoring module for activating monitoring for service discovery and monitoring for peer discovery;
a connection establishing module for feeding back a connection success message to the client terminal device that sent the connection request message in response to the connection request message being monitored by the monitoring method for service discovery or the monitoring for peer discovery. Provide connection equipment.

本開示の実施形態では、ピアツーピア接続型のクライアント端末デバイスがサービス発見及びピア発見を同時に起動し、先にサービス発見によりサービス端末デバイスを発見した場合には、当該サービス端末デバイスとの接続を確立し、当該サービス端末デバイスの識別情報を保存し、先にピア発見によりピアデバイス対象リストを発見した場合には、当該リストから事前に保存したサービス端末デバイスの識別情報にマッチングするデバイスを見つければ、当該デバイスをターゲットデバイスに決定し、当該デバイスとの接続を確立することができる。よって、このような方法は毎回の接続でサービス発見(discoverServices)を用いるため長時間にわたってターゲットデバイスを見つけられないことや、ピア発見(discoverPeers)のにより、発見した各デバイスにポーリングを行うことが避けられるため、Wi-Fi P2P接続の確立効率が向上する。 In the embodiment of the present disclosure, a peer-to-peer connection type client terminal device starts service discovery and peer discovery at the same time, and if a service terminal device is discovered by service discovery first, establishes a connection with the service terminal device. , the identification information of the service terminal device is stored, and if a peer device target list is found by peer discovery first, if a device that matches the pre-stored identification information of the service terminal device is found from the list, A device can be determined to be a target device and a connection can be established with the device. Therefore, such a method avoids long-term inability to find the target device by using discoverServices for each connection, and polling each discovered device by peer discovery (discoverPeers). Therefore, the efficiency of establishing a Wi-Fi P2P connection is improved.

なお、上述した内容が本開示の実施形態の重要な特徴を示すためではなく、本開示の範囲の限定にもならない。本開示の他の特徴は下記の説明から理解しやすくなる。 It should be noted that the above description is not intended to indicate key features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easier to understand from the description below.

次に記載の各図面は本発明の理解を促すためのもので、本開示の限定にならない。
本開示の実施形態によるピアツーピア接続方法の実現のフローチャートである。 本開示の実施形態によるピアツーピア接続確立プロセスのフローチャートである。 本開示の実施形態による別のピアツーピア接続方法の実現のフローチャートである。 本開示の実施形態によるピアツーピア接続装置400の構造模式図である。 本開示の実施形態によるピアツーピア接続装置500の構造模式図である。 本開示の実施形態によるピアツーピア接続方法を実現するための電子デバイスのブロック図である。
The drawings described below are provided to facilitate understanding of the present invention and are not limiting of the present disclosure.
4 is a flow chart of implementing a peer-to-peer connection method according to an embodiment of the present disclosure; 4 is a flowchart of a peer-to-peer connection establishment process according to an embodiment of the present disclosure; 4 is a flow chart of implementing another peer-to-peer connection method according to an embodiment of the present disclosure; FIG. 4 is a structural schematic diagram of a peer-to-peer connection device 400 according to an embodiment of the present disclosure; FIG. 5 is a structural schematic diagram of a peer-to-peer connection device 500 according to an embodiment of the present disclosure; 1 is a block diagram of an electronic device for implementing a peer-to-peer connection method according to an embodiment of the present disclosure; FIG.

次に、図面を参照して本開示の例示的な実施形態を説明し、中には理解を促すために本開示の実施形態の様々な詳細が含まれるが、それが例示的な内容に過ぎない。したがって、当業者が理解したように、本開示の範囲や趣旨から逸脱せずここに記載の実施形態に対し様々な変更や修正を行うことができる。また、次の説明では簡素化の観点上、周知の機能及び構造の説明は省略する。 Exemplary embodiments of the present disclosure will now be described with reference to the drawings, in which various details of the embodiments of the present disclosure are included for the sake of understanding and are exemplary only. do not have. Accordingly, as those skilled in the art will appreciate, various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Also, in the following description, descriptions of well-known functions and structures are omitted from the viewpoint of simplification.

本開示の実施形態はピアツーピア接続方法を提供し、当該方法はピアツーピア接続型のクライアント端末デバイスに適用される。図1は本開示の実施形態によるピアツーピア接続方法の実現のフローチャートである。ステップS101、S102、S103を含む。 An embodiment of the present disclosure provides a peer-to-peer connection method, which is applied to a peer-to-peer connected client terminal device. FIG. 1 is a flow chart of implementing a peer-to-peer connection method according to an embodiment of the present disclosure. It includes steps S101, S102, and S103.

ステップS101で、サービス発見(discoverServices)及びピア発見(discoverPeers)を起動する。 In step S101, service discovery (discoverServices) and peer discovery (discoverPeers) are activated.

ステップS102で、先にサービス発見によりサービス端末デバイスを発見したことに応じて、サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、サービス端末デバイスとのピアツーピア接続を開始し、サービス端末デバイスの識別情報を保存する。 in step S102, if the instance name of the service terminal device matches the pre-arranged name in response to having previously discovered the service terminal device through service discovery, initiate a peer-to-peer connection with the service terminal device; Stores the identity of the service terminal device.

ステップS103で、先にピア発見によりピアデバイス対象リストを発見したことに応じて、ピアデバイス対象リストにおいて当該サービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、当該デバイスとのピアツーピア接続を開始する。 In step S103, when a device matching the identification information of the service terminal device exists in the peer device target list in response to the discovery of the peer device target list by peer discovery, peer-to-peer connection with the device is established. Start.

任意選択で、前記ステップS101を実行する前に、まずWi-Fi P2P接続をサポートする2つのアンドロイド(android)デバイスの一方をサービス端末デバイスとして、サービス端末デバイスにサービス側アプリケーション(Application、略称APP)をインストールし、他方をクライアント端末デバイスとして、クライアント端末デバイスにクライアントアプリケーション(APP)をインストールする。 Optionally, before executing step S101, first, one of the two android devices supporting Wi-Fi P2P connection is set as a service terminal device, and a service side application (APP) is installed on the service terminal device. and install a client application (APP) on the client terminal device, with the other being the client terminal device.

サービス側アプリケーション(APP)を起動して、サービス側アプリケーション(APP)がサービス端末デバイスのWi-Fi P2Pを初期化する。クライアントアプリケーション(APP)を起動して、クライアントアプリケーション(APP)がクライアント端末デバイスのサービス発見(discoverServices)発見方式及びピア発見(discoverPeers)発見方式を同時に起動するとともに、前記2種の発見により発見し、即ち前記ステップS101を実行する。 A service-side application (APP) is launched, and the service-side application (APP) initializes the Wi-Fi P2P of the service terminal device. launching a client application (APP), the client application (APP) simultaneously launching a client terminal device's service discovery (discoverServices) discovery method and peer discovery (discoverPeers) discovery method, and discovering through the two types of discovery; That is, step S101 is executed.

接続を確立する前に、クライアント端末デバイスとサービス端末デバイスが事前に名称を取り決め、例えば、インスタンス名(InstanceName)である。 Before establishing a connection, the client terminal device and the service terminal device pre-negotiate a name, for example, InstanceName.

任意選択で、前記ステップS102では、クライアント端末デバイスが先にサービス端末デバイス(ServiceDevice)を発見した場合に、インスタンス名(InstanceName)を取得し、Wi-Fi P2Pデバイス(wifiP2PDevice)対象を見つける。当該インスタンス名(instanceName)が事前に取り決めた名称であり、且つ接続中でない場合に、当該デバイスに対して接続を開始する。クライアント端末デバイスがサービス端末デバイスとWi-Fi P2P接続を確立した後、クライアント端末デバイスに当該サービス端末デバイスの識別情報、例えば、一意識別アドレス情報(deviceAddress)を記憶する。 Optionally, in said step S102, if the client terminal device has found a service terminal device (ServiceDevice) first, it obtains an instance name (InstanceName) and finds a Wi-Fi P2P device (wifiP2PDevice) target. If the instance name (instanceName) is a prearranged name and the device is not connected, a connection is initiated to the device. After the client terminal device establishes a Wi-Fi P2P connection with the service terminal device, the client terminal device stores identification information of the service terminal device, such as unique identification address information (deviceAddress).

即ち、任意選択で、前記ステップS102でサービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、サービス端末デバイスとのピアツーピア接続を開始することは、
サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致し、且つ当該サービス端末デバイスが接続中でない場合に、当該サービス端末デバイスに接続要求メッセージを送信するステップと、
サービス端末デバイスから接続成功メッセージを受信するステップとを含む。
That is, optionally initiating a peer-to-peer connection with the service terminal device when the instance name of the service terminal device and the pre-arranged name in step S102 match:
sending a connection request message to the service terminal device when the instance name of the service terminal device matches the pre-arranged name and the service terminal device is not connected;
and receiving a connection success message from the service terminal device.

任意選択で、前記ステップS103では、先にピア発見(discoverPeers)でwifiP2PDevice対象を発見した場合に、これらのデバイスを走査し、デバイスが前記ステップで保存した一意識別アドレス情報(deviceAddress)に一致し、且つ接続中でない場合に、当該デバイスに対して接続を開始する。 Optionally, in said step S103, if the wifiP2PDevice target was previously discovered by peer discovery (discoverPeers), scan these devices and determine if the device matches the unique identification address information (deviceAddress) saved in said step. , and if the device is not connected, it initiates a connection to the device.

即ち、任意選択で、前記ステップS103でピアデバイス対象リストにおいてサービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、当該デバイスとのピアツーピア接続を開始することは、
ピアデバイス対象リストにおいて当該サービス端末デバイスの識別情報にマッチングするデバイスが存在し、且つ当該デバイスが接続中でない場合に、当該デバイスに接続要求メッセージを送信するステップと、
当該デバイスから接続成功メッセージを受信するステップとを含む。
That is, optionally, if there is a device that matches the identification information of the service terminal device in the peer device target list in step S103, initiating a peer-to-peer connection with the device includes:
If there is a device matching the identification information of the service terminal device in the peer device target list and the device is not connected, sending a connection request message to the device;
receiving a connection success message from the device.

いくつかの実施形態では、サービス端末デバイスはサービス発見(discoverServices)に対する監視及びピア発見(discoverPeers)に対する監視を同時に起動し、クライアント端末デバイスが任意の発見により、クライアント端末デバイスが送信した接続要求メッセージを監視すると、クライアント端末デバイスとの接続を確立する。 In some embodiments, the service terminal device simultaneously initiates monitoring for service discovery (discoverServices) and monitoring for peer discovery (discoverPeers), and any discovery causes the client terminal device to receive a connection request message sent by the client terminal device. When monitored, it establishes a connection with the client terminal device.

図2は、本開示の実施形態によるピアツーピア接続確立プロセスのフローチャートであり、以下のステップを含む。 FIG. 2 is a flowchart of a peer-to-peer connection establishment process according to an embodiment of the present disclosure, including the following steps.

クライアント端末デバイスがクライアントアプリケーション(APP)を起動し、サービス端末デバイスがサービス側アプリケーション(APP)を起動する。ここで、クライアント端末デバイスとはクライアントアプリケーション(APP)をインストールしたアンドロイドデバイスであり、サービス端末デバイスとはサービス側アプリケーション(APP)をインストールしたアンドロイドデバイスである。クライアント端末デバイス及びサービス端末デバイスがそれぞれのアプリケーション(APP)を起動し、起動時間には特に前後関係が設けられない。 A client terminal device launches a client application (APP) and a service terminal device launches a service side application (APP). Here, the client terminal device is an android device with a client application (APP) installed, and the service terminal device is an android device with a service side application (APP) installed. Client terminal devices and service terminal devices launch their respective applications (APPs), and there is no particular context for launch times.

サービス側アプリケーション(APP)がサービス端末デバイスのWi-Fi P2P接続をオンし、サービス側を作成する。クライアント端末デバイスがサービス発見(discoverServices)及びピア発見(discoverPeers)を起動し、サービス発見(discoverServices)方式及びピア発見(discoverPeers)により同時に行う。また、サービス端末デバイスは前記2種の発見方式に対する監視を開始する。サービス端末デバイス及びクライアント端末デバイスによる前記動作の実行は両側でそれぞれ行われ、両者の実行時間には特に前後関係が設けられない。 A service side application (APP) turns on the service terminal device's Wi-Fi P2P connection and creates a service side. A client terminal device initiates service discovery (discoverServices) and peer discovery (discoverPeers) and simultaneously by the service discovery (discoverServices) method and peer discovery (discoverPeers). The service terminal device also starts monitoring for the two discovery schemes. The execution of the operations by the service terminal device and the client terminal device are performed on both sides respectively, and there is no particular context between their execution times.

先にサービス発見(discoverServices)によりローカルサービスデバイスを監視した場合に、クライアント端末デバイスは当該デバイスの名称が事前に保存したインスタンス名(InstanceName)に一致するかどうか、当該デバイスが接続中でないかを判断し、名称が一致し且つ接続中でない場合に、サービス端末デバイスとの接続を開始する。サービス端末デバイスはサービス発見(discoverServices)に対する監視により当該接続要求を監視し、当該接続要求を受け取る。クライアント端末デバイスが接続成功のコールバック関数を受信し、当該サービス端末デバイスの一意識別アドレス情報(deviceAddress)をローカルにキャッシュすると、接続プロセスが完了する。 If the local service device was previously monitored by discoverServices, the client terminal device determines whether the name of the device matches the pre-stored InstanceName and whether the device is not connected. and if the names match and the connection is not in progress, the connection with the service terminal device is initiated. A service terminal device monitors the connection request by monitoring for discoverServices and receives the connection request. The connection process is completed when the client terminal device receives the successful connection callback function and locally caches the unique identification address information (deviceAddress) of the service terminal device.

先にピア発見(discoverPeers)のによりピア(Peers)デバイス対象リストを発見した場合に、当該リストから、キャッシュしていた一意識別アドレス情報(deviceAddress)に一致するデバイスを検索し、アドレス情報が一致するデバイスが見つかり、当該デバイスが接続中でない場合に、当該デバイスはターゲットのサービス端末デバイスであることを示し、クライアント端末デバイスが当該サービス端末デバイスとの接続を開始する。サービス端末デバイスがピア発見(discoverPeers)に対する監視により当該接続要求を監視し、当該接続要求を受け取り、クライアント端末デバイスに接続成功をフィードバックすると、接続プロセスが完了する。 When the Peers device target list is discovered by peer discovery (discoverPeers) first, a device that matches the cached unique identification address information (deviceAddress) is searched from the list, and the address information matches. If the device is found and the device is not connected, indicating that the device is the target service terminal device, the client terminal device initiates connection with the service terminal device. The connection process is completed when the service terminal device monitors the connection request by monitoring for discoverPeers, receives the connection request, and feeds back the connection success to the client terminal device.

上述したように、クライアント端末デバイスが既にサービス発見(discoverServices)のによりサービス端末デバイスを発見し、且つ当該サービス端末デバイスとWi-Fi P2P接続を確立した場合に、後に再びWi-Fi P2P接続を確立する時には、先にピア発見(discoverPeers)のによりピア(Peers)デバイス対象リストを発見した場合に、当該リストから事前に保存したデバイスアドレス(deviceAddress)に一致するデバイスを検索し、当該デバイスに対してWi-Fi P2P接続を開始してもよく、当該リスト中の各デバイスをポーリングせずに済むため、P2P接続の確立効率が向上する。 As described above, if the client terminal device has already discovered a service terminal device through discoverServices and established a Wi-Fi P2P connection with the service terminal device, then establish a Wi-Fi P2P connection again later. When doing so, if a peer device target list is discovered by peer discovery (discoverPeers) first, a device that matches a pre-stored device address (deviceAddress) is searched from the list, and for the device A Wi-Fi P2P connection may be initiated without polling each device in the list, thus increasing the efficiency of establishing a P2P connection.

さらに、本開示の実施形態は、ピアツーピア接続型のサービス端末デバイスに適用されるピアツーピア接続方法を提供する。図3は、本開示の実施形態による別のピアツーピア接続方法の実現のフローチャートである。ステップS301、S302を含む。 Furthermore, embodiments of the present disclosure provide a peer-to-peer connection method applied to a peer-to-peer connection type service terminal device. FIG. 3 is a flow chart of implementing another peer-to-peer connection method according to an embodiment of the present disclosure. It includes steps S301 and S302.

ステップS301で、サービス発見に対する監視及びピア発見に対する監視を起動する。 In step S301, monitoring for service discovery and monitoring for peer discovery are activated.

ステップS302で、サービス発見に対する監視方式又はピア発見に対する監視により接続要求メッセージを監視できたことに応じて、当該接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックする。 In step S302, feed back a connection success message to the client terminal device that sent the connection request message in response to the connection request message being monitored by the service discovery monitoring method or the peer discovery monitoring.

上述したように、サービス端末デバイスはWi-Fi P2P接続機能をオンした後、2種の発見方式に対する監視を同時に行うことができ、クライアント端末デバイスがサービス発見(discoverServices)発見方式を選ぶか、ピア発見(discoverPeers)発見方式を選ぶかに関らず、いずれもの場合も当該クライアント端末デバイスの接続要求を監視することができる。 As described above, after the service terminal device turns on the Wi-Fi P2P connection function, it can monitor for two kinds of discovery methods at the same time. discoverPeers Regardless of which discovery scheme is chosen, in either case, connection requests of the client terminal device can be monitored.

さらに、本開示の実施形態はピアツーピア接続装置を提供し、当該装置はピアツーピア接続型のクライアント端末デバイスであってもよい。図4は本開示の実施形態によるピアツーピア接続装置400の構造模式図である。 Further, embodiments of the present disclosure provide a peer-to-peer connection device, which may be a peer-to-peer connection type client terminal device. FIG. 4 is a structural schematic diagram of a peer-to-peer connection device 400 according to an embodiment of the present disclosure.

サービス発見及びピア発見を起動するための同時スキャンモジュール401と、
先にサービス発見によりサービス端末デバイスを発見したことに応じて、サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、サービス端末デバイスとのピアツーピア接続を開始し、サービス端末デバイスの識別情報を保存するための第1接続モジュール402と、
先にピア発見によりピアデバイス対象リストを発見したことに応じて、ピアデバイス対象リストにおいてサービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、当該デバイスとのピアツーピア接続を開始する第2接続モジュール403とを含む。
a concurrent scanning module 401 for activating service discovery and peer discovery;
Initiating a peer-to-peer connection with the service terminal device if the instance name of the service terminal device matches the pre-arranged name in response to previously discovering the service terminal device by service discovery, and a first connection module 402 for storing identification information;
A second connection for starting a peer-to-peer connection with a device that matches the identification information of the service terminal device in the peer device target list in response to discovering the peer device target list by peer discovery first. module 403;

任意選択で、前記事前に取り決めた名称は、ピアツーピア接続型のクライアント端末デバイスとサービス端末デバイスが事前に取り決めた名称を含む。 Optionally, said pre-arranged name comprises a name pre-arranged by a peer-to-peer connected client terminal device and a service terminal device.

任意選択で、前記第1接続モジュール402は、
サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致し、且つサービス端末デバイスが接続中でない場合に、サービス端末デバイスに接続要求メッセージを送信し、当該サービス端末デバイスから接続成功メッセージを受信するために用いられる。
Optionally, said first connection module 402:
If the instance name of the service terminal device matches the prearranged name and the service terminal device is not connected, a connection request message is sent to the service terminal device, and a connection success message is received from the service terminal device. used for

任意選択で、前記第2接続モジュール403は、
ピアデバイス対象リストにおいてサービス端末デバイスの識別情報にマッチングするデバイスが存在し、且つ当該デバイスが接続中でない場合に、当該デバイスに接続要求メッセージを送信し、当該デバイスから接続成功メッセージを受信するために用いられる。
Optionally, said second connection module 403 is
To send a connection request message to the device and receive a connection success message from the device when there is a device matching the identification information of the service terminal device in the peer device target list and the device is not connected Used.

本開示の実施形態による装置の各モジュールの機能は、前記方法100での対応の記載を参照できるため、ここで重複を避けるために説明を省略する。 The functions of each module of the apparatus according to the embodiments of the present disclosure can be referred to the corresponding description in the method 100, so the description is omitted here to avoid duplication.

さらに、本開示の実施形態は別のピアツーピア接続装置を提供し、当該装置はピアツーピア接続型のサービス端末デバイスであってもよい。図5は本開示の実施形態によるピアツーピア接続装置500の構造模式図である。 Further, embodiments of the present disclosure provide another peer-to-peer connection device, which may be a peer-to-peer connection type service terminal device. FIG. 5 is a structural schematic diagram of a peer-to-peer connection device 500 according to an embodiment of the present disclosure.

サービス発見に対する監視及びピア発見に対する監視を起動するための同時監視モジュール501と、
サービス発見に対する監視方式又はピア発見に対する監視により接続要求メッセージを監視できたことに応じて、当該接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックするための接続確立モジュール502とを含む。
a concurrent monitoring module 501 for activating monitoring for service discovery and monitoring for peer discovery;
a connection establishment module 502 for feeding back a connection success message to the client terminal device that sent the connection request message in response to the connection request message being monitored by the monitoring for service discovery or the monitoring for peer discovery.

本開示の実施形態による装置の各モジュールの機能は前記方法300での対応の記載を参照できるため、ここで重複を避けるために説明を省略する。 The function of each module of the apparatus according to the embodiment of the present disclosure can be referred to the corresponding description in the method 300, so the description is omitted here to avoid duplication.

なお、前記サービス端末デバイス及びクライアント端末デバイスというのは機能上の区分に過ぎない。同一のアンドロイドデバイスに対して、クライアントアプリケーション(APP)をインストールした場合に、当該アンドロイドデバイスがクライアント端末デバイスであり、サービス側アプリケーション(APP)をインストールした場合に、当該アンドロイドデバイスがサービス端末デバイスである。したがって、アンドロイドシステムを搭載した同一のスマートデバイスは、クライアント端末デバイスにもなるし、サービス端末デバイスにもなる。 Note that the service terminal device and the client terminal device are merely functional divisions. When a client application (APP) is installed on the same android device, the android device is a client terminal device, and when a service-side application (APP) is installed, the android device is a service terminal device. . Therefore, the same smart device with Android system can be both a client terminal device and a service terminal device.

さらに、本開示の実施形態では、電子デバイス及び可読記憶媒体を提供する。 Additionally, embodiments of the present disclosure provide an electronic device and a readable storage medium.

図6は、本開示の実施形態によるピアツーピア接続方法を実現するための電子デバイスのブロック図である。電子デバイスとしては、ラップトップコンピュータ、デスクトップコンピュータ、ワークステーション、パーソナルデジタルアシスタント、サーバー、ブレードサーバー、大型コンピュータ、他の適切なコンピュータなど、様々な形態のデジタルコンピュータであってもよい。また、パーソナルデジタルアシスタント、セルラーホン、スマートフォン、ウェアラブルデバイス、他の類似の計算デバイスなど、様々な形態の移動デバイスであってもよい。本明細書に記載のコンポーネント、その接続関係、及びその機能は例示的なものに過ぎず、本開示の実施に関して本明細書に記載及び/又は主張された内容に限定を加えるためではない。 FIG. 6 is a block diagram of an electronic device for implementing a peer-to-peer connection method according to an embodiment of the present disclosure; Electronic devices may be various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. It may also be various forms of mobile devices such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components, their connections, and their functionality described herein are exemplary only and are not intended to impose limitations on what is described and/or claimed herein regarding the practice of the present disclosure.

図6に示すとおり、当該電子デバイスは、1つ以上のプロセッサ601と、メモリ602と、各コンポーネントを接続するためのインタフェース(高速インタフェース及び低速インタフェース)とを含む。各コンポーネントは異なるバスによって互いに接続され、共通のマザーボードに取り付けられてもよいし、必要に応じて他の方法で取り付けられてもよい。プロセッサは外部の入力/出力装置(例えば、インタフェースによって接続された表示デバイス)にGUIのグラフィック情報を表示するようにメモリに記憶されているコマンドなど、電子デバイスにおいて実行されるコマンドを処理することができる。他の実施形態では、必要ならば、複数のプロセッサ及び/又は複数のバスと複数のメモリを複数のメモリと一緒に使用してもよい。同様に、複数の電子デバイスを接続させ、各デバイスが必要な操作の一部を提供するようにしてもよい(例えば、サーバーアレイ、1群のブレードサーバー、又はマルチプロセッサシステムとする)。図6では、例示的にプロセッサ601が1つあるものである。 As shown in FIG. 6, the electronic device includes one or more processors 601, memory 602, and interfaces (high-speed and low-speed interfaces) for connecting components. Each component is connected to each other by different buses and may be attached to a common motherboard or otherwise as desired. The processor can process commands executed in the electronic device, such as commands stored in memory to display graphical information of the GUI on an external input/output device (e.g., a display device connected by an interface). can. In other embodiments, multiple processors and/or multiple buses and multiple memories may be used along with multiple memories, if desired. Similarly, multiple electronic devices may be connected, each providing a portion of the required operation (eg, a server array, a group of blade servers, or a multi-processor system). In FIG. 6, there is illustratively one processor 601 .

メモリ602は、本開示に係る非一時的なコンピュータ可読記憶媒体である。前記メモリには、少なくとも1つのプロセッサが本開示に係るピアツーピア接続方法を実行するように、少なくとも1つのプロセッサによって実行可能なコマンドが記憶されている。本開示に係る非一時的なコンピュータ可読記憶媒体にはコンピュータコマンドが記憶されており、当該コンピュータコマンドはコンピュータに本開示に係るピアツーピア接続方法を実行させる。 Memory 602 is a non-transitory computer-readable storage medium according to the present disclosure. The memory stores commands executable by at least one processor such that the at least one processor executes the peer-to-peer connection method according to the present disclosure. Computer commands are stored in the non-transitory computer-readable storage medium according to the present disclosure, and the computer commands cause the computer to perform the peer-to-peer connection method according to the present disclosure.

メモリ602は非一時的なコンピュータ可読記憶媒体として、非一時的ソフトウェアプログラム、非一時的なコンピュータ実行可能プログラム及びモジュール、例えば、本開示の実施形態に係るピアツーピア接続方法に対応するプログラムコマンド/モジュール(例えば、図4に示す同時スキャンモジュール401、第1接続モジュール402及び第2接続モジュール403、又は図5に示す同時監視モジュール501及び接続確立モジュール502)を記憶するために用いることができる。プロセッサ601はメモリ602に記憶されている非一時的ソフトウェアプログラム、コマンド及びモジュールを動作させることにより、サーバーの様々な機能及びデータ処理を実行し、即ち前記方法実施形態に係るピアツーピア接続方法を実現する。 Memory 602 is a non-transitory computer-readable storage medium that stores non-transitory software programs, non-transitory computer-executable programs and modules, e.g., program commands/modules corresponding to peer-to-peer connection methods according to embodiments of the present disclosure ( For example, it can be used to store the simultaneous scanning module 401, the first connection module 402 and the second connection module 403 shown in FIG. 4, or the simultaneous monitoring module 501 and connection establishment module 502 shown in FIG. The processor 601 runs non-transitory software programs, commands and modules stored in the memory 602 to perform various functions and data processing of the server, i.e. implement the peer-to-peer connection method according to the method embodiments. .

メモリ602はプログラム記憶領域及びデータ記憶領域を含んでもよく、プログラム記憶領域はオペレーティングシステム、少なくとも1つの機能に必要なアプリケーションプログラムを記憶することができ、データ記憶領域はピアツーピア接続方法を実現するための電子デバイスの使用時に作成されたデータ等を記憶することができる。また、メモリ602は高速ランダムアクセスメモリを含んでもよいし、非一時的メモリを含んでもよく、例えば、少なくとも1つの磁気ディスク記憶素子、フラッシュメモリ素子、又は他の非一時的固体記憶素子である。いくつかの実施形態では、任意選択でメモリ602はプロセッサ601に対して遠隔設置されたメモリを含み、当該遠隔メモリはネットワークを介してピアツーピア接続方法を実行する電子デバイスに接続されてもよい。前記ネットワークの例はインターネット、イントラネット、ローカルエリアネットワーク、モバイル通信ネットワーク、その組み合わせを含むが、これに限定されない。 The memory 602 may include a program storage area and a data storage area, where the program storage area can store an operating system, application programs required for at least one function, and the data storage area is for implementing the peer-to-peer connection method. It is possible to store data and the like created when the electronic device is used. Memory 602 may also include high speed random access memory or may include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 602 optionally includes memory remotely located relative to processor 601, which may be connected via a network to an electronic device implementing peer-to-peer connection methods. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

ピアツーピア接続方法を実行する電子デバイスは、入力装置603及び出力装置604をさらに含んでもよい。プロセッサ601、メモリ602、入力装置603及び出力装置604はバス又は他の方法により接続されてもよく、図6では、例示的にバスによって接続されたものである。 The electronic device implementing the peer-to-peer connection method may further include input device 603 and output device 604 . Processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, and are illustratively connected by a bus in FIG.

入力装置603は入力されたデジタル又は文字情報を受信し、ピアツーピア接続方法を実行する電子デバイスのユーザー設定や機能制御に関連するキー信号入力を生成することができ、例えば、タッチスクリーン、テンキー、マウス、トラックパッド、タッチパッド、インジケータスティック、1つ以上のマウスボタン、トラックボール、ジョイスティック等入力装置である。出力装置604は表示デバイス、補助照明装置(例えば、LED)、触覚フィードバック装置(例えば、振動モーター)等を含んでもよい。当該表示デバイスは、液晶ディスプレイ(LCD)、発光ダイオード(LED)ディスプレイ、プラズマディスプレイを含むが、これに限定されない。いくつかの実施形態では、表示デバイスはタッチスクリーンであってもよい。 The input device 603 is capable of receiving input digital or textual information and generating key signal inputs associated with user settings and functional control of electronic devices implementing peer-to-peer connection methods, such as touch screen, numeric keypad, mouse. , trackpad, touchpad, indicator stick, one or more mouse buttons, trackball, joystick, or other input device. Output devices 604 may include display devices, supplemental lighting devices (eg, LEDs), tactile feedback devices (eg, vibration motors), and the like. Such display devices include, but are not limited to, liquid crystal displays (LCD), light emitting diode (LED) displays, plasma displays. In some embodiments, the display device may be a touchscreen.

ここに記載のシステム及び技術の様々な実施形態は、デジタル電子回路システム、集積回路システム、特定用途向け集積回路(ASIC)、コンピュータハードウェア、ファームウェア、ソフトウェア、及び/又はその組み合わせにおいて実施できる。前記実施形態は次のものを含んでもよい。1つ以上のコンピュータプログラムにおいて実施され、当該1つ以上のコンピュータプログラムは少なくとも1つのプログラマブルプロセッサを含むプログラマブルシステムにおいて実行及び/又は解釈されてもよく、当該プログラマブルプロセッサは専用又は汎用のプログラマブルプロセッサであってもよく、記憶システム、少なくとも1つの入力装置及び少なくとも1つの出力装置からデータ及びコマンドを受信し、且つデータ及びコマンドを当該記憶システム、当該少なくとも1つの入力装置及び当該少なくとも1つの出力装置に伝送することができる。 Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, application specific integrated circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. The embodiments may include the following. embodied in one or more computer programs, the one or more computer programs may be executed and/or interpreted in a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor; receive data and commands from the storage system, at least one input device and at least one output device, and transmit data and commands to the storage system, the at least one input device and the at least one output device can do.

前記コンピュータプログラム(プログラム、ソフトウェア、ソフトウェアアプリケーション、コードともいう)にはプログラマブルプロセッサ用機械コマンドを含み、且つ高度なプロセス及び/又はオブジェクト指向のプログラミング言語、及び/又はアセンブリ/機械言語を用いて前記コンピュータプログラムを実施することができる。本明細書で、用語「機械可読媒体」及び「コンピュータ可読媒体」とは機械コマンド及び/又はデータをプログラマブルプロセッサに提供するあらゆるコンピュータプログラム製品、デバイス、及び/又は装置(例えば、磁気ディスク、光ディスク、メモリ、プログラマブルロジックデバイス(PLD))であり、機械可読信号としての機械コマンドを受信する機械可読媒体を含む。用語「機械可読信号」とは、機械コマンド及び/又はデータをプログラマブルプロセッサに提供するためのあらゆる信号である。 The computer program (also referred to as program, software, software application, code) includes machine commands for a programmable processor and uses a high level process and/or object oriented programming language and/or assembly/machine language to program the computer. Able to implement programs. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and/or apparatus that provides machine commands and/or data to a programmable processor (e.g., magnetic disk, optical disk, Memory, Programmable Logic Device (PLD)) includes a machine-readable medium for receiving machine commands as machine-readable signals. The term "machine-readable signal" is any signal for providing machine commands and/or data to a programmable processor.

ユーザーとのインタラクションを実現するように、コンピュータにおいてここに記載のシステム及び技術を実現することができ、当該コンピュータは、ユーザーに情報を表示するための表示装置(例えば、CRT(陰極線管)又はLCD(液晶ディスプレイ))と、キーボードと、ポインティングデバイス(例えば、マウス又はトラックボール)を備え、ユーザーは当該キーボード及び当該ポインティングデバイスによってコンピュータに入力することができる。他にもユーザーとのインタラクションを実現するための装置がある。例えば、ユーザーへのフィードバックは感覚的なフィードバック(例えば、視覚的なフィードバック、聴覚的なフィードバック、触覚的なフィードバック)など任意の形態であってもよく、また任意の方式(声入力、音声入力、触覚入力)でユーザーの入力を受信することができる。 The systems and techniques described herein can be implemented in a computer to provide interaction with a user, the computer having a display device (e.g., CRT (cathode ray tube) or LCD) for displaying information to the user. (liquid crystal display)), a keyboard, and a pointing device (eg, a mouse or a trackball), through which a user can input to the computer. There are other devices for realizing interaction with users. For example, feedback to the user may be in any form such as sensory feedback (e.g., visual feedback, auditory feedback, tactile feedback), and in any manner (voice input, audio input, haptic input) to receive user input.

ここに記載のシステム及び技術は、バックグラウンドコンポーネントを含むコンピューティングシステム(例えば、データサーバー)、又は中間コンポーネントを含むコンピューティングシステム(例えば、アプリケーションサーバー)、又はフロントエンドコンポーネントを含むコンピューティングシステム(例えば、グラフィカルユーザーインタフェース又はウェブブラウザーを備えるパソコンであって、ユーザーは当該グラフィカルユーザーインタフェース又は当該ウェブブラウザーによってここに記載のシステム及び技術の実施形態とインタラクションを行うことができる)、又は前記バックグラウンドコンポーネント、中間コンポーネント、もしくはフロントエンドコンポーネントの任意の組み合わせを含むコンピューティングシステムにおいて実施することができる。任意の方式又は媒体によるデジタルデータ通信(例えば、通信ネットワーク)によってシステムのコンポーネントを互いに接続させることができる。通信ネットワークの例は、ローカルエリアネットワーク(LAN)、ワイドエリアネットワーク(WAN)、インターネットを含む。 The systems and techniques described herein may be computing systems that include background components (e.g., data servers), or intermediate components (e.g., application servers), or front-end components (e.g., , a personal computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or the background components; It can be implemented in a computing system including any combination of intermediate or front-end components. The components of the system can be connected together by digital data communication (eg, a communication network) by any method or medium. Examples of communication networks include local area networks (LAN), wide area networks (WAN), and the Internet.

コンピュータシステムはクライアント及びサーバーを含んでもよい。クライアントとサーバーは一般に遠隔設置され、且つ通信ネットワークによって互いに接続される。コンピュータで実行されるクライアント-サーバー型配置のコンピュータプログラムによってクライアントとサーバーの関係を構成する。サーバーはクラウドサーバーであってもよく(クラウドコンピューティングサーバー、クラウドホストともいう)、クラウドコンピューティングサービスシステムではホストのようなものであり、従来の物理ホスト及び仮想専用サーバー(VPS)サービスでは管理が難しく、業務の拡張性が弱いという欠点を解消するために開発される。 The computer system can include clients and servers. A client and server are generally remotely located and connected to each other through a communication network. A client-server relationship is formed by computer programs running on computers in a client-server arrangement. The server can be a cloud server (also known as cloud computing server, cloud host), which is like a host in cloud computing service system, and can be managed in traditional physical host and virtual private server (VPS) services. It is developed to solve the drawback of being difficult and weak in business scalability.

なお、上記の様々なプロセスを踏まえて、ステップを並べ替え、追加、又は削除することができる。例えば、本開示に記載の各ステップは同時に実行されてもよいし、順に実行されてもよいし、他の順番で実行されてもよく、本開示の技術的解決手段の効果を得られるものであれば、本明細書では特に限定しない。 Note that steps may be rearranged, added, or deleted in light of the various processes described above. For example, each step described in the present disclosure may be performed simultaneously, in order, or in any other order, and the effects of the technical solutions of the present disclosure may be obtained. If so, it is not specifically limited herein.

上記のいくつかの実施形態は、本開示の保護範囲を限定するものと見なされない。当業者が理解したように、設計上の要件や他の要素に基づいて、様々な修正や、組み合わせ、置き換えを行うことができる。本開示の趣旨においてなされた修正、同等な置き換えや改善等は、いずれも本開示の保護範囲に含まれる。

The above several embodiments are not considered to limit the protection scope of the present disclosure. As those skilled in the art will appreciate, various modifications, combinations, and substitutions can be made based on design requirements and other factors. Any modification, equivalent replacement, improvement, etc. made within the spirit of the present disclosure shall fall within the protection scope of the present disclosure.

Claims (16)

クライアント端末デバイスにより実行されるピアツーピア接続方法であって、
前記クライアント端末デバイスサービス発見及びピア発見を起動するとともに、前記サービス発見及び前記ピア発見を同時に採用して発見することと、
前記クライアント端末デバイスは、先にサービス発見によりサービス端末デバイスを発見したことに応じて、前記サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、前記サービス端末デバイスとのピアツーピア接続を開始し、前記サービス端末デバイスの識別情報を保存することと、
前記クライアント端末デバイスは、前記サービス発見の後で前記ピア発見によりピアデバイス対象リストを発見したことに応じて、前記ピアデバイス対象リストにおいて前記サービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、前記デバイスとのピアツーピア接続を開始することとを含む
アツーピア接続方法。
A peer-to-peer connection method performed by a client terminal device, comprising:
the client terminal device initiating service discovery and peer discovery and simultaneously adopting and discovering the service discovery and the peer discovery;
The client terminal device establishes a peer-to-peer connection with the service terminal device when the instance name of the service terminal device matches a pre-arranged name in response to previously discovering the service terminal device through service discovery. and storing identification information of the service terminal device;
In response to discovering a peer device target list by the peer discovery after the service discovery , the client terminal device , if there is a device matching the identification information of the service terminal device in the peer device target list. , initiating a peer-to-peer connection with said device ;
Peer-to-peer connection method.
前記事前に取り決めた名称は、ピアツーピア接続型の前記クライアント端末デバイスと前記サービス端末デバイスが事前に取り決めた名称を含む、
請求項1に記載のピアツーピア接続方法。
wherein the pre-arranged name comprises a name pre- arranged by the client terminal device and the service terminal device in a peer-to-peer connection;
A peer-to-peer connection method according to claim 1.
前記クライアント端末デバイスが、前記サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、前記サービス端末デバイスとのピアツーピア接続を開始する前記ことは、
前記クライアント端末デバイスは、前記サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致し、且つ前記サービス端末デバイスが接続中でない場合に、前記サービス端末デバイスに接続要求メッセージを送信することと、
前記クライアント端末デバイスは、前記サービス端末デバイスから接続成功メッセージを受信することとを含む、
請求項1又は2に記載のピアツーピア接続方法。
said client terminal device initiating a peer-to-peer connection with said service terminal device if an instance name of said service terminal device and a pre-arranged name match;
the client terminal device sending a connection request message to the service terminal device when the instance name of the service terminal device matches a prearranged name and the service terminal device is not connected;
the client terminal device receiving a successful connection message from the service terminal device;
A peer-to-peer connection method according to claim 1 or 2.
前記クライアント端末デバイスが、前記ピアデバイス対象リストにおいて前記サービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、前記デバイスとのピアツーピア接続を開始する前記ことは、
前記クライアント端末デバイスは、前記ピアデバイス対象リストにおいて前記サービス端末デバイスの識別情報にマッチングするデバイスが存在し、且つ前記デバイスが接続中でない場合に、前記デバイスに接続要求メッセージを送信することと、
前記クライアント端末デバイスは、前記デバイスから接続成功メッセージを受信することとを含む、
請求項1又は2に記載のピアツーピア接続方法。
said client terminal device initiating a peer-to-peer connection with said device if there is a device matching identification information of said service terminal device in said peer device target list;
the client terminal device sending a connection request message to the device if there is a device matching the identification information of the service terminal device in the peer device target list and the device is not connected;
said client terminal device receiving a successful connection message from said device;
A peer-to-peer connection method according to claim 1 or 2.
サービス端末デバイスにより実行されるピアツーピア接続方法であって、
前記サービス端末デバイスサービス発見に対する監視及びピア発見に対する監視を起動するとともに、サービス発見に対する監視及びピア発見に対する監視を同時に行うことと、
前記サービス端末デバイスは、前記サービス発見に対する監視方式又は前記ピア発見に対する監視により接続要求メッセージを監視できたことに応じて、前記接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックすることとを含む
アツーピア接続方法。
A peer-to-peer connection method performed by a service terminal device, comprising:
the service terminal device initiating monitoring for service discovery and monitoring for peer discovery and simultaneously monitoring for service discovery and monitoring for peer discovery;
The service terminal device feeds back a connection success message to the client terminal device that transmitted the connection request message in response to the connection request message being monitored by the service discovery monitoring method or the peer discovery monitoring. including
Peer-to-peer connection method.
サービス発見及びピア発見を起動するとともに、前記サービス発見及び前記ピア発見を同時に採用して発見するための同時スキャンモジュールと、
先にサービス発見によりサービス端末デバイスを発見したことに応じて、前記サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致する場合に、前記サービス端末デバイスとのピアツーピア接続を開始し、前記サービス端末デバイスの識別情報を保存するための第1接続モジュールと、
前記サービス発見の後で前記ピア発見によりピアデバイス対象リストを発見したことに応じて、前記ピアデバイス対象リストにおいて前記サービス端末デバイスの識別情報にマッチングするデバイスが存在する場合に、前記デバイスとのピアツーピア接続を開始するための第2接続モジュールとを備える、
クライアント端末デバイスとして使用されるピアツーピア接続装置。
a concurrent scanning module for activating service discovery and peer discovery and simultaneously adopting and discovering said service discovery and said peer discovery;
In response to previously discovering a service terminal device through service discovery, if the instance name of the service terminal device matches a pre-arranged name, initiate a peer-to-peer connection with the service terminal device, and a first connection module for storing identification information of the terminal device;
Peer-to-peer with the device if there is a device matching the identification information of the service terminal device in the peer device target list in response to discovering a peer device target list by the peer discovery after the service discovery. a second connection module for initiating a connection;
A peer-to-peer connection device used as a client terminal device .
前記事前に取り決めた名称は、ピアツーピア接続型の前記クライアント端末デバイスと前記サービス端末デバイスが事前に取り決めた名称を含む、
請求項6に記載のピアツーピア接続装置。
wherein the pre-arranged name comprises a name pre- arranged by the client terminal device and the service terminal device in a peer-to-peer connection;
A peer-to-peer connection device according to claim 6.
前記第1接続モジュールは、
前記サービス端末デバイスのインスタンス名と事前に取り決めた名称とが一致し、且つ前記サービス端末デバイスが接続中でない場合に、前記サービス端末デバイスに接続要求メッセージを送信し、前記サービス端末デバイスから接続成功メッセージを受信することに用いられる、
請求項6又は7に記載のピアツーピア接続装置。
The first connection module is
When the instance name of the service terminal device matches the name agreed upon in advance and the service terminal device is not connected, a connection request message is sent to the service terminal device, and a connection success message is sent from the service terminal device. used to receive
Peer-to-peer connection device according to claim 6 or 7.
前記第2接続モジュールは、
前記ピアデバイス対象リストにおいて前記サービス端末デバイスの識別情報にマッチングするデバイスが存在し、且つ前記デバイスが接続中でない場合に、前記デバイスに接続要求メッセージを送信し、前記デバイスから接続成功メッセージを受信することに用いられる、
請求項6又は7に記載のピアツーピア接続装置。
The second connection module is
If there is a device matching the identification information of the service terminal device in the peer device target list and the device is not connected, sending a connection request message to the device and receiving a connection success message from the device. used for
Peer-to-peer connection device according to claim 6 or 7.
サービス発見に対する監視及びピア発見に対する監視を起動するとともに、サービス発見に対する監視及びピア発見に対する監視を同時に行うための同時監視モジュールと、
前記サービス発見に対する監視方式又は前記ピア発見に対する監視により接続要求メッセージを監視できたことに応じて、前記接続要求メッセージを送信したクライアント端末デバイスに接続成功メッセージをフィードバックするための接続確立モジュールとを備える、
サービス端末デバイスとして使用されるピアツーピア接続装置。
a concurrent monitoring module for activating monitoring for service discovery and monitoring for peer discovery and simultaneously monitoring for service discovery and monitoring for peer discovery;
a connection establishing module for feeding back a connection success message to the client terminal device that sent the connection request message in response to a connection request message being monitored by the monitoring method for service discovery or the monitoring for peer discovery. ,
A peer-to-peer connection device used as a service terminal device .
少なくとも1つのプロセッサと、
前記少なくとも1つのプロセッサと通信接続されるメモリとを備え、
前記メモリには、前記少なくとも1つのプロセッサによって実行可能なコマンドが記憶されており、前記コマンドは、前記少なくとも1つのプロセッサによって実行されると、前記少なくとも1つのプロセッサに請求項1~のいずれか1項に記載のピアツーピア接続方法を実行させる、
クライアント端末デバイスとして使用される電子デバイス。
at least one processor;
a memory communicatively coupled with the at least one processor;
A command executable by the at least one processor is stored in the memory, and the command is transmitted to the at least one processor when executed by the at least one processor. Execute the peer-to-peer connection method according to item 1,
An electronic device used as a client terminal device .
クライアント端末デバイスとして使用されるコンピュータに請求項1~のいずれか1項に記載のピアツーピア接続方法を実行させるコンピュータコマンドが記憶されている非一時的なコンピュータ可読記憶媒体。 A non-transitory computer-readable storage medium storing computer commands for causing a computer used as a client terminal device to execute the peer-to-peer connection method according to any one of claims 1-4 . クライアント端末デバイスとして使用されるコンピュータにおいて、プロセッサにより実行されると、請求項1~のいずれか1項に記載のピアツーピア接続方法を実現することを特徴とするプログラム。 A program characterized by realizing the peer-to-peer connection method according to any one of claims 1 to 4 when executed by a processor in a computer used as a client terminal device . 少なくとも1つのプロセッサと、at least one processor;
前記少なくとも1つのプロセッサと通信接続されるメモリとを備え、a memory communicatively coupled with the at least one processor;
前記メモリには、前記少なくとも1つのプロセッサによって実行可能なコマンドが記憶されており、前記コマンドは、前記少なくとも1つのプロセッサによって実行されると、前記少なくとも1つのプロセッサに請求項5に記載のピアツーピア接続方法を実行させる、6. The peer-to-peer connection of claim 5, wherein commands executable by the at least one processor are stored in the memory, the commands being executed by the at least one processor to cause the at least one processor to carry out the method
サービス端末デバイスとして使用される電子デバイス。An electronic device used as a service terminal device.
サービス端末デバイスとして使用されるコンピュータに請求項5に記載のピアツーピア接続方法を実行させるコンピュータコマンドが記憶されている非一時的なコンピュータ可読記憶媒体。A non-transitory computer-readable storage medium storing computer commands for causing a computer used as a service terminal device to perform the peer-to-peer connection method according to claim 5. サービス端末デバイスとして使用されるコンピュータにおいて、プロセッサにより実行されると、請求項5に記載ピアツーピア接続方法を実現することを特徴とするプログラム。A program characterized by realizing the peer-to-peer connection method according to claim 5 when executed by a processor in a computer used as a service terminal device.
JP2021094947A 2020-09-27 2021-06-07 PEER-TO-PEER CONNECTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM Active JP7299268B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011030740.1A CN112153754B (en) 2020-09-27 2020-09-27 Point-to-point connection method and device, electronic equipment and storage medium
CN202011030740.1 2020-09-27

Publications (2)

Publication Number Publication Date
JP2021141609A JP2021141609A (en) 2021-09-16
JP7299268B2 true JP7299268B2 (en) 2023-06-27

Family

ID=73894273

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021094947A Active JP7299268B2 (en) 2020-09-27 2021-06-07 PEER-TO-PEER CONNECTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM

Country Status (3)

Country Link
JP (1) JP7299268B2 (en)
KR (1) KR102491467B1 (en)
CN (1) CN112153754B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924806B (en) * 2022-04-07 2024-03-26 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015527757A (en) 2012-05-11 2015-09-17 インターデイジタル パテント ホールディングス インコーポレイテッド Context-aware peer-to-peer communication
JP2016514420A (en) 2013-03-06 2016-05-19 クゥアルコム・インコーポレイテッドQualcomm Incorporated Peer-to-peer pre-association discovery operation
JP2017085376A (en) 2015-10-28 2017-05-18 キヤノン株式会社 Communication device, control method thereof, and program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813473B (en) * 2014-01-17 2017-08-25 深圳市金立通信设备有限公司 A kind of communication means, terminal and system
KR20160053594A (en) * 2014-11-05 2016-05-13 삼성전자주식회사 Method for connecting to device and apparatus supporting wi-fi direct for performing the same
US10098168B2 (en) * 2014-12-08 2018-10-09 Apple Inc. Neighbor awareness networking datapath
CN104486816A (en) * 2014-12-08 2015-04-01 电子科技大学 Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
CN106535301B (en) * 2016-12-30 2020-02-21 珠海赛纳打印科技股份有限公司 Method, equipment and system for establishing communication connection
CN111372325B (en) * 2020-02-21 2022-04-26 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection
CN111372326B (en) * 2020-03-13 2023-01-13 华为技术有限公司 Method and mobile device for establishing point-to-point wireless connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015527757A (en) 2012-05-11 2015-09-17 インターデイジタル パテント ホールディングス インコーポレイテッド Context-aware peer-to-peer communication
JP2016514420A (en) 2013-03-06 2016-05-19 クゥアルコム・インコーポレイテッドQualcomm Incorporated Peer-to-peer pre-association discovery operation
JP2017085376A (en) 2015-10-28 2017-05-18 キヤノン株式会社 Communication device, control method thereof, and program

Also Published As

Publication number Publication date
KR20210040314A (en) 2021-04-13
CN112153754A (en) 2020-12-29
KR102491467B1 (en) 2023-01-26
JP2021141609A (en) 2021-09-16
CN112153754B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
WO2020207454A1 (en) Information pushing method and device
CN111414208B (en) Application program starting method, device and equipment
CN108681777B (en) Method and device for running machine learning program based on distributed system
JP2011040062A (en) System and method for communicating with network of printer using mobile device
JP6624987B2 (en) Information processing apparatus, program, and control method
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN111625810B (en) Equipment login method, equipment and system
KR102546577B1 (en) Method and device for mini program data processing
JP7299268B2 (en) PEER-TO-PEER CONNECTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM
CN111615171B (en) Access method and device of wireless local area network
CN110418092B (en) Video recording management system, method, control management node and recording node
JP2017538237A (en) Method, apparatus, and system for displaying virtual machine names
WO2022142716A1 (en) Information processing method and apparatus regarding wireless hotspot
JP6285579B2 (en) Long polling processing method and system, and recording medium
CN111988829B (en) Access method and device of wireless local area network
CN113238944A (en) Test method, device and system
CN112489659A (en) Data processing method, system, server and terminal equipment based on input method
CN113778527A (en) Method and apparatus for controlling state of pipeline task
CN112118576B (en) Method and apparatus for networking over wireless hotspots
CN110764932A (en) Data processing method, system, medium and computing device
US20240020080A1 (en) Handling local application events while working on remote desktops
CN113079188B (en) Client identification processing method, device, terminal, server, system and medium
US9953299B2 (en) Systems and methods for sharing image data
CN113760886A (en) Method, apparatus, device and computer readable medium for providing data service

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210607

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20211101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220704

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220906

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220913

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20220921

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20220927

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230202

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230427

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230530

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230615

R150 Certificate of patent or registration of utility model

Ref document number: 7299268

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150