TW201508533A - Method and system for associating two terminals with each other, terminal and computer-readable storage medium - Google Patents

Method and system for associating two terminals with each other, terminal and computer-readable storage medium Download PDF

Info

Publication number
TW201508533A
TW201508533A TW103128983A TW103128983A TW201508533A TW 201508533 A TW201508533 A TW 201508533A TW 103128983 A TW103128983 A TW 103128983A TW 103128983 A TW103128983 A TW 103128983A TW 201508533 A TW201508533 A TW 201508533A
Authority
TW
Taiwan
Prior art keywords
terminal
identifier
server
barcode
information
Prior art date
Application number
TW103128983A
Other languages
Chinese (zh)
Other versions
TWI512525B (en
Inventor
Jie Lin
Original Assignee
Tencent Tech Shenzhen 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 Tencent Tech Shenzhen Co Ltd filed Critical Tencent Tech Shenzhen Co Ltd
Publication of TW201508533A publication Critical patent/TW201508533A/en
Application granted granted Critical
Publication of TWI512525B publication Critical patent/TWI512525B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method and a system for associating two terminals with each other, a terminal and a computer-readable storage medium are disclosed. The method includes: uploading a first terminal identifier to a server with a first terminal; acquiring a barcode corresponding to the first terminal identifier with the first terminal; scanning the barcode for acquiring a barcode information with a second terminal, the barcode information corresponding to the first terminal identifier; and uploading the barcode information and a second terminal identifier of the second terminal with the second terminal, so that the first terminal associates with the second terminal. The present invention can easily implement the association between the first terminal and the second terminal, thereby reducing operational time and saving power consumption.

Description

關聯終端的方法及系統、終端及電腦可讀取儲存介質 Method and system for associating terminal, terminal and computer readable storage medium

本發明關於電腦技術領域,特別是關於一種關聯終端的方法及系統和終端。 The present invention relates to the field of computer technology, and in particular, to a method, system and terminal for associating a terminal.

習知技術中,不同終端之間有兩種共用資訊的方式:一種是先在第一終端使用帳號資訊登錄並上傳資訊到伺服器,再從第二終端使用同一帳號資訊登錄並下載資訊;另一種是建立不同帳號資訊之間的關聯,例如“加好友”、“加入群組”等,然後可以憑藉關聯的帳號資訊在不同終端登錄,使得不同終端之間建立根據帳號資訊的關聯,進而實現資訊同步。 In the prior art, there are two ways of sharing information between different terminals: one is to log in and upload information to the server by using the account information in the first terminal, and then use the same account information to log in and download information from the second terminal; One is to establish associations between different account information, such as "adding friends", "joining groups", etc., and then logging in on different terminals by means of associated account information, so that associations between different terminals are established according to account information, thereby realizing Information synchronization.

然而,發明人發現習知技術中至少存在以下問題:根據帳號資訊而關聯終端的方法中,由於需要由使用者輸入帳號資訊進行登錄,基於安全性考慮,帳號資訊一般較為複雜,使得關聯終端的操作繁瑣,會增加使用者操作終端的時間,進而增加終端的耗電量,特別是對於電量有限的移動終端來說,會縮短其續航時間。 However, the inventors have found that at least the following problems exist in the prior art: in the method of associating a terminal according to the account information, since the user needs to input the account information to log in, the account information is generally complicated based on security considerations, so that the associated terminal is The cumbersome operation increases the time for the user to operate the terminal, thereby increasing the power consumption of the terminal, especially for a mobile terminal with limited power, which shortens the battery life.

基於上述問題,有必要針對上述根據帳號資訊關聯終端時操作繁瑣、增加終端耗電量的技術問題提供一種關聯終端的方法及系統和終端。 Based on the above problems, it is necessary to provide a method, system and terminal for associating a terminal with the technical problem of cumbersome operation and increasing power consumption of the terminal when the terminal is associated according to the account information.

本發明之一種關聯終端的方法包括:一第一終端將一第一終 端標識上傳至一伺服器;所述第一終端獲取與所述第一終端標識對應之一條碼;一第二終端掃描所述條碼以獲取一條碼資訊,所述條碼資訊對應至所述第一終端標識;以及所述第二終端將所述條碼資訊和所述第二終端標識上傳到所述伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal according to the present invention includes: a first terminal will be a first terminal The end identifier is uploaded to a server; the first terminal acquires a barcode corresponding to the first terminal identifier; and a second terminal scans the barcode to obtain a code information, where the barcode information corresponds to the first And the second terminal uploads the barcode information and the second terminal identifier to the server, so that the first terminal identifier is associated with the second terminal identifier.

上述關聯終端的方法中,由第二終端掃描第一終端之條碼以獲取條碼資訊,再將掃描後得到的條碼資訊和第二終端標識上傳到伺服器,由於條碼資訊在伺服器上也對應至第一終端標識,因此透過相同的條碼資訊即可在伺服器將第一終端標識關聯第二終端標識,進而實現第一終端與第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需第二終端掃描第一終端上的條碼,減少使用者為關聯終端進行操作的時間,節省終端的耗電量。 In the method for associating a terminal, the second terminal scans the barcode of the first terminal to obtain the barcode information, and then uploads the barcode information and the second terminal identifier obtained after the scanning to the server, because the barcode information is also corresponding to the server on the server. The first terminal identifier, so that the first terminal identifier is associated with the second terminal identifier by the server through the same barcode information, thereby implementing association between the first terminal and the second terminal. The entire association process does not need to input complex account information, and only the second terminal scans the barcode on the first terminal, thereby reducing the time for the user to operate the associated terminal and saving the power consumption of the terminal.

本發明之一種關聯終端的方法包括:一第一終端生成一條碼;所述第一終端獲取對應所述條碼之一條碼資訊,並將所述條碼資訊和一第一終端標識上傳至一伺服器;以及一第二終端掃描所述條碼以獲取所述條碼資訊,並將所述條碼資訊和所述第二終端之一第二終端標識上傳至所述伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal according to the present invention includes: a first terminal generates a code; the first terminal acquires bar code information corresponding to the bar code, and uploads the bar code information and a first terminal identifier to a server And a second terminal scanning the barcode to obtain the barcode information, and uploading the barcode information and the second terminal identifier of the second terminal to the server, so that the first terminal identifier is associated The second terminal identifier.

上述關聯終端的方法中,由第一終端生成條碼,並將條碼對應的條碼資訊和第一終端標識上傳至伺服器,再由第二終端掃描第一終端上的條碼,將得到的條碼資訊和第二終端標識上傳至伺服器,因此透過第一終端上生成的條碼,即可在伺服器上將第一終端標識關聯第二終端標識,進而實現第一終端與第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需第二終端掃描第一終端上的條碼,減少使用者為關聯終端進行操作的時間,節省終端的耗電量。 In the method for associating a terminal, the barcode is generated by the first terminal, and the barcode information corresponding to the barcode and the first terminal identifier are uploaded to the server, and then the second terminal scans the barcode on the first terminal, and the obtained barcode information is The second terminal identifier is uploaded to the server. Therefore, the first terminal identifier is associated with the second terminal identifier on the server by using the barcode generated on the first terminal, thereby implementing association between the first terminal and the second terminal. The entire association process does not need to input complex account information, and only the second terminal scans the barcode on the first terminal, thereby reducing the time for the user to operate the associated terminal and saving the power consumption of the terminal.

本發明之一種關聯終端的方法包括:一第一終端根據一第一終端標識生成一條碼;以及一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端之一第二終端標識上傳至一 伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal according to the present invention includes: a first terminal generates a code according to a first terminal identifier; and a second terminal scans the barcode to obtain the first terminal identifier, and the first terminal identifier Uploading to the second terminal identifier of one of the second terminals The server is configured to associate the first terminal identifier with the second terminal identifier.

上述關聯終端的方法中,第一終端根據第一終端標識生成條碼,再由第二終端掃描第一終端上的條碼即可獲得第一終端標識,並將第一終端標識和第二終端標識上傳至伺服器,因此即可在伺服器上將第一終端標識關聯第二終端標識,進而實現第一終端與第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需第二終端掃描第一終端上生成的條碼,減少使用者為關聯終端進行操作的時間,節省終端的耗電量。 In the method for associating a terminal, the first terminal generates a barcode according to the first terminal identifier, and then the second terminal scans the barcode on the first terminal to obtain the first terminal identifier, and uploads the first terminal identifier and the second terminal identifier. To the server, the first terminal identifier can be associated with the second terminal identifier on the server, thereby implementing association between the first terminal and the second terminal. The entire association process does not need to input complicated account information, and only the second terminal scans the barcode generated on the first terminal, thereby reducing the time for the user to operate the associated terminal and saving the power consumption of the terminal.

本發明之一種關聯終端的方法包括:一第一終端根據一第一終端標識生成一條碼;一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端之一第二終端標識上傳至一伺服器;以及所述伺服器儲存所述第一終端標識和所述第二終端標識的對應關係。 A method for associating a terminal according to the present invention includes: a first terminal generates a code according to a first terminal identifier; a second terminal scans the barcode to obtain the first terminal identifier, and identifies the first terminal identifier The second terminal identifier of the second terminal is uploaded to a server; and the server stores a correspondence between the first terminal identifier and the second terminal identifier.

上述關聯終端的方法中,第一終端根據第一終端標識生成條碼,再由第二終端掃描第一終端上的條碼即可獲得第一終端標識,並將第一終端標識和第二終端標識上傳至伺服器,伺服器儲存第一終端標識和第二終端標識的對應關係,因此即可在伺服器上將第一終端標識關聯第二終端標識,進而實現第一終端與第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需第二終端掃描第一終端上生成的條碼,減少使用者為關聯終端進行操作的時間,節省終端的耗電量。 In the method for associating a terminal, the first terminal generates a barcode according to the first terminal identifier, and then the second terminal scans the barcode on the first terminal to obtain the first terminal identifier, and uploads the first terminal identifier and the second terminal identifier. To the server, the server stores the correspondence between the first terminal identifier and the second terminal identifier, so that the first terminal identifier can be associated with the second terminal identifier on the server, thereby implementing the relationship between the first terminal and the second terminal. Association. The entire association process does not need to input complicated account information, and only the second terminal scans the barcode generated on the first terminal, thereby reducing the time for the user to operate the associated terminal and saving the power consumption of the terminal.

本發明之一種終端包括:一掃描模組,用於掃描另一終端上之一第一條碼以獲取一第一條碼資訊,所述第一條碼資訊對應至所述另一終端之一第一終端標識;以及一上傳模組,用於將所述第一條碼資訊和所述終端之一第二終端標識上傳至所述伺服器,使所述第二終端標識關聯所述另一終端之所述第一終端標識。 A terminal of the present invention includes: a scanning module, configured to scan a first barcode on another terminal to obtain a first barcode information, where the first barcode information corresponds to one of the first terminals of the other terminal And an uploading module, configured to upload the first barcode information and the second terminal identifier of the terminal to the server, so that the second terminal identifier is associated with the another terminal The first terminal identifier.

上述終端透過掃描另一終端上的第一條碼獲得第一條碼資訊,由於第一條碼資訊在伺服器上對應至另一終端的第一終端標識,終端 將得到的第一條碼資訊和終端之一第二終端標識上傳至伺服器,使第二終端標識關聯另一終端之第一終端標識,因此在伺服器上,第二終端標識與另一終端之第一終端標識都與相同的第一條碼資訊對應,使得在伺服器上第二終端標識能夠關聯另一終端之第一終端標識,進而實現該終端與另一終端之間的關聯。由於無需輸入複雜的帳號資訊,僅需掃描第一條碼即可實現兩個終端之間的關聯,減少使用者為關聯終端進行操作的時間,節省終端的耗電量。 The terminal obtains the first bar code information by scanning the first bar code on the other terminal, and the first bar code information corresponds to the first terminal identifier of the other terminal on the server, and the terminal Uploading the obtained first barcode information and the second terminal identifier of the terminal to the server, so that the second terminal identifier is associated with the first terminal identifier of the other terminal, so on the server, the second terminal identifier and the other terminal The first terminal identifiers are all corresponding to the same first barcode information, so that the second terminal identifier on the server can be associated with the first terminal identifier of the other terminal, thereby implementing the association between the terminal and the other terminal. Since it is not necessary to input complicated account information, only the first barcode can be scanned to realize the association between the two terminals, thereby reducing the time for the user to operate the associated terminal and saving the power consumption of the terminal.

本發明之一種關聯終端的系統包括:一第一終端,具有一第一條碼以及一第一終端標識;一伺服器;以及一第二終端,包括:一掃描模組,用於掃描所述第一條碼以獲取與所述第一終端標識對應之一第一條碼資訊;以及一上傳模組,用於將所述第一條碼資訊和所述第二終端之一第二終端標識上傳至所述伺服器,使所述第二終端標識關聯所述第一終端之所述第一終端標識。 A system for associating a terminal of the present invention includes: a first terminal having a first barcode and a first terminal identifier; a server; and a second terminal, comprising: a scanning module, configured to scan the first a code for obtaining the first barcode information corresponding to the first terminal identifier; and an uploading module, configured to upload the first barcode information and the second terminal identifier of the second terminal to the And the server, configured to associate the second terminal identifier with the first terminal identifier of the first terminal.

600、700、800、900、1000‧‧‧終端 600, 700, 800, 900, 1000‧‧‧ terminals

602‧‧‧掃描模組 602‧‧‧ scan module

604‧‧‧上傳模組 604‧‧‧Upload module

606‧‧‧查詢模組 606‧‧‧Query Module

608‧‧‧條碼獲取模組 608‧‧‧ barcode acquisition module

610‧‧‧條碼生成模組 610‧‧‧ barcode generation module

612‧‧‧另一條碼生成模組 612‧‧‧Another code generation module

1110‧‧‧射頻電路 1110‧‧‧RF circuit

1120‧‧‧記憶體 1120‧‧‧ memory

1130‧‧‧輸入單元 1130‧‧‧ Input unit

1131‧‧‧觸控面板 1131‧‧‧ touch panel

1132‧‧‧其他輸入裝置 1132‧‧‧Other input devices

1140‧‧‧顯示單元 1140‧‧‧Display unit

1141‧‧‧顯示面板 1141‧‧‧ display panel

1150‧‧‧感測器 1150‧‧‧ sensor

1160‧‧‧音訊電路 1160‧‧‧ audio circuit

1161‧‧‧揚聲器 1161‧‧‧Speakers

1162‧‧‧傳聲器 1162‧‧‧Microphone

1170‧‧‧無線通訊模組 1170‧‧‧Wireless communication module

1180‧‧‧處理器 1180‧‧‧ processor

1190‧‧‧電源 1190‧‧‧Power supply

S102-S108、S302-S306、S402-S404、S502-S506‧‧‧步驟 S102-S108, S302-S306, S402-S404, S502-S506‧‧‧ steps

第1圖為本發明實施例之關聯終端的方法流程圖。 FIG. 1 is a flowchart of a method for associating a terminal according to an embodiment of the present invention.

第2圖為一具體應用場景中關聯終端的方法時序圖。 FIG. 2 is a timing diagram of a method for associating a terminal in a specific application scenario.

第3圖為本發明另一實施例之關聯終端的方法流程圖。 FIG. 3 is a flowchart of a method for associating a terminal according to another embodiment of the present invention.

第4圖為本發明又一實施例之關聯終端的方法流程圖。 FIG. 4 is a flowchart of a method for associating a terminal according to still another embodiment of the present invention.

第5圖為本發明又一實施例之關聯終端的方法流程圖。 FIG. 5 is a flowchart of a method for associating a terminal according to still another embodiment of the present invention.

第6圖為本發明實施例之終端方塊圖。 Figure 6 is a block diagram of a terminal according to an embodiment of the present invention.

第7圖為本發明另一實施例之終端方塊圖。 Figure 7 is a block diagram of a terminal according to another embodiment of the present invention.

第8圖為本發明又一實施例之終端方塊圖。 Figure 8 is a block diagram of a terminal according to still another embodiment of the present invention.

第9圖為本發明又一實施例之終端方塊圖。 Figure 9 is a block diagram of a terminal according to still another embodiment of the present invention.

第10圖為本發明又一實施例之終端方塊圖。 Figure 10 is a block diagram of a terminal according to still another embodiment of the present invention.

第11圖為本發明提供的終端為手機的部分結構方塊圖。 Figure 11 is a block diagram showing a part of the structure of the mobile phone provided by the present invention.

為了使本發明的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅僅用以解釋本發明,並不用於限定本發明。 The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

如第1圖所示,本發明實施例之關聯終端的方法包括:步驟S102,一第一終端將一第一終端標識上傳至一伺服器。 As shown in FIG. 1 , the method for associating a terminal in the embodiment of the present invention includes: Step S102: A first terminal uploads a first terminal identifier to a server.

所述第一終端可以是具有一顯示螢幕且可連接網路的終端,包括但不限於智慧手機、平板電腦、個人數位助理(Personal Digital Assistant;PDA)、電子書閱讀器、動態影像專家壓縮標準音頻層面3(Moving Picture Experts Group Audio Layer III;MP3)播放機、動態影像專家壓縮標準音頻層面4(Moving Picture Experts Group Audio Layer IV;MP4)播放機、銷售時點管理系統(Point Of Sale;POS)終端、膝上型可攜式電腦和桌上型電腦等等。 The first terminal may be a terminal having a display screen and connectable to the network, including but not limited to a smart phone, a tablet, a personal digital assistant (PDA), an e-book reader, and a motion picture expert compression standard. Audio Picture Experts Group Audio Layer III (MP3) player, Motion Picture Experts Group Audio Layer IV (MP4) player, Point Of Sale (POS) Terminals, laptops, laptops, and more.

所述第一終端標識可以是所述第一終端之一設備識別碼,例如當所述第一終端為手機時,第一終端標識可以是國際移動設備識別碼(International Mobile Equipment Identity;IMEI)。所述第一終端還可以向一服務平台發送一標識請求,進而接收服務平台根據所述標識請求所回傳之第一終端標識。此外,所述第一終端標識也可以是全球唯一識別碼(Globally Unique IDentifier;GUID),其又稱為通用唯一識別碼(Universally Unique IDentifier;UUID),全球唯一識別碼是一種由演算法所生成二進位長度為128位元的數位識別碼,所述第一終端可以透過向服務平台發送標識請求獲得該全球唯一識別碼。 The first terminal identifier may be a device identifier of the first terminal. For example, when the first terminal is a mobile phone, the first terminal identifier may be an International Mobile Equipment Identity (IMEI). The first terminal may further send an identifier request to a service platform, and then receive the first terminal identifier returned by the service platform according to the identifier request. In addition, the first terminal identifier may also be a Globally Unique IDentifier (GUID), which is also called a Universally Unique IDentifier (UUID), and the global unique identifier is generated by an algorithm. The binary digit has a digit identification code of 128 bits, and the first terminal may obtain the global unique identifier by sending an identification request to the service platform.

步驟S104,所述第一終端獲取與所述第一終端標識對應之一條碼。 Step S104: The first terminal acquires a barcode corresponding to the first terminal identifier.

所述條碼是用以儲存資訊的圖形識別符,可以是條形碼、二維條碼如QR碼(Quick Response Code)、以及彩色條碼等,在此不做限定。 The bar code is a graphic identifier for storing information, and may be a barcode, a two-dimensional bar code such as a QR code (Quick Response Code), and a color bar code, which are not limited herein.

在一實施例中,步驟S104包括:所述第一終端接收所述伺服器所回傳與所述第一終端標識對應之一條碼資訊,並根據所述條碼資訊生成所述條碼。 In an embodiment, the step S104 includes: the first terminal receives, by the server, a barcode information corresponding to the first terminal identifier, and generates the barcode according to the barcode information.

本實施例中,所述第一終端上傳所述第一終端標識至所述伺服器後,所述伺服器可生成與所述第一終端標識對應之條碼資訊,並儲存所述條碼資訊和所述第一終端標識的對應關係,並將生成的條碼資訊回傳至所述第一終端。具體的,所述伺服器可根據所述第一終端標識生成所述條碼資訊,即所述條碼資訊中包含所述第一終端標識,當然,所述條碼資訊中也可不包含所述第一終端標識,而僅儲存所述條碼資訊與所述第一終端標識的對應關係。 In this embodiment, after the first terminal uploads the first terminal identifier to the server, the server may generate barcode information corresponding to the first terminal identifier, and store the barcode information and the location. Determining a correspondence between the first terminal identifiers, and transmitting the generated barcode information to the first terminal. Specifically, the server may generate the barcode information according to the first terminal identifier, that is, the barcode information includes the first terminal identifier, and of course, the barcode information may not include the first terminal. And storing only the correspondence between the barcode information and the first terminal identifier.

具體的,所述第一終端接收到所述條碼資訊後,根據所述條碼資訊生成所述條碼的步驟可透過傳統的條碼生成方法生成所述條碼。本實施例中,由於所述第一終端接收所述伺服器所回傳與所述第一終端標識對應之條碼資訊,使得網路傳輸的資訊量小,佔用網路資源少,即使在網路狀況不佳的情況下也可以生成條碼,因此受網路狀況的影響較小。 Specifically, after the first terminal receives the barcode information, the step of generating the barcode according to the barcode information may generate the barcode by using a traditional barcode generation method. In this embodiment, the first terminal receives the barcode information corresponding to the first terminal identifier returned by the server, so that the information transmitted by the network is small, and the network resources are small, even in the network. Barcodes can also be generated in poor conditions and are therefore less affected by network conditions.

在另一實施例中,步驟S104包括:所述第一終端接收所述伺服器所回傳與所述第一終端標識對應之條碼。本實施例中,所述第一終端上傳所述第一終端標識至所述伺服器後,所述伺服器生成與所述第一終端標識對應之條碼資訊,儲存所述條碼資訊與所述第一終端標識的對應關係,並根據所述條碼資訊生成所述條碼,然後將所述條碼回傳至所述第一終端,簡而言之,由所述伺服器生成所述條碼,然後所述第一終端接收所述伺服器所回傳的條碼,由於所述第一終端無需在本地生成條碼,能夠節省本地資源,而且對所述第一終端硬體要求低,相容性強。 In another embodiment, step S104 includes: the first terminal receiving a barcode returned by the server corresponding to the first terminal identifier. In this embodiment, after the first terminal uploads the first terminal identifier to the server, the server generates barcode information corresponding to the first terminal identifier, and stores the barcode information and the first Corresponding relationship of a terminal identifier, and generating the barcode according to the barcode information, and then transmitting the barcode to the first terminal, in short, the barcode is generated by the server, and then the The first terminal receives the barcode returned by the server. Since the first terminal does not need to generate a barcode locally, the local resource can be saved, and the hardware requirements of the first terminal are low and the compatibility is strong.

步驟S106,一第二終端掃描所述條碼以獲取條碼資訊,所 述條碼資訊在所述伺服器上對應至所述第一終端標識。 Step S106, a second terminal scans the barcode to obtain barcode information. The bar code information corresponds to the first terminal identifier on the server.

所述第二終端配置有一圖像擷取裝置,且能夠掃描並解析條碼。所述第二終端包括但不限於智慧手機、平板電腦、PDA、電子書閱讀器、MP3播放機、MP4播放機、POS終端、膝上型可攜式電腦和桌上型電腦等等。所述第二終端掃描條碼並透過擷取圖像資訊以得到含有條碼的圖像,之後再經過條碼定位、分割和解碼實現條碼的解析,進而獲得與條碼對應的條碼資訊。 The second terminal is configured with an image capture device and is capable of scanning and parsing the barcode. The second terminal includes, but is not limited to, a smart phone, a tablet, a PDA, an e-book reader, an MP3 player, an MP4 player, a POS terminal, a laptop portable computer, a desktop computer, and the like. The second terminal scans the barcode and obtains an image containing the barcode by extracting the image information, and then performs barcode analysis, segmentation, and decoding to implement barcode analysis, thereby obtaining barcode information corresponding to the barcode.

步驟S108,所述第二終端將所述條碼資訊和所述第二終端之一第二終端標識上傳到所述伺服器,以使所述第一終端標識關聯所述第二終端標識。 Step S108: The second terminal uploads the barcode information and the second terminal identifier of the second terminal to the server, so that the first terminal identifier is associated with the second terminal identifier.

所述第二終端標識可以是所述第二終端之一設備識別碼,例如當第二終端為手機時,第二終端標識可以是國際移動設備識別碼。所述第二終端還可以向服務平台發送一標識請求,進而接收服務平台根據所述標識請求所回傳之第二終端標識。此外,所述第二終端標識也可以是全球唯一識別碼,所述第二終端可以透過向服務平台請求獲得全球唯一識別碼。 The second terminal identifier may be one of the second terminal device identifiers. For example, when the second terminal is a mobile phone, the second terminal identifier may be an international mobile device identifier. The second terminal may further send an identifier request to the service platform, and then receive the second terminal identifier returned by the service platform according to the identifier request. In addition, the second terminal identifier may also be a globally unique identifier, and the second terminal may request to obtain a globally unique identifier from the service platform.

本實施例中,所述第二終端將所述條碼資訊和所述第二終端標識上傳到伺服器,由於在伺服器上所述條碼資訊與所述第一終端標識對應,使得所述第一終端標識能夠透過相同的條碼資訊關聯所述第二終端標識,實現所述第一終端與所述第二終端的關聯,也就是將第一終端和第二終端進行綁定。 In this embodiment, the second terminal uploads the barcode information and the second terminal identifier to the server, and the barcode information on the server corresponds to the first terminal identifier, so that the first The terminal identifier can be associated with the second terminal by using the same barcode information, and the first terminal is associated with the second terminal, that is, the first terminal and the second terminal are bound.

上述關聯終端的方法中,整個關聯過程無需輸入複雜的帳號資訊,僅需由所述第二終端掃描所述第一終端上的條碼,減少使用者為關聯所述第一及第二終端進行操作的時間,節省所述第一及第二終端的耗電量。若由多個第二終端掃描第一終端上的條碼還能快速實現多個終端的關聯。 In the foregoing method for associating a terminal, the entire association process does not need to input complicated account information, and only the second terminal scans the barcode on the first terminal, so that the user operates the associated first and second terminals. Time, saving power consumption of the first and second terminals. If the barcodes on the first terminal are scanned by the plurality of second terminals, the association of the multiple terminals can be quickly implemented.

應當說明的是,本發明實施例中的第一終端和第二終端係泛 指兩個不同的終端,在其他實施例中,第一終端也可掃描第二終端獲取到的條碼,實現兩個終端的關聯,具體過程在此則不再贅述。 It should be noted that the first terminal and the second terminal in the embodiment of the present invention are generally Two different terminals are used. In other embodiments, the first terminal may also scan the barcode obtained by the second terminal to implement association between the two terminals. The specific process is not described here.

在一實施例中,所述關聯終端的方法還包括:所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之第二終端標識。 In an embodiment, the method for associating a terminal further includes: the first terminal sending, to the server, a query request having the bar code information and the first terminal identifier, and receiving the server The second terminal identifier corresponding to the barcode information is returned.

本實施例中,在將所述第一終端關聯所述第二終端後,所述第一終端可向所述伺服器發送查詢請求,所述查詢請求中具有所述條碼資訊和所述第一終端標識,所述伺服器接收到所述查詢請求後,可判斷所述伺服器上是否存在所述條碼資訊和所述第一終端標識的對應關係的記錄,若是,則通過驗證,所述伺服器向所述第一終端回傳與所述條碼資訊對應之第二終端標識;若否則不回傳資訊或者回傳查詢失敗的資訊。當在所述伺服器上查詢到與所述條碼資訊對應有多個第二終端標識時,則將查詢到所有與所述條碼資訊對應之第二終端標識都回傳至所述第一終端。 In this embodiment, after the first terminal is associated with the second terminal, the first terminal may send a query request to the server, where the query request has the barcode information and the first After the server receives the query request, the server may determine whether there is a record of the correspondence between the barcode information and the first terminal identifier on the server, and if yes, pass the verification, the server The device returns a second terminal identifier corresponding to the barcode information to the first terminal; if not, the information is not returned or the information of the query failure is returned. When the server is queried to have multiple second terminal identifiers corresponding to the barcode information, all second terminal identifiers corresponding to the barcode information are queried back to the first terminal.

本實施例中,所述第一終端向所述伺服器發送查詢請求並獲取與所述條碼資訊對應之第二終端標識後,進而可以根據所述第二終端標識向所述第二終端傳遞資訊,實現資訊同步。例如所述第一終端向所述伺服器發送具有所述第一終端標識、所述第二終端標識和資訊內容之一資訊請求,然後所述伺服器向所述第二終端標識對應的第二終端發送具有所述第一終端標識和資訊內容,使所述第二終端能收到資訊內容。同樣的,所述第二終端也可根據收到的第一終端標識向所述第一終端發送資訊內容。 In this embodiment, after the first terminal sends a query request to the server and obtains the second terminal identifier corresponding to the barcode information, the first terminal may further transmit information to the second terminal according to the second terminal identifier. To achieve information synchronization. For example, the first terminal sends an information request with the first terminal identifier, the second terminal identifier, and the information content to the server, and then the server identifies the second corresponding to the second terminal identifier. The terminal sends the first terminal identifier and the information content, so that the second terminal can receive the information content. Similarly, the second terminal may also send the information content to the first terminal according to the received first terminal identifier.

進一步的,在一實施例中,在所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之查詢請求的步驟之後還包括:所述第一終端接收所述伺服器所回傳與所述第二終端標識對應之第二終端屬性資訊,第二終端屬性資訊可以為所述第二終端上儲存的資訊。 Further, in an embodiment, after the step of the first terminal sending the query request with the barcode information and the first terminal identifier to the server, the method further includes: the first terminal receiving the The second terminal attribute information corresponding to the second terminal identifier is returned by the server, and the second terminal attribute information may be information stored on the second terminal.

所述第二終端屬性資訊可以包括終端名稱、終端使用的操作平台(例如Android、iOS或Windows等作業系統)、終端類型(例如智慧型 手機、桌上型式電腦、可擕式電腦)等。所述第二終端可以預先將所述第二終端標識和所述第二終端屬性資訊上傳到所述伺服器。所述伺服器向所述第一終端回傳與條碼資訊對應之第二終端標識時,還可將與所述第二終端標識對應之第二終端屬性資訊同時回傳至所述第一終端,使得所述第一終端可直接地展示所述第二終端屬性資訊,便於使用者獲知所關聯的終端的屬性資訊。 The second terminal attribute information may include a terminal name, an operation platform used by the terminal (such as an operating system such as Android, iOS, or Windows), and a terminal type (for example, a smart type). Mobile phones, desktop computers, portable computers, etc. The second terminal may upload the second terminal identifier and the second terminal attribute information to the server in advance. When the server returns the second terminal identifier corresponding to the barcode information to the first terminal, the second terminal attribute information corresponding to the second terminal identifier may be simultaneously transmitted back to the first terminal. The first terminal can directly display the second terminal attribute information, so that the user can know the attribute information of the associated terminal.

在另一實施例中,所述關聯終端的方法還包括:所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之第一終端標識和/或與所述第一終端關聯的其他第二終端標識。 In another embodiment, the method for associating a terminal further includes: the second terminal transmitting, to the server, a query request having one of the barcode information and the second terminal identifier, and receiving the server Returning, by the first terminal identifier corresponding to the barcode information, and/or other second terminal identifiers associated with the first terminal.

本實施例中,所述第二終端可向所述伺服器請求查詢關聯的第一終端和/或與第一終端關聯的其他第二終端。具體的,所述第二終端向所述伺服器發送查詢請求,該查詢請求中具有所述條碼資訊和所述第二終端標識,所述伺服器接收到所述查詢請求後,進一步查詢與所述條碼資訊對應之第一終端標識,若所述條碼資訊對應多個第二終端標識,則還可查詢到與所述條碼資訊對應之其他第二終端標識(即不包含發送查詢請求之第二終端之第二終端標識)。因此,所述第二終端可接收到所述伺服器所回傳與所述條碼資訊對應之第一終端標識和/或與所述條碼資訊對應之其他第二終端標識。 In this embodiment, the second terminal may request the server to query the associated first terminal and/or other second terminals associated with the first terminal. Specifically, the second terminal sends a query request to the server, where the query request has the barcode information and the second terminal identifier, and after receiving the query request, the server further queries and queries The first terminal identifier corresponding to the barcode information, if the barcode information corresponds to the plurality of second terminal identifiers, the second terminal identifier corresponding to the barcode information may be queried (ie, the second request for sending the query request is not included) The second terminal identifier of the terminal). Therefore, the second terminal may receive, by the server, a first terminal identifier corresponding to the barcode information and/or another second terminal identifier corresponding to the barcode information.

