CN113285940B - Equipment connection method and device - Google Patents

Equipment connection method and device Download PDF

Info

Publication number
CN113285940B
CN113285940B CN202110533231.9A CN202110533231A CN113285940B CN 113285940 B CN113285940 B CN 113285940B CN 202110533231 A CN202110533231 A CN 202110533231A CN 113285940 B CN113285940 B CN 113285940B
Authority
CN
China
Prior art keywords
account
candidate
connection
account number
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110533231.9A
Other languages
Chinese (zh)
Other versions
CN113285940A (en
Inventor
史云奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110533231.9A priority Critical patent/CN113285940B/en
Publication of CN113285940A publication Critical patent/CN113285940A/en
Application granted granted Critical
Publication of CN113285940B publication Critical patent/CN113285940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a device connection method and device; the embodiment of the application can acquire the authorization information of the equipment, wherein the authorization information is used for representing the connection relation established with the equipment; acquiring a first candidate account number set of the equipment; determining an account screening policy matched with the first candidate account set; determining a target account from the first candidate account set based on the account screening policy; and establishing a connection relationship between the target account number and the equipment based on the authorization information. According to the scheme, the equipment connection efficiency can be improved, and the connection relation between the target account number and the equipment can be built efficiently and conveniently.

Description

Equipment connection method and device
Technical Field
The application relates to the technical field of computers, in particular to a device connection method and device.
Background
With the development of technology, the internet of everything has become a future development trend, for example, in an application scenario of smart home, a connection between a terminal device and a home appliance device may be established, so that data interaction and information transfer can be better performed.
In the course of research and practice of the related art, the inventors of the present application have found that, at present, when establishing a connection relationship between devices, a complicated step is required, so that the efficiency of device connection is to be improved.
Disclosure of Invention
The embodiment of the application provides a device connection method and device, which can improve the device connection efficiency.
The embodiment of the application provides a device connection method, which comprises the following steps:
acquiring authorization information of equipment, wherein the authorization information is used for representing a connection relation established with the equipment;
acquiring a first candidate account number set of the equipment;
determining an account screening policy matched with the first candidate account set;
determining a target account from the first candidate account set based on the account screening policy;
and establishing a connection relationship between the target account number and the equipment based on the authorization information.
Correspondingly, the embodiment of the application also provides a device connecting device, which comprises:
the information acquisition unit is used for acquiring the authorization information of the equipment, wherein the authorization information is used for representing the connection relation established with the equipment;
the collection acquisition unit is used for acquiring a first candidate account collection of the equipment;
the strategy determining unit is used for determining an account screening strategy matched with the first candidate account set;
an account determining unit, configured to determine a target account from the first candidate account set based on the account screening policy;
And the connection establishing unit is used for establishing the connection relation between the target account and the equipment based on the authorization information.
In an embodiment, the set acquisition unit includes:
the authorization analysis subunit is used for analyzing the authorization information to determine an authorization account corresponding to the authorization information;
the first determining subunit is used for determining candidate accounts with binding relation with the authorized account;
and the first generation subunit is used for generating a first candidate account number set of the equipment based on the candidate account number.
In an embodiment, the set acquisition unit includes:
the input acquisition subunit is used for acquiring user information to be matched input by a user;
the second determining subunit is used for determining the user account corresponding to the user information to be matched;
and the second generation subunit is used for generating a first candidate account number set of the equipment based on the user account number.
In an embodiment, the set acquisition unit includes:
a third determining subunit, configured to determine, if at least one candidate connection terminal of the device is detected within a preset range, a user account corresponding to the candidate connection terminal, so as to generate a second candidate account set of the device;
The system comprises an association acquisition subunit, a target terminal and a target terminal, wherein the association acquisition subunit is used for acquiring an association account set of the target terminal, the association account set comprises at least one association account, each association account corresponds to an association user, and the association user has an association relationship with the current user of the target terminal;
the account filtering subunit is used for filtering the account of the second candidate account set based on the associated account set to obtain a filtered candidate account;
and the third generation subunit is used for generating a first candidate account number set of the equipment based on the filtered candidate account numbers.
In an embodiment, after the obtaining the first candidate account number set of the device, the device connection apparatus further includes:
the parameter acquisition unit is used for acquiring user information of a current user of the target terminal and environment parameters of the target terminal;
the mode determining unit is used for determining the current data display mode of the target terminal based on the user information and the environment parameters;
and the target determining unit is used for displaying the first candidate account number set according to the data display mode so as to determine a target account number based on the displayed first candidate account number set.
In an embodiment, the first set of candidate accounts includes at least one candidate account; the account number determining unit includes:
a fourth determining subunit, configured to determine a priority of the candidate account based on the account screening policy;
the sorting subunit is used for sorting the candidate accounts based on the priority, so as to obtain a sorted candidate account set;
and a fifth determining subunit, configured to determine a target account number from the candidate account number set in response to an account number selection operation for the sorted candidate account number set.
In an embodiment, the information acquisition unit includes:
a sixth determining subunit, configured to determine an authorized account number of a device, where the authorized account number has a device connection management right for the device;
and the authorization generation subunit is used for generating the authorization information of the equipment based on the equipment connection management authority.
In an embodiment, the sixth determining subunit is configured to:
determining a historical connection account number of equipment, and acquiring historical connection data corresponding to the historical connection account number; analyzing the historical connection data to obtain an analysis result; and determining an authorized account number of the equipment from the historical connection account numbers based on the analysis result.
In an embodiment, the connection establishment unit includes:
a seventh determining subunit, configured to determine account identifier information of the target account;
a request generation subunit, configured to generate a device connection request based on the account identification information and the authorization information;
and the connection establishment subunit is used for establishing the connection relation between the target account number and the equipment through the equipment connection request.
Accordingly, an embodiment of the present application further provides a storage medium having a computer program stored thereon, where the computer program when executed by a processor implements the steps of the device connection method according to the embodiment of the present application.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the equipment connection method shown in the embodiment of the application when executing the computer program.
The embodiment of the application can acquire the authorization information of the equipment, wherein the authorization information is used for representing the connection relation established with the equipment; acquiring a first candidate account number set of the equipment; determining an account screening policy matched with the first candidate account set; determining a target account from the first candidate account set based on the account screening policy; and establishing a connection relationship between the target account number and the equipment based on the authorization information.
The method and the device can quickly and efficiently establish the connection relationship between the target account and the device, and avoid the need of executing a series of complex steps of interaction, verification and the like for the target account before the connection between the target account and the device can be established. Specifically, because the authorization information obtained by the scheme characterizes the connection relationship established with the device, the scheme can establish the connection relationship between the target account number and the device based on the connection established with the device, for example, the scheme can establish the connection relationship between the target account number of the second terminal and the device based on the historical connection relationship established by the first terminal and the device. In addition, the target account number to be connected with the equipment can be determined from the first candidate account number set of the equipment based on the account number screening strategy, so that the target account number can be determined from the account number set quickly, and the efficiency of equipment connection can be further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a device connection method according to an embodiment of the present application;
fig. 2 is another schematic view of a device connection method according to an embodiment of the present application;
FIG. 3 is a flow chart of a device connection method provided by an embodiment of the present application;
FIG. 4 is an interactive schematic diagram of a device connection method according to an embodiment of the present application;
FIG. 5 is another interactive schematic diagram of a device connection method according to an embodiment of the present application;
FIG. 6 is another interactive schematic diagram of a device connection method provided by an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a device connection apparatus according to an embodiment of the present application;
FIG. 8 is another schematic structural view of a device connection apparatus according to an embodiment of the present application;
FIG. 9 is another schematic structural view of a device connection apparatus according to an embodiment of the present application;
FIG. 10 is another schematic structural view of a device connection apparatus according to an embodiment of the present application;
FIG. 11 is another schematic structural view of a device connection apparatus according to an embodiment of the present application;
FIG. 12 is another schematic view of a device connection apparatus according to an embodiment of the present application;
FIG. 13 is another schematic structural view of a device connection apparatus according to an embodiment of the present application;
FIG. 14 is another schematic view of a device connection apparatus according to an embodiment of the present application;
Fig. 15 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a device connection method and device. Specifically, the embodiment of the application provides a device connecting device suitable for computer equipment. The computer equipment can be a terminal or a server and the like, and the terminal can be a mobile phone, a tablet computer, a notebook computer and the like. The server may be a single server or a server cluster composed of a plurality of servers.
In an embodiment, the description may be given by taking a device connection method performed by a terminal together with a server as an example.
Specifically, referring to fig. 1, the terminal 10 may acquire authorization information of the device, for example, the terminal 10 may acquire authorization information from the server 20, wherein the authorization information may be used to characterize a connection relationship established with the device. And, the terminal 10 may acquire a first candidate account set of the device and determine an account screening policy that the first candidate account set matches, so that the terminal 10 may determine the target account from the first candidate account set based on the account screening policy. Further, the terminal 10 may establish a connection relationship between the target account and the device based on the authorization information, for example, the terminal 10 may generate a related request and send the request to the server 20 to trigger the server 20 to establish the connection relationship between the target account and the device based on the request.
As an example, referring to fig. 2, in an application scenario of smart home, after a user establishes a connection with a smart home device through a terminal, the connection may be quickly shared with other users through the device connection method described in the present application, so as to quickly and conveniently establish a connection relationship between a user account of the other users and the device. The server shown in fig. 2 may be an internet of things (InternetofThings, IOT) cloud server, for example, may be a comprehensive cloud platform including a common cloud platform and an internet of things cloud platform.
Specifically, referring to fig. 2, a terminal may perform network configuration through a user and a device, where network configuration refers to a process that a wireless fidelity (Wi-Fi) device obtains router information and connects the router, and further a user account corresponding to the user terminal is associated with the device to be network-configured, where the router information may include a service set identifier (ServiceSetIdentifier, SSID), a password, and the like. The terminal can acquire the authorization information of the equipment after the network is successfully allocated, wherein the authorization information can be used for representing the connection relation established between the terminal and the equipment.
Further, referring to fig. 2, after the network allocation is successful, the terminal may request to the server to obtain the first candidate account set of the device, for example, the account list that the terminal has previously successfully shared may be used as the first candidate account set. After the terminal obtains the first candidate account number set returned by the server, an account number list in the account number list can be displayed to a user, for example, a list comprising account number head images and names is displayed, and an account number to be shared, which is checked by the user, is used as a target account number to be connected with the device. In the process, the terminal may determine an account screening policy that matches the first candidate account set, and generate an account list to be presented based on the account screening policy.
After the terminal determines the target account number to be connected with the device, the connection relationship between the target account number and the device can be established based on the authorization information, for example, referring to fig. 2, the terminal can generate a related request based on the authorization information and the target account number, and upload the account number to be shared and the device information to the server through the request, so as to trigger the server to establish the connection relationship between the target account number and the device based on the request. Optionally, the server may return the execution result, that is, the sharing result, to the terminal, so that the terminal may display the execution result to the user.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The device connection method provided by the embodiment of the application can be executed by the terminal or jointly executed by the terminal and the server; the embodiment of the present application is described by taking an example that a device connection method is executed by a terminal, specifically, by a device connection apparatus integrated in the terminal, as shown in fig. 3, a specific flow of the device connection method may be as follows:
101. and acquiring the authorization information of the equipment, wherein the authorization information is used for representing the connection relation established with the equipment.
Wherein, the equipment refers to the general term of production data and material data which can be used by people and basically keeps the original physical form and function in repeated use. For example, the devices may include general-purpose devices, special-purpose devices, and the like, wherein the general-purpose devices may include mechanical devices, electrical devices, special-purpose devices, office devices, transportation vehicles, instrumentation, computers, network devices, and the like; the special equipment can comprise mine special equipment, chemical special equipment, aerospace special equipment, public security fire-fighting special equipment and the like.
As an example, the device to be connected may be a smart home device, e.g., a smart home appliance, such as a smart air conditioner, a smart refrigerator, a smart stereo, etc.
The connection relationship established between the terminal and the device may be the capability of characterizing the data interaction or information transfer between the terminal and the device. For example, the device may be an intelligent home device configured with a Wi-Fi module, the device may acquire router information and connect with the router, and the terminal may operate with a client, through which a user may be assigned to a user account, and may associate the user account with the intelligent home device, so as to establish a connection relationship between the terminal and the intelligent home device, so that the user may control the intelligent home device through the user account.
Wherein, since the authorization information of the device is used to characterize the connection relation established with the device, the authorization information of the device may be the authorization information required for establishing the device connection granted by the device. It is noted that the connection relationship established between the terminal and the device may be a historical connection relationship between the terminal and the device, or a current connection relationship between the terminal and the device.
The authorization information may be in various forms, for example, may be a character string, such as a key, an identifier, or other meaningful character information, etc.; as another example, the authorization information may be an image, a program interface link, etc., and the present application is not limited to the form of the authorization information.
The method for acquiring the authorization information of the device may be various, for example, the terminal may store the authorization information acquired for the first time, so that the authorization information can be acquired when needed; as another example, the terminal may request authorization information from a server or device to obtain the authorization information when needed, and so on.
In an embodiment, since the authorization information is authorization information required for establishing a device connection granted by the indicating device, the terminal may acquire the authorization information of the device through the authorization account number of the device, and specifically, the step of "acquiring the authorization information of the device" may include:
Determining an authorized account number of the device, wherein the authorized account number has device connection management rights for the device;
based on the device connection management authority, authorization information of the device is generated.
The device connection management authority of the device refers to a relevant authority for managing a device connection relationship, for example, the device connection management authority may include a relevant authority for creating a device connection relationship, a relevant authority for deleting an existing device connection relationship, a relevant authority for modifying an existing device connection relationship, and the like.
The authorized account number of the device is an account number with device connection management authority for the device. It is noted that the number of authorized account numbers of the device may be one or more.
As an example, in an application scenario of smart home, a device may be a smart air conditioner, an authorized account of the device may be a user account of a family member, the authorized account may have device connection management rights for the smart air conditioner, for example, the authorized account may have related rights to establish a connection relationship between a user account and the smart air conditioner, the authorized account may delete related rights of a connection relationship that a user account has established with the smart air conditioner, and so on.
The terminal may determine an authorized account number of the device, and since the authorized account number has a device connection management right for the device, the terminal may generate authorization information of the device based on the device connection management right.
As an example, the user account corresponding to the terminal a may be the user account a, the authorized account of the device may be the user account a, and then the terminal a may determine that the authorized account of the device is the user account a, and the terminal a may generate the authorization information of the device based on the device connection management authority of the user account a.
In another example, the user account corresponding to the terminal a may be the user account a, and the authorized account of the device may include the user account B but not the user account a, and then the terminal a may determine that the authorized account of the device is the user account B, and generate the authorized information of the device based on the device connection management authority of the user account B.
There are various ways to determine the authorized account number of the device, for example, the authorized account number of the device may be determined from the historical connection account number of the device, specifically, the step of determining the authorized account number of the device may include:
determining a historical connection account number of the equipment, and acquiring historical connection data corresponding to the historical connection account number;
Analyzing the historical connection data to obtain an analysis result;
and determining the authorized account number of the equipment from the historical connection account numbers based on the analysis result.
The historical connection account number of the device is an account number with a connection relation with the device, wherein the connection relation comprises the historical connection relation and the current connection relation. As an example, a historical connection account for a device may include a user account that has established a connection with the device, as well as a user account that is currently establishing a connection with the device.
The historical connection data of the user account is related data when the user account establishes a connection with the device, for example, the historical connection data may include connection behavior information, and the connection behavior information is related information describing connection behavior, for example, the connection behavior information may include connection time information, connection location information, connection device information, and the like. Optionally, the historical connection data may also include other information, for example, the historical connection data may include user account information, user information, and the like.
The terminal may determine the historical connection account of the device in various manners, for example, the terminal may generate an account query request, where the account query request is used to query the historical connection account of the device, and further, the terminal may determine the historical connection account of the device by sending the account query request to a server or the device; for another example, the terminal may record historical connection information of the device, where the historical connection information includes a historical connection account number of the device, so that the terminal may determine the historical connection account number of the device; etc.
Correspondingly, the terminal may obtain the historical connection data corresponding to the historical connection account number in multiple manners, for example, the terminal may generate a data query request, where the data query request is used to query the historical connection data corresponding to the historical connection account number, and further, the terminal may obtain the historical connection data corresponding to the historical connection account number by sending the data query request to a server or a device; for another example, the terminal may record the history connection data of the history connection account, so that the terminal may obtain the history connection data corresponding to the history connection account.
After the historical connection account number of the device is determined and the historical connection data corresponding to the historical connection account number is obtained, the historical connection data can be analyzed, so that the authorized account number of the device is determined from the historical connection account number based on an analysis result.
There are various ways to analyze the historical connection data, for example, data modeling may be performed on the historical connection data to determine an authorized account number of the device from the historical connection account number based on the historical connection data; for another example, the trained neural network model may be used to perform data analysis on the historical connection data, so as to calculate the probability that each historical connection account is an authorized account through the neural network model, and determine the authorized account of the device from the historical connection accounts based on the calculation result; for another example, the authorized account may be provided with flag information, such as tag information, etc., so that whether the historical connection account has tag information corresponding to the authorized account may be determined by analyzing the historical connection data of the historical connection account, so as to determine whether the historical connection account is an authorized account of the device; etc.
Optionally, in practical application, the server or the device may execute to determine a historical connection account of the device, and obtain historical connection data corresponding to the historical connection account; analyzing the historical connection data to obtain an analysis result; and determining the authorized account number of the equipment from the historical connection account numbers based on the analysis result.
102. A first set of candidate accounts for the device is obtained.
The first candidate account set may include at least one candidate account, where each candidate account is a candidate user account to be connected with the device.
It should be noted that, in the present application, the user account may have various forms of presentation, for example, may be an application account in an application; as another example, account information may be generated based on user identification information of a user, where the user identification information of the user may include a user name, a user social account, a user phone, a user identification card, a user mailbox, and so on.
The method for acquiring the first candidate account number set of the device may be various, for example, the device connection method described in the present application may be applied to an application scenario of an intelligent home, a related application may be developed for the application scenario, when the application performs network allocation success and displays a network allocation success interface, the client may request, through a hypertext transfer protocol (HyperTextTransferProtocol, HTTP) network, the first candidate account number set stored by the IoT cloud server to acquire the first candidate account number set of the device, for example, a historical connection account number of the device may be used as the first candidate account number set of the device; for another example, a user account with a connection relationship with the device established through an authorized account of the device may be used as the first candidate account set of the device; etc.
In an embodiment, different authorized account numbers may be bound with different candidate account numbers, that is, different authorized account numbers may correspond to different first candidate account number sets, specifically, the step of "obtaining the first candidate account number set of the device" may include:
analyzing the authorization information to determine an authorization account corresponding to the authorization information;
determining candidate accounts with binding relation with the authorized account;
based on the candidate account numbers, a first candidate account number set of the device is generated.
Because the authorization information of the device can be the authorization information indicating the authorized account number granted by the device, the authorization information can be used for managing and establishing the connection with the device, and therefore the authorized account number corresponding to the authorization information can be determined by analyzing the authorization information acquired by the terminal.
Various manners of resolving the authorization information may be adopted, for example, the authorization information may include related data indicating the corresponding authorized account, so that the related data may be resolved from the authorization information to determine the authorized account corresponding to the authorization information; for another example, the terminal may store an authorized account corresponding to the authorization information, so that the terminal may query based on the authorization information to determine the authorized account corresponding to the authorization information; for another example, an account query request may be generated based on the authorization information, so as to query the server or the device for an authorized account corresponding to the authorization information based on the account query request; etc.
The binding relationship between the candidate account and the authorized account characterizes the corresponding relationship between the candidate account and the authorized account, specifically, the candidate account having the binding relationship with the authorized account, and the authorized account may have a related authority for managing and establishing the connection relationship between the candidate account and the device.
In practical applications, there may be various ways to establish a binding relationship between the candidate account and the authorized account, for example, the binding relationship may be configured based on service requirements, for example, in an application scenario of smart home, the authorized account of the smart air conditioner may be a user account a, and the user account a may set user accounts of other members in the home as candidate accounts; for another example, the determination may be based on a historical connection relationship, for example, in an application scenario of the smart home, the authorized account of the smart air conditioner may be the user account a, and the user account which has been established through the user account a and has a connection relationship with the smart air conditioner may be determined as a candidate account having a binding relationship with the user account a; etc.
After the candidate account number with the binding relation with the authorized account number is determined, a first candidate account number set including the candidate account number can be generated. For example, the authorized account number of the intelligent air conditioner is user account number a, and the candidate account numbers of the authorized account number include: the first candidate account number set of the authorized account numbers may be a set formed by the user account number B, the user account number C and the user account number D.
As an example, the device connection method of the present application may be applied to an application scenario of smart home, and specifically, referring to fig. 4, the device may be an intelligent air conditioner located in a living room. The terminal may analyze the authorization information, determine that the authorization account corresponding to the authorization information is the user account a, and display the interactive interface shown in fig. 4 after the user account a establishes a connection relationship with the device. When the user account a wants to establish a connection relationship between other user accounts and the device, for example, when the user account a wants to share the connection relationship established between the user account a and the device with other accounts, so that other user accounts can also establish the connection relationship between the user account a and the device, the terminal may determine the user account, which is established by the user account a and has a connection relationship with the device, as a candidate account having a binding relationship with the user account a, and in this example, referring to fig. 4, these candidate accounts may include user accounts corresponding to the following identification codes (IdentityDocument, ID): ID1, ID2, ID3, ID4, ID5. Thus, the terminal may generate a first set of candidate accounts for the device based on the determined candidate accounts.
In another embodiment, the manner of acquiring the first candidate account number set of the device may be determined by user input, specifically, the step of "acquiring the first candidate account number set of the device" may include:
Acquiring user information to be matched input by a user;
determining a user account corresponding to the user information to be matched;
based on the user account, a first set of candidate accounts for the device is generated.
The user information to be matched is related information of the user to be matched, for example, the user information to be matched can include a user name, a user mobile phone, a user identity card, a user mailbox and the like of the user to be matched. Optionally, the user information to be matched may include a user account of the user to be matched, for example, an application account, etc. The user to be matched is a user to be subjected to identity matching, and the user account corresponding to the user to be matched can be determined by carrying out identity matching on the user to be matched.
The method for obtaining the user information to be matched input by the user can be various, for example, the method can be used for receiving the data sent by the user, and the data can comprise the user information to be matched; as another example, the user may input user information to be matched through the terminal.
For example, the terminal may present a device connection page, where the device connection page may include an input trigger control. The terminal can respond to input triggering operation aiming at the input triggering control, and display an information input control, wherein the information input control is used for a user to input user information to be matched; and responding to the input of the information input control to finish operation, and acquiring user information to be matched input by a user.
It should be noted that, in the present application, the expression form of the control may be in the forms of icons, input boxes, buttons, etc., which are not limited in the present application and will not be described in detail later. In addition, the expression form of the operation in the application can be specific touch operation, such as single click operation, long press operation, double click operation, sliding operation and the like, and can also be triggered by voice; alternatively, the triggering operation may be a combination of a series of operations, which is not limited in this embodiment, and will not be described in detail later.
As an example, referring to fig. 5, the terminal may present a device connection page shown at 201, where an input trigger control shown at 202 may be included. The user may trigger 202 an input trigger control to invoke an information input control to input user information to be matched, and correspondingly, the terminal may respond to an input trigger operation for the input trigger control 202, and display 203 the information input control, where the information input control is used for the user to input the user information to be matched. The user may input user information to be matched in the information input control 203, and correspondingly, the terminal may complete an operation in response to the input to the information input control 203, and acquire the user information to be matched input by the user.
After obtaining the user information to be matched input by the user, the terminal can determine the user account corresponding to the user information to be matched, for example, the terminal can generate an account query request based on the user information to be matched of the user input pair, so as to determine the user account corresponding to the user information to be matched through the account query request. As an example, the terminal may send an account query request to a storage module of the terminal, so as to trigger the storage module to query the user account corresponding to the user information to be matched based on the account query request. Similarly, the terminal can send an account query request to the server to trigger the server to determine the user account corresponding to the user information to be matched based on the account query request. Similarly, the terminal can send an account query request to the device to trigger the device to determine the user account corresponding to the user information to be matched based on the account query request.
Further, the terminal may generate a first set of candidate accounts for the device based on the determined user account. For example, the terminal may add a user account determined based on user information to be matched input by a user to a current first candidate account set, and combine the added first candidate account set as a new first candidate account of the device; for another example, the terminal may obtain a plurality of user accounts determined based on user information to be matched input by a user, combine the user accounts to obtain a first candidate account set composed of the user accounts, and use the first candidate account set as a first candidate account set of the device; etc.
In another embodiment, the method for obtaining the first candidate account number set of the device may determine the first candidate account number set of the device by selecting the candidate connection terminals detected in the preset range in combination with the associated account number set of the user, and specifically, the step of obtaining the first candidate account number set of the device may include:
if at least one candidate connection terminal of the equipment is detected in a preset range, determining a user account corresponding to the candidate connection terminal to generate a second candidate account set of the equipment;
acquiring an associated account number set of a target terminal, wherein the associated account number set comprises at least one associated account number, each associated account number corresponds to an associated user, and the associated user has an associated relation with the current user of the target terminal;
based on the associated account number set, account number filtering is carried out on the second candidate account number set, and filtered candidate account numbers are obtained;
and generating a first candidate account number set of the equipment based on the filtered candidate account numbers.
The range value of the preset range can be set according to service requirements, for example, can be set manually; as another example, the preset range may be determined based on the detection capabilities of the detection device. As an example, the preset range may include a preset distance range, a preset time range, and the like.
The candidate connection terminal is a candidate terminal to be connected with the device, for example, in an application scenario of smart home, the candidate connection terminal may include a terminal device of a family member in the home, a smart home device in the home, other terminal devices in the home, and the like.
In an embodiment, the preset range may be a preset distance range, and the terminal may detect at least one candidate connection terminal within the preset distance range, for example, through a wireless network, where the wireless network may include bluetooth, wi-Fi, near field communication (NearFieldCommunication, NFC), narrowband internet of things (NarrowBandInternetofThings, NB-IoT), ethernet, a local area network, the internet, a third generation mobile communication technology (the 3rd Generation mobile communication technology,3G) network, a fourth generation mobile communication technology (the 4th Generation mobile communication technology,4G) network, a fifth generation mobile communication technology (the 5th Generation mobile communication technology,5G) network, and so on.
In another embodiment, the preset range may be a preset time range, and the terminal may detect at least one candidate connection terminal within the preset time range, for example, the terminal may implement detecting the candidate connection terminal within the preset time range by receiving a connection request sent by the candidate connection terminal within the preset time range.
The second candidate account number set is an account number set formed by user account numbers corresponding to the candidate connection terminals. Specifically, the terminal may determine the user account corresponding to the detected candidate connection terminal, and thus, may generate a second candidate account set composed of the user accounts corresponding to the candidate connection terminals.
The method for determining the user account corresponding to the candidate connection terminal may have various manners, for example, an account inquiry request may be sent to the candidate connection terminal to determine the user account corresponding to the candidate connection terminal; similarly, this may be accomplished by sending an account query request to a server or device.
The target terminal is a designated terminal, for example, the target terminal may be a terminal corresponding to an authorized account number of the device; for another example, if the terminal a wants to establish a connection relationship between other terminals and devices by adopting the device connection method of the present application, the terminal a may be considered as the target terminal; etc.
The associated account number set is a set comprising at least one associated account number, each associated account number corresponds to one associated user, and each associated user has an associated relation with the current user of the target terminal.
The association relationship is a relationship describing the mutual association between the users, so that the association relationship between the users can include various situations, for example, if the address book of the user a has the user information of the user B, the association relationship between the user a and the user B can be considered; for another example, if the user B is a social application friend of the user a, it may be considered that the user a and the user B have an association relationship; etc.
After determining the second candidate account number set of the device and the associated account number set of the target terminal, account filtering can be performed on the second candidate account number set based on the associated account number set.
As an example, the device connection method of the present application may be applied to an application scenario of an intelligent home, and specifically, the device may be an intelligent air conditioner, and the target terminal may be a terminal corresponding to an authorized user of the intelligent air conditioner, for example, may be a terminal corresponding to an administrator user of the intelligent air conditioner. If the target terminal detects at least one candidate connection terminal of the intelligent air conditioner through Bluetooth within a preset distance range, the target terminal can determine user accounts corresponding to the candidate connection terminals and generate a second candidate account set of the intelligent air conditioner according to the determined user accounts. In addition, the associated account number set of the target terminal may be obtained, for example, the associated account number set of the target terminal may be generated based on user information in an address book of a current user of the target terminal.
In another example, the target terminal may detect at least one candidate connection terminal of the intelligent air conditioner within a preset time distance range by acquiring a connection request sent from the candidate connection terminal within the preset time distance range, and the target terminal may determine a user account corresponding to each candidate connection terminal, and generate a second candidate account set of the intelligent air conditioner according to the determined user account. In addition, the associated account set of the target terminal may be obtained, for example, the associated account set of the target terminal may be generated based on friend information of a social application of the target terminal.
The account filtering is a process of performing account screening on user accounts in the second candidate account set. The account filtering method for the second candidate account set based on the associated account set may be implemented in various manners, for example, the account filtering method may be implemented by performing a set operation on the associated account set and the second candidate account set; for another example, the user account in the second candidate account set may be traversed, and if the user account is an element in the associated account set, it is determined that the user account is not filtered, and the user account is used as a filtered user account, otherwise, the user account is filtered, and the user account is not used as a filtered user account; etc.
And after the account filtering is performed on the second candidate account set to obtain filtered candidate accounts, the filtered candidate accounts can be combined to obtain a first candidate account set composed of the filtered candidate accounts.
In addition, in the present application, after the first candidate account set of the device is obtained, the first candidate account set may be displayed according to different data display modes, so that the user may determine the target account based on the displayed first candidate account set, and specifically, after the step of obtaining the first candidate account set of the device, the device connection method may further include:
acquiring user information of a current user of a target terminal and environment parameters of the target terminal;
determining a current data display mode of the target terminal based on the user information and the environmental parameters;
and displaying the first candidate account number set according to the data display mode, so as to determine the target account number based on the displayed first candidate account number set.
Wherein, the user information of the current user of the target terminal is related information describing the current user of the target terminal, for example, the user information may include user basic information such as user age, user gender, user nationality, etc.; as another example, the user information may include user behavior statistics, such as user tags generated based on big data analysis and based on data analysis of the current user's user behavior, for example; etc.
The environmental parameter of the target terminal is a related parameter describing the environment in which the target terminal is located, for example, the environmental parameter may include a current time parameter; as another example, the environmental parameter may be an environmental parameter detected by a sensor, for example, may include a parameter detected by a light sensor, a distance sensor, an acceleration sensor, or the like; etc.
The data display mode is a mode referred to when data is displayed, for example, the data display mode can include displaying the data in a light-color mode and displaying the data in a dark-color mode; for another example, the data presentation mode may include presenting data in a static mode, and may also include presenting data in a dynamic mode; as another example, the data presentation mode may include presenting data in different theme modes; etc. It is noted that the data presentation mode may also be a combination of a plurality of different modes, e.g. a combination of a light-colored mode with a static mode, etc.
The method for determining the data display mode based on the user information and the environment parameters can be various, for example, different data display modes can be preset and matched according to different combination conditions of the user information and the environment parameters, so that after the user information of the current user of the target terminal and the environment parameters of the target terminal are obtained, the current data display mode of the target terminal can be determined, and further, the first candidate account number set can be displayed according to the data display mode, so that the target account number is determined based on the displayed first candidate account number set.
As an example, if it is determined that the current data display mode of the target terminal is the dark mode based on the user information of the current user of the target terminal and the environmental parameters of the target terminal, the first candidate account set may be displayed as shown in the left diagram in fig. 6, where the first candidate account set includes user accounts corresponding to the following IDs: ID1, ID2, ID3, ID4 and ID5.
As another example, if it is determined that the current data display mode of the target terminal is the light-color mode based on the user information of the current user of the target terminal and the environmental parameters of the target terminal, the first candidate account set may be displayed as shown in the right diagram in fig. 6, where the first candidate account set includes user accounts corresponding to the following IDs: ID1, ID2, ID3, ID4 and ID5. And, the user may determine the target account number based on the displayed first candidate account number set, specifically, referring to the right diagram in fig. 6, it may be known that the target account number determined by the user from the first candidate account number set is the user account number corresponding to ID1 and ID 2.
103. An account screening policy is determined that matches the first set of candidate accounts.
The account screening policy is a policy for screening user accounts in the first candidate account set.
As an example, the account screening policy may be a policy for screening the user account based on the device connection behavior of the user account, for example, the account screening policy may be specifically: if the number of the device connection times of the user account is larger, the priority of the user account is higher; as another example, the account screening policy may be specifically: if the time of the last time the user account and the equipment establish a connection relationship is closer to the current time, the priority of the user account is higher; etc.
As another example, the account screening policy may be a policy that screens user accounts based on preset configuration information, for example, the account screening policy may be: if the user account has a preset label, such as a family label, the higher the priority of the user account is; as another example, the account screening policy may be: if the user account has a preset label, such as a harassment label, the lower the priority of the user account is; etc.
There may be a variety of ways to determine the account screening policies that match the first set of candidate accounts, e.g., it may be determined by human setup, e.g., a user may refer to assigning a matching account screening policy to the first set of candidate accounts; for another example, corresponding account screening policies may be configured for different first candidate account sets, so that after the first candidate account set is generated, the account screening policies matched with the first candidate account set may be determined; for another example, account screening policies matched with the first candidate account set can be determined by analyzing account data corresponding to each user account in the first candidate account set and based on analysis results; etc.
104. And determining the target account number from the first candidate account number set based on an account number screening strategy.
The target account is a user account to be connected with the equipment. The number of target account numbers may be one or more, and the present application is not limited thereto. The method for determining the target account from the first candidate account set based on the account screening policy may be various, for example, because the account screening policy is a policy for screening user accounts in the first candidate account set, the method may determine a priority of each candidate account in the first candidate account set based on the account screening policy, and determine the target account based on the determined priority, and specifically, the step of determining the target account from the first candidate account set based on the account screening policy may include:
determining the priority of the candidate account based on an account screening strategy;
sorting the candidate accounts based on the priority, and obtaining a sorted candidate account set;
and determining a target account from the candidate account set in response to an account selection operation for the sorted candidate account set.
As an example, the account screening policy may be specifically: if the time when the candidate account is last connected with the device is closer to the current time, the priority of the user account is higher, so that the priority of each candidate account in the first candidate set can be determined according to the account screening policy, and the candidate accounts are ranked based on the priority of each candidate account, for example, the priority can be used for descending ranking. In this way, the sorted candidate account number set can be obtained.
As another example, the account screening policy may be: if the candidate account has a harassment tag, the priority of the candidate account is lower, so that the priority of each candidate account in the first candidate set can be determined according to the account screening policy, and the candidate accounts are ranked based on the priority of each candidate account, for example, the ranking can be performed in ascending order based on the priority. In this way, the sorted candidate account number set can be obtained.
Further, after obtaining the sorted candidate account set, the terminal may determine the target account from the candidate account set in response to an account selection operation for the sorted candidate account set. For example, the sorted candidate account set includes candidate accounts corresponding to the following five IDs: ID1, ID2, ID3, ID4, and ID5. Referring to the right diagram in fig. 6, the terminal may display the sorted candidate account set, and the terminal may respond to an account selection operation of the user for the sorted candidate account set, for example, a long press operation, and take the candidate account selected by the user as the target account, and specifically, referring to the right diagram in fig. 6, the target account may be the candidate account corresponding to ID1 and ID 2.
105. And establishing a connection relationship between the target account and the equipment based on the authorization information.
After determining the target account number to be connected with the equipment, the terminal can establish the connection relation between the target account number and the equipment based on the authorization information. Specifically, the step of establishing a connection relationship between the target account number and the device based on the authorization information may include:
determining account identification information of a target account;
generating a device connection request based on the account identification information and the authorization information;
and establishing a connection relation between the target account and the equipment through the equipment connection request.
The account identification information of the target account is related information for identifying the target account, for example, the account identification information of the target account may be character string information corresponding to the target account; for another example, the account identification information of the target account may be user identification information of the user corresponding to the target account, such as user mobile phone information, user mailbox information, user identity card information, and the like.
Further, the terminal may generate a device connection request based on the account identification information and the authorization information, so that a connection relationship between the target account and the device may be established through the device connection request. For example, in an application scenario of smart home, the terminal may send a device connection request to the IOT cloud server, and establish a connection relationship between the target account and the device by invoking an HTTP interface of the IOT cloud server.
Optionally, the IoT cloud server may further record information of the target account, for example, an account ID of the target account, phone information of a user corresponding to the target account, a uniform resource locator (UniformResourceLocator, URL) of an avatar corresponding to the target account, and the IoT cloud server may associate and store the target account with an authorized account corresponding to the authorization information, so that the corresponding target account may be quickly retrieved based on the authorized account.
As can be seen from the above, the present embodiment may obtain authorization information of the device, where the authorization information is used to characterize a connection relationship established with the device; acquiring a first candidate account number set of equipment; determining an account screening strategy matched with the first candidate account set; determining a target account from the first candidate account set based on an account screening policy; and establishing a connection relationship between the target account and the equipment based on the authorization information.
The method and the device can quickly and efficiently establish the connection relationship between the target account and the device, and avoid the need of executing a series of complex steps of interaction, verification and the like for the target account before the connection between the target account and the device can be established. Specifically, because the authorization information obtained by the scheme characterizes the connection relationship established with the device, the scheme can establish the connection relationship between the target account number and the device based on the connection established with the device, for example, the scheme can establish the connection relationship between the target account number of the second terminal and the device based on the historical connection relationship established by the first terminal and the device. In addition, the target account number to be connected with the equipment can be determined from the first candidate account number set of the equipment based on the account number screening strategy, so that the target account number can be determined from the account number set quickly, and the efficiency of equipment connection can be further improved. Specifically, when the scheme is applied to an application scene of the intelligent home, the intelligent home equipment can be shared to family members quickly and conveniently through the scheme, so that the family members can establish a connection relationship with the intelligent home equipment without complex interactive operation, and the intelligent home equipment is controlled.
In order to better implement the above method, correspondingly, the embodiment of the application also provides a device connecting device, wherein the device connecting device can be integrated in a terminal, and the terminal can be a device such as a mobile phone, a tablet computer, a notebook computer and the like.
For example, as shown in fig. 7, the device connection apparatus may include an information acquisition unit 301, a collection acquisition unit 302, a policy determination unit 303, an account determination unit 304, and a connection establishment unit 305, as follows:
an information obtaining unit 301, configured to obtain authorization information of a device, where the authorization information is used to characterize a connection relationship established with the device;
a set obtaining unit 302, configured to obtain a first candidate account set of the device;
a policy determining unit 303, configured to determine an account screening policy that matches the first candidate account set;
an account determining unit 304, configured to determine a target account from the first candidate account set based on the account screening policy;
and the connection establishing unit 305 is configured to establish a connection relationship between the target account number and the device based on the authorization information.
In an embodiment, referring to fig. 8, the set acquisition unit 302 may include:
The authorization analysis subunit 3021 may be configured to analyze the authorization information to determine an authorization account corresponding to the authorization information;
a first determining subunit 3022, configured to determine a candidate account number having a binding relationship with the authorized account number;
the first generating subunit 3023 may be configured to generate, based on the candidate account numbers, a first candidate account number set of the device.
In an embodiment, referring to fig. 9, the set acquisition unit 302 may include:
an input obtaining subunit 3024, configured to obtain user information to be matched input by a user;
a second determining subunit 3025, configured to determine a user account corresponding to the user information to be matched;
the second generating subunit 3026 may be configured to generate, based on the user account, the first candidate account set of the device.
In an embodiment, referring to fig. 10, the set acquisition unit 302 may include:
the third determining subunit 3027 may be configured to determine, if at least one candidate connection terminal of the device is detected within a preset range, a user account corresponding to the candidate connection terminal, so as to generate a second candidate account set of the device;
An association obtaining subunit 3028, configured to obtain an association account set of a target terminal, where the association account set includes at least one association account, each association account corresponds to an associated user, and the associated user has an association relationship with a current user of the target terminal;
an account filtering subunit 3029, configured to perform account filtering on the second candidate account set based on the associated account set, to obtain a filtered candidate account;
a third generating subunit 30210 may be configured to generate, based on the filtered candidate account numbers, a first candidate account number set of the device.
In an embodiment, referring to fig. 11, after the obtaining the first candidate account set of the device, the device connection apparatus may further include:
a parameter obtaining unit 306, configured to obtain user information of a current user of a target terminal and an environmental parameter of the target terminal;
a mode determining unit 307, configured to determine a current data presentation mode of the target terminal based on the user information and the environmental parameter;
the target determining unit 308 may be configured to display the first candidate account set according to the data display mode, so as to determine a target account based on the displayed first candidate account set.
In an embodiment, referring to fig. 12, the first set of candidate accounts includes at least one candidate account; the account number determining unit 304 may include:
a fourth determining subunit 3041, configured to determine a priority of the candidate account based on the account screening policy;
the sorting subunit 3042 may be configured to sort the candidate accounts based on the priority, to obtain a sorted candidate account set;
the fifth determining subunit 3043 may be configured to determine, in response to an account selection operation for the ranked candidate account set, a target account from the candidate account set.
In an embodiment, referring to fig. 13, the information obtaining unit 301 may include:
a sixth determining subunit 3011, configured to determine an authorized account of a device, where the authorized account has device connection management rights for the device;
the authorization generation subunit 3012 may be configured to generate authorization information of the device based on the device connection management authority.
In an embodiment, the sixth determining subunit 3011 may be configured to:
determining a historical connection account number of equipment, and acquiring historical connection data corresponding to the historical connection account number; analyzing the historical connection data to obtain an analysis result; and determining an authorized account number of the equipment from the historical connection account numbers based on the analysis result.
In an embodiment, referring to fig. 14, the connection establishment unit 305 may include:
a seventh determining subunit 3051, configured to determine account identification information of the target account;
a request generation subunit 3052, configured to generate a device connection request based on the account identification information and the authorization information;
the connection establishment subunit 3053 may be configured to establish, through the device connection request, a connection relationship between the target account number and the device.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the above, in the device connection apparatus of the present embodiment, the information obtaining unit 301 obtains the authorization information of the device, where the authorization information is used to characterize the connection relationship established with the device; acquiring a first candidate account number set of the device by a set acquisition unit 302; determining, by a policy determining unit 303, an account screening policy that matches the first set of candidate accounts; determining, by the account determining unit 304, a target account from the first set of candidate accounts based on the account screening policy; based on the authorization information, a connection relationship between the target account number and the device is established by a connection establishment unit 305.
The method and the device can quickly and efficiently establish the connection relationship between the target account and the device, and avoid the need of executing a series of complex steps of interaction, verification and the like for the target account before the connection between the target account and the device can be established. Specifically, because the authorization information obtained by the scheme characterizes the connection relationship established with the device, the scheme can establish the connection relationship between the target account number and the device based on the connection established with the device, for example, the scheme can establish the connection relationship between the target account number of the second terminal and the device based on the historical connection relationship established by the first terminal and the device. In addition, the target account number to be connected with the equipment can be determined from the first candidate account number set of the equipment based on the account number screening strategy, so that the target account number can be determined from the account number set quickly, and the efficiency of equipment connection can be further improved.
In addition, the embodiment of the present application further provides a computer device, which may be a server or a terminal, as shown in fig. 15, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, specifically:
The computer device may include Radio Frequency (RF) circuitry 401, memory 402 including one or more computer-readable storage media, input unit 403, display unit 404, sensor 405, audio circuitry 406, wireless fidelity (Wireless Fidelity, wi-Fi) module 407, processor 408 including one or more processing cores, and power supply 409. Those skilled in the art will appreciate that the computer device structure shown in FIG. 15 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 408; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 401 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (Subscriber Identity Module, SIM) card, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device (such as audio data, phonebooks, etc.), and the like. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide access to the memory 402 by the processor 408 and the input unit 403.
The input unit 403 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 403 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 408, and can receive commands from the processor 408 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 404 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 404 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor 408 to determine a type of touch event, and the processor 408 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 15 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The computer device may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the computer device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the computer device are not described in detail herein.
Audio circuitry 406, speakers, and microphones may provide an audio interface between a user and the computer device. The audio circuit 406 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 406 and converted into audio data, which are processed by the audio data output processor 408 for transmission via the RF circuit 401 to, for example, another computer device, or for output to the memory 402 for further processing. Audio circuitry 406 may also include an ear bud jack to provide communication of the peripheral ear bud with the computer device.
Wi-Fi belongs to a short-distance wireless transmission technology, and a computer device can help a user to send and receive e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 407, so that wireless broadband Internet access is provided for the user. While fig. 15 shows Wi-Fi module 407, it is to be understood that it is not an essential component of a computer device, and may be omitted entirely as desired within the scope of not changing the essence of the invention.
The processor 408 is a control center of the computer device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the computer device and processing data by running or executing software programs and/or modules stored in the memory 402, and invoking data stored in the memory 402, thereby performing overall monitoring of the handset. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The computer device also includes a power supply 409 (e.g., a battery) for powering the various components, which may be logically connected to the processor 408 through a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 409 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the computer device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 408 in the computer device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the application programs stored in the memory 402, so as to implement various functions as follows:
acquiring authorization information of equipment, wherein the authorization information is used for representing a connection relation established with the equipment; acquiring a first candidate account number set of the equipment; determining an account screening policy matched with the first candidate account set; determining a target account from the first candidate account set based on the account screening policy; and establishing a connection relationship between the target account number and the equipment based on the authorization information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, the computer device of the embodiment can quickly and efficiently establish the connection relationship between the target account and the device, so that the connection between the target account and the device can be established only after a series of complex steps such as interaction and verification are required to be performed on the target account. Specifically, since the authorization information obtained by the computer device in this embodiment characterizes the connection relationship established with the device, the computer device in this embodiment may establish the connection relationship between the target account and the device based on the connection established with the device, for example, the computer device in this embodiment may establish the connection relationship between the target account of the second terminal and the device based on the historical connection relationship established between the first terminal and the device. In addition, the computer device in this embodiment may determine, from the first candidate account set of the device, the target account to be connected with the device based on the account screening policy, so that it is beneficial to quickly determine the target account from the account set, and further beneficial to improving the efficiency of device connection.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the device connection methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring authorization information of equipment, wherein the authorization information is used for representing a connection relation established with the equipment; acquiring a first candidate account number set of the equipment; determining an account screening policy matched with the first candidate account set; determining a target account from the first candidate account set based on the account screening policy; and establishing a connection relationship between the target account number and the equipment based on the authorization information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The steps in any device connection method provided by the embodiment of the present application may be executed by the instructions stored in the storage medium, so that the beneficial effects that any device connection method provided by the embodiment of the present application may be achieved are detailed in the previous embodiments, and will not be described herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations of the device connection aspects described above.
The foregoing has described in detail a device connection method and apparatus provided by embodiments of the present application, and specific examples have been applied herein to illustrate the principles and embodiments of the present application, where the foregoing examples are provided to assist in understanding the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (3)

1. A device connection method, comprising:
acquiring authorization information of equipment through a historical connection account of the equipment, wherein the authorization information characterizes the connection relation established with the equipment, and the authorization information is used for establishing the connection relation with the equipment by other accounts;
acquiring first candidate account number sets of the equipment, wherein each first candidate account number set has a corresponding account number screening strategy, and the account number screening strategy is used for screening user account numbers in the first candidate account number sets;
determining an account screening policy matched with the first candidate account set;
determining a target account from the first candidate account set based on the account screening policy;
based on the authorization information, establishing a connection relation between the target account and the equipment so as to share the connection relation established between the historical connection account and the equipment with the target account;
the obtaining the first candidate account number set of the device includes:
if at least one candidate connection terminal of the equipment is detected in a preset range, determining a user account corresponding to the candidate connection terminal to generate a second candidate account set of the equipment, wherein the preset range comprises a preset distance range or a preset time range;
Acquiring an associated account number set of a target terminal, wherein the target terminal is a designated terminal, the associated account number set comprises at least one associated account number, each associated account number corresponds to an associated user, and the associated user has an association relationship with a current user of the target terminal;
based on the associated account number set, account number filtering is carried out on the second candidate account number set, and filtered candidate account numbers are obtained;
generating a first candidate account set of the device based on the filtered candidate account;
the determining a target account from the first candidate account set based on the account screening policy includes:
determining the priority of the candidate account based on the account screening policy, wherein the account screening policy comprises at least one of equipment connection times, connection relation establishing time and preset labels;
based on the priority, sequencing the candidate accounts to obtain a sequenced candidate account set;
and determining a target account number from the candidate account number set in response to an account number selection operation for the sorted candidate account number set.
2. The device connection method according to claim 1, wherein establishing a connection relationship between the target account number and the device based on the authorization information includes:
Determining account identification information of the target account;
generating a device connection request based on the account identification information and the authorization information;
and establishing a connection relation between the target account number and the equipment through the equipment connection request.
3. A device connection apparatus, comprising:
the information acquisition unit is used for acquiring authorization information of the equipment through a historical connection account of the equipment, wherein the authorization information characterizes the connection relation established with the equipment, and the authorization information is used for establishing the connection relation with the equipment for other accounts;
the device comprises an aggregation acquisition unit, a first candidate account number aggregation unit and a second candidate account number aggregation unit, wherein the aggregation acquisition unit is used for acquiring first candidate account number aggregates of the device, each first candidate account number aggregate is provided with a corresponding account number screening strategy, and the account number screening strategy is used for screening user account numbers in the first candidate account number aggregates;
the strategy determining unit is used for determining an account screening strategy matched with the first candidate account set;
an account determining unit, configured to determine a target account from the first candidate account set based on the account screening policy;
the connection establishing unit is used for establishing a connection relation between the target account and the equipment based on the authorization information so as to share the connection relation established by the historical connection account and the equipment with the target account;
The set acquisition unit is configured to perform:
if at least one candidate connection terminal of the equipment is detected in a preset range, determining a user account corresponding to the candidate connection terminal to generate a second candidate account set of the equipment, wherein the preset range comprises a preset distance range or a preset time range;
acquiring an associated account number set of a target terminal, wherein the target terminal is a designated terminal, the associated account number set comprises at least one associated account number, each associated account number corresponds to an associated user, and the associated user has an association relationship with a current user of the target terminal;
based on the associated account number set, account number filtering is carried out on the second candidate account number set, and filtered candidate account numbers are obtained;
generating a first candidate account set of the device based on the filtered candidate account;
the account number determining unit is used for executing:
determining the priority of the candidate account based on the account screening policy, wherein the account screening policy comprises at least one of equipment connection times, connection relation establishing time and preset labels;
based on the priority, sequencing the candidate accounts to obtain a sequenced candidate account set;
And determining a target account number from the candidate account number set in response to an account number selection operation for the sorted candidate account number set.
CN202110533231.9A 2021-05-17 2021-05-17 Equipment connection method and device Active CN113285940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110533231.9A CN113285940B (en) 2021-05-17 2021-05-17 Equipment connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110533231.9A CN113285940B (en) 2021-05-17 2021-05-17 Equipment connection method and device

Publications (2)

Publication Number Publication Date
CN113285940A CN113285940A (en) 2021-08-20
CN113285940B true CN113285940B (en) 2023-09-19

Family

ID=77279343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110533231.9A Active CN113285940B (en) 2021-05-17 2021-05-17 Equipment connection method and device

Country Status (1)

Country Link
CN (1) CN113285940B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004127160A (en) * 2002-10-07 2004-04-22 Matsushita Electric Works Ltd Account automatic selector, its method, program of its method, storage medium of its program and terminal
CN103618706A (en) * 2013-11-19 2014-03-05 深圳Tcl新技术有限公司 Control system and method for mutual access of intelligent devices
CN104954322A (en) * 2014-03-25 2015-09-30 腾讯科技(深圳)有限公司 Account binding method, device and system
CN105159128A (en) * 2015-09-28 2015-12-16 宇龙计算机通信科技(深圳)有限公司 Intelligent household device control method and control system
CN106487622A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Equipment control sharing method and device
CN106685933A (en) * 2016-12-08 2017-05-17 腾讯科技(深圳)有限公司 Authorization policy recommending method and device
CN107147560A (en) * 2017-04-12 2017-09-08 腾讯科技(深圳)有限公司 Data sharing method and device
CN107911449A (en) * 2017-11-15 2018-04-13 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information
CN108200192A (en) * 2018-01-30 2018-06-22 北京小米移动软件有限公司 The method and device of control terminal apparatus bound

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008088923A1 (en) * 2007-01-19 2008-07-24 Taproot Systems, Inc. Point of presence on a mobile network

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004127160A (en) * 2002-10-07 2004-04-22 Matsushita Electric Works Ltd Account automatic selector, its method, program of its method, storage medium of its program and terminal
CN103618706A (en) * 2013-11-19 2014-03-05 深圳Tcl新技术有限公司 Control system and method for mutual access of intelligent devices
CN104954322A (en) * 2014-03-25 2015-09-30 腾讯科技(深圳)有限公司 Account binding method, device and system
CN105159128A (en) * 2015-09-28 2015-12-16 宇龙计算机通信科技(深圳)有限公司 Intelligent household device control method and control system
CN106487622A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Equipment control sharing method and device
CN106685933A (en) * 2016-12-08 2017-05-17 腾讯科技(深圳)有限公司 Authorization policy recommending method and device
CN107147560A (en) * 2017-04-12 2017-09-08 腾讯科技(深圳)有限公司 Data sharing method and device
CN107911449A (en) * 2017-11-15 2018-04-13 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information
CN108200192A (en) * 2018-01-30 2018-06-22 北京小米移动软件有限公司 The method and device of control terminal apparatus bound

Also Published As

Publication number Publication date
CN113285940A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN111741513B (en) Network distribution method of Internet of things equipment and related equipment
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
CN105471931B (en) Method, device and system for inquiring service data
CN106059894B (en) Message processing method and device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN110166439B (en) Equipment sharing method, terminal, router and server
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN109495638B (en) Information display method and terminal
CN107743108B (en) Method and device for identifying medium access control address
CN111130817A (en) Group creation method, electronic device and server
WO2019056938A1 (en) Image processing method, and computer device, and computer-readable storage medium
CN106020945B (en) Shortcut item adding method and device
CN108958854B (en) Window display method and device and terminal
CN113242171B (en) Method and related device for managing session messages
CN111274463B (en) Information display method, device and storage medium based on IM contact person grouping setting
CN106339402B (en) Method, device and system for pushing recommended content
CN113285940B (en) Equipment connection method and device
CN106657281B (en) File sharing method and device
CN112862289B (en) Information matching method and device for clinical research practitioner
CN114648336A (en) Face payment method and device, electronic equipment and storage medium
CN110798444B (en) Data synchronization method and device based on Internet of things
CN111027406B (en) Picture identification method and device, storage medium and electronic equipment
CN110209924B (en) Recommendation parameter acquisition method, device, server and storage medium
CN110809234A (en) Figure category identification method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant