TW201635155A - Pairing list generating method and electronic apparatus using the same - Google Patents

Pairing list generating method and electronic apparatus using the same Download PDF

Info

Publication number
TW201635155A
TW201635155A TW104109356A TW104109356A TW201635155A TW 201635155 A TW201635155 A TW 201635155A TW 104109356 A TW104109356 A TW 104109356A TW 104109356 A TW104109356 A TW 104109356A TW 201635155 A TW201635155 A TW 201635155A
Authority
TW
Taiwan
Prior art keywords
pairing
list
paired
response
electronic device
Prior art date
Application number
TW104109356A
Other languages
Chinese (zh)
Inventor
邱奕勝
王偉存
周廷峰
劉懿文
Original Assignee
宏碁股份有限公司
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 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW104109356A priority Critical patent/TW201635155A/en
Priority to US14/810,491 priority patent/US9609583B2/en
Publication of TW201635155A publication Critical patent/TW201635155A/en
Priority to US15/428,160 priority patent/US9749943B2/en
Priority to US15/428,157 priority patent/US9838955B2/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

A pairing method generating method and an electronic apparatus using the same are proposed. The method includes: searching at least one first device belonging to a first subnet same as the electronic apparatus, and accordingly generating a first list; scanning at least one access point (AP) near the electronic apparatus, and accordingly generating a first AP list; uploading the first AP list to a server, and receiving a second list from the server, where the second list includes at least one second device, and a similarity between a second AP list of each second device and the first AP list is higher than a predetermined threshold; uniting the first list and the second list to generate a pairing list including at least one device to be paired.

Description

配對列表產生方法及電子裝置 Pairing list generation method and electronic device

本發明是有關於一種列表產生方法及電子裝置,且特別是有關於一種配對列表產生方法及電子裝置。 The present invention relates to a list generation method and an electronic device, and more particularly to a pairing list generation method and an electronic device.

隨著科技的發展及時代的進步,智慧型手機以及平板電腦等行動裝置已然成為人們生活中不可或缺的一部分。因應於不同的使用習慣,一個使用者可能同時擁有許多不同的行動裝置。為了讓每個裝置內的資料、檔案及應用程式能夠方便地傳輸或是同步至其他的裝置,現有技術中的其中一個方式是讓這些裝置透過雲端服務(例如Google雲端硬碟或是Dropbox)來進行資料交換。然而,這類的雲端服務大多需要使用者額外註冊帳號以及登入,因此對於使用者而言並不方便。 With the development of technology and the advancement of the times, mobile devices such as smart phones and tablets have become an indispensable part of people's lives. Depending on the usage habits, a user may have many different mobile devices at the same time. In order to allow data, files and applications in each device to be easily transferred or synchronized to other devices, one of the ways in the prior art is to make these devices through cloud services (such as Google Cloud Drive or Dropbox). Exchange of information. However, most of these cloud services require users to additionally register accounts and log in, so it is not convenient for users.

此外,雖然現有技術中亦存在例如多播網域名稱系統(Multicast Domain Name System,mDNS)及簡單發現協議(Simple Service Discovery Protocol,SSDP)等用於讓不同裝置進行配對以 及資料交換的協定,但這些協定僅能讓裝置搜尋到屬於同一子網(subnet)下的裝置。也就是說,當兩個以上的裝置分屬於不同的子網(例如由不同的存取點或路由器服務)時,這些裝置便無法透過上述協定來進行配對以及資料交換的操作。此外,這些裝置也可能因為路由器的設定不當而導致即便在同一子網下也無法搜尋到彼此。 In addition, in the prior art, for example, a Multicast Domain Name System (mDNS) and a Simple Service Discovery Protocol (SSDP) are used to pair different devices. And data exchange agreements, but these agreements only allow devices to find devices belonging to the same subnet. That is to say, when two or more devices belong to different subnets (for example, served by different access points or routers), these devices cannot perform the pairing and data exchange operations through the above-mentioned agreement. In addition, these devices may also be unable to find each other even under the same subnet because of improper router settings.

有鑑於此,本發明提供一種配對列表產生方法及電子裝置,其可找出與電子裝置屬於不同子網的裝置,並據以產生更加完善的配對列表。 In view of this, the present invention provides a pairing list generating method and an electronic device, which can find devices belonging to different subnets from an electronic device, and accordingly generate a more complete pairing list.

本發明提供一種配對列表產生方法,適於電子裝置,包括:搜尋與電子裝置同屬於第一子網的至少一第一裝置,並據以產生第一列表;掃描電子裝置附近的至少一存取點,並據以產生第一存取點列表;上傳第一存取點列表至伺服器,並接收伺服器回傳的第二列表,其中第二列表包括至少一第二裝置,且各所述第二裝置的第二存取點列表與第一存取點列表的相似度高於預設門限值;以及聯集第一列表以及第二列表以產生包括至少待配對裝置的配對列表。 The present invention provides a method for generating a pairing list, which is suitable for an electronic device, comprising: searching for at least one first device belonging to a first subnet with an electronic device, and generating a first list; and at least one access in the vicinity of the scanning electronic device Pointing, and generating a first access point list; uploading the first access point list to the server, and receiving a second list returned by the server, wherein the second list includes at least one second device, and each of the The second access point list of the second device is more similar to the first access point list than the preset threshold; and the first list and the second list are combined to generate a pairing list including at least the device to be paired.