本實施例中,在所述第二終端既可顯示所述第一終端標識,也可以顯示與所述第一終端標識關聯的其他第二終端標識,使得第二終端除了可以與所述第一終端進行資訊同步外,還能夠和與所述第一終端關聯的其他第二終端進行資訊同步,減少多次掃描條碼的操作及使用者在操作的時間,進一步節省終端的耗電量。 In this embodiment, the second terminal may display the first terminal identifier, and may display other second terminal identifiers associated with the first terminal identifier, so that the second terminal may be identical to the first terminal. In addition to the information synchronization, the terminal can also perform information synchronization with other second terminals associated with the first terminal, reduce the operation of scanning the barcode multiple times and the time of the user operation, and further save the power consumption of the terminal.

進一步的,在一實施例中,在所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之查詢請求的步驟之後還包括: 所述第二終端接收所述伺服器所回傳與所述第一終端標識對應之第一終端屬性資訊和/或與第一終端關聯的其他第二終端之第二終端屬性資訊,第一終端屬性資訊和其他第二終端之第二終端屬性資訊分別為所述第一終端上儲存的資訊和其他第二終端上儲存的資訊。 Further, in an embodiment, after the step of the second terminal sending the query request with the barcode information and the second terminal identifier to the server, the method further includes: Receiving, by the server, the first terminal attribute information corresponding to the first terminal identifier and/or the second terminal attribute information of the other second terminal associated with the first terminal, the first terminal The attribute information and the second terminal attribute information of the other second terminal are information stored on the first terminal and information stored on the other second terminal, respectively.

