WO2018166102A1 - 一种多设备无线连接方法和设备 - Google Patents

一种多设备无线连接方法和设备 Download PDF

Info

Publication number
WO2018166102A1
WO2018166102A1 PCT/CN2017/090413 CN2017090413W WO2018166102A1 WO 2018166102 A1 WO2018166102 A1 WO 2018166102A1 CN 2017090413 W CN2017090413 W CN 2017090413W WO 2018166102 A1 WO2018166102 A1 WO 2018166102A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
server
random number
pairing
account
Prior art date
Application number
PCT/CN2017/090413
Other languages
English (en)
French (fr)
Inventor
赵朋
陈风
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP17900772.9A priority Critical patent/EP3588890B1/en
Priority to US16/493,648 priority patent/US11432142B2/en
Priority to CN201780010172.9A priority patent/CN108702607B/zh
Publication of WO2018166102A1 publication Critical patent/WO2018166102A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0838Key agreement, i.e. key establishment technique in which a shared key is derived by parties as a function of information contributed by, or associated with, each of these
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3271Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response
    • H04L9/3273Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response for mutual authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a multi-device wireless connection method and device.
  • Bluetooth functions such as mobile phones, tablets, wearable devices, in-vehicle devices, and the like.
  • the user can connect two or more devices through the Bluetooth function, thereby performing Bluetooth function to realize information transmission between devices, or controlling one device through one device to realize remote control operation of the device.
  • the connection between devices is implemented through the Bluetooth function
  • the user needs to operate by pairwise connection, that is, the user firstly turns on the Bluetooth function of the two devices, and one of the devices obtains the Bluetooth of the other party by scanning.
  • the name is then paired by sending a pairing code to the other party and the other party inputting the same pairing code, thereby implementing a Bluetooth connection between the two devices.
  • the Bluetooth connection between multiple devices it is necessary to repeat the above two pairs of paired connections.
  • the Bluetooth connection between each two devices needs to be operated multiple times, which is complicated and takes a long time. If the Bluetooth connection between multiple devices is implemented by this method, it will take longer. Time, poor user experience.
  • the embodiments of the present invention provide a multi-device wireless connection method and device, which solves the problem that the operation of multiple devices in the prior art is complicated and time-consuming.
  • a multi-device wireless connection method includes: acquiring, by a first device, device information corresponding to a first account that is logged in by a first device, for example, the first device may be a tablet, and the device information may be The name, model and serial number of the tablet, and one or more of the name and MAC address of the Bluetooth on the tablet; the second device is selected according to the selection instruction triggered by the user and the device information corresponding to the first account, and the second The device is a device that logs in to the first account, for example, the second device is a mobile phone; the pairing request is sent to the server, the pairing request includes the identification information of the second device (for example, the name of the mobile phone), and the identification information of the second device is used by the server to determine The second device receives the pairing information sent by the server, and the pairing information is used for pairing between the first device and the second device, for example, the pairing information is used for Bluetooth pairing between the first device and the second device; The information is paired
  • the first device may directly obtain the device information corresponding to the first account from the server, and in the process of wireless connection between the first device and the second device, the user only needs to select the device information corresponding to the first account.
  • Two devices no need to perform a series of complicated operations on each device
  • the wireless connection between the first device and the second device can be realized, thereby saving operation time, simplifying the operation process, and presenting device information of multiple devices of the same user to the user for selection, thereby reducing the selection range and avoiding Wrong choices improve the user experience.
  • the method further includes: sending the device information of the first device to the server when the preset condition is met; wherein the preset condition includes one of the following conditions:
  • the account is first logged in on the first device.
  • the first account can be the account of the first device, or the account of the application on the first device; or the device information of the first device changes, for example, the first device The device name or the Bluetooth name on the first device changes.
  • the first device may send the device information to the server under the preset condition, thereby avoiding sending the device information to the server every time the first account is logged, thereby reducing the relationship between the first device and the server.
  • the interaction also ensures the freshness of the device information.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by a server, or generated by the second device and sent to the server; the key is generated by the server .
  • the pairing information is generated by the server, or generated by the second device and sent to the server for storage, and the security of the pairing information can be ensured; in addition, when the pairing information includes the key generated by the server, Improve the pairing efficiency of the first device and the second device.
  • the first device performs pairing with the second device according to the pairing information, including: generating a second random number, and according to the first random number sum Determining, by the second random number, the first verification information, where the first verification information may be a random number, a character, a character string, or the like; sending the second random number and the first verification information to the second device, where the first verification information is used by the second device Verify the legality of the first device.
  • the first device may send the first verification information to the second device, so that the second device verifies the legality of the first device, so that the security of the wireless connection can be ensured.
  • the first device performs pairing with the second device according to the pairing information, and further includes: receiving a third random number and second verification information sent by the second device, where the second verification information is used by the second device. Verifying the legality of the second device by the first device; and verifying the second verification information according to the first random number and the third random number.
  • the first device may receive the second verification information sent by the second device, and verify the validity of the second device, so as to ensure the security of the wireless connection.
  • the first device is paired with the second device according to the pairing information, and further includes: generating a key according to the first random number, where the key is used by the first device and the second device Data encryption and decryption.
  • the first device is paired with the second device according to the pairing information, and further includes: generating a key according to the first random number, where the key is used by the first device and the second device Data encryption and decryption.
  • the user account that is logged in by the first device is the same as or different from the first account; when the user account that is logged in by the first device is different from the first account, the first device obtains the first Before the device information corresponding to the account, the method further includes: obtaining the first account.
  • the method further includes: the first device sends the device information of the third device to server.
  • a multi-device wireless connection method comprising: acquiring, by a second device, a pairing letter The pairing information is used for pairing between the first device and the second device; the second device is paired with the first device according to the pairing information to implement a wireless connection between the first device and the second device; wherein, the second device The device is a device that logs in to the first account, and the second device is a device that is selected by the first device according to the selection instruction triggered by the user and the device information corresponding to the first account; the first device is a device that sends a pairing request to the server, and the pairing request includes Identification information of the second device.
  • the second device may acquire pairing information, and pair with the first device according to the pairing information, so as to implement between the first device and the second device.
  • Wireless connection users do not need to perform a series of complicated operations on each device, which saves operation time, simplifies the operation process, and presents the device information of multiple devices of the same user to the user when selecting the second device. Choices can reduce the range of choices, avoid mis-selection, and improve the user experience.
  • the method further includes: sending the device information of the second device to the server when the preset condition is met; wherein the preset condition includes one of the following conditions: The account is first logged in on the second device, and the device information of the second device changes.
  • the second device may send the device information to the server under the preset condition, thereby avoiding sending the device information to the server every time the first account is logged, thereby reducing the relationship between the second device and the server. The interaction also ensures the freshness of the device information.
  • the method further includes: setting the second device to a connectable state.
  • the second device after acquiring the pairing information, can be automatically set to the connectable state, thereby avoiding manual operation by the user, thereby simplifying the operation process.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by a server, or generated by the second device and sent to the server; the key is generated by the server .
  • the pairing information is generated by the server, or generated by the second device and sent to the server for storage, and the security of the pairing information can be ensured; in addition, when the pairing information includes the key generated by the server, Improve the pairing efficiency of the first device and the second device.
  • the second device performs pairing with the first device according to the pairing information, including: receiving the second random number sent by the first device, and the first Verification information, the first verification information is used by the second device to verify the legality of the first device; and the first verification information is verified according to the first random number and the second random number.
  • the second device may receive the first verification information sent by the first device, and verify the validity of the first device, so as to ensure the security of the wireless connection.
  • the second device is paired with the first device according to the pairing information, and further includes: generating a third random number, and determining the second verification according to the first random number and the third random number And sending the third random number and the second verification information to the first device, where the second verification information is used by the first device to verify the legality of the second device.
  • the second device may send the second verification information to the first device, so that the first device verifies the legality of the second device, so that the security of the wireless connection can be ensured.
  • the second device is paired with the first device according to the pairing information, and further includes: generating a key according to the first random number, where the key is used by the first device and the second device between Data encryption and decryption.
  • the second device by generating a key for performing data encryption and decryption, data security can be ensured when data transmission is performed.
  • the user account that is logged in by the first device is the same as or different from the first account.
  • the method further includes: the second device sends the device information of the third device to server.
  • the third aspect provides a multi-device wireless connection method, the method includes: transmitting, in a correspondence between the stored user account and the device information, device information corresponding to the first account to the first device; and receiving the first device
  • the pairing request is sent, the pairing request includes the identification information of the second device, and the second device is the device selected by the first device according to the selection instruction triggered by the user and the device information corresponding to the first account; sending the pairing information to the first device to implement A wireless connection between the first device and the second device, the pairing information being used for pairing between the first device and the second device.
  • the server may send the device information corresponding to the first account to the first device, so that the first device selects the second device, and sends the pairing information to the first device when receiving the pairing request of the first device.
  • a device so that the user can implement a wireless connection between the first device and the second device without performing a series of complicated operations on each device, thereby saving operation time, simplifying the operation process, and simultaneously having the same user
  • the device information of the devices is presented to the user for selection, which can reduce the selection range, avoid wrong selection, and improve the user experience.
  • the method further includes: receiving device information corresponding to the first account, and storing the device information corresponding to the first account in a correspondence between the user account and the device information.
  • the server may receive the device information that is sent by the device that is logged in to the first account under the preset condition, and store the device information, thereby avoiding the device information sent by the device when the first account is logged in, and reducing the device. The interaction with the server also ensures the freshness of the device information.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by the server, or generated by the second device and sent to the server; the key is generated by the server .
  • the pairing information is generated by the server, or generated by the second device and sent to the server for storage, and the security of the pairing information can be ensured; in addition, when the pairing information includes the key generated by the server, the pairing information can be improved. The pairing efficiency of the first device and the second device.
  • the method further includes: generating the first random number, and sending the first random number to a second device; when the first random number is generated by the second device, the method further includes: receiving the first random number sent by the second device.
  • the first random number may be generated by the server and sent to the first device and the second device, so that the security of the first random number can be ensured.
  • the method further includes: generating a key, the key is used for data encryption and decryption between the first device and the second device; Send to the second device.
  • the server may generate a key and send the key to the first device and the second device, thereby ensuring the security of the key, and improving the first device and the first device. The pairing efficiency of the two devices.
  • the user account that is logged in by the first device is the same as or different from the first account; if the user account that is logged in by the first device is different from the first account, the method further includes: receiving the first Device information corresponding to the user account that the device logs in, and is stored in the correspondence between the user account and the device information.
  • the method further includes: receiving device information of the third device, And stored in the correspondence between the user account and the device information.
  • the device is provided as a first device, comprising: an obtaining unit, configured to acquire device information corresponding to the first account from the server; and a selecting unit, configured to correspond to the first account according to the selection instruction triggered by the user
  • the device information selects the second device, the second device is the device that logs in the first account, the sending unit is configured to send a pairing request to the server, the pairing request includes the identification information of the second device, and the receiving unit is configured to receive the pairing sent by the server Information, the pairing information is used for pairing between the first device and the second device; the pairing unit is configured to pair the second device with the second device according to the pairing information, so as to implement a wireless connection between the first device and the second device .
  • the sending unit is further configured to: when the preset condition is met, send the device information of the first device to the server; wherein the preset condition includes one of the following conditions: The first account is logged in on the first device for the first time, and the device information of the first device changes.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by a server, or generated by the second device and sent to the server; the key is generated by the server .
  • the pairing unit is further configured to: generate a second random number, and determine the first verification according to the first random number and the second random number
  • the sending unit is further configured to send the second random number and the first verification information to the second device, where the first verification information is used by the second device to verify the legality of the first device.
  • the receiving unit is further configured to receive the third random number and the second verification information that are sent by the second device, where the second verification information is used by the first device to the second device.
  • the pairing unit is further configured to verify the second verification information according to the first random number and the third random number.
  • the pairing unit is further configured to: generate a key according to the first random number, where the key is used for data encryption and decryption between the first device and the second device.
  • the user account that is logged in by the first device is the same as or different from the first account; when the user account that is logged in by the first device is different from the first account, the acquiring unit is further configured to obtain First account.
  • the sending unit is further configured to send, by the first device, the device information of the third device. Give the server.
  • the device is provided as a second device, comprising: an obtaining unit, configured to acquire pairing information, where the pairing information is used for pairing between the first device and the second device; wherein the second device is a login a device of the first account, and the second device is a device selected by the first device according to the selection instruction triggered by the user and the device information corresponding to the first account; the first device is a device that sends a pairing request to the server, and the pairing request includes The identification information of the second device is configured to pair with the first device according to the pairing information to implement a wireless connection between the first device and the second device.
  • the device further includes: a sending unit, configured to send the device information of the second device to the server when the preset condition is met; wherein the preset condition includes the following conditions One: the first account is logged in on the second device for the first time, and the device information of the second device changes.
  • the method further includes: a setting unit, configured to set the second device to a connectable state.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by a server, or generated by the second device and sent to the server; the key is generated by the server .
  • the receiving unit is further configured to receive the second random number and the first verification information that are sent by the first device, where the first verification information is used.
  • the second device verifies the legality of the first device
  • the pairing unit is further configured to verify the first verification information according to the first random number and the second random number.
  • the pairing unit is further configured to generate a third random number, and determine second verification information according to the first random number and the third random number; the sending unit is further used to The third random number and the second verification information are sent to the first device, and the second verification information is used by the first device to verify the legality of the second device.
  • the pairing unit is further configured to generate a key according to the first random number, where the key is used for data encryption and decryption between the first device and the second device.
  • the user account that is logged in by the first device is the same as or different from the first account.
  • the sending unit is further configured to send, by the second device, the device information of the third device. Give the server.
  • a server includes: a sending unit, configured to send the device information corresponding to the first account to the first device in the correspondence between the stored user account and the device information;
  • the device is further configured to receive a pairing request sent by the first device, where the pairing request includes the identifier information of the second device, where the second device is a device selected by the first device according to the selection instruction triggered by the user and the device information corresponding to the first account;
  • the method is further configured to send pairing information to the first device to implement a wireless connection between the first device and the second device, where the pairing information is used for pairing between the first device and the second device.
  • the receiving unit is further configured to receive the device information corresponding to the first account.
  • the server further includes: a storage unit, configured to store the device information corresponding to the first account in the user account. In the correspondence with the device information.
  • the pairing information includes a first random number or a key; wherein the first random number is generated by the server, or generated by the second device and sent to the server; the key is generated by the server .
  • the server when the first random number is generated by the server, the server further includes: a generating unit, configured to generate the first random number; The element is configured to send the first random number to the second device.
  • the receiving unit is further configured to receive the first random number sent by the second device.
  • the server further includes: a generating unit, configured to generate a key, where the key is used for data between the first device and the second device Decryption; the sending unit is further configured to send the key to the second device.
  • the user account that is logged in by the first device is the same as or different from the first account; if the user account that is logged in by the first device is different from the first account, the receiving unit is further configured to receive the first The device information corresponding to the user account that is logged in by the device; the storage unit is also used to store the correspondence between the user account and the device information.
  • the third device if the third device is wirelessly connected to the second device or the first device, the third device has no account login capability, and the receiving unit is further configured to receive device information of the third device.
  • the storage unit is further configured to be stored in a correspondence between the user account and the device information.
  • a device which may be a first device, the device comprising a processor and a communication interface, the processor being configured to support the device to perform the first aspect or the foregoing The functionality of the first device in the method provided by any of the possible implementations of the aspect.
  • the communication interface is used to support communication between the device and other network elements.
  • the device can also include a memory for coupling with the processor that retains the program code and data necessary for the device.
  • a device as a second device, the device comprising a processor and a communication interface, the processor being configured to support the device to perform the second aspect or the second Any of the possible implementations of the aspects provide the functionality of the second device in the method.
  • the communication interface is used to support communication between the device and other network elements.
  • the device can also include a memory for coupling with the processor that retains the program code and data necessary for the device.
  • a server comprising a processor and a communication interface, the processor being configured to support the device to perform any of the foregoing third aspect or the third aspect The functionality performed by the server in the method provided by the implementation.
  • the communication interface is used to support communication between the device and other network elements.
  • the device can also include a memory for coupling with the processor that retains the program code and data necessary for the device.
  • a communication system comprising any of the first devices provided by the above aspects, and/or any of the second devices provided by the above aspects, and/or the aspects described above Any of the servers provided.
  • a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the information processing methods provided by the various aspects described above.
  • a computer program product comprising instructions, when executed on a computer, causes the computer to perform the information processing methods provided by the various aspects described above.
  • the device, computer storage medium or computer program product of any of the multi-device connection methods provided above is used to perform the corresponding method provided above, and therefore, the beneficial effects that can be achieved can be referred to the above.
  • the beneficial effects in the corresponding methods provided are not described here.
  • FIG. 1 is a system architecture diagram of a communication system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart of a first multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a display interface of device information corresponding to a first account according to an embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart diagram of a second multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a third multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of a fourth multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of a fifth multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart diagram of a sixth multi-device wireless connection method according to an embodiment of the present invention.
  • FIG. 11 is a diagram of correspondence between a user account and device information according to an embodiment of the present invention.
  • FIG. 12 is a diagram of correspondence between another user account and device information according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a first device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of another first device according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a second device according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of another second device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of another server according to an embodiment of the present invention.
  • FIG. 1 is a system architecture diagram of a communication system according to an embodiment of the present invention.
  • the communication system includes a server 101 and an electronic device 102. Both the server 101 and the electronic device 102 have functions of data processing and data storage, and at the server 101 and Data transfer between the electronic devices 102 and between the electronic device 102 and the electronic device 102 is also possible.
  • the server 101 refers to a network device that provides services for the electronic device 102.
  • the server 101 may be a computer with a server function or the like.
  • the server 101 includes a memory, a processor, a system bus, a power supply component, an input/output interface, a communication component, and the like.
  • the memory can be used to store data, software programs, and modules, and mainly includes a storage program area and a storage data area, the storage program area can store an operating system, an application required for at least one function, and the like, and the storage data area can be created by using the storage server 101. Data, etc.
  • the processor performs various functions of the server 101 and processes the data by running or executing software programs and/or modules stored in the memory, as well as invoking data stored in the memory.
  • the system bus includes an address bus, a data bus, and a control bus for transferring data and instructions.
  • a power supply component is used to provide power to various components of the server 101.
  • the input ⁇ output interface provides an interface between the processor and the peripheral interface module.
  • the communication component is used for wired or wireless communication between the server 101 and other devices.
  • the server 101 bears the data
  • the key tasks of storage, forwarding, and publishing are indispensable components of various client/server (C/S)-based or browser/server (B/S) mode networks.
  • the electronic device 102 may include two or more devices, which may be a mobile phone, a tablet, a notebook, a wearable device, an in-vehicle device, a portable device, and the like. Referring to FIG. 3, the electronic device 102 is taken as an example for the mobile phone.
  • the electronic device 102 may include: a processing component, a memory, a power component, a multimedia component, an audio component, an input/output interface, a sensor component, and a communication component.
  • Processing components typically control the overall operation of electronic device 102, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component can include one or more processors to execute the instructions.
  • a processing component can include one or more modules to facilitate interaction between components and other components.
  • the processing component can include a multimedia module to facilitate interaction between the multimedia component and the processing component.
  • the memory is configured to store various types of data to support operation of the electronic device 102. Examples of such data include instructions for any application or method operating on electronic device 102, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), and erasable programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • the power components provide power to various components of the electronic device 102.
  • the power components can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 102.
  • the multimedia component includes a screen that provides an output interface between the electronic device 102 and the user.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component includes a camera. When the electronic device 102 is in an operation mode, such as a shooting mode or a video mode, the camera can receive external multimedia data. Each camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component is configured to output and/or input an audio signal.
  • the audio component includes a microphone (MC) that is configured to receive an external audio signal when the electronic device 102 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal can be further stored in a memory or transmitted via a communication component.
  • the audio component further includes a speaker for outputting an audio signal.
  • the input/output interface provides an interface between the processing component and the peripheral interface module, and the peripheral interface module may be a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a start button, and a lock button.
  • the sensor assembly includes one or more sensors for providing electronic device 102 with a status assessment of various aspects.
  • the sensor assembly can detect the open/closed state of the electronic device 102, the relative positioning of the components.
  • the sensor assembly can also detect changes in position of the electronic device 102 or one of the components, orientation or acceleration/deceleration of the electronic device 102, and temperature changes of the electronic device 102.
  • the sensor assembly can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • the sensor assembly can also include a light sensor, Such as CMOS or CCD image sensors for use in imaging applications.
  • the sensor assembly can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component is configured to facilitate wired or wireless communication between the electronic device 102 and other devices.
  • the electronic device 102 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component further includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFD) technology, infrared data association (rDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • rDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the structures of the servers and electronic devices illustrated in Figures 2 - 3 do not constitute a limitation on their structure.
  • the server or electronic device may also include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • FIG. 4 is a schematic flowchart of a multi-device wireless connection method according to an embodiment of the present application. The method is applied to the communication system shown in FIG. 1 above. Referring to FIG. 4, the method includes the following steps.
  • Step 201 The first device acquires device information corresponding to the first account from the server.
  • the first device may be a mobile phone, a tablet, a notebook, a wearable device, an in-vehicle device, a portable device, or the like.
  • the first device includes a wireless communication module, has a wireless connection function, and the first device has a Bluetooth module, and the wireless connection with other electronic devices can be realized through the Bluetooth function.
  • the first account may be an account that is logged in by the first device, or an account that is logged in by another device, and is an account that is logged in by the device that the first device needs to connect to.
  • the user account that the first account is logged in as the first device is taken as an example for description.
  • the first account that the first device logs in refers to the user account that is logged in on the first device, and the first account may be an account used to log in to the first device, or an account used to log in to the application installed on the first device. This embodiment of the present application does not specifically limit this.
  • the device information corresponding to the first account refers to device information of the electronic device that logs in to the first account, and the device information may include one or more of the following information: name, model number, serial number, and MAC address of the electronic device, and the electronic device The name, model number, serial number, and MAC address of the wireless communication module.
  • the first device when the first device obtains the device information corresponding to the first account that is logged in by the first device, the first device may send an information acquisition request that carries the first account to the server, and after receiving the information acquisition request, the server according to the first In an account, the device information corresponding to the first account is sent to the first device in the correspondence between the stored user account and the device information.
  • the first device may send an information acquisition request to the server actively, or may send an information acquisition request to the server after receiving the trigger instruction of the user.
  • the first device when the first device has a Bluetooth function, when the user turns on the Bluetooth setting of the first device, the first device can automatically obtain the device information corresponding to the first account from the server; or, in the Bluetooth setting interface or the proprietary
  • the application interface sets a specified button, and when the user triggers the specified button, the first device sends an information acquisition request to the server.
  • Step 202 The first device selects the second device according to the selection instruction triggered by the user and the device information corresponding to the first account, where the second device is the device that logs in to the first account.
  • the second device may also be a mobile phone, a tablet, a notebook, a wearable device, an in-vehicle device, a portable device, and the like.
  • the second device also includes a wireless communication module having a wireless connection function, and the second device has a Bluetooth module, and the wireless connection with the first device or other electronic devices can be realized through the Bluetooth function.
  • the second device and the first device both log in to the first account, and the second device may be the device selected by the user from the device that logs in to the first account.
  • the first device when the first device obtains the device information corresponding to the first account, the first device may display the device information to the user, the user may trigger a selection instruction, and the selection instruction is used to select the second device, thereby enabling the first device
  • the second device is selected from the device information corresponding to the first account according to the selection instruction triggered by the user.
  • the first account is No. 11.
  • the device information of each device includes the device name and the Bluetooth name
  • the device information corresponding to the first account includes: mobile phone 1_Bluetooth 1, watch 2_Bluetooth 2, and the first account corresponds to
  • the device information can be as shown in Figure 5.
  • the user can select the corresponding device by clicking the device information of each device, or click the selection button corresponding to the device information of each device to select the corresponding device. In FIG. 5, the user selects the watch 2 as the second device by clicking the selection button.
  • the user selects the watch 2 as the second device by clicking the selection button.
  • Step 203 The first device sends a pairing request to the server, where the pairing request includes the identifier information of the second device.
  • the identification information of the second device is used to identify the second device, and the identifier information of the second device may be the device information of the second device.
  • the identifier information of the second device may be Is one of multiple messages.
  • the device information of the second device includes a mobile phone name, a mobile phone MAC address, and a Bluetooth MAC address.
  • the identification information of the second device may be a Bluetooth MAC address, and may be other information.
  • the first device may send, to the server, a pairing request including the identification information of the second device, where the pairing request is used to request pairing between the first device and the second device.
  • Pairing means that the paired devices have the same key through a series of actions, which can be used for data encryption and decryption during communication.
  • the first device and the second device perform pairing, even if the first device and the second device finally have the same key for performing data encryption and decryption.
  • Step 204 When the server receives the pairing request, the server sends pairing information to the first device, and the pairing information is used for pairing between the first device and the second device.
  • the server may determine the second device according to the identifier of the second device included in the pairing request, and send pairing information for pairing between the first device and the second device to the first device.
  • the pairing information may include a first random number or a key, where the first random number may be used for pairing between the first device and the second device, where the key is used by the first device and the second device for data encryption and decryption. Key.
  • the pairing information contains different information, the operation of the corresponding server is slightly different, as described below.
  • the first type, the pairing information includes a first random number, and the first random number is generated by the server.
  • the method further includes: step 203a and step 203b. Wherein, step 203a is located before step 204, and step 203b and step 204 may be in no particular order.
  • Step 203a The server generates a first random number.
  • the server may use the time (for example, the year, month, and day) as a factor, and use the algorithm to generate a random number, and may also generate the method by using a method for generating a random number in the prior art.
  • the method of generating the first random number to the server and the algorithm involved in generating the first random number are not specifically limited.
  • the server may generate a first random number for the first device and the second device, and send the first random number to the first device by using the foregoing step 204.
  • Step 203b The server sends the first random number to the second device.
  • the server may not only send the first random number to the first device, but also send the first random number to the second device, so that the security of the first random number can be ensured.
  • the server may further send the device information of the first device to the second device.
  • the server may send the MAC address of the first device to the second device, so that the second device determines that the device to be connected is the first device. device.
  • the server may also send other information for identifying the first device to the second device, which is not specifically limited in this embodiment of the present application.
  • the second device may set its own state to a connectable state, and the connectable state may also be referred to as a broadcast state, thereby avoiding manual operation of the user and simplifying operations.
  • the second device may send a wireless physical connection (eg, a Bluetooth physical connection) to the second device; or the second device sends a wireless physical connection to the first device when determining that the device to be connected is the first device.
  • a wireless physical connection eg, a Bluetooth physical connection
  • the second type of pairing information includes a first random number, and the first random number is generated by the second device and sent to the server.
  • the method further includes: step 203c - step 203d.
  • Step 203c - step 203d and step 201 - step 203 may be in no particular order, that is, as long as the server sends the pairing information to the first device, the second device generates the first random number and sends the first random number to the server. can.
  • Step 203c The second device generates a first random number.
  • the method for generating the first random number by the second device is similar to the method for the server to generate the first random number. For details, refer to the description of the first random number generated by the server, which is not described herein again.
  • the second device may periodically update the first random number, that is, the second device may periodically generate the first random number, and send the generated first random number to the server through step 203d, so that the server pair The saved first random number is updated.
  • Step 203d The second device sends the first random number to the server.
  • the second device may send the first random number to the server, and when the server receives the first random number, the server may save the first random number, thereby ensuring the security of the first random number.
  • the process of sending the first random number to the server by the second device may also be implemented by the following step 200b. For details, refer to the description in step 200b, and details are not described herein again.
  • the server may send the first random number to the first device by using the foregoing step 204.
  • the server may further send the device information (for example, a MAC address) of the first device to the second device, where the second device may receive the device information of the first device. It is determined that the device to be connected is the first device, thereby setting its own state to a connectable state, thereby avoiding manual operation of the user and simplifying the operation flow. For example, taking the second device with a Bluetooth function as an example, the second device can turn on its own Bluetooth function and set its attribute to a state that can be detected by other devices. Thereafter, the first device may send a wireless physical connection (eg, a Bluetooth physical connection) to the second device; or the second device sends a wireless physical connection to the first device when determining that the device to be connected is the first device.
  • a wireless physical connection eg, a Bluetooth physical connection
  • the pairing information contains a key, which is generated by the server.
  • the method further includes: step 203e - step 203f. Wherein step 203e is located before step 204, step 203f And step 204 can be in no particular order.
  • Step 203e The server generates a key.
  • Step 203f The server sends the key to the second device.
  • the server may generate a key for the first device and the second device to perform data encryption and decryption for the first device and the second device, and send the generated key to the generated key separately.
  • the first device and the second device that is, the server, send the key to the first device by using the foregoing step 204, and send the key to the second device by using the step 203f, so that the security of the key can be ensured, and the first The pairing efficiency of the device and the second device.
  • the server may further send the device information (such as a MAC address) of the first device to the second device, where the device information of the first device is used by the second device to determine the device to be connected.
  • the second device when the second device receives the key, the second device can set its own state to the connectable state, thereby avoiding manual operation of the user and simplifying the operation flow. For example, taking the second device with a Bluetooth function as an example, the second device turns on its own Bluetooth function and sets its attribute to a state that can be detected by other devices. Thereafter, the first device may send a wireless physical connection (eg, a Bluetooth physical connection) to the second device; or the second device sends a wireless physical connection to the first device when determining that the device to be connected is the first device.
  • a wireless physical connection eg, a Bluetooth physical connection
  • Step 205a The first device receives the pairing information.
  • Step 205b The second device acquires pairing information.
  • the pairing information may include a first random number or a key.
  • the operation of the corresponding second device is also slightly different.
  • the process of acquiring the pairing information by the second device may be the first random number sent by the receiving server corresponding to the foregoing step 203b, and the key sent by the receiving server corresponding to the step 203c or 203f.
  • the specific process refer to the description of the foregoing steps. The embodiments are not described herein again.
  • Step 206 The first device and the second device perform pairing according to the pairing information to implement a wireless connection between the first device and the second device.
  • the first device and the second device may respectively generate a key according to a certain algorithm according to the first random number, and perform encryption and decryption during data transmission by using the generated key, A wireless connection between the first device and the second device is implemented.
  • the pairing information includes the key
  • the first device and the second device can directly perform encryption and decryption during data transmission by using the key included in the pairing information to implement a wireless connection between the first device and the second device.
  • each of the multiple devices can be connected by the method described in the foregoing steps 201-205, thereby implementing connection between multiple devices. No need to perform a series of complex operations on each device, saving operating time and simplifying the operation process, thus improving the user experience.
  • the first device and the second device may further verify the legality of the other party according to the first random number.
  • the legality verification of the first device by the second device is taken as an example.
  • the method further includes: step 204a-step 204d.
  • Step 204a The first device generates a second random number, and determines first verification information according to the first random number and the second random number.
  • the first device may use time (for example, year, month, and day) when the first device generates the second random number.
  • time for example, year, month, and day
  • an algorithm is used to generate a random number, which may also be generated by using a method for generating a random number in the prior art.
  • the method for generating a second random number for the first device in the embodiment of the present application, and the method involved in generating the second random number The algorithm is not specifically limited.
  • the first device may generate the first verification information by using an algorithm according to the first random number and the second random number, where the first verification information may be a random number, a character, a character string, or the like.
  • the embodiment of the present application also does not specifically limit the algorithm involved in generating the first verification confidence.
  • Step 204b The first device sends the second random number and the first verification information to the second device, where the first verification information is used by the second device to verify the legality of the first device.
  • the first device may send the second random number together with the first verification information to the second device, and enable the second device to use the second random number and the first verification information to the first device. Validity of the legality.
  • Step 204c The second device receives the second random number and the first verification information sent by the first device.
  • Step 204d The second device verifies the first verification information according to the first random number and the second random number.
  • the second device may generate the verification information by using an algorithm according to the first random number and the second random number, where the algorithm may generate the first verification information with the first device.
  • the algorithm is consistent. If the verification information generated by the second device matches the first verification information, it may be determined that the legality verification of the first device is passed, and then the second device may perform a subsequent step; if the generated verification information does not match the first verification information, It may be determined that the legality verification of the first device fails, so that the second device can disconnect the wireless physical connection.
  • the second device and the first device may also verify the legality of the second device by using the foregoing method for verifying the legality of the first device.
  • the second device generates a third random number, and determines second verification information according to the first random number and the third random number; the second device sends the third random number and the second verification information to the first device, where The verification information is used by the first device to verify the legality of the second device; the first device receives the third random number and the second verification information sent by the second device, and according to the first random number and the third random number, Two verification information is verified. Therefore, by verifying the legality of the first device and the second device, the security of the wireless connection between the first device and the second device can be ensured.
  • the device that logs in to the first account may also send its own device information to the server, and the server stores the device information.
  • the device that logs in to the first account can send its own device information to the server separately, regardless of the order.
  • the first device and the second device are taken as an example.
  • the method further includes: step 200a-step 200d.
  • Step 200a The first device sends the device information of the first device to the server when the preset condition is met.
  • the preset condition includes one of the following conditions: the first account is logged in on the first device for the first time, and the device information of the first device changes.
  • the first account when the device information of the first device is sent to the server, the first account can be registered first time.
  • the device information of the first device is sent to the server, and may also be sent when the preset condition is met. That is, when the first account is logged in on the first device for the first time, the first device may send the device information of the first device to the server.
  • the device information of the first device changes, for example, the device name or the Bluetooth name of the first device changes, the first device may send the changed device information of the first device to the server.
  • Step 200b The second device sends the device information of the second device to the server when the preset condition is met.
  • the preset condition includes one of the following conditions: the first account is logged in on the second device for the first time, and the device information of the second device is changed.
  • the process of the device sending the device information of the second device to the server is similar to the process of the device sending the device information of the first device to the server.
  • Narration refer to the description in the foregoing step 200a. Narration.
  • the first random number generated in the foregoing step 203c may be carried in the device information of the second device and sent to the server.
  • the first device may also generate a random number, and send the generated random number and device information of the first device to the server by using the foregoing step 200a.
  • the first device and the second device send the device information to the server under the preset condition, thereby avoiding sending the device information to the server every time the first account is logged, thereby reducing the interaction between the device and the server, and also Ensure the freshness of the device information.
  • Step 200c The server receives the device information corresponding to the first account.
  • the server can receive the device information corresponding to the first account, and the device of the first account is the device that logs in to the first account.
  • the device of the first account includes the first device and the second device as an example.
  • the device of the first account may further include one or more other devices, one or more devices. It is also possible to transmit its own device information to the server in a similar manner to the first device and the second device.
  • Step 200d The server stores the device information corresponding to the first account in a correspondence between the user account and the device information.
  • the server may store the device information corresponding to the first account in the correspondence between the user account and the device information.
  • the correspondence between the user account and the device information may include one or more user accounts, and device information corresponding to each user account.
  • the device corresponding to the first account includes the first device and the second device, and the first device and the second device respectively send the device information of the device to the server, where the device information includes the device name, the Bluetooth MAC address, and the Bluetooth name.
  • the device information of the first device is: EM1, BT-MAC1, and BT-N1
  • the device information of the second device is: EM2, BT-MAC2, and BT-N2
  • the account saved by the server The correspondence between the name and the device information can be as shown in Table 1 below, or as shown in FIG. 11(a).
  • the correspondence between the user account and the device information stored by the server may be as shown in Table 2 below, and NUM is represented in Table 2. Random number, or as shown in Figure 11 (b).
  • any device that logs in to the first account connects to another electronic device by wireless
  • the device may also send the device information of the connected other electronic device to the server
  • Other electronic devices connected to the device may be devices that do not have an account login function.
  • a smart phone uses a dedicated application to connect with a smart watch, a smart watch does not have an account login function, a smart phone is connected to a smart watch through a Bluetooth function, and a smart watch cannot send its own device information to a server, which can be intelligent by a smart phone.
  • the device information of the watch is sent to the server.
  • the device information of the third device connected to the second device is: EM11, BT-MAC11, BT-N11, and the server stores the device information of the third device in the user account and device information.
  • the correspondence between the two can be as shown in FIG.
  • the process of performing wireless connection between the first device and the third device is similar to the process of performing wireless connection between the first device and the second device, and the information sent by the first device and the server to the third device during the connection process may be The information is transmitted by the second device, and the information sent by the third device to the first device can also be transmitted through the second device.
  • multiple devices that are logged in to different user accounts can also perform wireless connection by using the method provided in this embodiment of the present application.
  • an interface is set in the server and multiple devices, for the user to obtain device information corresponding to different accounts, and then The method of the embodiment of the present application performs subsequent connections.
  • an interface may be set in the first device for the user to input the second account, and the second account is the account that the user desires to connect to, so that the first device is After the second account is obtained, the second account is sent to the server, so that the server returns the device information corresponding to the second account, and the first device determines, according to the device information corresponding to the second account, that the device to be connected is connected.
  • the first device logs in by acquiring the first device.
  • the device information corresponding to the first account is selected according to the selection instruction triggered by the user and the device information corresponding to the first account, and then sends a pairing request including the identification information of the second device to the server, and receives the pairing information sent by the server. Pairing with the second device according to the pairing information, thereby implementing a wireless connection between the first device and the second device.
  • the connection process the user does not need to perform a series of complicated operations on each device, thereby saving operation time and simplifying operation. Process, which in turn improves the user experience.
  • each network element such as the first device, the second device, and the server, etc., in order to implement the above functions, includes corresponding hardware structures and/or software modules for performing the respective functions.
  • the present application can be implemented in a combination of hardware or hardware and computer software in conjunction with the network elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the embodiment of the present invention may divide the function module by using the first device, the second device, and the server according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one.
  • Processing module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 13 is a schematic diagram of a possible structure of the first device involved in the foregoing embodiment, where the first device includes: an obtaining unit 301, a selecting unit 302, and a sending. Unit 303, receiving unit 304 and pairing unit 305.
  • the obtaining unit 301 is configured to support the first device to perform step 201 in the method provided by any one of FIG. 4 and FIG. 6 to FIG. 10;
  • the selecting unit 302 is configured to support the first device to perform FIG. 4 and FIG. 6 Step 102 in the method provided by any one of FIG. 10;
  • the sending unit 303 is configured to support the first device to perform step 203 in the method provided by any one of FIG. 4, FIG. 6 to FIG. 10, and the figure Step 204b in the receiving unit 304, the receiving unit 304 supports the first device to perform step 205a in the method provided by any one of FIG. 4 and FIG. 6 to FIG. 10;
  • the pairing unit 305 is configured to support the first device to execute FIG. 4 and FIG.
  • the above selecting unit 302 and pairing unit 305 may be processors, the obtaining unit 301 and the receiving unit 304 may be receivers, the sending unit 303 may be a transmitter, and the receiver and the transmitter may constitute a communication interface.
  • FIG. 14 is a schematic diagram showing a possible logical structure of a first device involved in the foregoing embodiment according to an embodiment of the present invention.
  • the first device includes a processor 312, a communication interface 313, a memory 311, and a bus 314.
  • the processor 312, the communication interface 313, and the memory 311 are connected to one another via a bus 314.
  • the processor 312 is configured to perform control management on the action of the first device, for example, the processor 312 is configured to support the first device to perform the implementation of any of the diagrams in FIG. 4 and FIG. Steps 202 and 206 of the method, and/or other processes for the techniques described herein.
  • the communication interface 313 is for supporting the first device to perform communication.
  • the memory 311 is configured to store program codes and data of the first device.
  • the processor 312 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, combinations of digital signal processors and microprocessors, and the like.
  • the bus 314 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • FIG. 15 is a schematic diagram showing a possible structure of the second device involved in the foregoing embodiment, where the second device includes: an obtaining unit 401 and a pairing unit 402.
  • the obtaining unit 401 is configured to support the second device to perform step 205b in the method provided by any one of FIG. 4 and FIG. 6 to FIG. 10;
  • the pairing unit 402 is configured to support the second device to perform FIG. 4 and FIG. 6 Step 206 of the method provided in any of Figure 10 is illustrated.
  • the second device further includes: a sending unit 403, and/or a setting unit 404.
  • the sending unit 403 supports the second device to perform step 203d in the method provided in FIG. 7 or step 200b in the method provided in FIG. 10;
  • the setting unit 404 is configured to support the second device to set the second device as Connection Status. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional description of the corresponding functional modules, and details are not described herein again.
  • the pairing unit 402 and the setting unit 404 may be a processor
  • the obtaining unit 401 may be a receiver
  • the sending unit 403 may be a transmitter
  • the receiver and the transmitter may constitute a communication interface.
  • FIG. 16 is a schematic diagram showing a possible logical structure of a second device involved in the foregoing embodiment according to an embodiment of the present invention.
  • the second device includes a processor 412, a communication interface 413, a memory 411, and a bus 414.
  • the processor 412, the communication interface 413, and the memory 411 are connected to one another via a bus 414.
  • the processor 412 is configured to perform control management on the action of the second device.
  • the processor 412 is configured to support the second device to perform the implementation of any of the icons in FIG. 4 and FIG. Step 206 in the method, and setting the second device to a connectable state, and/or other processes for the techniques described herein.
  • the communication interface 413 is for supporting the second device to communicate.
  • the memory 411 is configured to store program codes and data of the second device.
  • the processor 412 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, combinations of digital signal processors and microprocessors, and the like.
  • Bus 414 can be a Peripheral Component Interconnect Standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect Standard
  • EISA Extended Industry Standard Architecture
  • FIG. 17 is a schematic diagram showing a possible structure of a server involved in the foregoing embodiment.
  • the server includes: a sending unit 501 and a receiving unit 502.
  • the sending unit 501 is configured to support the server to send the device information corresponding to the first account to the first device.
  • the receiving unit 502 is configured to support the server to perform the step of receiving the pairing request, the step of receiving the first random number, and the figure Step 200c in 10.
  • the server may further include: a storage unit 503, and/or a generating unit 504.
  • the storage unit 503 is configured to support the server to perform step 200d in the method provided in FIG.
  • the generating unit 504 is configured to support the server to perform step 203a in the method provided in FIG. 6, or step 203e in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional description of the corresponding functional modules, and details are not described herein again.
  • the foregoing storage unit 503 can be a memory
  • the generating unit 504 can be a processor
  • the sending unit 501 can be a transmitter
  • the receiving unit 502 can be a receiver
  • the transmitter and the receiver can form a communication interface.
  • FIG. 18 is a schematic diagram showing a possible logical structure of a server involved in the foregoing embodiment according to an embodiment of the present invention.
  • the server includes a processor 512, a communication interface 513, a memory 511, and a bus 514.
  • the processor 512, the communication interface 513, and the memory 511 are connected to one another via a bus 514.
  • the processor 512 is configured to perform control management on the actions of the server.
  • the processor 512 is configured to support the server to perform step 203a in the method provided in FIG. 6, or step 203e in FIG. And/or other processes for the techniques described herein.
  • the communication interface 513 is used to support the server for communication.
  • the memory 511 is configured to store program code and data of the server.
  • the processor 512 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, combinations of digital signal processors and microprocessors, and the like.
  • Bus 514 can be a Peripheral Component Interconnect Standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect Standard
  • EISA Extended Industry Standard Architecture
  • a readable storage medium wherein the readable storage medium stores computer execution instructions, when a device (which may be a single chip microcomputer, a chip, etc.) or a processor executes FIG. 4 and FIG. 6 - the method provided by any of the illustrations in FIG.
  • the aforementioned readable storage medium may include various media that can store program codes, such as a USB flash drive, a removable hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk.
  • a computer program product comprising computer executable instructions stored in a computer readable storage medium; at least one processor of the device may be Reading the storage medium reads the computer execution instructions, and the at least one processor executing the computer execution instructions causes the apparatus to implement the method provided by any of the figures of FIG. 4, FIG. 6-10.
  • a system comprising: a first device, a second device, and a server; wherein the first device may be the device shown in FIG. 3, FIG. 13, or FIG. a step of performing the first device in the method illustrated in any one of FIG. 4, FIG. 6 to FIG. 10; and/or, the second device is the device shown in FIG. 3, FIG. 15, or FIG.
  • the steps of the first device in the method illustrated in any one of FIG. 4, FIG. 6 to FIG. 10; and/or the server is the server shown in FIG. 2, FIG. 17, or FIG. 18, for performing FIG. The steps of the first device in the method illustrated in any of Figures 6-10.
  • the first device acquires the device information corresponding to the first account that is logged in by the first device, selects the second device according to the selection instruction triggered by the user, and the device information corresponding to the first account, and then sends the second device to the server.
  • a series of complex operations on the device saves operating time and simplifies the operation process, which in turn improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供一种多设备无线连接方法和设备,涉及通信技术领域,解决了现有技术中多个设备进行无线连接时操作复杂,且耗费时间长的问题。所述方法包括:第一设备从服务器获取第一账号对应的设备信息;根据用户触发的选择指令和所述第一账号对应的设备信息选择第二设备,所述第二设备为登录所述第一账号的设备;向所述服务器发送配对请求,所述配对请求包含所述第二设备的标识信息;接收所述服务器发送的配对信息,所述配对信息用于所述第一设备与所述第二设备之间的配对;所述第二设备获取配对信息;所述第一设备根据所述配对信息与所述第二设备进行配对,以实现所述第一设备与所述第二设备之间的无线连接。

Description

一种多设备无线连接方法和设备
本申请要求于2017年03月14日提交中国专利局、申请号为201710149757.0、发明名称为“一种建立蓝牙连接的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种多设备无线连接方法和设备。
背景技术
随着通信技术的快速发展,出现了越来越多具有蓝牙功能的电子设备,比如手机、平板电脑、可穿戴设备、车载设备等等。用户可以通过蓝牙功能将两个或者多个设备连接起来,从而进行蓝牙功能实现设备间的信息传输,或者通过一个设备控制另外一个设备,实现设备的远程控制操作。
目前,在通过蓝牙功能实现设备之间的连接时,用户需要通过两两配对连接的方式进行操作,即用户首先打开两个设备的蓝牙功能,由其中的一个设备通过扫描的方式获取对方的蓝牙名称,之后通过向对方发送配对码、以及对方输入相同的配对码的方式完成两个设备的配对,从而实现两个设备之间的蓝牙连接。当实现多个设备之间的蓝牙连接时,需要重复多次上述两两配对连接的方式来实现。上述方法中,每两个设备之间的蓝牙连接需要经过多次操作,从而操作复杂,且耗费较长的时间,若通过该方法实现多个设备之间的蓝牙连接,则会耗费更长的时间,用户体验差。
发明内容
本发明的实施例提供一种多设备无线连接方法和设备,解决了现有技术中多个设备进行无线连接时操作复杂,且耗费时间长的问题。
为达到上述目的,本发明的实施例采用如下技术方案:
第一方面,提供一种多设备无线连接方法,该方法包括:第一设备从服务器获取第一设备登录的第一账号对应的设备信息,比如,第一设备可以为平板电脑,该设备信息可以包括平板电脑的名称、型号和序列号,以及平板电脑上蓝牙的名称和MAC地址等中的一个或者多个;根据用户触发的选择指令和第一账号对应的设备信息选择第二设备,第二设备为登录第一账号的设备,比如,第二设备为手机;向服务器发送配对请求,配对请求包含第二设备的标识信息(比如,手机名称),第二设备的标识信息可用于服务器确定第二设备;接收服务器发送的配对信息,配对信息用于第一设备与第二设备之间的配对,比如,配对信息用于第一设备与第二设备之间的蓝牙配对;第一设备根据配对信息与第二设备进行配对,以实现第一设备与第二设备之间的无线连接。上述技术方案中,第一设备可以直接从服务器获取第一账号对应的设备信息,并在第一设备与第二设备的无线连接过程中,用户只需从第一账号对应的设备信息中选择第二设备,无需在每个设备上进行一系列的复杂操作 即可实现第一设备与第二设备之间的无线连接,从而节省了操作时间,简化了操作流程,同时将同一用户的多个设备的设备信息呈现给用户进行选择,可以减少选择范围,避免错选,提高了用户体验。
在第一方面的一种可能的实现方式中,该方法还包括:在满足预设条件时,将第一设备的设备信息发送给服务器;其中,预设条件包括以下条件中的一个:第一账号首次在第一设备上登录,第一账号可以为登录第一设备的账号,也可以为登录第一设备上应用程序的账号;或者第一设备的设备信息发生变化,比如,第一设备的设备名称或者第一设备上的蓝牙名称等发生变化。上述可能的实现方式中,第一设备可以在预设条件下将其设备信息发送给服务器,从而避免了每次登录第一账号时都向服务器发送设备信息,减少了第一设备与服务器之间的交互,同时也可以保证设备信息的新鲜性。
在第一方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。上述可能的实现方式中,配对信息由服务器生成保存,或者由第二设备生成并发送给服务器进行保存,可以保证配对信息的安全性;此外,当配对信息包含密钥由服务器生成时,还可以提高第一设备与第二设备的配对效率。
在第一方面的一种可能的实现方式中,若配对信息包含第一随机数,第一设备根据配对信息与第二设备进行配对,包括:生成第二随机数,并根据第一随机数和第二随机数确定第一验证信息,第一验证信息可以为随机数、字符或者字符串等;将第二随机数和第一验证信息发送给第二设备,第一验证信息用于第二设备对第一设备的合法性进行验证。上述可能的实现方式中,第一设备可以向第二设备发送第一验证信息,以使第二设备对第一设备的合法性进行验证,从而可以保证无线连接的安全性。
在第一方面的一种可能的实现方式中,第一设备根据配对信息与第二设备进行配对,还包括:接收第二设备发送的第三随机数和第二验证信息,第二验证信息用于第一设备对第二设备的合法性进行验证;根据第一随机数和第三随机数,对第二验证信息进行验证。上述可能的实现方式中,第一设备可以接收第二设备发送的第二验证信息,并对第二设备的合法性进行验证,从而可以保证无线连接的安全性。
在第一方面的一种可能的实现方式中,第一设备根据配对信息与第二设备进行配对,还包括:根据第一随机数生成密钥,该密钥用于第一设备与第二设备之间的数据加解密。上述可能的实现方式中,通过生成用于进行数据加解密的密钥,从而在进行数据传输时,可以保证数据的安全性。
在第一方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同;当第一设备登录的用户账号与第一账号不同时,第一设备从服务器获取第一账号对应的设备信息之前,该方法还包括:获取第一账号。
在第一方面的一种可能的实现方式中,若第三设备与第一设备进行无线连接,第三设备无账号登录能力,该方法还包括:第一设备将第三设备的设备信息发送给服务器。
第二方面,提供一种多设备无线连接方法,该方法包括:第二设备获取配对信 息,配对信息用于第一设备与第二设备之间的配对;第二设备根据配对信息与第一设备进行配对,以实现第一设备与第二设备之间的无线连接;其中,第二设备为登录第一账号的设备,且第二设备为第一设备根据用户触发的选择指令和第一账号对应的设备信息选择的设备;第一设备为向服务器发送配对请求的设备,配对请求包含第二设备的标识信息。上述技术方案中,在第一设备与第二设备的无线连接过程中,第二设备可以获取配对信息,并根据配对信息与第一设备进行配对,即可实现第一设备与第二设备之间的无线连接,用户无需在每个设备上进行一系列的复杂操作,从而节省了操作时间,简化了操作流程,同时在选择第二设备时将同一用户的多个设备的设备信息呈现给用户进行选择,可以减少选择范围,避免错选,提高了用户体验。
在第二方面的一种可能的实现方式中,该方法还包括:在满足预设条件时,将第二设备的设备信息发送给服务器;其中,预设条件包括以下条件中的一个:第一账号首次在第二设备上登录,第二设备的设备信息发生变化。上述可能的实现方式中,第二设备可以在预设条件下将其设备信息发送给服务器,从而避免了每次登录第一账号时都向服务器发送设备信息,减少了第二设备与服务器之间的交互,同时也可以保证设备信息的新鲜性。
在第二方面的一种可能的实现方式中,第二设备获取配对信息之后,该方法还包括:将第二设备设置为可连接状态。上述可能的实现方式中,第二设备在获取配对信息后,可以自动设置为可连接状态,避免了用户手动操作,从而简化了操作流程。
在第二方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。上述可能的实现方式中,配对信息由服务器生成保存,或者由第二设备生成并发送给服务器进行保存,可以保证配对信息的安全性;此外,当配对信息包含密钥由服务器生成时,还可以提高第一设备与第二设备的配对效率。
在第二方面的一种可能的实现方式中,若配对信息包含第一随机数,第二设备根据配对信息与第一设备进行配对,包括:接收第一设备发送的第二随机数和第一验证信息,第一验证信息用于第二设备对第一设备的合法性进行验证;根据第一随机数和第二随机数,对第一验证信息进行验证。上述可能的实现方式中,第二设备可以接收第一设备发送的第一验证信息,并对第一设备的合法性进行验证,从而可以保证无线连接的安全性。
在第二方面的一种可能的实现方式中,第二设备根据配对信息与第一设备进行配对,还包括:生成第三随机数,并根据第一随机数和第三随机数确定第二验证信息;将第三随机数和第二验证信息发送给第一设备,第二验证信息用于第一设备对第二设备的合法性进行验证。上述可能的实现方式中,第二设备可以向第一设备发送第二验证信息,以使第一设备对第二设备的合法性进行验证,从而可以保证无线连接的安全性。
在第二方面的一种可能的实现方式中,第二设备根据配对信息与第一设备进行配对,还包括:根据第一随机数生成密钥,该密钥用于第一设备与第二设备之间的 数据加解密。上述可能的实现方式中,通过生成用于进行数据加解密的密钥,从而在进行数据传输时,可以保证数据的安全性。
在第二方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同。
在第二方面的一种可能的实现方式中,若第三设备与第二设备进行无线连接,第三设备无账号登录能力,该方法还包括:第二设备将第三设备的设备信息发送给服务器。
第三方面,提供一种多设备无线连接方法,该方法包括:将存储的用户账号与设备信息之间的对应关系中,与第一账号对应的设备信息发送给第一设备;接收第一设备发送的配对请求,配对请求包含第二设备的标识信息,第二设备为第一设备根据用户触发的选择指令和第一账号对应的设备信息选择的设备;向第一设备发送配对信息,以实现第一设备与第二设备之间的无线连接,配对信息用于第一设备与第二设备之间的配对。上述技术方案中,服务器可以将第一账号对应的设备信息发送给第一设备,以使第一设备从中选择第二设备,并在接收到第一设备的配对请求时,将配对信息发送给第一设备,从而用户无需在每个设备上进行一系列的复杂操作即可实现第一设备与第二设备之间的无线连接,从而节省了操作时间,简化了操作流程,同时将同一用户的多个设备的设备信息呈现给用户进行选择,可以减少选择范围,避免错选,提高了用户体验。
在第三方面的一种可能的实现方式中,该方法还包括:接收第一账号对应的设备信息;将第一账号对应的设备信息存储在用户账号与设备信息之间的对应关系中。上述可能的实现方式中,服务器可以接收登录第一账号的设备在预设条件下发送的设备信息,并对应存储,从而避免了每次登录第一账号时接收设备发送的设备信息,减少了设备与服务器之间的交互,同时也可以保证设备信息的新鲜性。
在第三方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。上述可能的实现方式中,配对信息由服务器生成,或者由第二设备生成并发送给服务器进行保存,可以保证配对信息的安全性;此外,当配对信息包含密钥由服务器生成时,还可以提高第一设备与第二设备的配对效率。
在第三方面的一种可能的实现方式中,若配对信息包含第一随机数:当第一随机数由服务器生成时,该方法还包括:生成第一随机数,将第一随机数发送给第二设备;当第一随机数由第二设备生成时,该方法还包括:接收第二设备发送的第一随机数。上述可能的实现方式中,在配对信息包含第一随机数时,可以由服务器生成第一随机数,并将其发送给第一设备和第二设备,从而可以保证第一随机数的安全性。
在第三方面的一种可能的实现方式中,若配对信息包含密钥,该方法还包括:生成密钥,密钥用于第一设备与第二设备之间的数据加解密;将密钥发送给第二设备。上述可能的实现方式中,在配对信息包含密钥时,服务器可以生成密钥,并将其发送给第一设备和第二设备,从而可以保证密钥的安全性,同时提高第一设备与第二设备的配对效率。
在第三方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同;若第一设备登录的用户账号与第一账号不同,该方法还包括:接收第一设备登录的用户账号对应的设备信息,并存储在用户账号与设备信息之间的对应关系中。
在第三方面的一种可能的实现方式中,若第三设备与第二设备或第一设备进行无线连接,第三设备无账号登录能力,该方法还包括:接收第三设备的设备信息,并存储在用户账号与设备信息之间的对应关系中。
第四方面,提供一种设备,该设备作为第一设备,包括:获取单元,用于从服务器获取第一账号对应的设备信息;选择单元,用于根据用户触发的选择指令和第一账号对应的设备信息选择第二设备,第二设备为登录第一账号的设备;发送单元,用于向服务器发送配对请求,配对请求包含第二设备的标识信息;接收单元,用于接收服务器发送的配对信息,配对信息用于第一设备与第二设备之间的配对;配对单元,用于第一设备根据配对信息与第二设备进行配对,以实现第一设备与第二设备之间的无线连接。
在第四方面的一种可能的实现方式中,发送单元,还用于:在满足预设条件时,将第一设备的设备信息发送给服务器;其中,预设条件包括以下条件中的一个:第一账号首次在第一设备上登录,第一设备的设备信息发生变化。
在第四方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。
在第四方面的一种可能的实现方式中,若配对信息包含第一随机数,配对单元,还用于:生成第二随机数,并根据第一随机数和第二随机数确定第一验证信息;发送单元,还用于将第二随机数和第一验证信息发送给第二设备,第一验证信息用于第二设备对第一设备的合法性进行验证。
在第四方面的一种可能的实现方式中,接收单元,还用于接收第二设备发送的第三随机数和第二验证信息,第二验证信息用于第一设备对第二设备的合法性进行验证;配对单元,还用于根据第一随机数和第三随机数,对第二验证信息进行验证。
在第四方面的一种可能的实现方式中,配对单元,还用于:根据第一随机数,生成密钥,密钥用于第一设备与第二设备之间的数据加解密。
在第四方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同;当第一设备登录的用户账号与第一账号不同时,获取单元,还用于获取第一账号。
在第四方面的一种可能的实现方式中,若第三设备与第一设备进行无线连接,第三设备无账号登录能力,发送单元,还用于第一设备将第三设备的设备信息发送给服务器。
第五方面,提供一种设备,该设备作为第二设备,包括:获取单元,用于获取配对信息,配对信息用于第一设备与第二设备之间的配对;其中,第二设备为登录第一账号的设备,且第二设备为第一设备根据用户触发的选择指令和第一账号对应的设备信息选择的设备;第一设备为向服务器发送配对请求的设备,配对请求包含 第二设备的标识信息;配对单元,用于根据配对信息与第一设备进行配对,以实现第一设备与第二设备之间的无线连接。
在第五方面的一种可能的实现方式中,该设备还包括:发送单元,用于在满足预设条件时,将第二设备的设备信息发送给服务器;其中,预设条件包括以下条件中的一个:第一账号首次在第二设备上登录,第二设备的设备信息发生变化。
在第五方面的一种可能的实现方式中,该方法还包括:设置单元,用于将第二设备设置为可连接状态。
在第五方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。
在第五方面的一种可能的实现方式中,若配对信息包含第一随机数,接收单元,还用于接收第一设备发送的第二随机数和第一验证信息,第一验证信息用于第二设备对第一设备的合法性进行验证;
配对单元,还用于根据第一随机数和第二随机数,对第一验证信息进行验证。
在第五方面的一种可能的实现方式中,配对单元,还用于生成第三随机数,并根据第一随机数和第三随机数确定第二验证信息;发送单元,还用于将第三随机数和第二验证信息发送给第一设备,第二验证信息用于第一设备对第二设备的合法性进行验证。
在第五方面的一种可能的实现方式中,配对单元,还用于根据第一随机数,生成密钥,密钥用于第一设备与第二设备之间的数据加解密。
在第五方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同。
在第五方面的一种可能的实现方式中,若第三设备与第二设备进行无线连接,第三设备无账号登录能力,发送单元,还用于第二设备将第三设备的设备信息发送给服务器。
第六方面,提供一种服务器,该服务器包括:发送单元,用于将存储的用户账号与设备信息之间的对应关系中,与第一账号对应的设备信息发送给第一设备;接收单元,还用于接收第一设备发送的配对请求,配对请求包含第二设备的标识信息,第二设备为第一设备根据用户触发的选择指令和第一账号对应的设备信息选择的设备;发送单元,还用于向第一设备发送配对信息,以实现第一设备与第二设备之间的无线连接,配对信息用于第一设备与第二设备之间的配对。
在第六方面的一种可能的实现方式中,接收单元,还用于接收第一账号对应的设备信息;该服务器还包括:存储单元,用于将第一账号对应的设备信息存储在用户账号与设备信息之间的对应关系中。
在第六方面的一种可能的实现方式中,配对信息包含第一随机数或者密钥;其中,第一随机数由服务器生成,或者由第二设备生成并发送给服务器;密钥由服务器生成。
在第六方面的一种可能的实现方式中,若配对信息包含第一随机数,当第一随机数由服务器生成时,该服务器还包括:生成单元,用于生成第一随机数;发送单 元,用于将第一随机数发送给第二设备。当第一随机数由第二设备生成时,接收单元,还用于接收第二设备发送的第一随机数。
在第六方面的一种可能的实现方式中,若配对信息包含密钥,该服务器还包括:生成单元,用于生成密钥,密钥用于第一设备与第二设备之间的数据加解密;发送单元,还用于将密钥发送给第二设备。
在第六方面的一种可能的实现方式中,第一设备登录的用户账号与第一账号相同或不同;若第一设备登录的用户账号与第一账号不同,接收单元,还用于接收第一设备登录的用户账号对应的设备信息;存储单元,还用于存储在用户账号与设备信息之间的对应关系中。
在第六方面的一种可能的实现方式中,若第三设备与第二设备或第一设备进行无线连接,第三设备无账号登录能力,接收单元,还用于接收第三设备的设备信息;存储单元,还用于存储在用户账号与设备信息之间的对应关系中。
在本申请的又一方面,提供了一种设备,该设备可以作为第一设备,该设备的结构中包括处理器和通信接口,该处理器被配置为支持该设备执行上述第一方面或第一方面的任一种可能的实现方式所提供的方法中第一设备的功能。该通信接口用于支持该设备与其他网元之间的通信。该设备还可以包括存储器,该存储器用于与处理器耦合,其保存该设备必要的程序代码和数据。
在本申请的又一方面,提供了一种设备,该设备作为第二设备,该设备的结构中包括处理器和通信接口,该处理器被配置为支持该设备执行上述第二方面或第二方面的任一种可能的实现方式所提供的方法中第二设备的功能。该通信接口用于支持该设备与其他网元之间的通信。该设备还可以包括存储器,该存储器用于与处理器耦合,其保存该设备必要的程序代码和数据。
在本申请的又一方面,提供了一种服务器,该服务器的结构中包括处理器和通信接口,该处理器被配置为支持该设备执行上述第三方面或第三方面的任一种可能的实现方式所提供的方法中服务器所执行的功能。该通信接口用于支持该设备与其他网元之间的通信。该设备还可以包括存储器,该存储器用于与处理器耦合,其保存该设备必要的程序代码和数据。
本申请的又一方面,提供一种通信系统,该系统包括上述各方面所提供的任一第一设备,和/或上述各方面所提供的任一第二设备,和/或上述各方面所提供的任一服务器。
本申请的又一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所提供的信息处理方法。
本申请的又一方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所提供的信息处理方法。
可以理解地,上述提供的任一种多设备连接方法的设备、计算机存储介质或者计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为本发明实施例提供的一种通信系统的系统架构图;
图2为本发明实施例提供的一种服务器的结构示意图;
图3为本发明实施例提供的一种电子设备的结构示意图;
图4为本发明实施例提供的第一种多设备无线连接方法的流程示意图;
图5为本发明实施例提供的一种第一账号对应的设备信息的显示界面图;
图6为本发明实施例提供的第二种多设备无线连接方法的流程示意图;
图7为本发明实施例提供的第三种多设备无线连接方法的流程示意图;
图8为本发明实施例提供的第四种多设备无线连接方法的流程示意图;
图9为本发明实施例提供的第五种多设备无线连接方法的流程示意图;
图10为本发明实施例提供的第六种多设备无线连接方法的流程示意图;
图11为本发明实施例提供的一种用户账号与设备信息之间的对应关系图;
图12为本发明实施例提供的另一种用户账号与设备信息之间的对应关系图;
图13为本发明实施例提供的一种第一设备的结构示意图;
图14为本发明实施例提供的另一种第一设备的结构示意图;
图15为本发明实施例提供的一种第二设备的结构示意图;
图16为本发明实施例提供的另一种第二设备的结构示意图;
图17为本发明实施例提供的一种服务器的结构示意图;
图18为本发明实施例提供的另一种服务器的结构示意图。
具体实施方式
本申请描述的技术方案可以适用于全球移动通信系统(Global System for Mobile Communication,GSM)、码分多址(Code Division Multiple Access,CDMA)系统、宽带码分多址(Wide-band Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)系统、第五代通信系统、以及未来的移动通信系统等。图1为本发明实施例提供的一种通信系统的系统架构图,该通信系统包括服务器101和电子设备102,服务器101和电子设备102都具有数据处理和数据存储的功能,同时在服务器101与电子设备102之间、以及电子设备102与电子设备102之间还可以进行数据传输。
其中,服务器101是指为电子设备102提供服务的网络设备,比如,服务器101可以是具有服务器功能的计算机等。参见图2,服务器101包括:存储器、处理器、系统总线、电源组件、输入\输出接口和通信组件等。存储器可用于存储数据、软件程序以及模块,主要包括存储程序区和存储数据区,存储程序区可存储操作系统、至少一个功能所需的应用程序等,存储数据区可存储服务器101的使用所创建的数据等。处理器通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行服务器101的各种功能和处理数据。系统总线包括地址总线、数据总线、控制总线,用于传输数据和指令。电源组件用于为服务器101的各个组件提供电源。输入\输出接口为处理器和外围接口模块之间提供接口。通信组件用于为服务器101和其他设备之间进行有线或无线方式的通信。在通信系统中,服务器101承担着数据 的存储、转发、发布等关键任务,是各类基于客户机/服务器(C/S)模式或者浏览器/服务器(B/S)模式网络中不可或缺的重要组成部分。
另外,电子设备102作为通信系统中被服务的对象,可以包括两个或者多个设备,该设备可以是手机、平板电脑、笔记本、可穿戴设备、车载设备以及便携式设备等等。参见图3,以电子设备102为手机为例进行说明,电子设备102可以包括:处理组件,存储器,电源组件,多媒体组件,音频组件,输入/输出接口,传感器组件以及通信组件等。
处理组件通常控制电子设备102的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件可以包括一个或多个处理器来执行指令。此外,处理组件可以包括一个或多个模块,便于处理组件和其他组件之间的交互。例如,处理组件可以包括多媒体模块,以方便多媒体组件和处理组件之间的交互。
存储器被配置为存储各种类型的数据以支持电子设备102的操作。这些数据的示例包括用于在电子设备102上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件为电子设备102的各种组件提供电力。电力组件可以包括电源管理系统,一个或多个电源,及其他与为电子设备102生成、管理和分配电力相关联的组件。
多媒体组件包括在电子设备102和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件包括一个摄像头。当电子设备102处于操作模式,如拍摄模式或视频模式时,摄像头可以接收外部的多媒体数据。每个摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件被配置为输出和/或输入音频信号。例如,音频组件包括一个麦克风(MC),当电子设备102处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或经由通信组件发送。在一些实施例中,音频组件还包括一个扬声器,用于输出音频信号。
输入/输出接口为处理组件和外围接口模块之间提供接口,上述外围接口模块可以是点击轮,按钮等。这些按钮可包括但不限于:主页按钮、启动按钮和锁定按钮。
传感器组件包括一个或多个传感器,用于为电子设备102提供各个方面的状态评估。例如,传感器组件可以检测到电子设备102的打开/关闭状态,组件的相对定位。传感器组件还可以检测电子设备102或者其中一个组件的位置改变,电子设备102方位或加速/减速和电子设备102的温度变化。传感器组件可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件还可以包括光传感器, 如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件被配置为便于电子设备102和其他设备之间有线或无线方式的通信。电子设备102可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件还包括近场通信(NFC)模块,以促进短程通信。例如,NFC模块可基于射频识别(RFD)技术,红外数据协会(rDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
本领域技术人员可以理解,图2-图3中示出的服务器和电子设备的结构并不构成对其结构的限定。在实际应用中,服务器或者电子设备还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
图4为本申请实施例提供的一种多设备无线连接方法的流程示意图,该方法应用于上述图1所示的通信系统,参见图4,该方法包括以下几个步骤。
步骤201:第一设备从服务器获取第一账号对应的设备信息。
其中,第一设备可以是手机、平板电脑、笔记本、可穿戴设备、车载设备以及便携式设备等等。第一设备包含无线通信模块,具有无线连接功能,比例,第一设备具有蓝牙模块,通过蓝牙功能可以实现与其他电子设备的无线连接。
另外,第一账号可以是第一设备登录的账号,也可以是其他设备登录的账号,且为第一设备需要连接的设备所登录的账号。这里以第一账号为第一设备登录的用户账号为例进行说明。第一设备登录的第一账号是指在第一设备上登录的用户账号,第一账号可以是用于登录第一设备的账号、或者是用于登录第一设备上安装的应用程序的账号,本申请实施例对此不作具体限定。第一账号对应的设备信息是指登录第一账号的电子设备的设备信息,该设备信息可以包括以下信息中的一种或多种:电子设备的名称、型号、序列号和MAC地址,电子设备中无线通信模块的名称、型号、序列号和MAC地址等。
具体的,当第一设备从服务器获取第一设备登录的第一账号对应的设备信息时,第一设备可以向服务器发送携带第一账号的信息获取请求,服务器接收到信息获取请求之后,根据第一账号,将存储的用户账号与设备信息之间的对应关系中,与第一账号对应的设备信息发送给第一设备。
可选的,第一设备可以主动的向服务器发送信息获取请求,也可以是在接收到用户的触发指令后向服务器发送信息获取请求。比如,以第一设备具有蓝牙功能为例,当用户打开第一设备的蓝牙设置时,第一设备可以自动的向服务器获取第一账号对应的设备信息;或者,在蓝牙设置界面或者专有的应用程序界面设置一个指定按钮,当用户触发该指定按钮时,第一设备向服务器发送信息获取请求。
步骤202:第一设备根据用户触发的选择指令和第一账号对应的设备信息选择第二设备,第二设备为登录第一账号的设备。
其中,第二设备也可以是手机、平板电脑、笔记本、可穿戴设备、车载设备以及便携式设备等等。第二设备同样包含无线通信模块,具有无线连接功能,比例,第二设备具有蓝牙模块,通过蓝牙功能可以实现与第一设备或其他电子设备的无线连接。 第二设备与第一设备均登录第一账号,且第二设备可以是用户从登陆第一账号的设备中选择的设备。
具体的,当第一设备获取到第一账号对应的设备信息时,第一设备可以将该设备信息显示给用户,用户可以触发选择指令,选择指令用于选择第二设备,从而使第一设备根据用户触发的选择指令,从第一账号对应的设备信息中选择第二设备。比如,第一账号为No.11,若每个设备的设备信息包括设备名称和蓝牙名称,第一账号对应的设备信息包括:手机1_蓝牙1、手表2_蓝牙2,则第一账号对应的设备信息可以如图5所示。其中,用户可以通过点击每个设备的设备信息选择对应的设备,或者点击每个设备的设备信息对应的选择按钮选择对应的设备,图5中以用户通过点击选择按钮选择手表2为第二设备为例进行说明。
步骤203:第一设备向服务器发送配对请求,配对请求包含第二设备的标识信息。
其中,第二设备的标识信息用于标识第二设备,第二设备的标识信息可以为第二设备的设备信息,当第二设备的设备信息包括多个信息时,第二设备的标识信息可以是多个信息中的一个信息。比如,第二设备的设备信息包括手机名称、手机MAC地址和蓝牙MAC地址,则第二设备的标识信息可以为蓝牙MAC地址,当然也可以为其他信息,本申请实施例对此不作限定。
具体的,当选择第二设备之后,第一设备可以向服务器发送包含第二设备的标识信息的配对请求,该配对请求用于请求第一设备与第二设备之间的配对。配对是指通过一系列的动作,使配对的双方设备具有相同的密钥,该密钥可用于通信时的数据加解密。本申请实施例中,第一设备与第二设备进行配对,即使第一设备和第二设备最终具有相同的用于进行数据加解密的密钥。
步骤204:当服务器接收到配对请求时,服务器向第一设备发送配对信息,配对信息用于第一设备与第二设备之间的配对。
其中,当服务器接收到配对请求后,服务器可以根据配对请求包含的第二设备的标识确定第二设备,并向第一设备发送用于第一设备与第二设备之间进行配对的配对信息。
可选的,配对信息可以包含第一随机数或者密钥,第一随机数可以用于第一设备和第二设备进行配对,密钥为第一设备和第二设备用于进行数据加解密的密钥。当配对信息包含不同的信息时,相应的服务器的操作也略有不同,具体如下所述。
第一种、配对信息包含第一随机数,且第一随机数是由服务器生成的。如图6所示,在步骤203之后,该方法还包括:步骤203a和步骤203b。其中,步骤203a位于步骤204之前,步骤203b与步骤204可以不分先后顺序。
步骤203a:服务器生成第一随机数。
其中,当服务器生成第一随机数时,服务器可以使用时间(比如,年月日)作为因子,使用算法生成随机数,也可以使用现有技术中生成随机数的方法进行生成,本申请实施例对服务器生成第一随机数的方法,以及生成第一随机数时所涉及的算法不作具体限定。
具体的,当服务器接收到第一设备发送的配对请求时,服务器可以为第一设备和第二设备生成第一随机数,并通过上述步骤204将第一随机数发送给第一设备。
步骤203b:服务器将第一随机数发送给第二设备。
当服务器生成第一随机数后,服务器不仅可以将第一随机数发送给第一设备,也可以将第一随机数发送给第二设备,从而可以保证第一随机数的安全性。可选的,服务器还可以将第一设备的设备信息发送给第二设备,比如,服务器可以将第一设备的MAC地址发送给第二设备,以使第二设备确定待连接的设备为第一设备。在实际应用中,服务器也可以向第二设备发送其他用于标识第一设备的信息,本申请实施例对此不作具体限定。
进一步的,在第二设备接收到第一随机数时,第二设备可以将自身的状态设置为可连接状态,可连接状态也可以称为广播状态,从而可以避免了用户手动操作,简化了操作流程。比如,以第二设备具有蓝牙功能为例,则第二设备在接收到第一随机数时,第二设备可以自动打开蓝牙功能,并将其属性设置为可被其他设备检测的状态。之后,第一设备可以向第二设备发送无线物理连接(比如,蓝牙物理连接);或者,第二设备在确定待连接的设备为第一设备时,向第一设备发送无线物理连接。
第二种、配对信息包含第一随机数,且第一随机数是由第二设备生成并发送给服务器。如图7所示,在步骤204之前,该方法还包括:步骤203c-步骤203d。其中,步骤203c-步骤203d与步骤201-步骤203可以不分先后顺序,即只要在服务器向第一设备发送配对信息之前,第二设备生成第一随机数并将第一随机数发送给服务器即可。
步骤203c:第二设备生成第一随机数。
其中,第二设备生成第一随机数的方法与服务器生成第一随机数的方法类似,具体参考上述服务器生成第一随机数的描述,本申请实施例在此不再赘述。
另外,第二设备可以周期性的对第一随机数进行更新,即第二设备可以周期性的生成第一随机数,并将生成的第一随机数通过步骤203d发送给服务器,以使服务器对保存的第一随机数进行更新。
步骤203d:第二设备向服务器发送第一随机数。
当第二设备生成第一随机数时,第二设备可以向服务器发送第一随机数,当服务器接收到第一随机数时,服务器可以保存第一随机数,从而可以保证第一随机数的安全性。可选的,第二设备向服务器发送第一随机数的过程也可以通过下述步骤200b实现,具体参见步骤200b中的描述,本申请实施例在此不再赘述。
进而,在第一设备向服务器发送包含第二设备的标识信息的配对请求后,服务器可以通过上述步骤204将第一随机数发送给第一设备。此外,服务器在接收到第一设备发送的配对请求后,还可以向第二设备发送第一设备的设备信息(比如,MAC地址),第二设备在接收到第一设备的设备信息时,可以确定待连接的设备为第一设备,从而将自身的状态设置为可连接状态,从而可以避免了用户手动操作,简化了操作流程。比如,以第二设备具有蓝牙功能为例,第二设备可以打开自身的蓝牙功能,将其属性设置为可被其他设备检测的状态。之后,第一设备可以向第二设备发送无线物理连接(比如,蓝牙物理连接);或者,第二设备在确定待连接的设备为第一设备时,向第一设备发送无线物理连接。
第三种、配对信息包含密钥,密钥由服务器生成。参见图8,在步骤203之后,该方法还包括:步骤203e-步骤203f。其中,步骤203e位于步骤204之前,步骤203f 与步骤204可以不分先后顺序。
步骤203e:服务器生成密钥。
步骤203f:服务器将密钥发送给第二设备。
当服务器接收到第一设备发送的配对请求时,服务器可以为第一设备和第二设备生成用于第一设备和第二设备进行数据加解密的密钥,并将生成的密钥分别发送给第一设备和第二设备,即服务器通过上述步骤204将密钥发送给第一设备,通过步骤203f将密钥发送给第二设备,从而可以保证密钥的安全性,同时还可以提高第一设备与第二设备的配对效率。可选的,服务器还可以将第一设备的设备信息(比如,MAC地址)和密钥一起发送给第二设备,第一设备的设备信息用于第二设备确定待连接的设备。
进而,当第二设备接收到密钥时,第二设备可以将自身的状态设置为可连接状态,从而可以避免了用户手动操作,简化了操作流程。比如,以第二设备具有蓝牙功能为例,第二设备打开自身的蓝牙功能,将其属性设置为可被其他设备检测的状态。之后,第一设备可以向第二设备发送无线物理连接(比如,蓝牙物理连接);或者,第二设备在确定待连接的设备为第一设备时,向第一设备发送无线物理连接。
步骤205a:第一设备接收配对信息。
步骤205b:第二设备获取配对信息。
其中,配对信息可以包含第一随机数或者密钥,当配对信息包含不同的信息时,相应的第二设备的操作也略有不同。具体的,第二设备获取配对信息的过程可以为上述步骤203b对应的接收服务器发送的第一随机数、步骤203c或者203f对应的接收服务器发送的密钥,具体过程参见上述步骤的描述,本申请实施例在此不再赘述。
步骤206:第一设备和第二设备根据配对信息进行配对,以实现第一设备与第二设备之间的无线连接。
具体的,当配对信息包含第一随机数时,第一设备和第二设备可以分别根据第一随机数按照一定的算法生成密钥,并通过生成的密钥进行数据传输时的加解密,以实现第一设备与第二设备之间的无线连接。当配对信息包含密钥时,第一设备和第二设备可以直接通过配对信息包含的密钥进行数据传输时的加解密,以实现第一设备与第二设备之间的无线连接。
当登录第一账号的多个设备进行无线连接时,多个设备中的每两个设备都可以通过上述步骤201-步骤205所述的方法进行连接,从而实现多个设备之间的连接,用户无需在每个设备上进行一系列的复杂操作,节省了操作时间,简化了操作流程,进而提高了用户体验。
进一步的,在第一设备和第二设备获取配对信息之后,若配对信息包含第一随机数,第一设备和第二设备还可以根据第一随机数验证对方的合法性。结合图4,以第二设备对第一设备的合法性验证为例进行说明,参见图9,在步骤205a和步骤205b之后,该方法还包括:步骤204a-步骤204d。
步骤204a:第一设备生成第二随机数,并根据第一随机数和第二随机数确定第一验证信息。
其中,当第一设备生成第二随机数时,第一设备可以使用时间(比如,年月日) 作为因子,使用算法生成随机数,也可以使用现有技术中生成随机数的方法进行生成,本申请实施例对第一设备生成第二随机数的方法,以及生成第二随机数时所涉及的算法不作具体限定。
另外,第一设备可以根据第一随机数和第二随机数,使用算法生成第一验证信息,第一验证信息可以为随机数、字符或者字符串等。本申请实施例同样对生成第一验证自信时所涉及的算法不作具体限定。
步骤204b:第一设备将第二随机数和第一验证信息发送给第二设备,第一验证信息用于第二设备对第一设备的合法性进行验证。
当第一设备生成第一验证信息时,第一设备可以将第二随机数和第一验证信息一起发送给第二设备,使第二设备根据第二随机数和第一验证信息对第一设备的合法性进行验证。
步骤204c:第二设备接收第一设备发送的第二随机数和第一验证信息。
步骤204d:第二设备根据第一随机数和第二随机数,对第一验证信息进行验证。
当第二设备接收到第二随机数和第一验证信息时,第二设备可以根据第一随机数和第二随机数,使用算法生成验证信息,该算法可以与第一设备生成第一验证信息的算法一致。若第二设备生成的验证信息与第一验证信息匹配,则可以确定第一设备的合法性验证通过,之后第二设备可以执行后续步骤;若生成的验证信息与第一验证信息不匹配,则可以确定第一设备的合法性验证未通过,从而第二设备可以断开无线物理连接。
此外,第二设备和第一设备也可以通过上述验证第一设备的合法性的方法,对第二设备的合法性进行验证。具体的,第二设备生成第三随机数,并根据第一随机数和第三随机数确定第二验证信息;第二设备将第三随机数和第二验证信息发送给第一设备,第二验证信息用于第一设备对第二设备的合法性进行验证;第一设备接收第二设备发送的第三随机数和第二验证信息,并根据第一随机数和第三随机数,对第二验证信息进行验证。因此,通过对第一设备和第二设备的合法性的验证,可以保证第一设备与第二设备之间的无线连接的安全性。
需要说明的是,对第二设备的合法性验证的具体过程和验证通过及未通过之后的操作与上述对第一设备的合法性验证的过程类似,具体参见上述描述,本申请实施例在此不再赘述。另外,验证第一设备的合法性的过程与验证第二设备的合法性的过程可以不分先后顺序。
进一步的,登录第一账号的设备在通过上述图4或图9所示的方法进行无线连接之前,还可以将自身的设备信息发送给服务器,由服务器进行存储。登录第一账号的设备可以分别向服务器发送自身的设备信息,且不分先后顺序。结合图4,以第一设备和第二设备为例进行说明,参见图10,在步骤201之前,该方法还包括:步骤200a-步骤200d。
步骤200a:第一设备在满足预设条件时,将第一设备的设备信息发送给服务器。其中,预设条件包括以下条件中的一个:第一账号首次在第一设备上登录,第一设备的设备信息发生变化。
其中,将第一设备的设备信息发送给服务器时,可以在第一账号每次登录第一 设备时,将第一设备的设备信息发送给服务器,也可以在满足预设条件时进行发送。即当第一账号首次在第一设备上登录时,第一设备可以将第一设备的设备信息发送给服务器。或者,当第一设备的设备信息后续发生变化时,比如,第一设备的设备名称或蓝牙名称等发生变化,第一设备可以将变化后的第一设备的设备信息发送给服务器。
步骤200b:第二设备在满足预设条件时,将第二设备的设备信息发送给服务器。其中,预设条件包括以下条件中的一个:第一账号首次在第二设备上登录,第二设备的设备信息发生变化。
其中,第二设备向服务器发送第二设备的设备信息的过程与第一设备向服务器发送第一设备的设备信息的过程类似,具体参见上述步骤200a中的描述,本申请实施例对此不再赘述。
进一步的,第二设备向服务器发送第二设备的设备信息时,还可以将上述步骤203c生成的第一随机数携带在第二设备的设备信息中一起发送给服务器。同理,第一设备也可以生成一个随机数,通过上述步骤200a将生成的随机数和第一设备的设备信息发送给服务器。
第一设备和第二设备在预设条件下将其设备信息发送给服务器,从而避免了每次登录第一账号时都向服务器发送设备信息,减少了设备与服务器之间的交互,同时也可以保证设备信息的新鲜性。
步骤200c:服务器接收第一账号对应的设备信息。
当登录第一账号的设备将自身的设备信息发送给服务器时,服务器可以接收第一账号对应的设备信息,第一账号的设备为登录第一账号的设备。本申请实施例中,以第一账号的设备包括第一设备和第二设备为例进行说明,在实际应用中,第一账号的设备还可以包括其他一个或者多个设备,一个或者多个设备也可以通过与第一设备和第二设备类似的方式将自身的设备信息发送给服务器。
步骤200d:服务器将第一账号对应的设备信息存储在用户账号与设备信息之间的对应关系中。
当服务器接收到第一账号的设备发送的设备信息时,服务器可以将第一账号对应的设备信息存储在用户账号与设备信息之间的对应关系中。其中,用户账号与设备信息之间的对应关系中可以包括一个或者多个用户账号,以及每个用户账号对应的设备信息。
比如,以第一账号对应的设备包括第一设备和第二设备,第一设备和第二设备分别将自身的设备信息发送服务器,该设备信息包括设备名称、蓝牙MAC地址和蓝牙名称为例进行说明。若第一账号为No.11,第一设备的设备信息为:EM1、BT-MAC1和BT-N1,第二设备的设备信息为:EM2、BT-MAC2和BT-N2,则服务器保存的账号名称与设备信息之间的对应关系可以如下表1所示,或者如图11(a)所示。
表1
Figure PCTCN2017090413-appb-000001
Figure PCTCN2017090413-appb-000002
进一步的,结合表1,若第一账号对应的设备信息还携带设备生成的随机数,则服务器存储的用户账号与设备信息之间的对应关系可以如下表2所示,表2中以NUM表示随机数,或者如图11(b)所示。
表2
Figure PCTCN2017090413-appb-000003
需要说明的是,上述表1和表2所示的用户账号与设备信息之间的对应关系仅为示例性的,上述表1和表2并不对本申请实施例构成限定。
进一步的,若登录第一账号的任一设备通过无线连接其他电子设备,则在该设备向服务器发送自身的设备信息时,该设备还可以将连接的其他电子设备的设备信息发送给服务器,与该设备连接的其他电子设备可以是不具有账号登录功能的设备。例如,智能手机使用专用的应用程序与智能手表连接,智能手表不具有账号登录功能,智能手机通过蓝牙功能与智能手表连接,智能手表无法将自身的设备信息发送给服务器,可以由智能手机将智能手表的设备信息发送给服务器。
比如,结合图11(a),与第二设备连接的第三设备的设备信息为:EM11、BT-MAC11、BT-N11,则服务器将第三设备的设备信息存储在用户账号与设备信息之间的对应关系中后可以如图12所示。
需要说明的是,第一设备与第三设备进行无线连接的过程和第一设备与第二设备进行无线连接的过程类似,且在连接过程中第一设备和服务器发送给第三设备的信息可以由第二设备进行传输,第三设备发送给第一设备的信息同样可以通过第二设备进行传输。
进一步的,登录不同用户账号的多个设备也可以通过本申请实施例提供的方法进行无线连接,具体的,在服务器和多个设备中设置接口,供用户获取不同账号对应的设备信息,然后通过本申请实施例的方法进行后续连接。比如,当用户使用第一账号在第一设备登录后,可以在第一设备中设置一个界面用于用户输入第二账号,第二账号为用户期望连接的设备登录的账号,从而第一设备在获取第二账号后,可以将第二账号发送给服务器,以使服务器返回第二账号对应的设备信息,第一设备根据第二账号对应的设备信息确定待连接的设备进行连接。
本申请实施例提供的多设备无线连接方法中,第一设备通过获取第一设备登录的 第一账号对应的设备信息,根据用户触发的选择指令和第一账号对应的设备信息选择第二设备,之后向服务器发送包含第二设备的标识信息的配对请求,并接收服务器发送的配对信息,根据配对信息与第二设备进行配对,从而实现第一设备与第二设备之间的无线连接,连接过程中用户无需在每个设备上进行一系列的复杂操作,节省了操作时间,简化了操作流程,进而提高了用户体验。
上述主要从各个网元之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个网元,例如第一设备、第二设备和服务器等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的网元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
本发明实施例可以根据上述方法示例对第一设备、第二设备和服务器进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图13示出了上述实施例中所涉及的第一设备的一种可能的结构示意图,第一设备包括:获取单元301、选择单元302、发送单元303、接收单元304和配对单元305。
其中,获取单元301用于支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤201;选择单元302用于支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤202;发送单元303用于支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤203,以及图9中的步骤204b;接收单元304支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤205a;配对单元305用于支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤206,以及图9中的步骤204a。上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在硬件实现上,上述选择单元302和配对单元305可以为处理器,获取单元301和接收单元304可以为接收器,发送单元303可以为发送器,接收器与发送器可以构成通信接口。
图14所示,为本发明的实施例提供的上述实施例中所涉及的第一设备的一种可能的逻辑结构示意图。第一设备包括:处理器312、通信接口313、存储器311以及总线314。处理器312、通信接口313以及存储器311通过总线314相互连接。在本发明的实施例中,处理器312用于对第一设备的动作进行控制管理,例如,处理器312用于支持第一设备执行图4、图6-图10中任一图示所提供的方法中的步骤202和步骤206,和/或用于本文所描述的技术的其他过程。通信接口313用于支持第一设备进行通信。存储器311,用于存储第一设备的程序代码和数据。
其中,处理器312可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线314可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中所涉及的第二设备的一种可能的结构示意图,第二设备包括:获取单元401和配对单元402。其中,获取单元401用于支持第二设备执行图4、图6-图10中任一图示所提供的方法中的步骤205b;配对单元402用于支持第二设备执行图4、图6-图10中任一图示所提供的方法中的步骤206。进一步的,第二设备还包括:发送单元403、和/或设置单元404。其中,发送单元403支持第二设备执行图7所提供的方法中的步骤203d、或图10中所提供的方法中的步骤200b;设置单元404用于支持第二设备将第二设备设置为可连接状态。上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在硬件实现上,上述配对单元402和设置单元404可以为处理器,获取单元401可以为接收器,发送单元403可以为发送器,接收器与发送器可以构成通信接口。
图16所示,为本发明的实施例提供的上述实施例中所涉及的第二设备的一种可能的逻辑结构示意图。第二设备包括:处理器412、通信接口413、存储器411以及总线414。处理器412、通信接口413以及存储器411通过总线414相互连接。在本发明的实施例中,处理器412用于对第二设备的动作进行控制管理,例如,处理器412用于支持第二设备执行图4、图6-图10中任一图示所提供的方法中的步骤206,以及将第二设备设置为可连接状态,和/或用于本文所描述的技术的其他过程。通信接口413用于支持第二设备进行通信。存储器411,用于存储第二设备的程序代码和数据。
其中,处理器412可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线414可以是外设部件互连标准(PCI)总线或扩展工业标准结构(EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图16中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
在采用对应各个功能划分各个功能模块的情况下,图17示出了上述实施例中所涉及的服务器的一种可能的结构示意图,服务器包括:发送单元501和接收单元502。其中,发送单元501用于支持服务器执行向第一设备发送第一账号对应的设备信息 的步骤、以及图4、图6-图10中任一图示所提供的方法中的步骤204;接收单元502用于支持服务器执行接收配对请求的步骤、接收第一随机数的步骤、以及图10中的步骤200c。进一步的,服务器还可以包括:存储单元503、和/或生成单元504。存储单元503用于支持服务器执行图10所提供的方法中的步骤200d;生成单元504用于支持服务器执行图6所提供的方法中的步骤203a、或者图8中的步骤203e。上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在硬件实现上,上述存储单元503可以为存储器、生成单元504可以为处理器,发送单元501可以为发送器,接收单元502可以为接收器,发送器与接收器可以构成通信接口。
图18所示,为本发明的实施例提供的上述实施例中所涉及的服务器的一种可能的逻辑结构示意图。服务器包括:处理器512、通信接口513、存储器511以及总线514。处理器512、通信接口513以及存储器511通过总线514相互连接。在本发明的实施例中,处理器512用于对服务器的动作进行控制管理,例如,处理器512用于支持服务器执行图6所提供的方法中的步骤203a、或者图8中的步骤203e,和/或用于本文所描述的技术的其他过程。通信接口513用于支持服务器进行通信。存储器511,用于存储服务器的程序代码和数据。
其中,处理器512可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线514可以是外设部件互连标准(PCI)总线或扩展工业标准结构(EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图18中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
在本发明的另一实施例中,还提供一种可读存储介质,可读存储介质中存储有计算机执行指令,当一个设备(可以是单片机,芯片等)或者处理器执行图4、图6-图10中任一图示所提供的方法。前述的可读存储介质可以包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
在本发明的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中;设备的至少一个处理器可以从计算机可读存储介质读取该计算机执行指令,至少一个处理器执行该计算机执行指令使得设备实施图4、图6-图10中任一图示所提供的方法。
在本发明的另一实施例中,还提供一种系统,该系统包括:第一设备、第二设备和服务器;其中,第一设备可以为上述图3、图13或者图14所示的设备,用于执行图4、图6-图10中任一图示所述方法中第一设备的步骤;和/或,第二设备为上述图3、图15或者图16所示的设备,用于执行图4、图6-图10中任一图示所述方法中第一设备的步骤;和/或,服务器为上述图2、图17或者图18所示的服务器,用于执行图4、图6-图10中任一图示所述方法中第一设备的步骤。
在本申请实施例中,第一设备通过获取第一设备登录的第一账号对应的设备信息,根据用户触发的选择指令和第一账号对应的设备信息选择第二设备,之后向服务器发送包含第二设备的标识信息的配对请求,并接收服务器发送的配对信息,根据配对信息与第二设备进行配对,从而实现第一设备与第二设备之间的无线连接,连接过程中用户无需在每个设备上进行一系列的复杂操作,节省了操作时间,简化了操作流程,进而提高了用户体验。
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (28)

  1. 一种多设备无线连接方法,其特征在于,所述方法包括:
    第一设备从服务器获取第一账号对应的设备信息;
    根据用户触发的选择指令和所述第一账号对应的设备信息选择第二设备,所述第二设备为登录所述第一账号的设备;
    向所述服务器发送配对请求,所述配对请求包含所述第二设备的标识信息;
    接收所述服务器发送的配对信息,所述配对信息用于所述第一设备与所述第二设备之间的配对;
    所述第一设备根据所述配对信息与所述第二设备进行配对,以实现所述第一设备与所述第二设备之间的无线连接。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在满足预设条件时,将所述第一设备的设备信息发送给所述服务器;
    其中,所述预设条件包括以下条件中的一个:所述第一账号首次在所述第一设备上登录,所述第一设备的设备信息发生变化。
  3. 根据权利要求1或2所述的方法,其特征在于,所述配对信息包含第一随机数或者密钥;其中,所述第一随机数由所述服务器生成,或者由所述第二设备生成并发送给所述服务器;所述密钥由所述服务器生成。
  4. 根据权利要求3所述的方法,其特征在于,若所述配对信息包含所述第一随机数,所述第一设备根据所述配对信息与所述第二设备进行配对,包括:
    生成第二随机数,并根据所述第一随机数和所述第二随机数确定第一验证信息;
    将所述第二随机数和所述第一验证信息发送给所述第二设备,所述第一验证信息用于所述第二设备对所述第一设备的合法性进行验证。
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备根据所述配对信息与所述第二设备进行配对,还包括:
    接收所述第二设备发送的第三随机数和第二验证信息,所述第二验证信息用于所述第一设备对所述第二设备的合法性进行验证;
    根据所述第一随机数和所述第三随机数,对所述第二验证信息进行验证。
  6. 根据权利要求4或5所述的方法,其特征在于,所述第一设备根据所述配对信息与所述第二设备进行配对,还包括:
    根据所述第一随机数,生成密钥,所述密钥用于所述第一设备与所述第二设备之间的数据加解密。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一设备登录的用户账号与所述第一账号相同或不同;
    当所述第一设备登录的用户账号与所述第一账号不同时,所述第一设备从服务器获取第一账号对应的设备信息之前,所述方法还包括:获取所述第一账号。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,若第三设备与所述第一设备进行无线连接,所述第三设备无账号登录能力,所述方法还包括:
    所述第一设备将所述第三设备的设备信息发送给所述服务器。
  9. 一种多设备无线连接方法,其特征在于,所述方法包括:
    第二设备获取配对信息,所述配对信息用于第一设备与所述第二设备之间的配对;其中,所述第二设备为登录第一账号的设备,且所述第二设备为所述第一设备根据用户触发的选择指令和所述第一账号对应的设备信息选择的设备;所述第一设备为向服务器发送配对请求的设备,所述配对请求包含所述第二设备的标识信息;
    所述第二设备根据所述配对信息与所述第一设备进行配对,以实现所述第一设备与所述第二设备之间的无线连接。
  10. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    在满足预设条件时,将所述第二设备的设备信息发送给所述服务器;
    其中,所述预设条件包括以下条件中的一个:所述第一账号首次在所述第二设备上登录,所述第二设备的设备信息发生变化。
  11. 根据权利要求9或10所述的方法,其特征在于,所述第二设备获取配对信息之后,所述方法还包括:
    将所述第二设备设置为可连接状态。
  12. 根据权利要求8-10任一项所述的方法,其特征在于,所述配对信息包含第一随机数或者密钥;其中,所述第一随机数由所述服务器生成,或者由所述第二设备生成并发送给所述服务器;所述密钥由所述服务器生成。
  13. 根据权利要求12所述的方法,其特征在于,若所述配对信息包含所述第一随机数,所述第二设备根据配对信息与所述第一设备进行配对,包括:
    接收所述第一设备发送的第二随机数和第一验证信息,所述第一验证信息用于所述第二设备对所述第一设备的合法性进行验证;
    根据所述第一随机数和所述第二随机数,对所述第一验证信息进行验证。
  14. 根据权利要求13所述的方法,其特征在于,所述第二设备根据配对信息与所述第一设备进行配对,还包括:
    生成第三随机数,并根据所述第一随机数和所述第三随机数确定第二验证信息;
    将所述第三随机数和所述第二验证信息发送给所述第一设备,所述第二验证信息用于所述第一设备对所述第二设备的合法性进行验证。
  15. 根据权利要求13或14所述的方法,其特征在于,所述第二设备根据配对信息与所述第一设备进行配对,还包括:
    根据所述第一随机数,生成密钥,所述密钥用于所述第一设备与所述第二设备之间的数据加解密。
  16. 根据权利要求8-15任一项所述的方法,其特征在于,所述第一设备登录的用户账号与所述第一账号相同或不同。
  17. 根据权利要求8-16任一项所述的方法,其特征在于,若第三设备与所述第二设备进行无线连接,所述第三设备无账号登录能力,所述方法还包括:
    所述第二设备将所述第三设备的设备信息发送给所述服务器。
  18. 一种多设备无线连接方法,其特征在于,所述方法包括:
    将存储的用户账号与设备信息之间的对应关系中,与第一账号对应的设备信息发送给第一设备;
    接收所述第一设备发送的配对请求,所述配对请求包含第二设备的标识信息,所述第二设备为所述第一设备根据用户触发的选择指令和所述第一账号对应的设备信息选择的设备;
    向所述第一设备发送配对信息,以实现所述第一设备与所述第二设备之间的无线连接,所述配对信息用于所述第一设备与所述第二设备之间的配对。
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:
    接收所述第一账号对应的设备信息;
    将所述第一账号对应的设备信息存储在所述用户账号与设备信息之间的对应关系中。
  20. 根据权利要求18或19所述的方法,其特征在于,所述配对信息包含第一随机数或者密钥;其中,所述第一随机数由所述服务器生成,或者由所述第二设备生成并发送给所述服务器;所述密钥由所述服务器生成。
  21. 根据权利要求20所述的方法,其特征在于,若所述配对信息包含所述第一随机数,
    当所述第一随机数由所述服务器生成时,所述方法还包括:生成第一随机数,将所述第一随机数发送给所述第二设备;
    当所述第一随机数由所述第二设备生成时,所述方法还包括:接收所述第二设备发送的所述第一随机数。
  22. 根据权利要求21所述的方法,其特征在于,若所述配对信息包含所述密钥,所述方法还包括:
    生成所述密钥,所述密钥用于所述第一设备与所述第二设备之间的数据加解密;
    将所述密钥发送给所述第二设备。
  23. 根据权利要求18-22任一项所述的方法,其特征在于,所述第一设备登录的用户账号与所述第一账号相同或不同;
    若所述第一设备登录的用户账号与所述第一账号不同,所述方法还包括:
    接收所述第一设备登录的用户账号对应的设备信息,并存储在所述用户账号与设备信息之间的对应关系中。
  24. 根据权利要求18-23任一项所述的方法,其特征在于,若第三设备与所述第二设备或所述第一设备进行无线连接,所述第三设备无账号登录能力,所述方法还包括:
    接收所述第三设备的设备信息,并存储在所述用户账号与设备信息之间的对应关系中。
  25. 一种设备,其特征在于,所述设备包括处理器、存储器和通信接口;其中,所述存储器中存储程序代码和数据,所述处理器运行所述存储器中的代码,使得所述设备执行权利要求1-8任一项所述的多设备无线连接方法。
  26. 一种设备,其特征在于,所述设备包括处理器、存储器和通信接口;其中,所述存储器中存储程序代码和数据,所述处理器运行所述存储器中的代码,使得所述设备执行权利要求9-17任一项所述的多设备无线连接方法。
  27. 一种服务器,其特征在于,所述服务器包括处理器、存储器和通信接口; 其中,所述存储器中存储程序代码和数据,所述处理器运行所述存储器中的代码,使得所述服务器执行权利要求18-24任一项所述的多设备无线连接方法。
  28. 一种可读存储介质,其特征在于,所述可读存储介质中存储有指令,当所述可读存储介质在设备上运行时,使得所述设备执行权利要求1-8任一项所述的多设备无线连接方法、权利要求9-17任一项所述的多设备无线连接方法、或者权利要求18-24任一项所述的多设备无线连接方法。
PCT/CN2017/090413 2017-03-14 2017-06-27 一种多设备无线连接方法和设备 WO2018166102A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17900772.9A EP3588890B1 (en) 2017-03-14 2017-06-27 Method and device for wireless connection of multiple devices
US16/493,648 US11432142B2 (en) 2017-03-14 2017-06-27 Multi-device wireless connection method and device
CN201780010172.9A CN108702607B (zh) 2017-03-14 2017-06-27 一种多设备无线连接方法和设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710149757.0 2017-03-14
CN201710149757 2017-03-14

Publications (1)

Publication Number Publication Date
WO2018166102A1 true WO2018166102A1 (zh) 2018-09-20

Family

ID=63522704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/090413 WO2018166102A1 (zh) 2017-03-14 2017-06-27 一种多设备无线连接方法和设备

Country Status (4)

Country Link
US (1) US11432142B2 (zh)
EP (1) EP3588890B1 (zh)
CN (1) CN108702607B (zh)
WO (1) WO2018166102A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018166102A1 (zh) * 2017-03-14 2018-09-20 华为技术有限公司 一种多设备无线连接方法和设备
WO2019022674A1 (en) * 2017-07-27 2019-01-31 Nanyang Technological University AUTHENTICATION REALIZATION METHOD FOR TRANSACTION AND SYSTEM THEREOF
CN110933484A (zh) * 2019-11-25 2020-03-27 泰康保险集团股份有限公司 一种无线投屏设备的管理方法及装置
US20210226944A1 (en) * 2020-01-22 2021-07-22 Cisco Technology, Inc. Method to bind a user and its devices: context fusion
US20210377726A1 (en) * 2020-05-27 2021-12-02 Medtronic Minimed, Inc. Method and system for automatically associating a non-medical device with a medical device
CN117256170A (zh) * 2021-04-27 2023-12-19 三星电子株式会社 用于发射和/或接收装置识别信息的电子装置及其操作方法
CN115315025A (zh) * 2021-05-08 2022-11-08 广州视源电子科技股份有限公司 一种设备连接方法、装置、设备及存储介质
US11930105B1 (en) * 2021-10-21 2024-03-12 Wells Fargo Bank, N.A. Extensible quantum random number generation
US12108317B2 (en) * 2022-02-02 2024-10-01 Dell Products, L.P. Seamless pairing of wireless devices in hoteling environments

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618706A (zh) * 2013-11-19 2014-03-05 深圳Tcl新技术有限公司 智能设备相互访问的控制系统及方法
CN104378145A (zh) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 蓝牙设备的配对方法及系统
CN104540132A (zh) * 2015-01-15 2015-04-22 天地融科技股份有限公司 蓝牙设备的通讯方法、移动设备、电子签名设备和服务器
WO2015199777A1 (en) * 2014-06-24 2015-12-30 Ebay Inc. Systems and methods for authentication via bluetooth device
CN105281809A (zh) * 2014-05-30 2016-01-27 刘洪明 辅助蓝牙低功耗设备配对的方法及系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201035775A (en) * 2009-03-24 2010-10-01 Wistron Corp Method for processing data access in an information management system and related information management system
KR101853813B1 (ko) * 2011-04-22 2018-05-03 삼성전자주식회사 디바이스들간의 보안 연결 생성 방법 및 그 장치
US9992196B2 (en) * 2013-04-30 2018-06-05 Sony Corporation Information processing device, wireless communication system, information processing method, and program
US9451438B2 (en) 2014-05-30 2016-09-20 Apple Inc. Predefined wireless pairing
EP3451575B8 (en) * 2014-06-13 2021-03-17 BicDroid Inc. Methods, systems and computer program product for providing encryption on a plurality of devices
EP3229550A4 (en) * 2014-12-01 2018-01-03 Fujitsu Limited Pairing management method, pairing management program, and terminal device
WO2016112860A1 (zh) * 2015-01-15 2016-07-21 天地融科技股份有限公司 无线设备的通讯方法、无线设备和服务器
US10206108B2 (en) * 2015-03-24 2019-02-12 Lenovo (Beijing) Co., Ltd. Device and method for smart home
US9913079B2 (en) * 2015-06-05 2018-03-06 Apple Inc. Cloud-based proximity pairing and switching for peer-to-peer devices
US10136246B2 (en) 2015-07-21 2018-11-20 Vitanet Japan, Inc. Selective pairing of wireless devices using shared keys
US20180097621A1 (en) * 2016-09-30 2018-04-05 Sony Interactive Entertainment America Llc Obfuscated secret key derivation for non-secure commercial off-the-shelf (cots) devices
WO2018166102A1 (zh) 2017-03-14 2018-09-20 华为技术有限公司 一种多设备无线连接方法和设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618706A (zh) * 2013-11-19 2014-03-05 深圳Tcl新技术有限公司 智能设备相互访问的控制系统及方法
CN105281809A (zh) * 2014-05-30 2016-01-27 刘洪明 辅助蓝牙低功耗设备配对的方法及系统
WO2015199777A1 (en) * 2014-06-24 2015-12-30 Ebay Inc. Systems and methods for authentication via bluetooth device
CN104378145A (zh) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 蓝牙设备的配对方法及系统
CN104540132A (zh) * 2015-01-15 2015-04-22 天地融科技股份有限公司 蓝牙设备的通讯方法、移动设备、电子签名设备和服务器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3588890A4

Also Published As

Publication number Publication date
EP3588890A1 (en) 2020-01-01
CN108702607B (zh) 2021-01-05
US11432142B2 (en) 2022-08-30
US20200008057A1 (en) 2020-01-02
EP3588890B1 (en) 2022-05-04
CN108702607A (zh) 2018-10-23
EP3588890A4 (en) 2020-03-04

Similar Documents

Publication Publication Date Title
WO2018166102A1 (zh) 一种多设备无线连接方法和设备
JP6214812B2 (ja) 振込処理方法および装置
EP2985975B1 (en) Method, apparatus and system for authenticating access and computer program
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
US10560491B2 (en) Methods and apparatuses for binding with device
JP6404486B2 (ja) 接続確立方法、装置、プログラム、及び記録媒体
WO2016155306A1 (zh) 网络接入方法及装置
WO2017101517A1 (zh) 设备绑定方法和装置
US20170094522A1 (en) Methods for controlling smart device
CN106209800B (zh) 设备权限共享方法和装置
WO2015196665A1 (zh) 绑定账号与令牌密钥的方法、装置
JP2017510861A (ja) デバイスバインドの方法および装置
WO2017156960A1 (zh) 访问智能摄像头的方法及装置
JP2017500822A (ja) 情報交信方法、装置および電子機器
US9954691B2 (en) Method and apparatus for binding intelligent device
CN106375096B (zh) 短信验证方法和装置
WO2017092441A1 (zh) 名片信息获取方法及装置
WO2016155231A1 (zh) 网络接入方法及装置
KR101719599B1 (ko) 네트워크에 액세스하는 방법, 장치, 프로그램 및 기록매체
TWI659662B (zh) 定位資訊收集方法、裝置及移動終端
WO2019028746A1 (zh) 无人机接入方法及装置
WO2017101508A1 (zh) 传输路由信息的方法及装置
US9667424B2 (en) Methods and apparatuses for binding token key to account
CN107612888B (zh) 企业用户空间创建方法及装置
CN104506648B (zh) 主题分享方法和装置、智能终端和服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900772

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017900772

Country of ref document: EP

Effective date: 20190926