本發明提供一種用於產生配對列表的電子裝置,包括儲存單元、通訊單元以及處理單元。儲存單元,儲存多個模組。處理單元,連接儲存單元及通訊單元,存取並執行所述多個模組。 所述多個模組包括搜尋模組、掃描模組、傳輸模組以及產生模組。搜尋模組搜尋與電子裝置同屬於第一子網的至少一第一裝置,並據以產生第一列表。掃描模組控制通訊單元掃描電子裝置附近的至少一存取點,並據以產生第一存取點列表。傳輸模組,上傳第一存取點列表至伺服器,並接收伺服器回傳的第二列表。第二列表包括至少一第二裝置,且各所述第二裝置的第二存取點列表與第一存取點列表的相似度高於預設門限值。產生模組聯集第一列表以及第二列表以產生包括至少一待配對裝置的配對列表。 The present invention provides an electronic device for generating a pairing list, including a storage unit, a communication unit, and a processing unit. A storage unit that stores multiple modules. The processing unit connects the storage unit and the communication unit to access and execute the plurality of modules. The plurality of modules includes a search module, a scan module, a transmission module, and a generation module. The search module searches for at least one first device that belongs to the first subnet with the electronic device, and accordingly generates a first list. The scanning module controls the communication unit to scan at least one access point in the vicinity of the electronic device, and accordingly generates a first access point list. The transmission module uploads the first access point list to the server and receives the second list returned by the server. The second list includes at least one second device, and the similarity between the second access point list of each of the second devices and the first access point list is higher than a preset threshold. The generating module aggregates the first list and the second list to generate a pairing list including at least one device to be paired.

基於上述,本發明實施例提出的方法及電子裝置除了可找出與其屬於同一子網的各第一裝置之外,更可透過第二列表得知與其實體上相近的各第二裝置(即便某些第二裝置可能與電子裝置分別屬於不同的子網)。 Based on the above, the method and the electronic device provided by the embodiments of the present invention can find the second devices that are physically similar to each other, even if they can find the first devices that belong to the same subnet. Some of the second devices may belong to different subnets from the electronic device.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

100、400‧‧‧電子裝置 100, 400‧‧‧ electronic devices

112、412‧‧‧儲存單元 112, 412‧‧‧ storage unit

112_1、412_2‧‧‧搜尋模組 112_1, 412_2‧‧‧Search Module

112_2‧‧‧掃描模組 112_2‧‧‧Scan Module

112_3‧‧‧傳輸模組 112_3‧‧‧Transmission module

112_4、412_1‧‧‧產生模組 112_4, 412_1‧‧‧ generating module

112_5、412_4‧‧‧配對模組 112_5, 412_4‧‧‧ Pairing module

114、414‧‧‧通訊單元 114, 414‧‧‧ communication unit

116、416‧‧‧處理單元 116, 416‧‧‧ processing unit

118、418‧‧‧揚聲器 118, 418‧‧‧ Speakers

S210~S240、S310~S332、S510~S560‧‧‧步驟 S210~S240, S310~S332, S510~S560‧‧‧ steps

圖1是依據本發明之一實施例繪示的電子裝置示意圖。 1 is a schematic diagram of an electronic device according to an embodiment of the invention.

圖2是依據本發明之一實施例繪示的配對列表產生方法流程圖。 2 is a flow chart of a method for generating a pairing list according to an embodiment of the invention.

圖3是依據本發明之一實施例繪示的配對操作示意圖。 FIG. 3 is a schematic diagram of a pairing operation according to an embodiment of the invention.

圖4是依據本發明之一實施例繪示的電子裝置示意圖。 4 is a schematic diagram of an electronic device according to an embodiment of the invention.

圖5是依據本發明之一實施例繪示的配對方法。 FIG. 5 is a pairing method according to an embodiment of the invention.

圖1是依據本發明之一實施例繪示的電子裝置示意圖。在本實施例中,電子裝置100例如是手機、智慧型手機、個人電腦(personal computer,PC)、筆記型電腦(notebook PC)、網本型電腦(netbook PC)、平板電腦(tablet PC)、電視機、遊戲機(game console)、可擕式裝置、或可擕式多媒體播放器(portable multimedia player)等。電子裝置100包括儲存單元112、通訊單元114、處理單元116。 1 is a schematic diagram of an electronic device according to an embodiment of the invention. In this embodiment, the electronic device 100 is, for example, a mobile phone, a smart phone, a personal computer (PC), a notebook computer (notebook PC), a netbook PC (netbook PC), a tablet PC (tablet PC), A television, a game console, a portable device, or a portable multimedia player. The electronic device 100 includes a storage unit 112, a communication unit 114, and a processing unit 116.

儲存單元112可以是記憶體、硬碟或是其他任何可用於儲存資料的元件,而可用以記錄多個程式碼或模組。通訊單元114可經配置以用於處理蜂窩式通訊技術的射頻(Radio Frequency,RF)信號,蜂窩式通訊技術例如全球移動系統(Global System for Mobile,GSM)、第三代合作夥伴計畫長期演進(3GPP LTE)、碼分多址(Code Division Multiple Access,CDMA)、寬頻CDMA(WCDMA)、高速封包存取(High Speed Packet Access,HSPA),以及全球微波互通(World Interoperability for Microwave Access,WiMAX)等等。此外,通訊單元114也可處理無線區域網路(Wireless Local Area Network,WLAN)通訊技術的RF信號。 The storage unit 112 can be a memory, a hard disk, or any other component that can be used to store data, and can be used to record a plurality of code or modules. The communication unit 114 can be configured to process radio frequency (RF) signals of cellular communication technologies, such as the Global System for Mobile (GSM), third-generation partner program long-term evolution. (3GPP LTE), Code Division Multiple Access (CDMA), Wideband CDMA (WCDMA), High Speed Packet Access (HSPA), and World Interoperability for Microwave Access (WiMAX) and many more. In addition, the communication unit 114 can also process RF signals of a Wireless Local Area Network (WLAN) communication technology.

通訊單元114可分別包括傳送器電路、接收器電路、類比轉數位(analog-to-digital,A/D)轉換器、數位轉類比 (digital-to-analog,D/A)轉換器、低雜訊放大器(low noise amplifier,LNA)、混波器、濾波器、匹配電路、傳輸線、功率放大器(power amplifier,PA)、一或多個天線單元及本地儲存媒介的組件,但不僅限於此,來為電子裝置100提供通訊功能。 The communication unit 114 can respectively include a transmitter circuit, a receiver circuit, an analog-to-digital (A/D) converter, and a digital to analogy (digital-to-analog, D/A) converter, low noise amplifier (LNA), mixer, filter, matching circuit, transmission line, power amplifier (PA), one or more The components of the antenna unit and the local storage medium are, but are not limited to, providing a communication function for the electronic device 100.