所述第一終端屬性資訊和其他第二終端之第二終端屬性資訊可以包括終端名稱、終端使用的操作平台(例如Android、iOS或Windows等作業系統)、終端類型(比如智慧手機、桌上型式電腦、可擕式電腦)等。所述第一終端可以預先將所述第一終端標識和所述第一終端屬性資訊上傳到伺服器,其他第二終端可以預先將其他第二終端標識和其他第二終端屬性資訊上傳到伺服器。所述伺服器向所述第二終端回傳所述第一終端標識和/或其他第二終端標識時,還可將所述第一終端標識對應之第一終端屬性資訊和/或其他第二終端標識對應之第二終端屬性資訊一併回傳,使得所述第二終端上可直接地展示所述第一終端屬性資訊和/或其他第二終端標識之第二終端屬性資訊,便於使用者獲知與第二終端關聯的第一終端屬性資訊和/或與第一終端關聯的其他第二終端屬性資訊。 The first terminal attribute information and the second terminal attribute information of the other second terminal may include a terminal name, an operation platform used by the terminal (such as an operating system such as Android, iOS, or Windows), and a terminal type (such as a smart phone or a desktop type). Computer, portable computer, etc. The first terminal may upload the first terminal identifier and the first terminal attribute information to the server in advance, and the other second terminal may upload other second terminal identifiers and other second terminal attribute information to the server in advance. . When the server returns the first terminal identifier and/or other second terminal identifiers to the second terminal, the first terminal identifier information corresponding to the first terminal identifier and/or other second The second terminal attribute information corresponding to the terminal identifier is returned, so that the second terminal attribute information and/or the second terminal attribute information of the other second terminal identifier can be directly displayed on the second terminal, which is convenient for the user. The first terminal attribute information associated with the second terminal and/or other second terminal attribute information associated with the first terminal are known.

下面以一具體應用場景來說明上述關聯終端的方法,如第2圖所示,關聯終端的系統之具體過程如下: The following describes the method for associating a terminal with a specific application scenario. As shown in FIG. 2, the specific process of the system for associating a terminal is as follows:

(1)第一終端將第一終端標識上傳至伺服器,伺服器根據第一終端標識生成條碼資訊,並儲存條碼資訊和第一終端標識的對應關係。第一終端接收伺服器所回傳與第一終端標識對應之條碼資訊,進而根據回傳的條碼資訊生成條碼,並將該條碼顯示在第一終端的顯示螢幕上。第二終端掃描該條碼以獲取條碼資訊,進而將該條碼資訊和第二終端標識上傳至伺服器,而伺服器儲存條碼資訊和第二終端標識的對應關係以使條碼資訊與第一終端標識和第二終端標識對應,進而使得第一終端關聯第二終端。 (1) The first terminal uploads the first terminal identifier to the server, and the server generates barcode information according to the first terminal identifier, and stores the correspondence between the barcode information and the first terminal identifier. The first terminal receives the barcode information corresponding to the first terminal identifier, and generates a barcode according to the returned barcode information, and displays the barcode on the display screen of the first terminal. The second terminal scans the barcode to obtain barcode information, and then uploads the barcode information and the second terminal identifier to the server, and the server stores the correspondence between the barcode information and the second terminal identifier to make the barcode information and the first terminal identifier The second terminal identifier corresponds to, so that the first terminal is associated with the second terminal.

(2)當第二終端欲向第一終端發送資訊時,先向伺服器發 送具有經由掃描獲取的條碼資訊和第二終端標識之一查詢請求,伺服器收到該查詢請求後,對該查詢請求進行有效性驗證,即查詢伺服器上是否存在條碼資訊和第二終端標識的對應關係,若存在則驗證成功,伺服器向第二終端回傳第一終端標識和與第一終端標識對應之第一終端屬性資訊,若不存在則回傳驗證失敗的資訊,第二終端收到第一終端屬性資訊並予以展示,並可接收使用者輸入針對該第一終端屬性資訊的選擇指令,進而可向所選擇的第一終端屬性資訊對應之第一終端發送資訊。 (2) when the second terminal wants to send information to the first terminal, first sends the message to the server. Sending a query request with one of the bar code information and the second terminal identifier obtained by scanning, after receiving the query request, the server validates the query request, that is, whether the bar code information and the second terminal identifier exist on the query server. Corresponding relationship, if yes, the verification succeeds, the server returns the first terminal identifier and the first terminal attribute information corresponding to the first terminal identifier to the second terminal, and if not, returns the information of the verification failure, the second terminal The first terminal attribute information is received and displayed, and the user can input a selection instruction for the first terminal attribute information, and then send information to the first terminal corresponding to the selected first terminal attribute information.

(3)第二終端向資訊中心發送具有第一終端標識、第二終端標識、條碼資訊和資訊內容之一資訊請求。資訊中心收到該資訊請求後,將第一終端標識、第二終端標識和條碼資訊發送至伺服器進行驗證,由伺服器判斷第一終端是否關聯第二終端。具體地,檢測伺服器上是否存在條碼資訊與第一終端標識以及第二終端標識的對應關係,若存在則代表第一終端關聯第二終端,向資訊中心回傳驗證成功的資訊,驗證成功後,資訊中心向第一終端發送第二終端標識和資訊內容,進而實現將資訊內容從第二終端傳遞到第一終端。同樣的,第一終端也可以根據收到的第二終端標識,透過資訊中心向第二終端發送資訊內容。 (3) The second terminal sends an information request with the first terminal identifier, the second terminal identifier, the barcode information, and the information content to the information center. After receiving the information request, the information center sends the first terminal identifier, the second terminal identifier, and the barcode information to the server for verification, and the server determines whether the first terminal is associated with the second terminal. Specifically, the detection server has a correspondence between the barcode information and the first terminal identifier and the second terminal identifier. If yes, the first terminal is associated with the second terminal, and the information about the verification success is returned to the information center. The information center sends the second terminal identifier and the information content to the first terminal, so as to implement the information content from the second terminal to the first terminal. Similarly, the first terminal may also send the information content to the second terminal through the information center according to the received second terminal identifier.

如第3圖所示,本發明另一實施例之關聯終端的方法包括:步驟S302,一第一終端生成一條碼。 As shown in FIG. 3, the method for associating a terminal according to another embodiment of the present invention includes: Step S302: A first terminal generates a code.

所述第一終端可以根據一第一終端標識生成條碼,也可以透過產生亂數來生成條碼,還可以根據使用者輸入的資訊生成條碼。 The first terminal may generate a barcode according to a first terminal identifier, or generate a barcode by generating a random number, and generate a barcode according to the information input by the user.

步驟S304,所述第一終端獲取對應所述條碼之一條碼資訊,並將所述條碼資訊和所述第一終端標識上傳至一伺服器。 Step S304, the first terminal acquires barcode information corresponding to one of the barcodes, and uploads the barcode information and the first terminal identifier to a server.

當所述第一終端根據所述第一終端標識生成條碼時,所述條碼資訊可以包括所述第一終端標識。當透過產生亂數生成條碼時,所述條碼資訊可以包括生成的亂數。當根據使用者輸入的資訊生成條碼時,所述條碼資訊可以包括使用者輸入的資訊。所述伺服器接收到所述第一終端上 傳的條碼資訊和第一終端標識後,儲存條碼資訊和第一終端標識的對應關係。 When the first terminal generates a barcode according to the first terminal identifier, the barcode information may include the first terminal identifier. When the barcode is generated by generating a random number, the barcode information may include the generated random number. When the barcode is generated based on the information input by the user, the barcode information may include information input by the user. Receiving, by the server, the first terminal After the barcode information and the first terminal identifier are transmitted, the correspondence between the barcode information and the first terminal identifier is stored.

步驟306,一第二終端掃描所述條碼以獲取所述條碼資訊,將所述條碼資訊和所述第二終端之一第二終端標識上傳至所述伺服器,使所述第一終端標識關聯所述第二終端標識。 Step 306: A second terminal scans the barcode to obtain the barcode information, and uploads the barcode information and the second terminal identifier of the second terminal to the server, so that the first terminal identifier is associated. The second terminal identifier.

所述第二終端將所述條碼資訊和所述第二終端標識上傳至所述伺服器後,由於在伺服器上所述條碼資訊與所述第一終端標識對應,使得所述第一終端標識和所述第二終端標識能夠透過相同的條碼資訊關聯起來,實現第一終端與第二終端的關聯,也就是將第一終端和第二終端進行了綁定。 After the second terminal uploads the bar code information and the second terminal identifier to the server, the bar code information on the server corresponds to the first terminal identifier, so that the first terminal identifier is The second terminal identifier can be associated with the second terminal by using the same barcode information, that is, the first terminal and the second terminal are bound.

在一實施例中,所述關聯終端的方法還包括:所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之一查詢請求,接收所述伺服器所回傳與所述條碼資訊對應之第二終端標識。本實施例中,將所述第一終端關聯所述第二終端後,所述第一終端可向所述伺服器發送查詢請求,獲取與所述條碼資訊對應之第二終端標識,進而可以根據獲取的第二終端標識,向第二終端傳遞資訊,實現資訊同步。 In an embodiment, the method for associating a terminal further includes: the first terminal transmitting, to the server, a query request having one of the barcode information and the first terminal identifier, and receiving the server back Transmitting a second terminal identifier corresponding to the barcode information. In this embodiment, after the first terminal is associated with the second terminal, the first terminal may send a query request to the server, and acquire a second terminal identifier corresponding to the barcode information, and then Obtaining the second terminal identifier, transmitting information to the second terminal, and implementing information synchronization.

在一實施例中,在所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之查詢請求的步驟之後還包括:所述第一終端接收所述伺服器所回傳與所述第二終端標識對應之第二終端屬性資訊。本實施例中,所述伺服器向所述第一終端回傳與所述條碼資訊對應之第二終端標識時,還可將與所述第二終端標識對應之第二終端屬性資訊一併回傳至所述第一終端,因此在所述第一終端可直接地展示所述第二終端屬性資訊,便於使用者獲知關聯的終端屬性資訊。 In an embodiment, after the step of the first terminal sending the query request with the barcode information and the first terminal identifier to the server, the method further includes: the first terminal receiving the server And transmitting, by the second terminal attribute information corresponding to the second terminal identifier. In this embodiment, when the server returns the second terminal identifier corresponding to the barcode information to the first terminal, the server may also return the second terminal attribute information corresponding to the second terminal identifier. The information is transmitted to the first terminal, so that the second terminal attribute information can be directly displayed on the first terminal, so that the user can know the associated terminal attribute information.

在另一實施例中,所述關聯終端的方法還包括:所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之查詢請求,接收所述伺服器回傳與所述條碼資訊對應之第一終端標識和/或其他第二終 端標識。 In another embodiment, the method for associating a terminal further includes: the second terminal sending a query request with the barcode information and the second terminal identifier to the server, and receiving the server backhaul a first terminal identifier corresponding to the barcode information and/or other second terminal End identification.

本實施例中,所述第二終端可向所述伺服器請求查詢所關聯的第一終端和/或與所述第一終端關聯的其他第二終端,所述伺服器回傳具有所述條碼資訊所對應之第一終端標識和/或與所述條碼資訊對應之其他第二終端標識(即不包含發送查詢請求之第二終端之第二終端標識)。所述第二終端既可顯示所述第一終端標識,也可顯示與所述第一終端標識關聯的其他第二終端標識,使得所述第二終端除了可以與所述第一終端進行資訊同步外,還能夠和與所述第一終端關聯的其他終端進行資訊同步,減少多次掃描條碼的操作及使用者操作的時間,進一步節省終端的耗電量。 In this embodiment, the second terminal may request the server to query the associated first terminal and/or other second terminal associated with the first terminal, and the server returns the barcode. The first terminal identifier corresponding to the information and/or other second terminal identifier corresponding to the barcode information (ie, the second terminal identifier of the second terminal that does not include the query request). The second terminal may display the first terminal identifier or other second terminal identifiers associated with the first terminal identifier, so that the second terminal may perform information synchronization with the first terminal. In addition, information synchronization can be performed with other terminals associated with the first terminal, which reduces the operation of scanning barcodes and the time of user operation, and further saves power consumption of the terminal.

在一實施例中,在所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之查詢請求的步驟之後還包括:所述第二終端接收所述伺服器回傳所述第一終端標識之第一終端屬性資訊和/或其他第二終端標識之第二終端屬性資訊。本實施例中,所述伺服器向所述第二終端回傳第一終端標識和/或其他第二終端標識時,還可將第一終端標識之第一終端屬性資訊和/或其他第二終端標識之第二終端屬性資訊一併回傳,使得所述第二終端上可直接地展示第一終端屬性資訊和/或其他第二終端屬性資訊,便於使用者獲知與所述第二終端關聯的第一終端的屬性資訊和/或與第一終端關聯的其他第二終端屬性資訊。 In an embodiment, after the step of the second terminal sending the query request with the barcode information and the second terminal identifier to the server, the method further includes: the second terminal receiving the server back Transmitting the first terminal attribute information of the first terminal identifier and/or the second terminal attribute information of the other second terminal identifier. In this embodiment, when the server returns the first terminal identifier and/or other second terminal identifiers to the second terminal, the first terminal attribute information of the first terminal identifier and/or other second The second terminal attribute information of the terminal identifier is returned, so that the first terminal attribute information and/or other second terminal attribute information can be directly displayed on the second terminal, so that the user can learn to associate with the second terminal. The attribute information of the first terminal and/or other second terminal attribute information associated with the first terminal.

上述關聯終端的方法中,整個關聯過程無需輸入複雜的帳號資訊,僅需由所述第二終端掃描所述第一終端上的條碼,減少使用者為關聯所述第一及第二終端進行操作的時間,節省所述第一及第二終端進行的耗電量。此外,由於所述第一終端可以自行生成條碼,在生成條碼的過程中無需與伺服器連線,因此能夠節省網路資源。 In the foregoing method for associating a terminal, the entire association process does not need to input complicated account information, and only the second terminal scans the barcode on the first terminal, so that the user operates the associated first and second terminals. The time saved by the first and second terminals is saved. In addition, since the first terminal can generate a barcode by itself, it is not necessary to connect with a server in the process of generating a barcode, thereby saving network resources.

如第4圖所示,本發明又一實施例之關聯終端的方法包括:步驟S402,一第一終端根據一第一終端標識生成一條碼。 As shown in FIG. 4, the method for associating a terminal according to another embodiment of the present invention includes: Step S402: A first terminal generates a code according to a first terminal identifier.

所述第一終端根據所述第一終端標識生成所述條碼,所述條 碼對應之一條碼資訊包含所述第一終端標識。 Generating, by the first terminal, the barcode according to the first terminal identifier, where the strip The code corresponding to one of the barcode information includes the first terminal identifier.

步驟S404,一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端之一第二終端標識上傳至一伺服器,使所述第一終端標識關聯所述第二終端標識。 Step S404, a second terminal scans the barcode to obtain the first terminal identifier, and uploads the first terminal identifier and the second terminal identifier of the second terminal to a server, so that the first terminal A terminal identifier is associated with the second terminal identifier.

所述第二終端將所述第一終端標識和所述第二終端標識上傳至所述伺服器,因此所述第一終端標識和所述第二終端標識可在所述伺服器上有對應關係,使所述第一終端標識關聯所述第二終端標識,進而實現所述第一終端和所述第二終端的關聯。若由多個第二終端掃描所述第一終端上的條碼還能快速實現多個終端的關聯。 The second terminal uploads the first terminal identifier and the second terminal identifier to the server, so the first terminal identifier and the second terminal identifier may have corresponding relationships on the server. And the first terminal identifier is associated with the second terminal identifier, thereby implementing association between the first terminal and the second terminal. If the barcodes on the first terminal are scanned by the plurality of second terminals, the association of the multiple terminals can be quickly implemented.

在一實施例中,所述關聯終端的方法還包括:所述第一終端向所述伺服器發送具有所述第一終端標識之一查詢請求,並接收所述伺服器回傳與所述第一終端標識對應之第二終端標識。本實施例中,所述第一終端向所述伺服器發送查詢請求,獲取與所述第一終端標識對應之第二終端標識,進而可以根據所述第二終端標識向所述第二終端傳遞資訊,實現資訊同步。 In an embodiment, the method for associating a terminal further includes: the first terminal sending a query request with the first terminal identifier to the server, and receiving the server backhaul and the first A second terminal identifier corresponding to the terminal identifier. In this embodiment, the first terminal sends a query request to the server, and acquires a second terminal identifier corresponding to the first terminal identifier, and may further transmit the second terminal identifier to the second terminal according to the second terminal identifier. Information to achieve information synchronization.

在一實施例中,在所述第一終端向所述伺服器發送具有第一終端標識之查詢請求的步驟之後還包括:所述第一終端接收所述伺服器回傳所述第二終端標識之第二終端屬性資訊。所述伺服器向所述第一終端回傳所述第一終端標識之第二終端標識時,還可將所述第二終端標識之第二終端屬性資訊一併回傳至所述第一終端,使得第一終端可直接地展示第二終端屬性資訊,便於使用者獲知關聯的終端的屬性資訊。 In an embodiment, after the step of the first terminal sending the query request with the first terminal identifier to the server, the method further includes: the first terminal receiving the server, returning the second terminal identifier The second terminal attribute information. When the server returns the second terminal identifier of the first terminal identifier to the first terminal, the second terminal attribute information of the second terminal identifier may be returned to the first terminal. The first terminal can directly display the second terminal attribute information, so that the user can know the attribute information of the associated terminal.

在一實施例中,所述關聯終端的方法還包括:所述第二終端向所述伺服器發送具有所述第二終端標識之一查詢請求,並接收所述伺服器回傳與所述第二終端標識對應之第一終端標識。所述第二終端可根據獲取的第一終端標識向所述第一終端傳遞資訊,實現資訊同步。 In an embodiment, the method for associating a terminal further includes: the second terminal sending a query request with the second terminal identifier to the server, and receiving the server backhaul and the first The first terminal identifier corresponding to the second terminal identifier. The second terminal may transmit information to the first terminal according to the obtained first terminal identifier to implement information synchronization.

在一實施例中,在所述第二終端向所述伺服器發送具有所述 第二終端標識之查詢請求的步驟之後還包括:所述第二終端接收所述伺服器回傳所述第一終端標識之第一終端屬性資訊。所述伺服器向所述第二終端回傳與所述第二終端標識對應之第一終端標識時,還可將所述第一終端標識之第一終端屬性資訊一併回傳至所述第二終端,因此所述第二終端可直接地展示第一終端屬性資訊,便於使用者獲知關聯的終端的屬性資訊。 In an embodiment, the second terminal sends the message to the server The step of the second terminal identifier query request further includes: the second terminal receiving the first terminal attribute information of the first terminal identifier by the server. When the server returns the first terminal identifier corresponding to the second terminal identifier to the second terminal, the first terminal attribute information of the first terminal identifier may be returned to the first The second terminal, so the second terminal can directly display the first terminal attribute information, so that the user can know the attribute information of the associated terminal.

上述關聯終端的方法中,由所述第一終端根據所述第一終端標識生成條碼,再由所述第二終端掃描所述第一終端上的條碼即可獲得所述第一終端標識,並將所述第一終端標識和所述第二終端標識上傳至所述伺服器。因此在伺服器上第一終端標識關聯第二終端標識,進而實現第一終端關聯第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需由所述第二終端掃描所述第一終端上生成的條碼,減少使用者為關聯所述第一及第二終端進行操作的時間,節省所述第一及第二終端的耗電量。此外,由於所述第一終端根據第一終端標識來生成條碼,無需所述第一終端再將所述第一終端標識和所述條碼資訊上傳至所述伺服器,可節省網路資源。 In the method for associating a terminal, the first terminal generates a barcode according to the first terminal identifier, and the second terminal scans the barcode on the first terminal to obtain the first terminal identifier, and Uploading the first terminal identifier and the second terminal identifier to the server. Therefore, the first terminal identifier is associated with the second terminal identifier on the server, so that the association between the first terminal and the second terminal is implemented. The entire association process does not need to input complex account information, and only the second terminal scans the barcode generated on the first terminal, thereby reducing the time for the user to operate the associated first and second terminals, saving the The power consumption of the first and second terminals. In addition, since the first terminal generates a barcode according to the first terminal identifier, the first terminal does not need to upload the first terminal identifier and the barcode information to the server, thereby saving network resources.

如第5圖所示,本發明又一實施例之關聯終端的方法包括:步驟S502,一第一終端根據一第一終端標識生成一條碼。 As shown in FIG. 5, the method for associating a terminal according to another embodiment of the present invention includes: Step S502: A first terminal generates a code according to a first terminal identifier.

所述第一終端根據所述第一終端標識生成條碼,所述條碼對應之一條碼資訊包含所述第一終端標識。 The first terminal generates a barcode according to the first terminal identifier, and the barcode information corresponding to the barcode includes the first terminal identifier.

步驟S504,一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端標識上傳至一伺服器。 Step S504: A second terminal scans the barcode to obtain the first terminal identifier, and uploads the first terminal identifier and the second terminal identifier to a server.

所述第二終端透過掃描所述第一終端上的條碼以獲得所述第一終端標識,可以將所述第一終端標識和所述第二終端標識對應後再上傳至所述伺服器,也可以將所述第一終端標識和所述第二終端標識上傳至伺服器後,由所述伺服器將所述第一終端標識和第二終端標識對應起來。 The second terminal scans the barcode on the first terminal to obtain the first terminal identifier, and the first terminal identifier and the second terminal identifier are corresponding to each other, and then uploaded to the server, After the first terminal identifier and the second terminal identifier are uploaded to the server, the first terminal identifier and the second terminal identifier are associated by the server.

步驟S506,所述伺服器儲存所述第一終端標識和所述第二 終端標識的對應關係。 Step S506, the server stores the first terminal identifier and the second Correspondence of terminal identification.

所述伺服器接收到所述第二終端上傳的第一終端標識和第二終端標識,儲存所述第一終端標識和所述第二終端標識的對應關係,使所述第一終端標識關聯所述第二終端標識。 Receiving, by the server, the first terminal identifier and the second terminal identifier that are uploaded by the second terminal, and storing a correspondence between the first terminal identifier and the second terminal identifier, so that the first terminal identifier is associated with the first terminal identifier The second terminal identifier is described.

在一實施例中,所述關聯終端的方法還包括:所述第一終端向所述伺服器發送具有所述第一終端標識之一查詢請求,所述伺服器向所述第一終端回傳與所述第一終端標識對應之第二終端標識。本實施例中,所述第一終端向所述伺服器發送查詢請求,獲取與所述第一終端標識對應之第二終端標識,進而可以根據所述第二終端標識向所述第二終端傳遞資訊,實現資訊同步。 In an embodiment, the method for associating a terminal further includes: the first terminal sending a query request with the first terminal identifier to the server, and the server returns a message to the first terminal a second terminal identifier corresponding to the first terminal identifier. In this embodiment, the first terminal sends a query request to the server, and acquires a second terminal identifier corresponding to the first terminal identifier, and may further transmit the second terminal identifier to the second terminal according to the second terminal identifier. Information to achieve information synchronization.