處理單元116耦接至儲存單元112以及通訊單元114。處理單元116可以是一般用途處理器、特殊用途處理器、傳統的處理器、數位訊號處理器、多個微處理器(microprocessor)、一個或多個結合數位訊號處理器核心的微處理器、控制器、微控制器、特殊應用集成電路(Application Specific Integrated Circuit,ASIC)、場可程式閘陣列電路(Field Programmable Gate Array,FPGA)、任何其他種類的積體電路、狀態機、基於進階精簡指令集機器(Advanced RISC Machine,ARM)的處理器以及類似品。 The processing unit 116 is coupled to the storage unit 112 and the communication unit 114. The processing unit 116 can be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, and control , Microcontroller, Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA), any other kind of integrated circuit, state machine, based on advanced reduced instructions Advanced RISC Machine (ARM) processors and similar products.

在本實施例中,處理單元116可存取儲存單元112所儲存的搜尋模組112_1、掃描模組112_2、傳輸模組112_3及產生模組112_4來執行本發明提出的配對列表產生方法。 In this embodiment, the processing unit 116 can access the search module 112_1, the scan module 112_2, the transmission module 112_3, and the generation module 112_4 stored in the storage unit 112 to execute the pairing list generation method proposed by the present invention.

圖2是依據本發明之一實施例繪示的配對列表產生方法流程圖。本實施例提出的方法可由圖1的電子裝置100執行,以下即搭配圖1的各個元件來說明本方法的詳細步驟。 2 is a flow chart of a method for generating a pairing list according to an embodiment of the invention. The method proposed in this embodiment can be performed by the electronic device 100 of FIG. 1, and the detailed steps of the method are described below with the respective components of FIG.