在一實施例中,在所述第一終端向所述伺服器發送具有所述第一終端標識之查詢請求的步驟之後還包括:所述伺服器向所述第一終端回傳所述第二終端標識之第二終端屬性資訊,所述伺服器向所述第一終端回傳與所述第一終端標識對應之第二終端標識時,還可將所述第二終端標識之第二終端屬性資訊一併回傳至所述第一終端,因此所述第一終端可直接地展示第二終端屬性資訊,便於使用者獲知關聯的終端的屬性資訊。 In an embodiment, after the step of the first terminal sending the query request with the first terminal identifier to the server, the method further includes: the server returning the second to the first terminal The second terminal attribute information of the terminal identifier, when the server returns the second terminal identifier corresponding to the first terminal identifier to the first terminal, the second terminal attribute of the second terminal identifier may also be The information is returned to the first terminal, so that the first terminal can directly display the second terminal attribute information, so that the user can know the attribute information of the associated terminal.

在一實施例中,所述關聯終端的方法還包括:所述第二終端向所述伺服器發送具有第二終端標識之一查詢請求,所述伺服器向所述第二終端回傳與所述第二終端標識對應之第一終端標識,所述第二終端根據獲取的第一終端標識可向所述第一終端傳遞資訊,實現資訊同步。 In an embodiment, the method for associating a terminal further includes: the second terminal transmitting, to the server, a query request with a second terminal identifier, where the server sends back a message to the second terminal The first terminal identifier corresponding to the second terminal identifier is used, and the second terminal may transmit information to the first terminal according to the obtained first terminal identifier to implement information synchronization.

在一實施例中,在所述第二終端向所述伺服器發送具有所述第二終端標識之查詢請求的步驟之後還包括:所述伺服器向所述第二終端回傳所述第一終端標識之第一終端屬性資訊。所述伺服器向所述第二終端回傳與所述第二終端標識對應之第一終端標識時,還可將所述第一終端標識之第一終端屬性資訊一併回傳至所述第二終端,因此第二終端可直接地展示第一終端屬性資訊,便於使用者獲知關聯的終端的屬性資訊。 In an embodiment, after the step of the second terminal sending the query request with the second terminal identifier to the server, the method further includes: the server returning the first to the second terminal The first terminal attribute information of the terminal identifier. When the server returns the first terminal identifier corresponding to the second terminal identifier to the second terminal, the first terminal attribute information of the first terminal identifier may be returned to the first The second terminal, so the second terminal can directly display the first terminal attribute information, so that the user can know the attribute information of the associated terminal.

上述關聯終端的方法中,所述第一終端根據所述第一終端標識生成條碼,再由所述第二終端掃描所述第一終端上的條碼即可獲得所述第一終端標識,並將所述第一終端標識和所述第二終端標識上傳至所述伺服器,所述伺服器儲存所述第一終端標識和所述第二終端標識的對應關係,使所述第一終端標識關聯所述第二終端標識,進而實現所述第一終端與所述第二終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需所述第二終端掃描所述第一終端上生成的條碼,減少使用者為關聯終端進行操作的時間,並節省終端的耗電量。此外,由於所述第一終端根據所述第一終端標識來生成條碼,無需所述第一終端再將所述第一終端標識和所述條碼資訊上傳至所述伺服器,可節省網路資源。 In the method for associating a terminal, the first terminal generates a barcode according to the first terminal identifier, and then the second terminal scans the barcode on the first terminal to obtain the first terminal identifier, and The first terminal identifier and the second terminal identifier are uploaded to the server, and the server stores a correspondence between the first terminal identifier and the second terminal identifier, so that the first terminal identifier is associated with The second terminal identifier further implements an association between the first terminal and the second terminal. The entire association process does not need to input complicated account information, and only the second terminal scans the barcode generated on the first terminal, which reduces the time for the user to operate the associated terminal, and saves the power consumption of the terminal. In addition, since the first terminal generates a barcode according to the first terminal identifier, the first terminal does not need to upload the first terminal identifier and the barcode information to the server, thereby saving network resources. .

本發明所屬技術領域中具有通常知識者可以理解實現上述實施例方法中的全部或部分流程可以透過電腦程式來指令相關的硬體完成,所述程式包括指令集合並可以儲存於一電腦可讀取儲存介質中,於本發明實施例中,所述程式儲存於終端的儲存介質中,並被終端中之至少一處理器執行,以實現包括如上述各方法的流程。所述電腦可讀取儲存介質可為磁碟、光碟、唯讀記憶體(Read Only Memory;ROM)或隨機存取記憶體(Random Access Memory;RAM)等。 Those skilled in the art can understand that all or part of the process of implementing the above embodiments can be used to instruct related hardware completion through a computer program, the program includes a set of instructions and can be stored in a computer readable. In the storage medium, in the embodiment of the present invention, the program is stored in a storage medium of the terminal and executed by at least one processor in the terminal to implement a process including the foregoing methods. The computer readable storage medium may be a magnetic disk, a optical disk, a read only memory (ROM), or a random access memory (RAM).

如第6圖所示,本發明實施例之終端600對應至第2圖之關聯終端的系統的第二終端,該終端600可以包括但不限於智慧手機、平板電腦、PDA、電子書閱讀器、MP3播放機、MP4播放機、POS終端、膝上型可攜式電腦和桌上型電腦等等,該終端600包括一掃描模組602以及一上傳模組604。 As shown in FIG. 6, the terminal 600 of the embodiment of the present invention corresponds to the second terminal of the system of the associated terminal of FIG. 2, and the terminal 600 may include, but is not limited to, a smart phone, a tablet, a PDA, an e-book reader, The MP3 player, the MP4 player, the POS terminal, the laptop portable computer, the desktop computer, and the like, the terminal 600 includes a scanning module 602 and an uploading module 604.

所述掃描模組602用於掃描另一終端上之一第一條碼以獲取所述第一條碼之一第一條碼資訊,所述第一條碼資訊在一伺服器上對應所述另一終端之一第一終端標識。 The scanning module 602 is configured to scan one of the first barcodes on the other terminal to obtain the first barcode information of the first barcode, where the first barcode information corresponds to the other terminal on a server. A first terminal identifier.

所述條碼是用以儲存資訊的圖形識別符,可以是條形碼、二 維條碼如QR碼(Quick Response Code)、以及彩色條碼等,在此不做限定。 The barcode is a graphic identifier for storing information, and may be a barcode, two The barcodes such as the QR code (Quick Response Code) and the color barcode are not limited herein.

第一終端標識可以是所述另一終端之一設備識別碼,例如當所述另一終端為手機時,第一終端標識可以是國際移動設備識別碼。所述另一終端還可以向服務平台發送一標識請求,進而接收服務平台根據該標識請求所回傳的第一終端標識。此外,第一終端標識也可以是全球唯一識別碼,全球唯一識別碼是一種由演算法所生成二進位長度為128位元的數位識別碼,所述另一終端可以透過向服務平台發送標識請求獲得全球唯一識別碼。 The first terminal identifier may be one of the other terminal device identifiers. For example, when the other terminal is a mobile phone, the first terminal identifier may be an international mobile device identifier. The another terminal may further send an identifier request to the service platform, and then receive the first terminal identifier returned by the service platform according to the identifier request. In addition, the first terminal identifier may also be a global unique identifier, and the global unique identifier is a digit identifier generated by the algorithm with a binary length of 128 bits, and the other terminal may send an identifier request to the service platform. Get a global unique identifier.

所述上傳模組604用於將所述第一條碼資訊和所述終端600之一第二終端標識上傳至伺服器,使所述第二終端標識關聯另一終端之第一終端標識。 The uploading module 604 is configured to upload the first barcode information and the second terminal identifier of the terminal 600 to the server, so that the second terminal identifier is associated with the first terminal identifier of the other terminal.

由於所述第一條碼資訊在伺服器上對應至另一終端之第一終端標識,終端600將所述第一條碼資訊和所述第二終端標識上傳至伺服器後,透過相同的第一條碼資訊可在伺服器將第二終端標識和另一終端之第一終端標識對應起來,進而實現所述終端600與另一終端之間的關聯。整個關聯過程無需輸入複雜的帳號資訊,僅需由終端600掃描另一終端上的第一條碼,減少使用者為關聯終端進行操作的時間,節省終端600的耗電量。 And the terminal 600 uploads the first barcode information and the second terminal identifier to the server, and transmits the same first barcode according to the first barcode identifier corresponding to the first terminal identifier of the other terminal on the server. The information may be associated between the second terminal identifier and the first terminal identifier of the other terminal at the server, thereby implementing association between the terminal 600 and another terminal. The entire association process does not need to input complicated account information, and only the first barcode on the other terminal is scanned by the terminal 600, which reduces the time for the user to operate the associated terminal, and saves the power consumption of the terminal 600.

如第7圖所示,本發明另一實施例之終端700還包括一查詢模組606,用於向伺服器發送具有第一條碼資訊和第二終端標識之一查詢請求,接收伺服器所回傳與第一條碼資訊對應之另一終端之第一終端標識。終端700可以根據所接收的另一終端之第一終端標識向另一終端發送資訊,實現資訊同步。 As shown in FIG. 7, the terminal 700 of another embodiment of the present invention further includes a query module 606, configured to send a query request with the first barcode information and the second terminal identifier to the server, and the receiving server returns Transmitting a first terminal identifier of another terminal corresponding to the first barcode information. The terminal 700 can send information to another terminal according to the received first terminal identifier of another terminal to implement information synchronization.

在一實施例中,查詢模組606還用於接收伺服器所回傳另一終端之第一終端標識之第一終端屬性資訊。第一終端屬性資訊可以包括終端名稱、另一終端使用的操作平台(例如Android、iOS或Windows等作業系統)、終端類型(例如智慧型手機、桌上型式電腦、可擕式電腦)等。伺服 器向終端700回傳與第二終端標識對應之另一終端之第一終端標識時,還可將另一終端之第一終端標識之第一終端屬性資訊一併回傳至終端700,因此終端700可直接地展示另一終端之第一終端屬性資訊,便於使用者獲知關聯的終端的屬性資訊。 In an embodiment, the query module 606 is further configured to receive, by the server, the first terminal attribute information of the first terminal identifier of the other terminal. The first terminal attribute information may include a terminal name, an operation platform used by another terminal (such as an operating system such as Android, iOS, or Windows), and a terminal type (such as a smart phone, a desktop computer, and a portable computer). Servo When the first terminal identifier of the other terminal corresponding to the second terminal identifier is returned to the terminal 700, the first terminal attribute information of the first terminal identifier of the other terminal may be returned to the terminal 700, so the terminal The 700 can directly display the first terminal attribute information of the other terminal, so that the user can know the attribute information of the associated terminal.

如第8圖所示,本發明又一實施例之終端800還包括一條碼獲取模組608,用於獲取與終端800之第二終端標識對應之一第二條碼。獲取與第二終端標識對應之第二條碼可以供另一終端掃描該第二條碼並獲取與該第二條碼對應之一第二條碼資訊,進而從另一終端發起關聯終端的操作,因此終端800與另一終端都可以發起關聯終端的操作,進一步減少使用者為關聯終端進行操作的時間,節省終端800與另一終端的耗電量。 As shown in FIG. 8, the terminal 800 of the embodiment of the present invention further includes a code acquisition module 608, configured to acquire a second barcode corresponding to the second terminal identifier of the terminal 800. Obtaining a second barcode corresponding to the second terminal identifier, the another terminal may scan the second barcode and obtain a second barcode information corresponding to the second barcode, and then initiate an operation of the associated terminal from another terminal, so the terminal 800 The operation of the associated terminal can be initiated with the other terminal, further reducing the time for the user to operate the associated terminal, and saving the power consumption of the terminal 800 and the other terminal.

在一實施例中,條碼獲取模組608還用於接收伺服器所回傳與第二終端標識對應之第二條碼資訊,根據第二條碼資訊生成第二條碼。本實施例中,伺服器向終端800回傳與第二終端標識對應之第二條碼資訊,並根據第二條碼資訊生成第二條碼,可供另一終端掃描該第二條碼獲取第二條碼資訊,進而從另一終端發起關聯終端的操作。而且由於終端800接收的是伺服器所回傳與第二終端標識對應之第二條碼資訊,使得網路傳遞的資訊量小,佔用網路資源少,即使在網路狀況不佳的情況下也可以生成第二條碼,因此受網路狀況的影響較小。 In an embodiment, the barcode obtaining module 608 is further configured to receive the second barcode information corresponding to the second terminal identifier returned by the server, and generate a second barcode according to the second barcode information. In this embodiment, the server returns the second barcode information corresponding to the second terminal identifier to the terminal 800, and generates a second barcode according to the second barcode information, so that the other terminal scans the second barcode to obtain the second barcode information. And initiating the operation of the associated terminal from another terminal. Moreover, since the terminal 800 receives the second bar code information corresponding to the second terminal identifier returned by the server, the amount of information transmitted by the network is small, and the network resources are small, even in the case of poor network conditions. The second bar code can be generated and is therefore less affected by network conditions.

在一實施例中,條碼獲取模組608還用於接收伺服器所回傳與第二終端標識對應之第二條碼。本實施例中,由伺服器生成第二條碼,終端800接收伺服器所回傳的第二條碼,由於終端800無需在本地生成第二條碼,能夠節省本地資源。 In an embodiment, the barcode acquisition module 608 is further configured to receive a second barcode corresponding to the second terminal identifier returned by the server. In this embodiment, the second barcode is generated by the server, and the terminal 800 receives the second barcode returned by the server. Since the terminal 800 does not need to generate the second barcode locally, the local resource can be saved.

如第9圖所示,本發明又一實施例之終端900還包括一條碼生成模組610,用於生成一第二條碼。終端900可以根據第二終端標識生成第二條碼,也可以透過產生亂數來生成第二條碼,還可以根據使用者輸入的資訊生成第二條碼。 As shown in FIG. 9, the terminal 900 of another embodiment of the present invention further includes a code generation module 610 for generating a second barcode. The terminal 900 may generate a second barcode according to the second terminal identifier, or generate a second barcode by generating a random number, and generate a second barcode according to the information input by the user.

上傳模組604還用於獲取生成的第二條碼所對應之第二條碼資訊,將獲取的第二條碼資訊和第二終端標識上傳至伺服器。當終端900根據第二終端標識生成第二條碼時,第二條碼資訊可以包括第二終端標識;當透過產生亂數來生成第二條碼時,第二條碼資訊可以包括生成的亂數;當根據使用者輸入的資訊生成第二條碼時,第二條碼資訊可以包括使用者輸入的資訊。 The uploading module 604 is further configured to obtain the second barcode information corresponding to the generated second barcode, and upload the obtained second barcode information and the second terminal identifier to the server. When the terminal 900 generates the second barcode according to the second terminal identifier, the second barcode information may include the second terminal identifier; when the second barcode is generated by generating the random number, the second barcode information may include the generated random number; When the information input by the user generates the second barcode, the second barcode information may include the information input by the user.

本實施例中,終端900生成第二條碼並將第二條碼資訊和第二終端標識上傳至伺服器,另一終端可以透過掃描第二條碼而獲取第二條碼資訊,並將第二條碼資訊和另一終端之第一終端標識上傳至伺服器,透過相同的第二條碼資訊可在伺服器上將第二終端標識與另一終端之第一終端標識關聯起來,進而實現終端900與另一終端的關聯。 In this embodiment, the terminal 900 generates a second barcode and uploads the second barcode information and the second terminal identifier to the server, and the other terminal may obtain the second barcode information by scanning the second barcode, and the second barcode information and The first terminal identifier of the other terminal is uploaded to the server, and the second terminal identifier is associated with the first terminal identifier of the other terminal on the server by using the same second barcode information, thereby implementing the terminal 900 and the other terminal. The association.

如第10圖所示,本發明又一實施例之終端1000還包括另一條碼生成模組612,用於根據第二終端標識生成第二條碼。本實施例中,根據第二終端標識生成第二條碼,且該第二條碼對應之第二條碼資訊包含第二終端標識,可以供另一終端掃描第二條碼獲取第二條碼資訊,獲取第二條碼資訊中的第二終端標識可使另一終端發起與該終端1000關聯的操作。 As shown in FIG. 10, the terminal 1000 of another embodiment of the present invention further includes another barcode generating module 612, configured to generate a second barcode according to the second terminal identifier. In this embodiment, the second barcode is generated according to the second terminal identifier, and the second barcode information corresponding to the second barcode includes the second terminal identifier, and the other terminal may scan the second barcode to obtain the second barcode information, and obtain the second The second terminal identifier in the barcode information may cause another terminal to initiate an operation associated with the terminal 1000.

如第11圖所示,本發明實施例還提供另一種終端,為了便於說明,僅示出與本發明實施例相關的部分,未揭示的具體技術細節可參照本發明實施例的方法部分。該終端可以包括手機、平板電腦、PDA、POS終端、車載電腦等任意終端設備,下列以終端為手機說明:第11圖示出與本發明提供的終端為手機的部分結構方塊圖。手機包括一射頻(Radio Frequency;RF)電路1110、一記憶體1120、一輸入單元1130、一顯示單元1140、一感測器1150、一音訊電路1160、一無線通訊模組1170、一處理器1180以及一電源1190。本發明所屬技術領域中具有通常知識者可以理解第11圖所示之手機結構並不構成對手機的限定,可以包括比圖示更多或更少的元件,或者組合某些元件,或者具有不同的元 件配置。下面結合第11圖對手機的各個構成元件進行具體的介紹:射頻電路1110可用於收發資訊或通話過程中信號的接收和發送,特別地,接收從基站下載的資訊後供處理器1180處理。此外,將上傳的資料發送給基站。射頻電路1110通常包括但不限於天線、至少一放大器、收發信機、耦合器、低雜訊放大器(Low Noise Amplifier;LNA)、雙工器等。此外,射頻電路1110還可以透過無線通訊與網路和其他設備通信。所述無線通訊可以使用任一通信標準或協定,包括但不限於:全球行動通信系統(Global System of Mobile communication;GSM)、通用封包無線服務技術(General Packet Radio Service;GPRS)、分碼多工存取(Code Division Multiple Access;CDMA)、寬頻分碼多工存取(Wideband Code Division Multiple Access;WCDMA)、長期演進技術(Long Term Evolution;LTE)、電子郵件、簡訊服務(Short Messaging Service;SMS)等。 As shown in FIG. 11, the embodiment of the present invention further provides another terminal. For the convenience of description, only parts related to the embodiment of the present invention are shown. For the specific technical details not disclosed, reference may be made to the method part of the embodiment of the present invention. The terminal may include any terminal device such as a mobile phone, a tablet computer, a PDA, a POS terminal, an in-vehicle computer, etc. The following is a description of the mobile phone in the terminal: FIG. 11 is a block diagram showing a part of the structure of the mobile phone provided by the present invention. The mobile phone includes a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless communication module 1170, and a processor 1180. And a power supply 1190. Those skilled in the art to which the present invention pertains can understand that the structure of the mobile phone shown in FIG. 11 does not constitute a limitation to the mobile phone, and may include more or less components than those illustrated, or may combine certain components or have different Yuan Configuration. The following describes the components of the mobile phone in detail with reference to FIG. 11: The RF circuit 1110 can be used for receiving and transmitting signals during and after receiving information or during a call, and in particular, receiving information downloaded from the base station for processing by the processor 1180. In addition, the uploaded data is sent to the base station. The RF circuit 1110 generally includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1110 can communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to: Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), code division multiplexing Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Message Service (SMS) )Wait.

記憶體1120可用於儲存軟體程式以及模組,處理器1180透過操作儲存在記憶體1120內的軟體程式以及模組,進而執行各種功能應用以及資料處理。記憶體1120主要包括儲存程式區和儲存資料區,儲存程式區可儲存作業系統、至少一功能所需的應用程式(例如聲音播放功能、圖像播放功能等),儲存資料區可儲存根據手機的使用所創建的資料(例如音訊資料、電話簿等)。此外,記憶體1120可以包括高速隨機存取記憶體,還可包括非揮發性記憶體,例如至少一磁性記憶體、快閃記憶體或其他揮發性固態記憶體。 The memory 1120 can be used to store software programs and modules. The processor 1180 performs various function applications and data processing by operating software programs and modules stored in the memory 1120. The memory 1120 mainly includes a storage program area and a storage data area. The storage program area can store an operating system, at least one function required application (such as a sound playing function, an image playing function, etc.), and the storage data area can be stored according to the mobile phone. Use the created material (such as audio data, phone book, etc.). In addition, the memory 1120 can include a high speed random access memory, and can also include non-volatile memory, such as at least one magnetic memory, flash memory, or other volatile solid state memory.

輸入單元1130可用於接收輸入的數位或字元資訊,以及產生與手機的使用者設置以及功能控制有關的信號輸入。具體地,輸入單元1130可包括觸控面板1131以及其他輸入裝置1132。觸控面板1131也稱為觸控式螢幕,可收集使用者在其上或附近的觸摸操作(例如使用者使用手指、觸控筆等任何適合的物體或附件在觸控面板1131上或在觸控面板1131附近的操作),並根據預先設定的程式驅動相應的連接裝置。可選的,觸控面板1131 可包括觸碰檢測裝置和觸碰控制器兩個部分。觸碰檢測裝置檢測使用者的觸碰方位,並檢測觸碰操作產生的信號,將信號傳送給觸碰控制器,觸碰控制器從觸碰檢測裝置上接收觸碰資訊,將觸碰資訊轉換成觸碰座標並傳送給處理器1180,並能接收處理器1180發來的命令並加以執行。此外,可以採用電阻式、電容式、紅外線以及表面聲波等多種類型實現觸控面板1131。除了觸控面板1131,輸入單元1130還可以包括其他輸入裝置1132。具體地,其他輸入裝置1132可以包括但不限於實體鍵盤、功能鍵(例如音量控制按鍵、開關按鍵等)、軌跡球、滑鼠、操作桿中的一種或多種。 The input unit 1130 can be configured to receive input digit or character information and to generate signal inputs related to user settings and function controls of the handset. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131 is also referred to as a touch screen, and can collect touch operations on or near the user (for example, the user uses a finger, a stylus, or the like on the touch panel 1131 or touches any suitable object or accessory. The operation near the control panel 1131), and the corresponding connection device is driven according to a preset program. Optional, touch panel 1131 The touch detection device and the touch controller can be included in two parts. The touch detection device detects the touch orientation of the user, detects a signal generated by the touch operation, transmits a signal to the touch controller, and the touch controller receives the touch information from the touch detection device, and converts the touch information. The touch coordinates are transmitted to the processor 1180 and can receive commands from the processor 1180 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may further include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (eg, volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks.

顯示單元1140可用於顯示由使用者輸入的資訊或提供給使用者的資訊以及手機的各種功能表。顯示單元1140可包括一顯示面板1141,可選的,可以採用液晶顯示器(Liquid Crystal Display;LCD)、有機發光二極體(Organic Light-Emitting Diode;OLED)顯示器等形式配置顯示面板1141。進一步地,觸控面板1131可覆蓋顯示面板1141,當觸控面板1131檢測到在其上或附近的觸碰操作後,傳送給處理器1180以確定觸碰事件的類型,隨後處理器1180根據觸碰事件的類型在顯示面板1141上提供相應的視覺輸出。雖然在第11圖中觸控面板1131與顯示面板1141是作為兩個獨立的元件來實現輸入和輸出功能,但是在另一實施例中,可以將觸控面板1131與顯示面板1141整合來實現輸入和輸出功能。 The display unit 1140 can be used to display information input by the user or information provided to the user and various function tables of the mobile phone. The display unit 1140 can include a display panel 1141. Alternatively, the display panel 1141 can be configured in the form of a liquid crystal display (LCD), an Organic Light-Emitting Diode (OLED) display, or the like. Further, the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation on or near the touch panel 1131, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 according to the touch. The type of touch event provides a corresponding visual output on display panel 1141. Although the touch panel 1131 and the display panel 1141 are implemented as two independent components in FIG. 11 to implement input and output functions, in another embodiment, the touch panel 1131 and the display panel 1141 may be integrated to implement input. And output function.

手機還可包括至少一感測器1150,例如光感測器、運動感測器以及其他感測器。具體地,光感測器可包括環境光感測器及接近感測器,環境光感測器可根據環境光線的明暗來調節顯示面板1141的亮度,接近感測器可在手機移動到耳邊時,關閉顯示面板1141和/或背光。作為運動感測器的一種,重力加速度感測器可檢測各個方向上(一般為三軸)加速度的大小,靜止時可檢測出重力的大小及方向,可用於識別手機姿態的應用(比如橫豎螢幕切換、相關遊戲、磁力計姿態校準)、振動識別相關功能(例如計步器、敲擊)等。此外,手機還可配置陀螺儀、氣壓計、濕度計、溫度 計、紅外線感測器等其他感測器,在此不再贅述。 The handset can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, and the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may move to the ear of the mobile phone. At the time, the display panel 1141 and/or the backlight are turned off. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screens). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the phone can also be equipped with gyroscope, barometer, hygrometer, temperature Other sensors such as meters and infrared sensors are not described here.

音訊電路1160、揚聲器1161以及傳聲器1162可提供使用者與手機之間的音訊介面。音訊電路1160可將接收到的音訊資料轉換成電信號後再傳輸到揚聲器1161,由揚聲器1161轉換為聲音信號輸出;另一方面,傳聲器1162將收集的聲音信號轉換為電信號,由音訊電路1160接收後轉換為音訊資料,再將音訊資料輸出至處理器1180處理後,經射頻電路1110以發送給另一手機,或者將音訊資料輸出至記憶體1120以便進一步處理。 The audio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone. The audio circuit 1160 can convert the received audio data into an electrical signal and then transmit it to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, the data is converted into audio data, and then the audio data is output to the processor 1180 for processing, sent to another mobile phone via the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.

無線通訊模組1170包括但不限於無線保真(Wreless Fidelity;WiFi)模組、藍牙模組、紅外線通信模組等。手機透過無線通訊模組1170可以幫助使用者收發電子郵件、流覽網頁和訪問流式媒體等,並為使用者提供無線寬頻的網際網路訪問。雖然第11圖示出無線通訊模組1170,但是可以理解的是,其並不屬於手機的必須構成,完全可以根據需要在不改變發明的本質的範圍內而省略。 The wireless communication module 1170 includes, but is not limited to, a Wreless Fidelity (WiFi) module, a Bluetooth module, an infrared communication module, and the like. The mobile phone through the wireless communication module 1170 can help users to send and receive emails, browse web pages and access streaming media, and provide users with wireless broadband Internet access. Although FIG. 11 shows the wireless communication module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.

處理器1180是手機的控制中心,利用各種介面和線路連接至手機的各個部分,透過運行或執行儲存在記憶體1120內的軟體程式及/或模組,以及呼叫儲存在記憶體1120內的資料,執行手機的各種功能和處理資料,進而對手機進行整體監控。處理器1180可包括一或多個處理單元,較佳而言,處理器1180可整合應用處理器和調變解調變處理器,應用處理器主要處理作業系統、使用者介面和應用程式,調變解調變處理器主要處理無線通訊。可以理解的是,上述調變解調變處理器也可以不整合至處理器1180中。 The processor 1180 is a control center of the mobile phone, and is connected to various parts of the mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1120, and calling data stored in the memory 1120. Execute the various functions of the mobile phone and process the data to further monitor the mobile phone. The processor 1180 can include one or more processing units. Preferably, the processor 1180 can integrate an application processor and a modulation and demodulation processor. The application processor mainly processes the operating system, the user interface, and the application. The variable demodulation processor mainly handles wireless communication. It can be understood that the above described modulation and demodulation processor may also not be integrated into the processor 1180.

手機還包括給各個元件供電的電源1190(例如電池),較佳而言,電源可以透過電源管理系統與處理器1180邏輯相連,進而透過電源管理系統實現管理充電、放電、以及功耗管理等功能。 The mobile phone also includes a power supply 1190 (eg, a battery) for powering various components. Preferably, the power supply can be logically coupled to the processor 1180 through a power management system to manage charging, discharging, and power management functions through the power management system. .