在步驟S210中,搜尋模組112_1可搜尋與電子裝置100同屬於第一子網的至少一第一裝置,並據以產生第一列表。在一實施例中,第一子網例如是由第一存取點所提供的區域網路,且不同的子網例如是由不同存取點所提供的區域網路。在此情況 下,搜尋模組112_1可執行例如mDNS、SSDP或是其他類似的通訊協定來探索(discover)或尋找其他同樣由所述第一存取點服務的第一裝置。接著,搜尋模組112_1可將所探索到的各個第一裝置匯整為所述第一列表。在一實施例中,所述第一列表可記錄各第一裝置的各項識別資訊,例如實體識別碼(instance identification)、網際網路協定(Internet Protocol,IP)位址、唯一識別碼(例如以全域唯一識別碼(Globally Unique Identifier,GUID))等,但可不限於此。 In step S210, the search module 112_1 can search for at least one first device that belongs to the first subnet with the electronic device 100, and accordingly generates a first list. In an embodiment, the first subnet is, for example, a regional network provided by the first access point, and the different subnets are, for example, regional networks provided by different access points. In this case The search module 112_1 can perform, for example, mDNS, SSDP, or other similar communication protocol to discover or find other first devices that are also served by the first access point. Then, the search module 112_1 may merge the first devices that are explored into the first list. In an embodiment, the first list may record various identification information of each first device, such as an entity identification, an Internet Protocol (IP) address, a unique identifier (for example, It is a Globally Unique Identifier (GUID) or the like, but is not limited thereto.

此外,在其他實施例中,電子裝置100可僅在受控於使用者而進入一配對頁面之後才執行步驟S210,但本發明的可實施方式不限於此。 In addition, in other embodiments, the electronic device 100 may perform step S210 only after being controlled by the user to enter a paired page, but the embodiments of the present invention are not limited thereto.

在步驟S220中,掃描模組112_2可掃描電子裝置附近的至少一存取點,並據以產生第一存取點列表。在一實施例中,所述第一存取點列表可記錄各存取點的各項識別資訊,例如服務設定識別碼(Service Set Identifier,SSID)及基本服務集識別碼(Basic Service Set Identifier,BSSID)等,但可不限於此。 In step S220, the scanning module 112_2 may scan at least one access point in the vicinity of the electronic device, and accordingly generate a first access point list. In an embodiment, the first access point list may record various identification information of each access point, such as a Service Set Identifier (SSID) and a Basic Service Set Identifier (Basic Service Set Identifier, BSSID), etc., but is not limited to this.

在步驟S230中,傳輸模組112_3可上傳第一存取點列表至伺服器,並接收伺服器回傳的第二列表。所述伺服器例如是架設於雲端網路中的資料中心、雲端伺服器或是其他類似的伺服裝置及伺服系統。在一實施例中,所述伺服器除了可接收來自電子裝置100的第一存取點列表之外,也可接收其他裝置所上傳的存取點列表。接著,所述伺服器可從其他裝置所上傳的存取點列表 中找出與第一存取點列表較為相似的存取點列表,並將其對應的裝置匯整為所述第二列表。為了便於說明,以下將所述第二列表所包括的裝置稱為第二裝置。 In step S230, the transmission module 112_3 may upload the first access point list to the server, and receive the second list returned by the server. The server is, for example, a data center, a cloud server, or other similar servo device and servo system installed in a cloud network. In an embodiment, the server may receive a list of access points uploaded by other devices in addition to the first access point list from the electronic device 100. Then, the server can upload a list of access points from other devices. Find a list of access points that are more similar to the first access point list, and merge the corresponding devices into the second list. For convenience of explanation, the device included in the second list will hereinafter be referred to as a second device.

在一實施例中,所述伺服器可個別計算其他裝置所上傳的存取點列表與第一存取點列表之間的相似度。當出現與第一存取點列表的相似度高於預設門限值(例如50%)的存取點列表時,所述伺服器可將此存取點列表對應的裝置定義為第二裝置,並列入所述第二列表中。 In an embodiment, the server may separately calculate the similarity between the list of access points uploaded by other devices and the first access point list. When an access point list having a similarity with the first access point list is higher than a preset threshold (for example, 50%), the server may define the device corresponding to the access point list as the second device. And included in the second list.

詳細而言,當兩個相異的裝置具有相似的存取點列表時,即代表這兩個裝置彼此相距甚近。也就是說,傳輸模組112_3可基於伺服器回傳的第二列表找出實體上(physically)相近於(例如位於同一層樓)電子裝置100的裝置(即,各第二裝置)。並且,即便某些第二裝置與電子裝置100屬於不同的子網,所述伺服器仍可基於上述教示來找出這些第二裝置,並透過第二列表告知電子裝置100。 In detail, when two distinct devices have similar access point lists, it means that the two devices are very close to each other. That is, the transmission module 112_3 can find devices (ie, each second device) that are physically similar (eg, located on the same floor) to the electronic device 100 based on the second list returned by the server. Moreover, even if some of the second devices and the electronic device 100 belong to different subnets, the server can find the second devices based on the above teachings and notify the electronic device 100 through the second list.

之後,在步驟S240中,產生模組112_4可聯集第一列表以及第二列表以產生包括至少一待配對裝置的配對列表。具體而言,由於第一列表中的各第一裝置可能與第二列表中的各第二裝置重複,因此產生模組112_4可透過步驟S240來避免配對列表中出現重複的待配對裝置。 Thereafter, in step S240, the generating module 112_4 may combine the first list and the second list to generate a pairing list including at least one device to be paired. Specifically, since each first device in the first list may overlap with each second device in the second list, the generating module 112_4 may prevent the repeated devices to be paired from appearing in the pairing list through step S240.

簡言之,透過本發明實施例提出的方法,電子裝置100除了可找出與其屬於同一子網的各第一裝置之外,更可透過第二 列表得知與其實體上相近的各第二裝置(即便某些第二裝置可能與電子裝置100分別屬於不同的子網)。從另一觀點而言,當使用者欲將其所擁有的電子裝置100與另一裝置(例如,筆記型電腦)配對時,本發明實施例所提出的方法可讓電子裝置100有較高的機會將此筆記型電腦作為待配對裝置而列入所產生的配對列表中,進而利於後續的配對操作。 In short, the electronic device 100 can find the first device that belongs to the same subnet as the second device. The list identifies each of the second devices that are physically similar (even though some of the second devices may belong to different subnets from the electronic device 100). From another point of view, when the user wants to pair the electronic device 100 owned by the user with another device (for example, a notebook computer), the method proposed by the embodiment of the present invention can make the electronic device 100 have a higher Opportunity to include this notebook as a paired device in the resulting pairing list, which facilitates subsequent pairing operations.

在其他實施例中,由於配對列表中可能包括為數眾多的待配對裝置,因此本發明可另透過高頻音傳播技術(SoundTrigger)來從這些待配對裝置中找出實體上最接近於(例如位於同一房間或隔間)電子裝置100的待配對裝置,進而提升後續配對操作的效率。以下將提供進一步說明。 In other embodiments, since the pairing list may include a large number of devices to be paired, the present invention may further find the closest to the paired devices by using a high-frequency sound propagation technology (SoundTrigger) (for example, located in The device to be paired with the electronic device 100 in the same room or compartment, thereby improving the efficiency of the subsequent pairing operation. Further explanation will be provided below.

請參照圖3,圖3是依據本發明之一實施例繪示的配對操作示意圖。本實施例提出的方法可由圖1的電子裝置100執行,以下即搭配圖1的各個元件來說明本方法的詳細步驟。步驟S310~S316的細節可參照圖2中步驟S210~S240的相關說明,在此不再贅述。在一實施例中,電子裝置100可更包括揚聲器118,而儲存單元112可更包括配對模組112_5,用以執行步驟S318~S332,具體說明如下。 Please refer to FIG. 3. FIG. 3 is a schematic diagram of a pairing operation according to an embodiment of the invention. The method proposed in this embodiment can be performed by the electronic device 100 of FIG. 1, and the detailed steps of the method are described below with the respective components of FIG. For details of the steps S310 to S316, refer to the related description of the steps S210 to S240 in FIG. 2, and details are not described herein again. In an embodiment, the electronic device 100 may further include a speaker 118, and the storage unit 112 may further include a pairing module 112_5 for performing steps S318 to S332, which are specifically described below.

在步驟S318中,配對模組112_5可控制揚聲器118發送聲音訊息,並判斷是否接收到至少一第三裝置對於聲音訊息的回應。在一實施例中,所述聲音訊息例如是由配對模組112_5編碼電子裝置100的識別資訊(例如實體識別碼)而成的高頻聲音訊 號。此高頻聲音訊息的頻率例如是人耳無法察覺的頻率(例如25000Hz),而其傳送範圍例如是0.5~1公尺以內,但本發明的可實施方式不限於此。 In step S318, the pairing module 112_5 can control the speaker 118 to send a voice message, and determine whether at least one third device responds to the voice message. In an embodiment, the voice message is, for example, a high frequency voice encoded by the pairing module 112_5 to encode identification information (eg, an entity identification code) of the electronic device 100. number. The frequency of the high frequency sound message is, for example, a frequency that the human ear cannot perceive (for example, 25,000 Hz), and the transmission range thereof is, for example, 0.5 to 1 meter, but the embodiment of the present invention is not limited thereto.

在本實施例中,所述至少一第三裝置例如是使用者欲用來與電子裝置100配對的裝置,其可透過麥克風裝置聽取來自揚聲器118的聲音訊息。當所述至少一第三裝置聽到此聲音訊息時,其可從中獲得電子裝置100的身分資訊,並例如透過網路或上述伺服器來發送所述回應至電子裝置100。在一實施例中,當使用者欲配對電子裝置100及所述至少一第三裝置時,使用者可將此二者個別切換至配對頁面。當所述至少一第三裝置處於此配對頁面時,其可開啟麥克風裝置以聽取上述聲音訊息,但本發明的可實施方式不限於此。 In this embodiment, the at least one third device is, for example, a device that the user wants to pair with the electronic device 100, and can listen to the sound message from the speaker 118 through the microphone device. When the at least one third device hears the voice message, it can obtain the identity information of the electronic device 100 therefrom, and send the response to the electronic device 100, for example, through a network or the server. In an embodiment, when the user wants to pair the electronic device 100 and the at least one third device, the user can switch the two to the pairing page individually. When the at least one third device is in the pairing page, it can turn on the microphone device to listen to the above sound message, but the embodiments of the present invention are not limited thereto.

由於聲音訊息的傳送距離較短,因此若電子裝置100接收到所述至少一第三裝置對於聲音訊息的回應,即代表此二裝置之間的距離相當近,因而很可能互為欲配對的目標。因此,在步驟S320中,配對模組112_5可判斷至少一第三裝置的數量是否為1。若是,此即代表所述第三裝置即為電子裝置100欲配對的目標,因此配對模組112_5可接續在步驟S322中定義至少一第三裝置為被選取的第一待配對裝置。 Since the transmission distance of the voice message is short, if the electronic device 100 receives the response of the at least one third device to the voice message, it means that the distance between the two devices is relatively close, so that it is likely to be the target to be paired with each other. . Therefore, in step S320, the pairing module 112_5 can determine whether the number of at least one third device is 1. If so, the third device is the target to be paired by the electronic device 100. Therefore, the pairing module 112_5 can further define at least one third device as the selected first device to be paired in step S322.

另一方面,若所述至少一第三裝置的數量不為1,即代表附近存在多個可能的配對目標,因此配對模組112_5可在步驟S324中顯示包括至少一待配對裝置的配對列表,以讓使用者從中 選取正確的待配對裝置。此外,當配對模組112_5在步驟S318中未接收到任何回應時,其亦可接續執行步驟S324,以讓使用者從中選取正確的待配對裝置。 On the other hand, if the number of the at least one third device is not 1, that is, there are multiple possible pairing targets in the vicinity, the pairing module 112_5 may display a pairing list including at least one device to be paired in step S324. To let users get from Select the correct device to be paired. In addition, when the matching module 112_5 does not receive any response in step S318, it may continue to perform step S324 to allow the user to select the correct device to be paired.

之後,在步驟S326中,當所述多個待配對裝置的第一待配對裝置被選取時,配對模組112_5可判斷第一待配對裝置是否屬於第一子網。若是,配對模組112_5可在步驟S330中控制通訊單元114發送配對要求至第一待配對裝置,並等待第一待配對裝置對於配對要求的配對回應。另一方面,若第一待配對裝置不屬於第一子網,則配對模組112_5可在步驟S328中控制通訊單元114切換連接至第一待配對裝置所屬的第二子網,再接續進行步驟S330。 Then, in step S326, when the first to-be-paired device of the plurality of devices to be paired is selected, the pairing module 112_5 may determine whether the first device to be paired belongs to the first subnet. If so, the pairing module 112_5 can control the communication unit 114 to send the pairing request to the first paired device in step S330, and wait for the pairing response of the first pairing device for the pairing request. On the other hand, if the first device to be paired does not belong to the first subnet, the pairing module 112_5 may control the communication unit 114 to switch to the second subnet to which the first device to be paired belongs in step S328, and then proceed to the step. S330.

接著,在步驟S332中,當配對回應指示第一待配對裝置同意配對要求時,配對模組112_5可與第一待配對裝置進行配對。 Next, in step S332, when the pairing response indicates that the first to-be-matched device agrees to the pairing request, the pairing module 112_5 may pair with the first paired device.

從以上實施例的教示可看出,本發明實施例提出的方法可讓使用者在不需註冊或登入帳號的情況下讓使用者輕易地完成兩個裝置之間的配對。並且,透過先前實施例中教示的機制,即便這兩個裝置分屬於不同的子網,本發明實施例提出的方法仍可順利地將對方找出,進而完成與彼此的配對。 As can be seen from the teachings of the above embodiments, the method provided by the embodiment of the present invention allows a user to easily perform pairing between two devices without registering or logging in to an account. Moreover, through the mechanism taught in the previous embodiment, even if the two devices belong to different subnets, the method proposed by the embodiment of the present invention can smoothly find out the other party and complete pairing with each other.

在其他實施例中,當電子裝置100與所欲配對的第一待配對裝置之間不存在網路連線或網路連線環境不佳時,電子裝置100亦可將自身的身分資訊輸出為快速響應矩陣碼(Quick Response,QR)代碼以供第一待配對裝置透過其配置的相機模組 讀取。接著,電子裝置100同樣可執行步驟S326~S332來完成與第一待配對裝置的配對,但本發明的可實施方式不限於此。 In other embodiments, when there is no network connection between the electronic device 100 and the first paired device to be paired, or the network connection environment is not good, the electronic device 100 may output its own identity information as Quick Response (QR) code for the camera module through which the first device to be paired is configured Read. Next, the electronic device 100 may perform the steps S326 to S332 to complete the pairing with the first device to be paired, but the embodiments of the present invention are not limited thereto.

在其他實施例中,本發明可更透過額外的機制來智慧地從配對列表中篩選出較接近於電子裝置的待配對裝置,進而提升配對的效率。 In other embodiments, the present invention can intelligently filter out the paired devices that are closer to the electronic device from the pairing list through an additional mechanism, thereby improving the efficiency of the pairing.

請參照圖4,圖4是依據本發明之一實施例繪示的電子裝置示意圖。在本實施例中,電子裝置400包括儲存單元412、通訊單元414、處理單元416及揚聲器418。電子裝置400及其所包括元件的各種可能的實施方式可參照圖1中的相關說明,在此不再贅述。處理單元416可存取儲存單元412中的產生模組412_1、搜尋模組412_2、判斷模組412_3及配對模組412_4來執行本發明提出的改善配對列表方法。 Please refer to FIG. 4. FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the invention. In the embodiment, the electronic device 400 includes a storage unit 412, a communication unit 414, a processing unit 416, and a speaker 418. For various possible implementations of the electronic device 400 and the components it includes, reference may be made to the related description in FIG. 1 , and details are not described herein again. The processing unit 416 can access the generating module 412_1, the searching module 412_2, the determining module 412_3, and the pairing module 412_4 in the storage unit 412 to perform the improved pairing list method proposed by the present invention.

圖5是依據本發明之一實施例繪示的配對方法。本實施例提出的方法可由圖4的電子裝置400執行,以下即搭配圖4的各個元件來說明本方法的詳細步驟。 FIG. 5 is a pairing method according to an embodiment of the invention. The method proposed in this embodiment can be performed by the electronic device 400 of FIG. 4, and the detailed steps of the method are described below with the respective components of FIG.

在步驟S510中,產生模組412_1可產生包括至少一待配對裝置的配對列表。在一實施例中,所述配對列表例如是依據圖2及圖3的相關教示所產生的配對列表。在其他實施例中,所述配對列表亦可以是由產生模組412_1執行例如藍牙探索(Bluetooth discovery)及通用即插即用(Universal Plug and Play,UPnP)等技術所找出的待配對裝置列表,但本發明的可實施方式不限於此。 In step S510, the generating module 412_1 may generate a pairing list including at least one device to be paired. In an embodiment, the pairing list is, for example, a pairing list generated in accordance with the related teachings of FIGS. 2 and 3. In other embodiments, the pairing list may also be a list of devices to be paired that are generated by the generating module 412_1, such as Bluetooth discovery and Universal Plug and Play (UPnP). However, the embodiments of the present invention are not limited thereto.

接著,在步驟S520中,搜尋模組412_2可執行近接偵測 以搜尋鄰近於電子裝置400的至少一鄰近裝置。所述近接偵測例如包括藍牙4.0以及高頻音傳播技術,但可不限於此。具體而言,搜尋模組412_2可基於藍牙4.0規格中的近距傳感定義(proximity profile)來偵測電子裝置400與其鄰近裝置之間的距離,進而找出最接近於電子裝置400的鄰近裝置。此外,搜尋模組412_2亦可控制揚聲器418發出先前實施例中教示的聲音訊息(例如具有人耳無法察覺頻率的短距離高頻聲音訊息)。如先前實施例所教示的,當可接收到聲音訊息的某一鄰近裝置處於配對頁面時,其可對應地傳送回應至電子裝置400。具體細節可參照先前實施例的教示,在此不再贅述。 Next, in step S520, the search module 412_2 can perform proximity detection. To search for at least one neighboring device adjacent to the electronic device 400. The proximity detection includes, for example, Bluetooth 4.0 and high frequency sound propagation technology, but is not limited thereto. Specifically, the search module 412_2 can detect the distance between the electronic device 400 and its neighbors based on the proximity profile in the Bluetooth 4.0 specification, thereby finding the nearest device that is closest to the electronic device 400. . In addition, the search module 412_2 can also control the speaker 418 to emit the voice message (for example, a short-range high-frequency voice message having a frequency that is undetectable by the human ear) as taught in the previous embodiment. As taught in the previous embodiments, when a neighboring device that can receive a voice message is on a pairing page, it can correspondingly transmit a response to the electronic device 400. For specific details, refer to the teachings of the previous embodiments, and details are not described herein again.

在步驟S530中,判斷模組412_3可判斷至少一鄰近裝置的其中之一是否相同於至少一待配對裝置中的第一待配對裝置。所述至少一鄰近裝置的所述其中之一例如是最接近於電子裝置400的鄰近裝置,但可不限於此。在本實施例中,若所述至少一鄰近裝置的所述其中之一相同於所述至少一待配對裝置中的第一待配對裝置,此即代表此第一待配對裝置即為電子裝置400欲配對的裝置,因此配對模組412_4可接續在步驟S540中與第一待配對裝置配對。步驟S540的細節可參照圖3實施例中的教示,在此不再贅述。 In step S530, the determining module 412_3 can determine whether one of the at least one neighboring devices is identical to the first pairing device in the at least one paired device. One of the at least one neighboring device is, for example, the closest device closest to the electronic device 400, but is not limited thereto. In this embodiment, if one of the at least one neighboring device is the same as the first device to be paired in the at least one device to be paired, this means that the first device to be paired is the electronic device 400. The device to be paired, so the pairing module 412_4 can be paired with the first paired device in step S540. For details of the step S540, reference may be made to the teachings in the embodiment of FIG. 3, and details are not described herein again.

另一方面,若至少一鄰近裝置完全不同於至少一待配對裝置,則配對模組412_4可在步驟S550中顯示包括至少一待配對裝置的配對列表,以供使用者選取欲配對的待配對裝置。之後, 在步驟S560中,當至少一待配對裝置中的其中之一被選取時,配對模組412_4可與至少一待配對裝置中的所述其中之一配對。相似地,具體配對細節仍可參照圖3實施例中的教示,在此不再贅述。 On the other hand, if at least one of the neighboring devices is completely different from the at least one device to be paired, the pairing module 412_4 may display a pairing list including at least one device to be paired in step S550 for the user to select the device to be paired to be paired. . after that, In step S560, when one of the at least one paired device is selected, the pairing module 412_4 may be paired with one of the at least one device to be paired. Similarly, the specific matching details can still refer to the teachings in the embodiment of FIG. 3, and details are not described herein again.

綜上所述,本發明實施例提出的方法可讓使用者在不需註冊或登入帳號的情況下讓使用者輕易地完成兩個裝置之間的配對。此外,即便這兩個裝置分屬於不同的子網,本發明實施例提出的方法仍可順利地將對方找出,進而完成與彼此的配對。 In summary, the method provided by the embodiment of the present invention allows a user to easily perform pairing between two devices without registering or logging in to an account. In addition, even if the two devices belong to different subnets, the method proposed by the embodiment of the present invention can successfully find out the other party and complete pairing with each other.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

S210~S240‧‧‧步驟 S210~S240‧‧‧Steps

Claims (10)

一種配對列表產生方法,適於一電子裝置,包括:搜尋與該電子裝置同屬於一第一子網的至少一第一裝置,並據以產生一第一列表;掃描該電子裝置附近的至少一存取點,並據以產生一第一存取點列表;上傳該第一存取點列表至一伺服器,並接收該伺服器回傳的一第二列表,其中該第二列表包括至少一第二裝置,且各所述第二裝置的一第二存取點列表與該第一存取點列表的一相似度高於一預設門限值;以及聯集該第一列表以及該第二列表以產生包括至少一待配對裝置的該配對列表。 A pairing list generating method, suitable for an electronic device, comprising: searching for at least one first device belonging to a first subnet and the electronic device, and generating a first list; scanning at least one of the vicinity of the electronic device Accessing a point, and generating a first access point list; uploading the first access point list to a server, and receiving a second list returned by the server, wherein the second list includes at least one a second device, wherein a similarity between a second access point list of each of the second devices and the first access point list is higher than a preset threshold; and the first list and the second are combined The list is generated to generate the pairing list including at least one device to be paired. 如申請專利範圍第1項所述的方法,其中在聯集該第一列表以及該第二列表以產生該配對列表的步驟之後,更包括:顯示包括該至少一待配對裝置的該配對列表;當該至少一待配對裝置中的一第一待配對裝置被選取時,判斷該第一待配對裝置是否屬於該第一子網;若是,發送一配對要求至該第一待配對裝置,並等待該第一待配對裝置對於該配對要求的一配對回應;以及當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The method of claim 1, wherein after the step of combining the first list and the second list to generate the pairing list, the method further comprises: displaying the pairing list including the at least one device to be paired; Determining whether the first device to be paired belongs to the first subnet when the first device to be paired is selected; if yes, sending a pairing request to the first device to be paired, and waiting The first pairing device responds to a pairing request of the pairing; and when the pairing response indicates that the first pairing device agrees to the pairing request, pairing with the first pairing device. 如申請專利範圍第2項所述的方法,其中當該第一待配對 裝置不屬於該第一子網時,切換連接至該第一待配對裝置所屬的一第二子網;發送該配對要求至該第一待配對裝置,並等待該第一待配對裝置對於該配對要求的該配對回應;以及當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The method of claim 2, wherein the first to be paired When the device does not belong to the first subnet, the connection is connected to a second subnet to which the first to-be-paired device belongs; the pairing request is sent to the first to-be-paired device, and the first paired device is waited for the pairing The paired response is requested; and when the pairing response indicates that the first paired device agrees to the pairing request, pairing with the first paired device. 如申請專利範圍第2項所述的方法,其中在顯示包括該至少一待配對裝置的該配對列表的步驟之前,更包括:發送一聲音訊息,並判斷是否接收到至少一第三裝置對於該聲音訊息的一回應;當未接收到該回應時,顯示包括該至少一待配對裝置的該配對列表。 The method of claim 2, wherein before the step of displaying the pairing list including the at least one device to be paired, the method further comprises: transmitting a voice message, and determining whether at least one third device is received for the a response to the voice message; when the response is not received, the pairing list including the at least one device to be paired is displayed. 如申請專利範圍第4項所述的方法,其中當接收到該回應時,判斷該至少一第三裝置的一數量是否為1;若否,顯示包括該至少一待配對裝置的該配對列表;若是,定義該至少一第三裝置為被選取的該第一待配對裝置;判斷該第一待配對裝置是否屬於該第一子網;若是,發送一配對要求至該第一待配對裝置,並等待該第一待配對裝置對於該配對要求的一配對回應;以及當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The method of claim 4, wherein when the response is received, determining whether the quantity of the at least one third device is 1; if not, displaying the pairing list including the at least one device to be paired; If yes, defining the at least one third device as the selected first to-be-matched device; determining whether the first to-be-matched device belongs to the first sub-network; if yes, sending a pairing request to the first to-be-matched device, and Waiting for a pairing response of the first pairing device for the pairing; and pairing with the first pairing device when the pairing response indicates that the first pairing device agrees to the pairing request. 一種電子裝置,用於產生一配對列表,包括: 一儲存單元,儲存多個模組;一通訊單元;以及一處理單元,連接該儲存單元及該通訊單元,存取並執行該些模組,該些模組包括:一搜尋模組,搜尋與該電子裝置同屬於一第一子網的至少一第一裝置,並據以產生一第一列表;一掃描模組,控制該通訊單元掃描該電子裝置附近的至少一存取點,並據以產生一第一存取點列表;一傳輸模組,上傳該第一存取點列表至一伺服器,並接收該伺服器回傳的一第二列表,其中該第二列表包括至少一第二裝置,且各所述第二裝置的一第二存取點列表與該第一存取點列表的一相似度高於一預設門限值;以及一產生模組,聯集該第一列表以及該第二列表以產生包括至少一待配對裝置的該配對列表。 An electronic device for generating a pairing list, comprising: a storage unit for storing a plurality of modules; a communication unit; and a processing unit connected to the storage unit and the communication unit for accessing and executing the modules, the modules comprising: a search module, searching and The electronic device belongs to at least one first device belonging to a first subnet, and accordingly generates a first list; a scanning module controls the communication unit to scan at least one access point in the vicinity of the electronic device, and accordingly Generating a first access point list; a transmission module uploading the first access point list to a server, and receiving a second list returned by the server, wherein the second list includes at least a second a device, and a similarity between a second access point list of each of the second devices and the first access point list is higher than a preset threshold; and a generating module, the first list is combined The second list is to generate the pairing list including at least one device to be paired. 如申請專利範圍第6項所述的電子裝置,其中該些模組更包括一配對模組,經配置以:顯示包括該至少一待配對裝置的該配對列表;當該至少一待配對裝置中的一第一待配對裝置被選取時,判斷該第一待配對裝置是否屬於該第一子網;若是,控制該通訊單元發送一配對要求至該第一待配對裝置,並等待該第一待配對裝置對於該配對要求的一配對回應;以及 當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The electronic device of claim 6, wherein the modules further comprise a pairing module configured to: display the pairing list including the at least one device to be paired; and in the at least one device to be paired When a first to-be-matched device is selected, determining whether the first to-be-matched device belongs to the first sub-network; if yes, controlling the communication unit to send a pairing request to the first to-be-matched device, and waiting for the first to-be-matched device a pairing response of the pairing device for the pairing requirement; When the pairing response indicates that the first paired device agrees to the pairing request, pairing with the first paired device. 如申請專利範圍第7項所述的電子裝置,其中當該第一待配對裝置不屬於該第一子網時,該配對模組更經配置以:控制該通訊單元切換連接至該第一待配對裝置所屬的一第二子網;控制該通訊單元發送該配對要求至該第一待配對裝置,並等待該第一待配對裝置對於該配對要求的該配對回應;以及當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The electronic device of claim 7, wherein when the first to-be-matched device does not belong to the first sub-network, the pairing module is further configured to: control the communication unit to switch to the first to-be-connected a second subnet to which the pairing device belongs; controlling the communication unit to send the pairing request to the first paired device, and waiting for the pairing response requested by the first pairing device for the pairing; and when the pairing response indicates the When the first paired device agrees to the pairing request, pairing with the first paired device. 如申請專利範圍第7項所述的電子裝置,其中該電子裝置更包括一揚聲器,且該配對模組更經配置以:控制該揚聲器發送一聲音訊息,並判斷是否接收到至少一第三裝置對於該聲音訊息的一回應;當未接收到該回應時,顯示包括該至少一待配對裝置的該配對列表。 The electronic device of claim 7, wherein the electronic device further comprises a speaker, and the pairing module is further configured to: control the speaker to send a voice message, and determine whether at least one third device is received. a response to the voice message; when the response is not received, displaying the pairing list including the at least one device to be paired. 如申請專利範圍第9項所述的電子裝置,其中當接收到該回應時,該配對模組更經配置以:判斷該至少一第三裝置的一數量是否為1;若否,顯示包括該至少一待配對裝置的該配對列表;若是,定義該至少一第三裝置為被選取的該第一待配對裝置;判斷該第一待配對裝置是否屬於該第一子網;若是,發送一配對要求至該第一待配對裝置,並等待該第 一待配對裝置對於該配對要求的一配對回應;以及當該配對回應指示該第一待配對裝置同意該配對要求時,與該第一待配對裝置進行配對。 The electronic device of claim 9, wherein when the response is received, the pairing module is further configured to: determine whether the quantity of the at least one third device is 1; if not, the display includes the At least one pairing list of the device to be paired; if yes, defining the at least one third device as the selected device to be paired; determining whether the first device to be paired belongs to the first subnet; if yes, sending a pair Request to the first device to be paired, and wait for the first a pairing response that the pairing device requires for the pairing; and pairing with the first pairing device when the pairing response indicates that the first pairing device agrees to the pairing request.
TW104109356A 2015-03-24 2015-03-24 Pairing list generating method and electronic apparatus using the same TW201635155A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
TW104109356A TW201635155A (en) 2015-03-24 2015-03-24 Pairing list generating method and electronic apparatus using the same
US14/810,491 US9609583B2 (en) 2015-03-24 2015-07-28 Method, system and electronic apparatus for searching nearby apparatus
US15/428,160 US9749943B2 (en) 2015-03-24 2017-02-09 Method, system and electronic apparatus for searching nearby apparatus
US15/428,157 US9838955B2 (en) 2015-03-24 2017-02-09 Method, system and electronic apparatus for searching nearby apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104109356A TW201635155A (en) 2015-03-24 2015-03-24 Pairing list generating method and electronic apparatus using the same

Publications (1)

Publication Number Publication Date
TW201635155A true TW201635155A (en) 2016-10-01

Family

ID=57847355

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104109356A TW201635155A (en) 2015-03-24 2015-03-24 Pairing list generating method and electronic apparatus using the same

Country Status (1)

Country Link
TW (1) TW201635155A (en)

Similar Documents

Publication Publication Date Title
US11825533B2 (en) Method and apparatus for Wi-Fi connection using Wi-Fi protected setup in portable terminal
US10708746B2 (en) Methods, systems, and devices for bluetooth low energy discovery
JP5985767B2 (en) Method and apparatus for peer-to-peer Wi-Fi ranging using near-field communication
KR101723453B1 (en) Apparatus and method for providing universal plug and play based on wi-fi direct connection in portable terminal
US9661493B2 (en) Apparatus and method for providing a wireless communication in a portable terminal
US10021512B2 (en) Switching to advertising locator after connection establishment
EP2908477A1 (en) Remote access method and device
US9456331B2 (en) Methods of discovering devices for network formation
CN107005819B (en) Selective user interaction in dynamic proximity-based groups of wireless communication devices
US20150133052A1 (en) Device selection
JP2017515360A (en) Method and apparatus for data path based on independent basic service set for neighbor aware network
CN105933469B (en) Network access method and device for intelligent equipment and intelligent equipment
CN113038627B (en) File sharing method, mobile device and computer storage medium
US9609681B2 (en) Method and apparatus for discovering target in device-to-device direct communication
US9838955B2 (en) Method, system and electronic apparatus for searching nearby apparatus
TWI539295B (en) Pairing method and electronic apparatus using the same
TW201635155A (en) Pairing list generating method and electronic apparatus using the same
AU2020418460A1 (en) Methods and systems for supporting communication a plurality of client communication devices in a wireless local area network
WO2023078268A1 (en) Dns message sending method, terminal, and network side device
CN106162819B (en) Match list generation method and electronic device
CN118118283A (en) IoT (internet of things) equipment network distribution method and related device
KR20170071829A (en) Transferring data btewwn devices