儘管未示出,手機還可以包括攝像頭、藍牙模組等,在此不再贅述。 Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.

在本發明實施例中,終端所包括的處理器1180還具有以下功能:掃描另一終端上之一第一條碼以獲取一第一條碼資訊,所述第一條碼資訊在一伺服器上對應另一終端之一第一終端標識;以及將所述第一條碼資訊和所述終端之一第二終端標識對應上傳至所述伺服器,使所述第二終端標識關聯另一終端之第一終端標識。 In the embodiment of the present invention, the processor 1180 included in the terminal further has the function of: scanning one of the first barcodes on the other terminal to obtain a first barcode information, where the first barcode information corresponds to another server. a first terminal identifier of one of the terminals; and correspondingly uploading the first barcode information and the second terminal identifier of the terminal to the server, so that the second terminal identifier is associated with the first terminal of another terminal Logo.

在一實施例中,處理器1180還具有以下功能:向所述伺服器發送具有所述第一條碼資訊和所述第二終端標識之一查詢請求,接收所述伺服器所回傳與所述第一條碼資訊對應之另一終端之第一終端標識。 In an embodiment, the processor 1180 further has a function of: sending, to the server, a query request having the first barcode information and the second terminal identifier, receiving the backhaul of the server and the The first terminal identifier of the other terminal corresponding to the first code information.

在一實施例中,處理器1180還具有以下功能:接收所述伺服器所回傳與所述第一條碼資訊對應之其他終端之終端標識。 In an embodiment, the processor 1180 further has a function of receiving, by the server, a terminal identifier of another terminal corresponding to the first barcode information.

在一實施例中,處理器1180還具有以下功能:接收所述伺服器所回傳與另一終端之第一終端標識對應之第一終端屬性資訊。 In an embodiment, the processor 1180 further has the function of: receiving, by the server, the first terminal attribute information corresponding to the first terminal identifier of the other terminal.

在一實施例中,處理器1180還具有以下功能:獲取與所述第二終端標識對應之一第二條碼。 In an embodiment, the processor 1180 further has the function of: acquiring a second barcode corresponding to the second terminal identifier.

在一實施例中,處理器1180還具有以下功能:接收所述伺服器所回傳與所述第二終端標識對應之一第二條碼資訊,根據所述第二條碼資訊生成所述第二條碼,或者用於接收所述伺服器所回傳與所述第二終端標識對應之第二條碼。 In an embodiment, the processor 1180 further has a function of: receiving, by the server, a second barcode information corresponding to the second terminal identifier, and generating the second barcode according to the second barcode information. Or for receiving a second barcode corresponding to the second terminal identifier returned by the server.

在一實施例中,處理器1180還具有以下功能:生成所述第二條碼,獲取生成的第二條碼所對應之第二條碼資訊,將獲取的第二條碼資訊和所述第二終端標識上傳至所述伺服器。 In an embodiment, the processor 1180 further has the following functions: generating the second barcode, acquiring the second barcode information corresponding to the generated second barcode, and uploading the acquired second barcode information and the second terminal identifier. To the server.

在一實施例中,處理器1180還具有以下功能:根據所述第二終端標識生成所述第二條碼。 In an embodiment, the processor 1180 further has the function of: generating the second barcode according to the second terminal identifier.

雖然本發明已用較佳實施例揭露如上,然其並非用以限定本發明,本發明所屬技術領域中具有通常知識者在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請 專利範圍所界定者為準。 While the invention has been described above by way of a preferred embodiment, the invention is not intended to be limited thereto, and the invention may be modified and modified without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention is attached to the application The scope defined by the patent scope shall prevail.

S102-S108‧‧‧步驟 S102-S108‧‧‧Steps

Claims (31)

一種關聯終端的方法,包括:一第一終端將一第一終端標識上傳至一伺服器;所述第一終端獲取與所述第一終端標識對應之一條碼;一第二終端掃描所述條碼以獲取一條碼資訊,所述條碼資訊對應至所述第一終端標識;以及所述第二終端將所述條碼資訊和所述第二終端之一第二終端標識上傳到所述伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal, comprising: a first terminal uploading a first terminal identifier to a server; the first terminal acquiring a barcode corresponding to the first terminal identifier; and a second terminal scanning the barcode Obtaining a piece of code information, where the bar code information corresponds to the first terminal identifier; and the second terminal uploading the bar code information and the second terminal identifier of the second terminal to the server, so that The first terminal identifier is associated with the second terminal identifier. 根據申請專利範圍第1項所述之關聯終端的方法,其中所述第一終端獲取與所述第一終端標識對應之所述條碼的步驟包括:所述第一終端接收所述伺服器所回傳與所述第一終端標識對應之條碼資訊,並根據所述條碼資訊生成所述條碼;或者所述第一終端接收所述伺服器所回傳與所述第一終端標識對應之所述條碼。 The method for associating a terminal according to claim 1, wherein the step of the first terminal acquiring the barcode corresponding to the first terminal identifier comprises: receiving, by the first terminal, the server Transmitting the bar code information corresponding to the first terminal identifier, and generating the barcode according to the barcode information; or the first terminal receiving the barcode returned by the server and corresponding to the first terminal identifier . 根據申請專利範圍第1項所述之關聯終端的方法,進一步包括:所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之所述第二終端標識;或者所述第一終端標識進一步關聯所述第二終端標識以外的其他終端標識,所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之所述第一終端標識和/或所述其他終端標識。 The method for associating a terminal according to claim 1, further comprising: the first terminal transmitting, to the server, a query request having the bar code information and the first terminal identifier, and receiving the Returning, by the server, the second terminal identifier corresponding to the barcode information; or the first terminal identifier is further associated with another terminal identifier other than the second terminal identifier, where the second terminal is to the server Sending a query request with the bar code information and the second terminal identifier, and receiving the first terminal identifier and/or the other terminal identifier corresponding to the barcode information returned by the server. 根據申請專利範圍第3項所述之關聯終端的方法,其中在所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之所述查詢請求的步驟之後進一步包括:所述第一終端接收所述伺服器所回傳與所述第二終端標識對應之第二 終端屬性資訊,所述第二終端屬性資訊為所述第二終端上儲存的資訊;或者在所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之所述查詢請求的步驟之後進一步包括:所述第二終端接收所述伺服器所回傳與所述第一終端標識對應之第一終端屬性資訊和/或與所述其他終端標識對應之終端屬性資訊,所述第一終端屬性資訊和與所述其他終端標識對應之終端屬性資訊分別為所述第一終端上儲存的資訊和其他終端上儲存的資訊。 The method of associating a terminal according to claim 3, wherein after the step of the first terminal transmitting the query request having the barcode information and the first terminal identifier to the server, the method further includes The first terminal receives a second back corresponding to the second terminal identifier returned by the server Terminal attribute information, the second terminal attribute information is information stored on the second terminal; or the second terminal sends the barcode information and the second terminal identifier to the server After the step of querying the request, the second terminal receives, by the server, the first terminal attribute information corresponding to the first terminal identifier and/or the terminal attribute information corresponding to the other terminal identifier, The first terminal attribute information and the terminal attribute information corresponding to the other terminal identifiers are information stored on the first terminal and information stored on other terminals, respectively. 一種關聯終端的方法,包括:一第一終端生成一條碼;所述第一終端獲取對應所述條碼之一條碼資訊,並將所述條碼資訊和一第一終端標識上傳至一伺服器;以及一第二終端掃描所述條碼以獲取所述條碼資訊,並將所述條碼資訊和所述第二終端之一第二終端標識上傳至所述伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal, comprising: a first terminal generating a code; the first terminal acquiring bar code information corresponding to the bar code, and uploading the bar code information and a first terminal identifier to a server; a second terminal scans the barcode to obtain the barcode information, and uploads the barcode information and the second terminal identifier of the second terminal to the server, so that the first terminal identifier is associated with the The second terminal identifier. 根據申請專利範圍第5項所述之關聯終端的方法,進一步包括:所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之所述第二終端標識;或者所述第一終端標識進一步關聯所述第二終端標識以外的其他終端標識,所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述條碼資訊對應之所述第一終端標識和/或所述其他終端標識。 The method for associating a terminal according to claim 5, further comprising: the first terminal transmitting, to the server, a query request having the bar code information and the first terminal identifier, and receiving the Returning, by the server, the second terminal identifier corresponding to the barcode information; or the first terminal identifier is further associated with another terminal identifier other than the second terminal identifier, where the second terminal is to the server Sending a query request with the bar code information and the second terminal identifier, and receiving the first terminal identifier and/or the other terminal identifier corresponding to the barcode information returned by the server. 根據申請專利範圍第6項所述之關聯終端的方法,其中在所述第一終端向所述伺服器發送具有所述條碼資訊和所述第一終端標識之所述查詢請求的步驟之後進一步包括: 所述第一終端接收所述伺服器所回傳與所述第二終端標識對應之第二終端屬性資訊,所述第二終端屬性資訊為所述第二終端上儲存的資訊;或者在所述第二終端向所述伺服器發送具有所述條碼資訊和所述第二終端標識之所述查詢請求的步驟之後進一步包括:所述第二終端接收所述伺服器所回傳與所述第一終端標識對應之第一終端屬性資訊和/或與所述其他終端標識對應之終端屬性資訊,所述第一終端屬性資訊和與所述其他終端標識對應之終端屬性資訊分別為所述第一終端上儲存的資訊和其他終端上儲存的資訊。 The method of associating a terminal according to claim 6, wherein the step of transmitting, by the first terminal, the query request having the barcode information and the first terminal identifier to the server further comprises : Receiving, by the server, the second terminal attribute information corresponding to the second terminal identifier, where the second terminal attribute information is information stored on the second terminal; or After the step of the second terminal transmitting the query request with the barcode information and the second terminal identifier to the server, the method further includes: the second terminal receiving the backhaul of the server and the first The first terminal attribute information corresponding to the terminal identifier and/or the terminal attribute information corresponding to the other terminal identifier, the first terminal attribute information and the terminal attribute information corresponding to the other terminal identifiers are respectively the first terminal Information stored on it and information stored on other terminals. 一種關聯終端的方法,包括:一第一終端根據一第一終端標識生成一條碼;以及一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端之一第二終端標識上傳至一伺服器,使所述第一終端標識關聯所述第二終端標識。 A method for associating a terminal, comprising: a first terminal generating a code according to a first terminal identifier; and a second terminal scanning the barcode to obtain the first terminal identifier, and identifying the first terminal identifier The second terminal identifier of one of the second terminals is uploaded to a server, so that the first terminal identifier is associated with the second terminal identifier. 根據申請專利範圍第8項所述之關聯終端的方法,進一步包括:所述第一終端向所述伺服器發送具有所述第一終端標識之一查詢請求,並接收所述伺服器所回傳與所述第一終端標識對應之所述第二終端標識;或者所述第二終端向所述伺服器發送具有所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述第二終端標識對應之所述第一終端標識。 The method for associating a terminal according to claim 8 , further comprising: the first terminal transmitting, to the server, a query request having the first terminal identifier, and receiving the backhaul of the server The second terminal identifier corresponding to the first terminal identifier; or the second terminal sends a query request with the second terminal identifier to the server, and receives the backhaul of the server The first terminal identifier corresponding to the second terminal identifier. 根據申請專利範圍第9項所述之關聯終端的方法,在所述第一終端向所述伺服器發送具有所述第一終端標識之所述查詢請求的步驟之後進一步包括:所述第一終端接收所述伺服器所回傳與所述第二終端標識對應之第二終端屬性資訊,所述第二終端屬性資訊為所述第二終端上儲存的資訊;或 者在所述第二終端向所述伺服器發送具有所述第二終端標識之所述查詢請求的步驟之後進一步包括:所述第二終端接收所述伺服器所回傳與所述第一終端標識對應之第一終端屬性資訊,所述第一終端屬性資訊為所述第一終端上儲存的資訊。 According to the method for associating a terminal according to claim 9, after the step of the first terminal transmitting the query request with the first terminal identifier to the server, the method further includes: the first terminal Receiving, by the server, the second terminal attribute information corresponding to the second terminal identifier, where the second terminal attribute information is information stored on the second terminal; or After the step of the second terminal transmitting the query request with the second terminal identifier to the server, the method further includes: the second terminal receiving the backhaul of the server and the first terminal Identifying the corresponding first terminal attribute information, where the first terminal attribute information is information stored on the first terminal. 一種關聯終端的方法,包括:一第一終端根據一第一終端標識生成一條碼;一第二終端掃描所述條碼以獲取所述第一終端標識,並將所述第一終端標識和所述第二終端之一第二終端標識上傳至一伺服器;以及所述伺服器儲存所述第一終端標識和所述第二終端標識的對應關係。 A method for associating a terminal, comprising: a first terminal generating a code according to a first terminal identifier; a second terminal scanning the barcode to obtain the first terminal identifier, and identifying the first terminal and the And transmitting, by the server, a correspondence between the first terminal identifier and the second terminal identifier. 根據申請專利範圍第11項所述之關聯終端的方法,進一步包括:所述第一終端向所述伺服器發送具有所述第一終端標識之一查詢請求,所述伺服器向所述第一終端回傳與所述第一終端標識對應之所述第二終端標識;或者所述第二終端向所述伺服器發送具有所述第二終端標識之一查詢請求,所述伺服器向所述第二終端回傳與所述第二終端標識對應之所述第一終端標識。 The method for associating a terminal according to claim 11, further comprising: the first terminal transmitting, to the server, a query request having one of the first terminal identifiers, the server to the first Transmitting, by the terminal, the second terminal identifier corresponding to the first terminal identifier; or the second terminal sending, to the server, a query request having one of the second terminal identifiers, where the server sends the The second terminal returns the first terminal identifier corresponding to the second terminal identifier. 根據申請專利範圍第12項所述之關聯終端的方法,在所述第一終端向所述伺服器發送具有所述第一終端標識之所述查詢請求的步驟之後進一步包括:所述伺服器向所述第一終端回傳與所述第二終端標識對應之第二終端屬性資訊,所述第二終端屬性資訊為所述第二終端上儲存的資訊;或者在所述第二終端向所述伺服器發送具有所述第二終端標識之所述查詢請求的步驟之後進一步包括:所述伺服器向所述第二終端回傳與所述第一終端標識對應之第一終端屬性資訊,所述第一終端屬性資訊為所述第一終端上儲存的資訊。 According to the method for associating a terminal according to claim 12, after the step of the first terminal transmitting the query request with the first terminal identifier to the server, the method further includes: the server Transmitting, by the first terminal, second terminal attribute information corresponding to the second terminal identifier, where the second terminal attribute information is information stored on the second terminal; or After the server sends the query request with the second terminal identifier, the server further includes: the server returning, to the second terminal, first terminal attribute information corresponding to the first terminal identifier, The first terminal attribute information is information stored on the first terminal. 一種終端,包括:一掃描模組,用於掃描另一終端上之一第一條碼以獲取一第一條碼資訊,所述第一條碼資訊對應至所述另一終端之一第一終端標識;以及一上傳模組,用於將所述第一條碼資訊和所述終端之一第二終端標識上傳至所述伺服器,使所述第二終端標識關聯所述另一終端之所述第一終端標識。 A terminal includes: a scanning module, configured to scan a first barcode on another terminal to obtain a first barcode information, where the first barcode information corresponds to a first terminal identifier of one of the other terminals; And an uploading module, configured to upload the first barcode information and the second terminal identifier of the terminal to the server, so that the second terminal identifier is associated with the first terminal of the another terminal Terminal identification. 根據申請專利範圍第14項所述之終端,進一步包括:一查詢模組,用於向所述伺服器發送具有所述第一條碼資訊和所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述第一條碼資訊對應之所述另一終端之所述第一終端標識。 The terminal according to claim 14, further comprising: a query module, configured to send, to the server, a query request having the first barcode information and the second terminal identifier, and receive the The server returns the first terminal identifier of the other terminal corresponding to the first barcode information. 根據申請專利範圍第15項所述之終端,其中所述查詢模組進一步用於接收所述伺服器所回傳與所述另一終端之所述第一終端標識對應之第一終端屬性資訊,所述第一終端屬性資訊為所述第一終端上儲存的資訊。 The terminal according to claim 15 , wherein the query module is further configured to receive, by the server, the first terminal attribute information corresponding to the first terminal identifier of the another terminal, The first terminal attribute information is information stored on the first terminal. 根據申請專利範圍第14項所述之終端,進一步包括:一條碼獲取模組,用於獲取與所述第二終端標識對應之一第二條碼。 The terminal according to claim 14, further comprising: a code acquisition module, configured to acquire a second barcode corresponding to the second terminal identifier. 根據申請專利範圍第17項所述之終端,其中所述條碼獲取模組進一步用於接收所述伺服器所回傳與所述第二終端標識對應之一第二條碼資訊,並根據所述第二條碼資訊生成所述第二條碼;或者所述條碼獲取模組進一步用於接收所述伺服器所回傳與所述第二終端標識對應之所述第二條碼。 The terminal according to claim 17, wherein the barcode acquisition module is further configured to receive, by the server, a second barcode information corresponding to the second terminal identifier, and according to the The second barcode information is generated by the second barcode information; or the barcode acquisition module is further configured to receive the second barcode corresponding to the second terminal identifier returned by the server. 根據申請專利範圍第14項所述之終端,進一步包括:一條碼生成模組,用於生成一第二條碼;而所述上傳模組進一步用於獲取所述第二條碼所對應之一第二條碼資訊,並將所述第二條碼資訊和所述第二終端標識上傳至所述伺服器。 The terminal according to claim 14, further comprising: a code generation module, configured to generate a second barcode; and the uploading module is further configured to acquire a second corresponding to the second barcode Bar code information, and uploading the second barcode information and the second terminal identifier to the server. 根據申請專利範圍第14項所述之終端,進一步包括:一條碼生成模組,用於根據所述第二終端標識生成一第二條碼。 The terminal according to claim 14, further comprising: a code generating module, configured to generate a second barcode according to the second terminal identifier. 一種關聯終端的系統,包括:一第一終端,具有一第一條碼以及與所述第一條碼對應之一第一終端標識;一伺服器;以及一第二終端,包括:一掃描模組,用於掃描所述第一條碼以獲取與所述第一終端標識對應之一第一條碼資訊;以及一上傳模組,用於將所述第一條碼資訊和所述第二終端之一第二終端標識上傳至所述伺服器,使所述第二終端標識關聯所述第一終端之所述第一終端標識。 A system for associating a terminal, comprising: a first terminal having a first barcode and a first terminal identifier corresponding to the first barcode; a server; and a second terminal, comprising: a scanning module, The first barcode is scanned to obtain a first barcode information corresponding to the first terminal identifier; and an uploading module is configured to use the first barcode information and the second terminal The terminal identifier is uploaded to the server, so that the second terminal identifier is associated with the first terminal identifier of the first terminal. 根據申請專利範圍第21項所述之關聯終端的系統,其中所述第二終端進一步包括:一查詢模組,用於向所述伺服器發送具有所述第一條碼資訊和所述第二終端標識之一查詢請求,並接收所述伺服器所回傳與所述第一條碼資訊對應之所述第一終端之所述第一終端標識。 The system of the associated terminal according to claim 21, wherein the second terminal further comprises: a query module, configured to send the first barcode information and the second terminal to the server Identifying one of the query requests, and receiving, by the server, the first terminal identifier of the first terminal corresponding to the first barcode information. 根據申請專利範圍第22項所述之關聯終端的系統,其中所述查詢模組進一步用於接收所述伺服器所回傳與所述第一終端之所述第一終端標識對應之第一終端屬性資訊,所述第一終端屬性資訊為所述第一終端上儲存的資訊。 The system of the associated terminal according to claim 22, wherein the query module is further configured to receive, by the server, the first terminal corresponding to the first terminal identifier of the first terminal The attribute information, the first terminal attribute information is information stored on the first terminal. 根據申請專利範圍第21項所述之關聯終端的系統,進一步包括:一條碼獲取模組,用於獲取與所述第二終端標識對應之一第二條碼。 The system of the associated terminal according to claim 21, further comprising: a code acquisition module, configured to acquire a second barcode corresponding to the second terminal identifier. 根據申請專利範圍第24項所述之關聯終端的系統,其中所述條碼獲取模組進一步用於接收所述伺服器所回傳與所述第二終端標識對應之一第二條碼資訊,並根據所述第二條碼資訊生成所述第二條碼;或者所述條碼獲取模組進一步用於接收所述伺服器所回傳與所述第二終端標識對應之所述第二條碼。 The system for associating terminals according to claim 24, wherein the barcode acquisition module is further configured to receive, by the server, a second barcode information corresponding to the second terminal identifier, and according to The second barcode information is used to generate the second barcode; or the barcode acquisition module is further configured to receive, by the server, the second barcode corresponding to the second terminal identifier. 根據申請專利範圍第21項所述之關聯終端的系統,進一步包括:一條碼生成模組,用於生成一第二條碼;而所述上傳模組進一步用於獲取所述第二條碼所對應之一第二條碼資訊,並將所述第二條碼資訊和所述第二終端標識上傳至所述伺服器。 The system of the associated terminal according to claim 21, further comprising: a code generation module, configured to generate a second barcode; and the uploading module is further configured to acquire the second barcode a second barcode information, and uploading the second barcode information and the second terminal identifier to the server. 根據申請專利範圍第21項所述之關聯終端的系統,進一步包括:一條碼生成模組,用於根據所述第二終端標識生成一第二條碼。 The system of the associated terminal according to claim 21, further comprising: a code generation module, configured to generate a second barcode according to the second terminal identifier. 一種電腦可讀取儲存介質,其上儲存有指令集合,當該指令集合被執行時,使得該電腦可執行申請專利範圍第1至4項任一項所述之關聯終端的方法。 A computer readable storage medium having stored thereon a set of instructions that, when executed, causes the computer to perform the method of associating a terminal of any one of claims 1 to 4. 一種電腦可讀取儲存介質,其上儲存有指令集合,當該指令集合被執行時,使得該電腦可執行申請專利範圍第5至7項任一項所述之關聯終端的方法。 A computer readable storage medium having stored thereon a set of instructions for causing the computer to perform the method of associating a terminal of any one of claims 5 to 7 when the set of instructions is executed. 一種電腦可讀取儲存介質,其上儲存有指令集合,當該指令集合被執行時,使得該電腦可執行申請專利範圍第8至10項任一項所述之關聯終端的方法。 A computer readable storage medium having stored thereon a set of instructions that, when executed, causes the computer to perform the method of associating a terminal of any one of claims 8 to 10. 一種電腦可讀取儲存介質,其上儲存有指令集合,當該指令集合被執行時,使得該電腦可執行申請專利範圍第11至13項任一項所述之關聯終端的方法。 A computer readable storage medium having stored thereon a set of instructions for causing the computer to perform the method of associating a terminal of any one of claims 11 to 13 when the set of instructions is executed.
TW103128983A 2013-08-29 2014-08-22 Method and system for associating two terminals with each other, terminal and computer-readable storage medium TWI512525B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310386165.2A CN104426963B (en) 2013-08-29 2013-08-29 The method and terminal of associated terminal

Publications (2)

Publication Number Publication Date
TW201508533A true TW201508533A (en) 2015-03-01
TWI512525B TWI512525B (en) 2015-12-11

Family

ID=52585557

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103128983A TWI512525B (en) 2013-08-29 2014-08-22 Method and system for associating two terminals with each other, terminal and computer-readable storage medium

Country Status (4)

Country Link
CN (1) CN104426963B (en)
HK (1) HK1203249A1 (en)
TW (1) TWI512525B (en)
WO (1) WO2015027849A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10469493B2 (en) 2016-07-25 2019-11-05 National Cheng Kung University Mobile device, authentication device and authentication methods thereof
TWI706328B (en) * 2017-11-01 2020-10-01 香港商阿里巴巴集團服務有限公司 Method and device for starting business process, terminal, computer equipment and computer readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828274A (en) * 2015-09-18 2016-08-03 维沃移动通信有限公司 Terminal connection method, first terminal and second terminal
CN106934615B (en) * 2015-12-29 2020-08-04 阿里巴巴集团控股有限公司 Payment and service processing method and device based on mobile terminal bar code
CN105634887B (en) * 2016-01-14 2020-04-10 九阳股份有限公司 Network control method for kitchen household appliance
CN105791566B (en) * 2016-02-29 2019-05-31 联想(北京)有限公司 A kind of information processing method and electronic equipment
US11616990B2 (en) 2016-11-22 2023-03-28 Guangzhou Baiguoyuan Information Technology Co., Ltd. Method for controlling delivery of a video stream of a live-stream room, and corresponding server and mobile terminal
CN108347453A (en) * 2017-01-23 2018-07-31 腾讯科技(深圳)有限公司 The method and apparatus of blood glucose meter data processing
EP3579518B1 (en) * 2017-03-13 2021-08-18 Huawei Technologies Co., Ltd. Payment method and device based on verification terminal
CN108401037B (en) * 2018-01-23 2021-07-06 创新先进技术有限公司 Binding method, device and system of user terminal and equipment
CN108471434B (en) * 2018-01-30 2020-09-08 阿里巴巴集团控股有限公司 Method and device for associating equipment with account, electronic equipment and system
CN109587113A (en) * 2018-10-30 2019-04-05 歌尔科技有限公司 A kind of equipment correlating method, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8256664B1 (en) * 2010-04-09 2012-09-04 Google Inc. Out-of band authentication of browser sessions
CN102509231A (en) * 2011-10-28 2012-06-20 徐蔚 Information processing system and method for realizing referral commission real-time transaction through mobile terminals embedded with auction software clients
CN103164412B (en) * 2011-12-09 2017-10-13 阿里巴巴集团控股有限公司 Method, client terminal device and the server of the network information are accessed by encoding of graphs
CN103220205B (en) * 2012-01-19 2018-09-18 上海果壳电子有限公司 Good friend's adding method and system
CN102868696B (en) * 2012-09-18 2015-10-07 广州市动景计算机科技有限公司 The communication of many equipment rooms and information synchronization method and system
CN103020687B (en) * 2012-12-14 2015-12-09 北京奇虎科技有限公司 Quick Response Code sharing method and system
CN103152399B (en) * 2013-02-07 2016-05-25 百度在线网络技术(北京)有限公司 Login method, system and cloud server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10469493B2 (en) 2016-07-25 2019-11-05 National Cheng Kung University Mobile device, authentication device and authentication methods thereof
TWI706328B (en) * 2017-11-01 2020-10-01 香港商阿里巴巴集團服務有限公司 Method and device for starting business process, terminal, computer equipment and computer readable storage medium
US10902232B2 (en) 2017-11-01 2021-01-26 Advanced New Technologies Co., Ltd. Service process starting method and apparatus
US10997384B2 (en) 2017-11-01 2021-05-04 Advanced New Technologies Co., Ltd. Service process starting method and apparatus

Also Published As

Publication number Publication date
CN104426963B (en) 2018-06-15
WO2015027849A1 (en) 2015-03-05
CN104426963A (en) 2015-03-18
HK1203249A1 (en) 2015-10-23
TWI512525B (en) 2015-12-11

Similar Documents

Publication Publication Date Title
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN104852885B (en) Method, device and system for verifying verification code
WO2017202348A1 (en) Video playing method and device, and computer storage medium
WO2015043361A1 (en) Methods, devices, and systems for completing communication between terminals
CN108834132B (en) Data transmission method and equipment and related medium product
WO2018196588A1 (en) Information sharing method, apparatus and system
WO2018049886A1 (en) Hotspot establishment method and terminal device
WO2018161353A1 (en) Photo sharing method and device
WO2018006841A1 (en) Qr code information transmission method, device and apparatus
US10675541B2 (en) Control method of scene sound effect and related products
WO2015027823A1 (en) Method, binding server, terminal, and system for binding multiple terminals
EP3429176B1 (en) Scenario-based sound effect control method and electronic device
WO2018049971A1 (en) Hotspot network switching method and terminals
WO2018049894A1 (en) Data transmission method and device
WO2019128179A1 (en) Method and apparatus for data transmission between mobile terminals, and mobile terminal
KR20220083804A (en) Method for displaying and transmitting information, and electronic device therefor
CN106791916B (en) Method, device and system for recommending audio data
WO2019076377A1 (en) Image viewing method and mobile terminal
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
WO2015117554A1 (en) Data processing method, apparatus, and terminal device
CN106507357B (en) Access control method and terminal equipment
CN106303616B (en) Play control method, device and terminal