WO2023016126A1 - Terminal device, server, and multi-device collaboration login method - Google Patents

Terminal device, server, and multi-device collaboration login method Download PDF

Info

Publication number
WO2023016126A1
WO2023016126A1 PCT/CN2022/102579 CN2022102579W WO2023016126A1 WO 2023016126 A1 WO2023016126 A1 WO 2023016126A1 CN 2022102579 W CN2022102579 W CN 2022102579W WO 2023016126 A1 WO2023016126 A1 WO 2023016126A1
Authority
WO
WIPO (PCT)
Prior art keywords
account
token information
slave
master
user
Prior art date
Application number
PCT/CN2022/102579
Other languages
French (fr)
Chinese (zh)
Inventor
薛健
李金昆
Original Assignee
聚好看科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202110917713.4A external-priority patent/CN115910050A/en
Priority claimed from CN202111093415.4A external-priority patent/CN115834095A/en
Application filed by 聚好看科技股份有限公司 filed Critical 聚好看科技股份有限公司
Priority to CN202280050101.2A priority Critical patent/CN117652134A/en
Publication of WO2023016126A1 publication Critical patent/WO2023016126A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present application relates to the technical field of device cooperative login, and in particular to a terminal device, a server and a multi-device cooperative login method.
  • terminal devices there may be multiple terminal devices in a user's home, such as remote controllers, televisions, refrigerators, and air conditioners.
  • various terminal devices in the home such as lighting equipment, home appliances, security equipment, etc.
  • the user when the user wants to control a terminal device, he can send a voice command to the smart speaker, and the smart speaker sends the voice command to the server, and the server controls the corresponding terminal device according to the voice command.
  • a terminal device including a controller configured to: receive user login information input by a user to make the terminal device act as a master device, the user login information corresponds to a specified account; based on User login information and send an account login request to the server to request the primary token information for login, the primary token information is generated by the server based on the verification of the user login information, the primary token
  • the card information includes an account ID for identifying the specified account; receiving the primary token information from the server, and logging into the corresponding specified account based on the account ID in the primary token information;
  • the card information is sent to the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request the slave token information for login and the corresponding specified account based on the account ID in the slave token information, so
  • the slave device is in a pairing relationship with the master device.
  • a multi-device cooperative login method is provided, which is applied to a master device, wherein the method includes: receiving user login information input by a user, the user login information corresponding to a specified account; An account login request is sent to the server to request primary token information for login, the primary token information is generated by the server based on the verification of the user login information, and the primary token information includes An account ID for identifying the specified account; receiving the primary token information from the server, and logging into a corresponding specified account based on the account ID in the primary token information; sending the primary token information To the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request the slave token information for login and log in the corresponding specified account based on the account ID in the slave token information, the slave device is in a pairing relationship with the master device.
  • a multi-device cooperative login method is provided, which is applied to a slave device, wherein the method includes: receiving the master token information sent by the master device after logging in to a specified account based on the user login information input by the user;
  • the terminal device is used as a slave device, the master token information is generated by the server based on the verification of the user login information sent by the master device and sent to the master device, the The primary token information includes an account ID for identifying the designated account; based on the primary token information, an automatic login request is sent to the server to request secondary token information for logging in, and the secondary token information is Generated by the server based on passing the verification of the primary token information, the secondary token information includes the account ID; receiving the secondary token information from the server, based on the secondary token information in the secondary token information Account ID, log in to the corresponding specified account.
  • a multi-device cooperative login method including: a first terminal device receives user login information input by a user to make the first terminal device act as a master device, and the user login information corresponds to a specified account; the main device sends an account login request to the server based on the user login information to request primary token information for login; the server responds to the account login request carrying the user login information sent by the main device, Verify the information, and generate primary token information after the verification is passed, the primary token information includes an account ID for identifying the specified account; the server sends the primary token information to the primary device; The master device receives the master token information from the server, and logs in the corresponding designated account based on the account ID in the master token information; the master device sends the master token information; the second terminal device acts as a slave device And receive the master token letter from the master device; the slave device sends an automatic login request to the server based on the master token information to request the slave token information for logging in; the server responds
  • Fig. 1 is a schematic diagram of an operation scene between an intelligent control device and a control device according to some embodiments
  • FIG. 2 is a block diagram of a hardware configuration of an intelligent control device 200 according to some embodiments.
  • FIG. 3 is a block diagram of a hardware configuration of a control device 100 according to some embodiments.
  • Fig. 5 is an interactive diagram of establishing a pairing relationship between multiple devices according to some embodiments.
  • Fig. 6 is a flowchart of a multi-device coordinated login method performed by a master device according to some embodiments
  • Fig. 7 is an interaction diagram of a multi-device cooperative login method according to some embodiments.
  • Fig. 8 is a flowchart of a multi-device cooperative login method performed by a slave device according to some embodiments.
  • Fig. 9 is a flowchart of a multi-device cooperative login method performed by a server according to some embodiments.
  • Fig. 10 is an application scenario diagram of a terminal device according to some embodiments.
  • Fig. 11 is another application scenario diagram of a terminal device according to some embodiments.
  • Fig. 12 is a schematic flowchart of a voice control method according to some embodiments.
  • Fig. 13 is a schematic flow diagram of screening terminal devices according to some embodiments.
  • Fig. 1 is a usage scenario of an intelligent control device according to some embodiments.
  • the intelligent control device 200 may be a display device, and also communicates with the server 400 , and the user may operate the intelligent control device 200 through the smart device 300 or the control device 100 .
  • the smart device 300 may include any one of a mobile terminal, a tablet computer, a computer, a notebook computer, an AR/VR device, and the like.
  • the smart device 300 can also be used to control the smart control device 200 .
  • the smart control device 200 is controlled using an application program running on the smart device.
  • the smart device 300 and the smart control device may also be used for data communication.
  • the intelligent control device 200 can also be controlled in a manner other than the control device 100 and the intelligent device 300, for example, the voice instruction module configured inside the intelligent control device 200 can directly receive the user's voice
  • the command control can also be controlled by receiving the user's voice command through the voice control device installed outside the intelligent control device 200 .
  • the intelligent control device 200 also performs data communication with the server 400 .
  • the intelligent control device 200 can be allowed to communicate via local area network (LAN), wireless local area network (WLAN) and other networks.
  • the server 400 may provide various contents and interactions to the smart control device 200 .
  • Fig. 2 is a block diagram of hardware configuration of the control device 100 according to some embodiments.
  • the control device 100 includes a controller 110 , a communication interface 130 , a user input/output interface 140 , a memory, and a power supply.
  • the control device 100 can receive the user's input operation instruction, and convert the operation instruction into an instruction that the intelligent control device 200 can recognize and respond to, and acts as an intermediary interaction between the user and the intelligent control device 200 .
  • the communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module.
  • the user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or an alternative module.
  • Fig. 3 is a block diagram of a hardware configuration of an intelligent control device 200 according to some embodiments.
  • the intelligent control device 200 includes a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 285, a memory, and a power supply , at least one of the user input interface 280 .
  • the controller includes a CPU, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input/output.
  • the display 260 includes a display screen component for presenting images, and a drive component for driving image display, for receiving image signals output from the controller, and displaying video content, image content, and menu manipulation interface. Components and user manipulation of the UI interface, etc.
  • the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
  • the controller 250 and the tuner-demodulator 210 may be located in different split devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box wait.
  • the controller 250 controls the work of the intelligent control device and responds to user operations by storing various software control programs in the memory.
  • the controller 250 controls the overall operation of the smart control device 200 . For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
  • the user input interface 280 is an interface that can be used to receive control input (such as: physical buttons on the body of the smart control device, or others).
  • Fig. 4 is a software configuration diagram in the intelligent control device 200 according to some embodiments.
  • the system is divided into four layers, from top to bottom are respectively the application (Applications) layer (abbreviated as “application layer”), application framework (Application Framework) layer (abbreviated as “framework layer”) "), Android runtime (Android runtime) and system library layer (referred to as “system runtime layer”), and the kernel layer.
  • application layer application layer
  • Application Framework Application Framework
  • Android runtime Application runtime
  • system library layer referred to as “system runtime layer”
  • kernel layer the kernel layer.
  • an operating system is configured in the display device.
  • an operating system In order to obtain a richer functional experience from the operating system, it is usually necessary to log in with a system account first.
  • each device needs to log in with a user account.
  • the commonly used login method is that each device needs to log in with an account separately, for example, the user actively scans the QR code on each device to log in.
  • This SSO (single sign-on) method needs to be based on the user's initiative to trigger different devices to log in to the account. This login method is not convenient enough, resulting in low login efficiency and poor user experience.
  • a terminal device and a server in which multiple devices can log in to an account cooperatively, that is, after a terminal device (such as a display device, or a non-display device) logs in to an account, other devices also automatically log in.
  • a terminal device such as a display device, or a non-display device
  • other devices also automatically log in.
  • the same account can not only provide convenience to users, but also improve user experience.
  • other devices may also be display devices, such as various devices with display screens, such as televisions, mobile phones, refrigerators, etc., or may also be non-display devices. Users can only log in to an account on one device, and according to the habits defined by the user, they can automatically log in to multiple devices on the device they want to log in to, achieving smart login and improving user interaction experience.
  • the embodiment of the present application provides a display device, such as the display device with the configurations shown in FIG. 1 to FIG. 4 , where the display device is a master device, that is, a device that performs account login first.
  • the display device may serve as a slave device.
  • the display device includes: a display configured to present a user interface; and a controller connected to the display.
  • a pairing relationship needs to be established between each display device in the home environment.
  • the controller is further configured to perform the following steps:
  • Step 1 Start the Bluetooth module configured on the local end.
  • the bluetooth module is started along with the startup process, and the user login is performed after the system startup is completed.
  • the bluetooth module configured at the local end may also be activated after the user logs in.
  • some terminal display devices will disable the Bluetooth function by default, so the terminal display device can choose to enable the Bluetooth function through the setting menu at any time before or after the user logs in, and then activate the Bluetooth module configured locally.
  • Step 2 Establish a pairing relationship with the slave device based on the Bluetooth module to transmit data with the slave device through the Bluetooth module.
  • the Bluetooth module configured from the device is in the startup state, and the slave device is registered with a monitoring token (token) event, and monitors the token The event is used to monitor the token event sent by the slave device to the master device.
  • token token
  • Each display device for collaborative login in the home environment is equipped with a Bluetooth module.
  • the Bluetooth module is configured to be turned on by default or must be turned on forcibly. Therefore, when each display device is initialized, start Each display device has its own bluetooth module, and each display device realizes the pairing relation connection between itself and other devices through the bluetooth module. After the pairing connection is made, data transmission can be performed between each device. Data transmission includes communication data transmission and token data transmission. Communication data transmission is used to ensure communication between devices. Token data transmission can receive master token information sent by the master device from the device.
  • the display device can also manually turn on or turn off the Bluetooth function according to requirements. After the Bluetooth function is turned off, it cannot be paired with other devices through the Bluetooth module. After the Bluetooth function is turned on, it can be paired with other devices through the Bluetooth module. .
  • Multi-device collaborative login is applicable not only to various display devices in the home environment, but also to various display devices in classrooms, shopping malls and other places. Each display device meets the distance connection requirements, or is located in the same local area network.
  • Fig. 5 is an interaction diagram for establishing a pairing relationship between multiple devices according to some embodiments. See the example shown in part (a) of Figure 5.
  • the main device is a TV
  • the slave devices are a Rubik's Cube screen and a refrigerator screen
  • the Bluetooth modules of the TV, the Rubik's Cube screen, and the refrigerator screen are activated in sequence.
  • the Rubik's Cube screen is a portable terminal device with a display screen and a Bluetooth module
  • the refrigerator screen refers to a refrigerator equipped with a display screen and a Bluetooth module.
  • each device After completing the pairing relationship connection among the multiple devices, each device registers the monitoring token event for each connected display device in response to the establishment of the pairing connection.
  • Monitoring the token event is used to monitor the token event sent by the master device, and the token event can be the master token information sent by the master device.
  • the display device that performs account login based on user input is the master device, and the remaining display devices that implement the automatic login function through the login of the master device are slave devices.
  • only the monitoring of the token event of the master device by the slave device is reserved. For example, if the user selects the TV as the master device to log in the first account, the monitor token event of the TV is canceled, and the Rubik’s Cube screen
  • the monitoring token event of the refrigerator screen is reserved, that is, the master device is not in the monitoring state, and other slave devices are in the monitoring state.
  • the master device that is not in the listening state has the function of receiving token data and sending token data
  • the slave device in the listening state only has the function of receiving token data, but not the function of sending token data, and the communication data can be normal transmission.
  • the slave device in the listening state is only configured to receive token data and send/receive communication data functions, but not to send tokens
  • the data function can prevent one of the slave devices from sending the master token information to other slave devices after receiving the master token information sent by the master device to achieve account login, thereby avoiding data transmission confusion and affecting other slave devices.
  • Account login efficiency That is to say, each slave device can respond to the master token information and communication data sent by the master device that logged in the account first, and respond to the communication data sent by other slave devices, but cannot send token information to other devices.
  • the master device has the function of transmitting communication data and token data at the same time.
  • the monitoring token events of the other two devices are reserved, and they are determined to be slave devices, and both continue to be in the monitoring state.
  • the two slave devices only have the function of communication data transmission. Therefore, the server can determine which device is the master device of the priority login account based on monitoring the state change of the token event, and inform other devices that there is already a master device of the login account.
  • the listening status of each display device can be switched in real time according to the identity of the display device itself. For example, when the display device is the master device, the display device is not in the listening state; when the display device is the slave device, the display device is in the listening state.
  • each display device after each display device is paired and connected through its own Bluetooth module, it can automatically log in to other display devices according to the account login information on one display device, so as to realize the purpose of multi-device cooperative login account. For example, when each display device does not turn on the Bluetooth module, that is, when no pairing connection is established, if a certain display device has a priority login account, and then turns on the Bluetooth module to establish a pairing connection with other devices, the main device of the priority login account can still be based on The account login information sends token information to other slave devices, so that each slave device can automatically log in. That is to say, in the scenario where a certain display device logs in the account first and then turns on Bluetooth pairing, other slave devices that have not logged in the account can still achieve automatic login.
  • Fig. 6 is a flowchart of a multi-device coordinated login method performed by a master device according to some embodiments
  • Fig. 7 is an interaction diagram of a multi-device coordinated login method according to some embodiments. Specifically, after the pairing connection is completed, each display device realizes the multi-device cooperative login account, that is, when performing the multi-device cooperative login method shown in FIG. 6 and FIG. 7, the controller in the main device is configured to perform the following steps: :
  • a home environment there are usually multiple display devices, and the user can select one of the display devices as the primary device for first logging in to the account.
  • a feasible way for the main device to implement account login is to display a login QR code on the display of the main device, and after the user scans the login QR code on the display through the smart terminal, a login interface is displayed on the smart terminal.
  • the login interface presents a user name input box and a password input box.
  • the user enters a user name in the user name input box and a password in the password input box to obtain user login information for account login of the master device.
  • the smart terminal may be a device with a scanning function such as a mobile phone and a Pad.
  • a successful login interface may pop up on the display, prompting, for example, that account A has successfully logged in.
  • Another feasible way for the main device to implement account login is to directly present the login interface on the display of the main device.
  • the user login information is obtained to log in the account of the main device.
  • the two ways for the user to input the user login information may be determined according to actual conditions, and other input ways may also be used, which are not limited here.
  • the user login information includes a user name and password, etc., and the user login information corresponds to a designated account.
  • the main device requests the server to verify the user login information, and the account login can only be realized after the verification is passed.
  • the main device generates an account login request based on the user login information input by the user, and sends it to the server to access a login (login) interface of the server.
  • the server After receiving the account login request sent by the master device, the server can verify the user login information carried in the account login request.
  • the account login request carries user login information, a user ID and a device ID (that is, the main device ID), the user ID is used to identify the user, and the device ID is used to identify the device that implements account login.
  • the database in the server stores account information generated when the user registers an account, and the account information includes a registered user name and a registered password. Therefore, when verifying, the server compares the user name and password in the user login information with the registered user name and password stored in the database configured by the server. If they are consistent, it means that the user name and password entered by the user are correct and the account can be logged in. .
  • Token information is a string of numbers, including user ID, device ID, account ID, and token creation. time and duration.
  • the master device and the slave device can realize the specified account corresponding to the login user login information, where the user ID is used to identify the user, the device ID is used to identify the device that implements the account login, and the account ID is used to identify the account (user name and password), the token creation time is the starting point when the token becomes effective, and the duration is the effective duration of the token.
  • the token creation time is calculated from the time when the server verifies the user login information.
  • the server After verifying and passing the user login information based on the account login request sent by the master device, the server obtains the user ID and device ID carried in the account login request, obtains the account ID corresponding to the account information from the server database, and Generate the token creation time and duration, based on the user ID, device ID, account ID, token creation time and duration, then generate the main token information, and return it to the main device to realize the account login of the main device.
  • the main device if there is a new device with a newly turned on Bluetooth module for pairing connection after the main device logs in with the account, then after pairing and connection with the new device, in response to the Bluetooth connection of the new device, the main device according to the established Login account information, and request the server to return the primary token information. At this time, the primary token information only updates the token creation time and duration, and the rest remains unchanged.
  • the server After the server receives the request from the master device, it can request to return the master token information to the master device through the HTTP interface. Due to the uniqueness of the HTTP request, only the requester can receive the returned information.
  • the master device receives the master token information, and when it is determined that the device ID included in the master token information is consistent with the device ID of the master device, the master device can perform account login based on the account ID in the master token information.
  • the master device can log in with the specified account or establish a new Bluetooth connection with other slave devices.
  • the main token information used to realize the login of the specified account is automatically sent to each slave device through the Bluetooth module.
  • the slave device refers to other display devices in the home environment except for the first login to the specified account.
  • display device A If there are five display devices in the home environment, and the user selects display device A as the main device to log in with an account, then after display device A completes the account login, display device A sends display devices to display device B, display device C, and display device respectively through the Bluetooth module.
  • Device D and display device E send master token information, wherein display device B, display device C, display device D, and display device E are all slave devices.
  • each slave device After each slave device receives the master token information sent by the master device through the bluetooth module, it can request the slave token information from the server based on the master token information. Specifically, the slave device generates an automatic login request based on the master token information and the slave device ID corresponding to the slave device and sends it to the server to request the slave token information; after the server receives the master token information sent by the slave device Verify the primary token information, and generate secondary token information according to the primary token information and the secondary device ID and send it to the secondary device after the verification is passed. The slave device logs in the specified account corresponding to the user login information based on the account ID in the slave token information.
  • the master device and the slave device log in with the same designated account, so that after the user logs in on one device, he can automatically log in on other devices in the family, which is not only convenient for the user to log in, but also improves the user experience.
  • the process for the server to verify the primary token information includes: after the server receives the primary token information sent from the device, decrypts the primary token information according to the salt value; Obtain the main device ID, account ID, token creation time, and valid duration; determine whether the main token information has expired, if it is determined that the main token information has expired, then determine that the verification of the main token information has failed; if it is determined that the main token information has not expired, Then it is determined that the verification of the primary token information is passed.
  • the contents of the master token information and the slave token information are different except that the user ID and account ID are the same, that is, the device ID, token creation time and duration will be updated.
  • the slave device automatically logging in to the same designated account based on the master token information sent by the master device, reference may be made to the contents of steps S21 to S23 provided in subsequent embodiments.
  • the account after each display device completes an account login, the account will usually log out automatically after a period of time. For example, if the validity period of the token expires, then the user needs to log in to the account again on the corresponding display device during subsequent use.
  • the account for re-login of the display device may be the specified account for the previous login, or the second account that needs to be logged in currently. For example, if a slave device has logged in a specified account, and in the subsequent login, the slave device switches to log in to the second account, it is necessary to notify the master device that logs in to the specified account, and inform the master device that it does not need to send the specified account to the slave device. Corresponding primary token information.
  • the controller is further configured to perform the following steps:
  • the slave device When the login account of the slave device is switched from the specified account to the second account, the slave device will cancel the token event monitoring of the master device that logs in to the specified account, that is, the slave device generates a monitoring cancel command and sends it to the master device that logs in to the specified account .
  • the master device After the master device receives the monitoring cancellation instruction sent by the slave device, it will no longer send the master token information for logging in to the specified account to the slave device, so that the slave device can receive the master token information sent by the new master device logging in to the second account .
  • the new master device (the original first-round slave device) logged in with the switching account may generate a monitoring cancellation instruction.
  • the second round of new master devices (the original first round of slave devices) that switch accounts to log in can send a monitoring cancel command to the first round of master devices, so that Inform the master device of the first round that there is no need to send the master token information of the first round to the new master device.
  • the new master device may refuse to receive the master token information sent by the master device in the first round.
  • a prompt interface can be displayed on the display screen of the slave device for The user chooses to continue to log in to the original designated account or switch to log in to the second account. If a slave device generates an instruction to log in to the second account, the slave device generates a monitoring cancellation command and sends it to the first round of the master device to cancel the monitoring of the token information of the first round of the master device. At this time, the The slave device will monitor the token information of the new master device in the second round to realize the automatic login of the second account.
  • a slave device If a slave device generates an instruction to continue to log in to the original designated account status, the slave device generates a monitoring cancellation command and sends it to the new master device in the second round, canceling the monitoring of the token information of the new master device in the second round , at this time, the slave device will continue to monitor the token information of the master device in the first round, and continue to maintain the login status of the specified account.
  • the display device logged into the second account may be other display devices in the home environment.
  • display device A is the master device
  • display device B and display device C are slave devices
  • the three display devices are all registered with the specified account.
  • each device may have to re-login to the account
  • the user selects display device B to log in to the second account, and the identity of display device B changes from the original slave device to the master device, while the display device A and display device C are slave devices.
  • display device B belonging to the identity of the master device sends token information for logging in the second account to the slave devices (display device A and display device C), so that display device A and display device C log in to the second account.
  • the monitoring token event of the display device B is cancelled. , in the unlistened state, so that the display device B has the function of receiving/sending token data. Then restore the monitoring token event of the display device A, and it is in the monitoring state, so that the display device A only has the function of receiving token data and receiving/sending communication data, but not the function of sending token data. At this time, the display device B is not in the listening state, and both the display device A and the display device C are in the listening state.
  • the display device C as the slave device receives the master token information sent by the display device B as the master device in the second round, if the account logged in by operating the display device C is also switched from the original designated account to the second account, the login After the account is switched, the display device C correspondingly generates a monitoring cancel command, and sends it to the display device A that originally logged in with the specified account, and informs the display device A that was originally the master device of the first round, to stop sending the specified account to the original slave device (display device C) Corresponding primary token information.
  • the display device logged in with the second account may also be the original main device, that is, the main device originally logged in with the specified account.
  • the identities of the master device and the slave device are the original configuration.
  • Each slave device does not need to cancel the monitoring token event, that is, there is no need to generate a monitoring cancel command. .
  • the master device is always in a non-monitoring state, and each slave device is always in a listening state.
  • a display device provided in an embodiment of the present application generates an account login request based on the user login information input by the user when the master device that first logs in to the account performs multi-device collaborative login, sends it to the server, and receives the server's request for the user to log in to the account.
  • the master token information generated after the login information verification is passed logs in the specified account corresponding to the account ID in the master token information, and at the same time, automatically sends the master token information to the slave device with a pairing relationship, so that the slave device is based on the master token
  • the information requests the slave device information from the server, log in the same specified account based on the account ID in the slave device information.
  • the other display devices can log in automatically, without the need for the user to log in manually, achieving the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
  • a multi-device cooperative login method performed by a slave device is provided.
  • a display device provided in an embodiment of the present application is a slave device, that is, a device that performs automatic account login based on the master token information sent by the master device.
  • the display device includes: a display configured to present a user interface; a controller connected to the display, and when the slave device executes a multi-device cooperative login method, the controller is configured to perform the following steps:
  • the main token information refers to the information generated by the server after the main device requests the server to pass the verification based on the user login information.
  • the primary token information includes user ID, primary device ID, account ID, token creation time and duration.
  • each display device is paired and connected through its own bluetooth module.
  • account login if the user selects one of the display devices as the first device to log in the account, then the device is the master device.
  • the main device logs in to the specified account (such as account A) based on the user login information entered by the user, it will request verification from the server and receive the primary token information generated by the server after the verification is passed, and then the primary device logs in to the specified account based on the primary token information , while automatically sending the master token information to each slave device.
  • the specified account such as account A
  • each slave device After each slave device receives the master token information sent by the master device, it can automatically log in the corresponding designated account based on the master token information, so that the slave device and the master device log in to the same account.
  • an automatic login request is generated and sent to the server.
  • the automatic login request is used to instruct the server to verify the slave device ID Check with the primary token information, and generate secondary token information based on the primary token information after the verification is passed.
  • the secondary token information includes user ID, account ID, secondary device ID, updated token creation time and duration.
  • the initial Bluetooth password of many Bluetooth devices is generally 0000 or 1234, and even some Bluetooth pairing does not require a password, just long press it, this will appear
  • the display devices of other users are also connected to the Internet of Things of the local user's home environment through their own Bluetooth modules, causing the display devices of other users to automatically log in to the account used by the local user, resulting in information leakage.
  • the slave device when the slave device receives the master token information sent by the master device and performs account login, it needs to verify the information with the server, and the specified account can be logged in only after the verification is passed. At this time, the slave device will generate an automatic login request with its own slave device ID and the user ID, master device ID, account ID, token creation time and duration in the master token information, and send it to the server.
  • the server responds to the automatic login request sent by the slave device, and verifies the slave device ID and master token information carried in the automatic login request.
  • the verification content includes checking whether the slave device allows automatic login, whether the slave device to perform automatic login is a preset device, and whether the master token information is valid.
  • Preset devices refer to display devices in the same home environment, such as display devices in the same Internet of Things. This is because TV devices in the same Internet of Things generally belong to the same user.
  • the preset device can also be a device bound to an account, for example, according to the account information in the slave device ID and the master token information, query the slave device ID in the pre-stored mapping relationship between the account and the device Whether there is a binding relationship with the account information, if it exists, the validity of the primary token is judged, and if it does not exist, the automatic login of the device is rejected.
  • the user device can bind the account and the device ID through the initial login or other terminal settings, and then in the local area communication network connected by Bluetooth, when there is a non-user device, it can also prevent the non-user device from automatically logging in to the user. account.
  • the main token information includes user ID, main device ID, account ID, token creation time and duration, and the main device ID is used to identify the source of the main token information. Therefore, it is possible to check whether the slave device allows automatic login based on the user ID and account ID, judge whether the slave device currently requiring automatic account login is a preset device based on the slave device ID, and judge the master token based on the token creation time and duration information is valid.
  • the above three judging processes need to pass the verification of the previous judging process before the next judging process can be executed, and the server will generate slave token information only after the verification of the three judging processes is passed.
  • the server checks whether the slave device currently requesting automatic account login is a preset device
  • another method can also be used: when the slave device uploads the master token information, the slave device ID is also required, and the server After verifying that the slave device can realize the automatic account login function, the server parses out the account information based on the account ID from the master token information, and then obtains a list of user devices bound to the account information or logged in. Judging whether the slave device ID is in the device list, if it is, then the verification is passed, and then the verification of the validity of the master token information is performed; if not, the slave device is rejected to perform the automatic login process.
  • the slave device Based on the comparison between the slave device ID and the device list that has logged in to the account, if the slave device is another user's device, since the other user's device cannot log in to the account, there will be no other user's device identification in the device list , Therefore, if the comparison fails, it can avoid the automatic login account caused by the bluetooth connection of the outsider's device.
  • the user in order to make the identification of each display device in the home Internet of Things exist in the device list, in some embodiments, the user can actively log in to the account once in the new device, so that the device ID of the new device can be added to the device corresponding to the account in the server. list, or the user can select the device ID of a new device to add to the user device list by operating the main device.
  • the server After the server checks that the slave device can perform an automatic login process based on the master token information, that the slave device is a preset device, and that the master token information is valid, it can be determined that the verification of the master token information passes.
  • the server performs an automatic login process based on the master token information, that the slave device is a preset device, and that the master token information is valid, it can be determined that the verification of the master token information passes.
  • the server After verifying that the primary token information carried in the automatic login request sent by the slave device is passed, the server will generate secondary token information for realizing the login of the specified account by the slave device. Since the slave token information is updated based on the master token information sent by the master device, the role of the slave token information is for the slave device to log in with an account, and the slave device needs to log in with the same specified account as the master device. Therefore, the user ID and account ID in the master token information sent by the master device do not need to be updated, but the device ID used to identify the slave device and the token creation time and duration for the slave device to log in within the time limit need to be updated.
  • the update content includes replacing the device ID of the original master device in the master token information with the device ID of the slave device, and updating the token creation time and duration, so that the updated slave token information includes user ID, slave device ID, Account ID, new token creation time and new duration.
  • the starting point of the new token creation time is calculated from the time when the server verifies the primary token information.
  • the server After the server verifies that the master token information carried in the automatic login request sent by the slave device has passed, it will return the synchronously generated slave token information to the slave device, so that the slave device can log in to the specified account based on the slave token information.
  • the TV sends the main token information required for logging in to the specified account (such as account A) to the Rubik's Cube screen and the refrigerator screen respectively through the Bluetooth module.
  • the Rubik's Cube screen (or refrigerator screen) requests the server through the primary token information and the secondary device ID in exchange for the secondary token information required by its own device to log in to the account.
  • the Rubik's Cube screen (or refrigerator screen) can log in the specified account.
  • the TV, Rubik’s Cube and Refrigerator are all logged into the same account A, the difference is that the TV is manually logged in by the user, while the Rubik’s Cube and Refrigerator are automatically logged in without the user’s manual login.
  • the slave device when the slave device as an automatic login account performs multi-device cooperative login account, the slave device receives the master token information sent by the master device, generates an automatic login request and sends it to the server, and the server receives Check the master token information and generate slave token information based on the slave device information after passing the verification.
  • the slave device logs in the same designated account as the master device based on the slave token information.
  • the other display devices can log in automatically, without the need for the user to log in manually, realizing the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
  • both the master device and the slave device will cache the corresponding token information. That is, after the master device implements the specified account login based on the user login information entered by the user, it will store the corresponding master token information in the local cache of the master device; the slave device will automatically log in the designated account based on the master token information sent by the master device After that, the corresponding slave token information will be stored in the local cache of the slave device.
  • the cached token information can facilitate the login of the corresponding account by directly using the token information in the cache in the subsequent login process. Therefore, after completing an account login, the controller is further configured to: cache the slave token information returned by the server for implementing the login of the specified account after logging in with the master device with the same specified account.
  • the slave token information returned by the server for realizing the login of the designated account is stored in the local cache of the slave device.
  • the TV when the master device (TV) logs into account A, the TV sends the master token information corresponding to account A to the slave devices (the Rubik's Cube screen and the refrigerator screen). After receiving the primary token information corresponding to account A, the Rubik’s cube screen and refrigerator screen exchange their own secondary token information from the server, and then realize automatic login of account A based on the secondary token information.
  • each display device After each display device completes an account login, usually the account will automatically log out after a period of time. Then, when the user uses it subsequently, the corresponding display device needs to log in to the account again.
  • the account for re-login of the display device may be the specified account for the previous login, or a second account that needs to be logged in currently, and the second account is different from the specified account.
  • the slave device In order to judge whether the master token information received from the master device when the slave device automatically logs in to the account is the master token information corresponding to the original login to the specified account, the slave device needs to receive the new master token information when it receives the new master token information. Compare with the slave token information used to log in the specified account in the local cache, and determine whether the current account that needs to be logged in is the specified account for the original login through the comparison result, and determine the target account that needs to be logged in currently.
  • the controller when re-logging into the account subsequently, the controller is further configured to perform the following steps:
  • slave token information does not exist in the local cache, log in the corresponding second account based on the second master token information.
  • the corresponding target account is logged in based on the user's selection operation, and the target account includes one of the specified account or the second account.
  • the slave device When the slave device receives the second master token information sent by the master device, it determines whether the slave token information corresponding to the previous login account is stored in the local cache.
  • the second primary token information refers to the Nth primary token information sent by the master device, N ⁇ 2, which can be the same as the primary token information sent by the aforementioned master device, and is used for login correspondence
  • the specified account it can also be different, it is used to log in to other accounts.
  • the slave token information is not obtained in the local cache of the slave device, it means that the current account login process of the slave device is the first account login process, then the received second master token information is The master token information sent by the master device described earlier.
  • the process of judging whether there is slave token information in the local cache can be applied in the process of step S21, that is, when the slave device receives the master token information sent by the master device, it judges whether there is a specified account for logging in in the local cache. required slave token information.
  • the process of steps S22 to S23 is continued to complete the first account login process. That is to say, the process of logging in the second account by the slave device based on the second primary token information can refer to the implementation content of steps S21 to S23.
  • the slave token information used to log in to the specified account can be obtained in the local cache of the slave device, it means that the current account login process of the slave device is the Nth login process, that is, the slave device has performed N -1 account login process, which belongs to the post-login account process. Then the received second primary token information is the Nth primary token information sent by the master device.
  • the account ID in the slave token information is consistent with the account ID in the second master token information, it means that the account to be logged in corresponding to the second master token information currently received from the slave device is the same as the account that has been logged in before. the same one.
  • the slave device does not need to exchange for a new token from the server based on the second master token information again. From the token information, the designated account can be directly logged in based on the slave token information in the local cache, thereby improving account login efficiency. If it is confirmed that the slave token information is invalid according to the token creation time and duration, the slave device still needs to request the server to update the slave token information based on the slave token information before logging in with the specified account.
  • the account ID in the secondary token information is inconsistent with the account ID in the second primary token information, it means that the account that needs to be logged in has not been logged in before, and account switching and login are required.
  • the second account that the slave device currently needs to log in is different from the account in the local cache, the corresponding target account can be logged in based on the user's selection operation, and the target account includes one of the specified account or the second account.
  • the controller is further configured to:
  • a prompt interface is generated and displayed in the user interface.
  • the prompt interface includes the specified account option corresponding to the secondary token information and the second account option corresponding to the second primary token information.
  • the corresponding specified account is logged in based on the secondary token information.
  • the corresponding second account is logged in based on the second primary token information.
  • the slave device When the slave device needs to perform account switching and login, the user can perform a selection operation.
  • the slave device can automatically log in to the corresponding second account based on the second primary token information, or it can also be set so that the slave device can automatically log in to the corresponding second account based on the slave token information.
  • the specified account option and the second account option are displayed on the prompt interface.
  • the specified account option is used to implement the login of the specified account corresponding to the secondary token information
  • the second account option is used to implement the login of the second account (such as account B) corresponding to the second primary token information.
  • the slave device logs in the corresponding specified account according to the slave token information in the local cache. Since the slave token information in the local cache of the slave device is the slave token information required by the slave device to request the server for its own login account based on the master token information, if the token creation time and duration in the slave token information After confirming that the slave token information is still within the creation time, the slave token information can directly realize the login of the specified account. Therefore, the slave device can directly log in to the specified account based on the slave token information in the local cache without requesting to the server. information from the token.
  • the slave device still needs to exchange for a new token from the server based on the user ID, account ID and slave device ID in the slave token information. After logging in with the specified account after the secondary token information, the updated content of the new secondary token information is the token creation time and duration.
  • the slave device Based on the login instruction, the slave device exchanges brand new slave token information from the server according to the second master token information, and logs in the corresponding second account (such as account B) with the second master token information.
  • the corresponding second account such as account B
  • the slave device For the implementation process of the slave device logging into the corresponding second account based on the second master token information, reference may be made to the content of the foregoing steps S22 to S23.
  • the slave device changes its login account during the subsequent account login process, that is, it switches from the original designated account to the second account, it needs to notify the master device that logged in the designated account to inform the master The device no longer needs to send the master token information corresponding to the specified account to the slave device.
  • the controller is further configured to perform the following steps:
  • a monitoring cancel instruction is generated, and the monitoring cancel instruction is used to instruct the slave device to stop receiving the master token information sent by the master device.
  • the slave token information used to log in to the specified account can be obtained from the local cache of the slave device, if the received second master token information is consistent with the account ID of the slave token information , it means that the master device that generates the second master token information can be the master device that originally logged in with the specified account.
  • the master device that originally logged into the designated account switches to log in to the second account, so that the master device that generates the second master token information is still the master device that originally logged into the designated account. At this point, there is no need to cancel token monitoring.
  • the second is to log in the second account as another master device. At this time, the master device switches, so that the master device that generates the second master token information is switched to another display device, which is different from the master device that originally logged in with the specified account. At this point, the token monitoring needs to be canceled.
  • the process of the slave device judging whether there is slave token information in the local cache occurs in the scenario where the slave device receives the second master token information, by judging whether there is slave token information in the local cache card information, and the result of comparing the second master token information with the account ID of the slave token information to determine the target token information required for account login, and to determine the target account to be logged in from the slave device, and then realize the slave device The account of the device is automatically logged in.
  • the process of the slave device judging whether there is slave token information in the local cache can also occur in any scenario where the slave device is in the monitoring state, such as the re-login process of subsequent account login automatically. At this time, there is no need for the slave device to trigger the judgment process after receiving the second master token information sent by the master device. As long as the slave device needs to log in to the account again, it can read the slave token information in the local cache in real time to realize the account login.
  • the slave token information can be obtained directly from the local cache of the slave device to log in to the specified account. If the secondary token information in the local cache is invalid, it is necessary to exchange new secondary token information from the server to realize the login of the specified account.
  • the specific implementation process may include: during the automatic account login process of the slave device, if the slave device needs to log in to the account again, at this time, the slave device obtains the login information from the local cache.
  • the login information refers to the information required for logging in to the previous account. information from the token.
  • the corresponding account login process is automatically performed based on the master token information sent by the master device. If there is login information in the local cache, the corresponding account can be directly logged in based on the login information to realize automatic account login.
  • an implementation scenario can be: if there is no login information in the local cache, monitor the The event of the arrival of the token will automatically log in after receiving it. If there is login information in the cache and it has not expired, it will be automatically logged in directly. If you receive new token information and the account ID is inconsistent with the cached one, you can switch the login information through the interface prompt.
  • Another implementation scenario may be: when the slave device receives the second primary token information sent by the master device, if the login information does not exist in the local cache, log in the corresponding account based on the second primary token information.
  • the slave device can automatically log in the account based on the local cache, so as to log in the same account as the master device, without the need for the user to log in manually, and realize the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
  • Fig. 9 is a flowchart of a multi-device cooperative login method executed by a server according to some embodiments.
  • a server provided in an embodiment of the present application includes: a controller. When executing the multi-device cooperative login method shown in FIG. 7 and FIG. 9 , the controller is configured to perform the following steps:
  • the user wants to log in to multiple display devices with an account.
  • the multi-device collaborative login method provided by this application, when performing account login, the user can only perform manual account login on one display device, while the other display devices All devices can realize automatic account login.
  • the display device that the user performs manual account login is the master device, and the other display devices that automatically perform account login are slave devices.
  • the master device generates an account login request based on the user login information input by the user, and sends it to the server to access a login (login) interface of the server.
  • the server can verify the user login information carried in the account login request, and the user login information includes a user name and a password.
  • the account login request carries user login information, user ID and device ID, the user ID is used to identify the user, and the device ID is used to identify the device that implements account login.
  • the server compares the user name and password in the user login information with the user name and password stored in the database configured by the server. If they are consistent, it means that the user name and password entered by the user are correct and the account can be logged in.
  • Token information is a string of numbers, including user ID, device ID, account ID, and token creation. time and duration.
  • the master token information is used to realize the specified account corresponding to the user login information of the master device and the slave device, the user ID is used to identify the user, the device ID is used to identify the device that realizes the account login, and the account ID is used to identify the account after verification (username and password), the token creation time is the valid period of the token, and the duration is the valid period of the token.
  • the server After verifying and passing the user login information based on the account login request sent by the master device, the server obtains the user ID and device ID carried in the account login request, obtains the account ID corresponding to the account information from the server database, and generates a token Creation time and duration, based on user ID, device ID, account ID, and token creation time and duration, the main token information is generated immediately and returned to the main device to realize the account login of the main device.
  • the master device After the master device receives the master token information generated by the server after verifying the user login information and passing it, the master device can log in to the corresponding account based on the account ID in the master token information, that is, realize the designated account based on the user name and password entered by the user. login.
  • the master device sends the master token information to the slave device, and the slave device is used to request the slave token information from the server based on the master token information to
  • the account ID in the information logs into the specified account corresponding to the user login information, and the slave device refers to the device that is in a pairing relationship with the master device.
  • the master device and the slave device log in with the same designated account, so that after the user logs in on one device, he can automatically log in on other devices in the family, which is not only convenient for the user to log in, but also improves the user experience.
  • the slave device ID and the master token information carried in the automatic login request are verified. Then generate slave token information based on the master token information and send it to the slave device.
  • the master token information includes user ID, account ID, token creation time and duration
  • the slave token information includes user ID, account ID, slave The token ID, the updated token creation time and duration, so that the slave device can log in to the specified account based on the account ID in the slave token information, and the slave device is a device in a pairing relationship with the master device.
  • each slave device After each slave device receives the master token information sent by the master device, it can request the slave token information from the server based on the master token information, and automatically log in to the specified account corresponding to the specified ID in the slave token information, so that the slave device and the master The devices log in with the same account.
  • the slave device When the slave device automatically logs in to the same designated account based on the master token information sent by the master device, it needs to verify the information authority with the server, and the designated account can only be logged in after the verification is passed. At this point, the slave device generates an automatic login request based on the primary token information, and sends it to the server.
  • the slave device In order to prevent the display devices of other users from connecting to the Internet of Things of the local user's home environment through their own Bluetooth modules, causing the display devices of other users to automatically log in to the account used by the local user, resulting in information leakage, it is necessary to request automatic login.
  • the slave device performs verification. For this reason, the slave device ID must be carried in the automatic login request generated by the slave device to identify the slave device. At this time, the slave device will generate an automatic login request with its own slave device ID and the user ID, account ID, token creation time and duration in the master token information, and send it to the server.
  • the server responds to the automatic login request sent by the slave device, and verifies the slave device ID and master token information carried in the automatic login request.
  • the verification content includes checking whether the slave device allows automatic login, whether the slave device to perform automatic login is a preset device, and whether the master token information is valid.
  • Preset devices refer to display devices in the same home environment, such as display devices in the same Internet of Things.
  • the main token information includes user ID, main device ID, account ID, token creation time and duration, and the main device ID is used to identify the source of the main token information. Therefore, it is possible to check whether the slave device allows automatic login based on the user ID and account ID, judge whether the slave device currently requiring automatic account login is a preset device based on the slave device ID, and judge the master token based on the token creation time and duration information is valid.
  • the above three judging processes need to pass the verification of the previous judging process before the next judging process can be executed, and the server will generate slave token information only after the verification of the three judging processes is passed.
  • the controller executes the automatic login request generated based on the slave device ID after receiving the master token information sent by the master device in response to the slave device, and the slave device ID and the master token information carried in the automatic login request For verification, is further configured to perform the following steps:
  • the account ID, token creation time and duration in the master token information are acquired.
  • the slave device If there is a registered account ID used to identify the specified account of the master device login in the server, the slave device is allowed to perform an automatic login process, and it is checked whether the display device corresponding to the slave device ID is a preset device, and the default device refers to Display devices that are in the same Internet of Things for Bluetooth pairing connection;
  • the display device corresponding to the slave device ID is a preset device, check whether the token creation time and duration are valid.
  • the server After the server receives the automatic login request sent by any slave device, it obtains the slave device ID, user ID, account ID, token creation time and duration carried in the automatic login request to check whether the slave device allows automatic login Check if the login information is valid.
  • the account ID in the primary token information carried in the automatic login request sent by the slave device is compared with the registered account ID stored on the server side, and the registered account ID is used to identify the master device Logged in account. If an account is logged in by the main device, the server will store the corresponding account information, such as the registered account ID. Therefore, if the server stores the registered account ID, the account ID is consistent with the registered account ID, indicating that the specified account corresponding to the account ID is logged in by the master device, and the slave device is allowed to respond to the token information of the master device to realize the corresponding account ID. automatic login. If the account ID is not stored on the server, the account ID is inconsistent with the registered account ID, indicating that the specified account corresponding to the account ID has not been logged in by the master device, and the slave device is not allowed to perform the automatic login account process.
  • the conditions for the slave device to perform the automatic login process include: responding to the master token information sent by the master device (that is, the master device triggers automatic account login of the slave device), and the master device has logged into the corresponding account.
  • the preset device refers to a display device that is in the same Internet of Things for Bluetooth pairing connection .
  • the slave device ID of the slave device can be connected with the Bluetooth pairing connection with the slave device stored on the server side in the same Internet of Things as the master device If the slave device ID is consistent with one of the display device IDs in the same Internet of Things, it can be determined that the slave device is a preset device, and the automatic account login process can be performed. If the comparisons are inconsistent, it means that the slave device is the display device of another user, and cannot log in with the same account as the display device of the local user to avoid information leakage, that is, the subsequent automatic account login process cannot be performed.
  • the server checks whether the slave device currently requesting automatic account login is a preset device
  • another method can also be used: when the slave device uploads the master token information, the slave device ID is also required, and the server After verifying that the slave device can realize the automatic account login function, the server parses out the account information based on the account ID from the master token information, and then obtains a list of devices bound to the account information or logged in. Determine whether the slave device ID is in the device list. If it is, the verification is passed, and then the master token verification is performed; if not, the slave device does not perform the automatic login process.
  • the slave device Based on the comparison between the slave device ID and the device list that has logged in to the account, if the slave device is another user's device, since the other user's device cannot log in to the account, there will be no other user's device identifier in the device list. Therefore, if the comparison fails, it can prevent the account from being automatically logged in on the outsider's device after the Bluetooth connection of the outsider's device. In this scenario, in order to have the IDs of each display device in the home IoT in the device list, the user needs to actively log in to the account once in the new device, so that the device ID of the new device can be added to the device list corresponding to the account in the server.
  • the next verification process can be performed, that is, verifying whether the login information is valid.
  • the token creation time and duration in the primary token information carried in the automatic login request are obtained, so as to determine whether the primary token information is valid based on the token creation time and duration.
  • both the token creation time and the duration satisfy corresponding time conditions, it is determined that the token creation time and duration are both valid. For example, if the token creation time has not expired, and the generation time of the main token information does not exceed the time length threshold, it can be determined that both the token creation time and the time length are valid.
  • the server After the server verifies that the slave device is allowed to log in automatically based on the master token information, the slave device is a default device, and the login information (master token information) is valid, it can determine the slave device ID and Primary token information verification passed.
  • the server After the server verifies that the slave device ID and master token information carried in the automatic login request sent by the slave device pass, it will generate slave token information for realizing the login of the specified account by the slave device. Since the slave token information is updated based on the master token information sent by the master device, the role of the slave token information is for the slave device to log in with an account, and the slave device needs to log in with the same specified account as the master device. Therefore, the user ID and account ID in the master token information sent by the master device do not need to be updated, but the device ID used to identify the slave device and the token creation time and duration for the slave device to log in within the time limit need to be updated.
  • the update content includes replacing the device ID of the original master device in the master token information with the device ID of the slave device, and updating the token creation time and duration, so that the updated slave token information includes user ID, slave device ID, Account ID, new token creation time and new duration.
  • the starting point of the new token creation time is calculated from the time when the server verifies the primary token information.
  • the server After the server verifies that the master token information carried in the automatic login request sent by the slave device has passed, it will return the synchronously generated slave token information to the slave device, so that the slave device can log in to the specified account based on the slave token information.
  • the slave token information After the slave device receives the slave token information returned by the server, the slave token information includes the user ID, slave device ID, account ID, new token creation time, and new duration, and can then log in to the designated account ID corresponding to the slave token information.
  • Account the specified account is the same as the specified account logged in on the main device.
  • the server when multiple display devices perform cooperative login account, based on the account login request sent by the main device, generates the main token information after the verification of the user login information is passed, so as to facilitate the main device to log in and the user to log in The specified account corresponding to the information, and automatically send the master token information to the slave device with the pairing relationship.
  • the slave token information is generated after the verification of the master token information is passed and the slave device is allowed to log in to the account, so that the slave device can log in to the same designated account as the master device based on the slave token information .
  • the other display devices can log in automatically, without the need for the user to log in manually, achieving the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
  • the master device that first logs in to the account sends an account login request to the server based on the user login information input by the user, and the receiving server verifies the user login information and passes the verification.
  • the master token information After the master token information is generated, log in to the specified account, and at the same time, automatically send the master token information to the slave device with the pairing relationship.
  • the slave device generates an automatic login request based on the master token information and sends it to the server.
  • the server verifies the master token information, it generates the slave token information and allows the slave device to log in to the account, so that the slave device is based on the slave token information and the master device. Log in to the same designated account.
  • the method, the display device and the server can realize that after the user logs in the account preferentially on one of the display devices, the other display devices can automatically log in, without the need for the user to log in manually, and realize the purpose of multi-device cooperative login account. While providing convenience to users, account login efficiency is high, which improves user interaction experience.
  • the multiple terminal devices can also control the corresponding terminal devices to perform corresponding operations by voice after they log in to the account cooperatively.
  • FIG. 10 is an application scenario diagram of a terminal device according to some embodiments.
  • terminal equipment such as TV 103, air conditioner 104, refrigerator 105, and washing machine 106 in the home can be connected to mobile terminal 101 and server 102 through the Internet of Things module, and mobile terminal 101 and terminal equipment can be connected through LAN or WAN for data transmission to realize the control and management of terminal equipment.
  • IoT modules can be built into individual end devices.
  • the speaker If "TV fast forward" is received, the speaker first judges whether there is an operation corresponding to the corresponding TV corresponding to the mapping relationship, and if so, sends an operation command to trigger TV fast forward to the TV; if not, the feedback indicates that there is no Recognized prompt information.
  • the user In the existing operation, the user must specify the target device to execute the operation intention, otherwise the speaker will input the operation intended to be performed by the speaker by default.
  • the speech recognition device may play a prompt to the user representing several devices for which mappings exist.
  • the determination of the mapping relationship between the speech recognition device and other devices can be performed in a local module or in the cloud.
  • the local modules may be housed within the speech recognition device or fixed to each other. They can also be separate objects.
  • Fig. 11 is another application scenario diagram of a terminal device according to some embodiments.
  • the voice recognition device converts the voice message into a voice command through the voice application and transmits it to the server 102.
  • the server 102 inquires about the terminal equipment currently configured by the user.
  • the server 102 After finding out that there are TVs, refrigerators and air conditioners, It will give feedback to the user through the voice recognition device, "You have 3 devices, which one do you want to use?" The server 102 will further determine that there are two terminal devices, a TV and an air conditioner, in the living room at this time, and feed back to the user through the voice recognition device "You have 3 devices in the living room, which one do you want to use?" Let's play", so far, the server 102 will control the TV to play the XXX song.
  • the speech recognition device may be a device with a radio function such as a remote controller and a speaker.
  • the voice recognition device may also be a display device with voice recognition and control functions, such as a TV or a mobile device.
  • the server 102 needs to perform multiple rounds of voice interaction with the user, so that the user can actively make various prompts, and finally determine the terminal device to execute the command.
  • the above illustrates the process of multiple interactions with the user.
  • the present application provides a server in some embodiments, and the server is configured to perform a voice interaction process.
  • the voice interaction process will be described below with reference to the accompanying drawings.
  • methods performed in server 102 may be performed in one other device or voice recognition device.
  • follow-up uses server execution as an example.
  • the speech recognition devices and the other devices can be connected to the server through the network, and the user can log in to the server through a pre-operation on a certain device.
  • the same account further enables the server to store a mapping relationship between a user identifier (that is, a user ID) for identifying a user and a device.
  • the speech recognition device can receive the speech input by the user at any moment.
  • the user may send a voice command to the voice recognition device based on his own needs, and control the corresponding terminal device to execute the voice command by voice. For example, when the user wants to use the target device to watch a XXX movie, he can input the wake-up word "Hi! XX" to the voice recognition device, and then input a voice message of "Play XXX movie" to the voice recognition device.
  • the target device and the voice recognition device are two independent devices.
  • the target device can have its own voice receiving device for voice control.
  • the target device and the voice recognition device are not the relationship between the TV and the TV remote control that is only used for the TV. Not the relationship between the TV processor and the audio receiver on the TV.
  • the wake word and voice command can be entered continuously.
  • the voice recognition device can recognize voice commands contained in sentences containing wake words.
  • the voice recognition device can integrate sound collection and voice analysis functions.
  • the radio function is to receive the voice message sent by the user
  • the voice analysis function refers to extracting the key part of the voice message sent by the user.
  • the key part can reflect the user's intention or the content to be done, and analyze the user's intention Afterwards, it is converted into a voice command, and the voice command may be an executable command format agreed between the voice recognition device and the server 102 .
  • the command format may include command (command) and parameters (parameter).
  • the voice command is sent to the server 102 .
  • adding the corresponding user identifier to the voice command facilitates the server 102 to identify which user sent the voice command, and also facilitates the user to search for all terminal devices configured by the user.
  • the speech recognition device may have an independent audio-visual display system, which may decode and play audio and video streams.
  • the target device may have an independent audio-visual display system capable of decoding and playing audio and video streams.
  • S301 Receive a voice instruction including a user identifier sent by a voice recognition device.
  • the speech recognition device may use the text converted from the speech as a speech instruction and send it to the server.
  • the server 102 analyzes the voice command to obtain the user identifier and the user's intention conveyed by the voice command.
  • the server determines the device type corresponding to the command by analyzing the voice command and according to the keywords in the parsed text, where the device type refers to the functional authority of the terminal device.
  • mapping relationship between keywords and device types may be cached in the server, and in some embodiments, a trained keyword-device type neural network model may also be stored.
  • the server 102 searches the database for all terminal devices related to the user ID, that is, searches for all terminal devices configured by the user. This is because, if device discovery is based on near-field communication, the device can discover all the devices it scans, including its own and/or devices of other users in close proximity, but some of these devices do not belong to the user , even if it is judged by the LAN, it is possible to initially select the scenario where a guest device is connected to the LAN. By pre-establishing the association between the user ID and its own equipment in a server with a management function, the server 102 can determine the equipment actually owned by the user according to the user ID.
  • the terminal device refers to other devices associated with the user identifier except the speech recognition device.
  • the recognition of the voice command needs to determine the type of the voice command, and then compare it with the types that can be executed by each terminal device, and then determine the terminal device that can execute the voice command.
  • the execution types of each terminal device may be pre-calibrated, for example, the kitchen refrigerator corresponds to freezing, refrigeration, recipe recommendation, and ingredient identification. It may also be determined according to the device identifier when a newly added device is scanned. For example, when the newly added device identifier indicates that the device is a refrigerator, an association between the device identifier and freezing, refrigeration, recipe recommendation, food material identification, etc. is established.
  • the server 102 may also load all terminal devices and device attributes related to the user ID from the database into the cache. Subsequently, when the server 102 searches for the terminal device again, it can directly search in the cache, thereby speeding up the speed at which the server 102 searches for the terminal device.
  • the device attributes include inherent attributes such as the location of the terminal device, the name of the terminal device, and the ID of the terminal device.
  • the server 102 if the server 102 does not find a terminal device related to the user identifier, it means that the user has not configured a terminal device. At this time, the server 102 needs to feed back parameters indicating that there is no terminal device to the speech recognition device. The voice recognition device broadcasts that there is no terminal device according to the received parameter representing the absence of the terminal device.
  • S304 When there is a terminal device related to the user identifier, use the preset filtering rules to filter out the most matching terminal device, and feed back the parameters representing the most matching terminal device, so that the voice recognition device broadcasts the existence of the execution voice The terminal device with the instruction, and controls the most matching terminal device to execute the voice instruction.
  • the preset filtering rule filter refers to a rule for filtering out a preset rule conforming to the user's intention/a device capable of executing the voice instruction. For example, when the user inputs the voice of "play folk music", the voice recognition device sends the instruction of playing folk music to the server, and the server recognizes that the type of user's intention is to play music, and then determines the terminal device that can perform this type of operation according to the type .
  • the terminal device related to the user identifier when there is a terminal device related to the user identifier, the terminal device related to the user identifier is used to execute the voice instruction.
  • the voice instruction when there is a terminal device related to the user identifier, it is also necessary to determine the number of terminal devices and/or the functions that the terminal device can perform.
  • the function that the terminal device can perform is the terminal Device function permissions.
  • the voice instruction when the voice instruction is an instruction to play a video, it is necessary to determine the device that can play the video, and the device that cannot perform video playback will be screened out. When the voice instruction is an instruction for cooling at 26°, cooling cannot be performed. The devices that are screened out, use the voice command that can be executed by the cooling device.
  • the server 102 is configured with preset filtering rules.
  • the filtering rule characterizes the mapping relationship between the voice instruction and the terminal device.
  • the filter rules include the first set of rules and the second set of rules, or only the first set of rules do not include the second set of rules, wherein the first set of rules refers to the necessary rules, and the second group of rules refers to the rules that are superimposed and utilized one by one when the best matching terminal device is not screened out.
  • the first group of rules includes the mapping relationship between the device type and each device, such as Table 1.
  • the first group of rules may be a judgment on the number corresponding to user identifiers.
  • the second rule needs to be further used for further screening.
  • the optional device is determined according to the device type and the mapping relationship of each device, if the number of the device is 1, the voice command is directly sent to the device; if it is 0, the feedback is irrelevant.
  • the device to execute is given to the voice recognition device. If there are more than one, it can be based on one or any combination of location/installation time/usage frequency/device that executed this type of command last/start time/signal strength/priority, etc. to filter as the second set of rules.
  • S401 Use the first set of rules to screen terminal devices related to the user identifier of the current terminal device.
  • the server 102 when terminal devices are screened by using the sub-rules of terminal device function rights, the server 102 respectively detects function rights of multiple terminal devices related to the user identifier.
  • the server 102 selects the corresponding terminal device as the candidate terminal device.
  • the server 102 excludes the corresponding terminal device.
  • the server 102 when using the first set of rules to filter the terminal devices related to the user identifier, if none of the terminal devices actually owned by the user has the corresponding functional authority, the server 102 needs to feed back to the voice recognition device There are parameters for the end device.
  • the voice recognition device broadcasts that there is no terminal device according to the received parameter representing the absence of the terminal device.
  • the server 102 when using the first set of rules to filter terminal devices related to the user identifier, if the terminal device actually owned by the user has the corresponding functional authority, the server 102 also needs to confirm that the terminal device with the corresponding functional authority quantity.
  • the server 102 when the server 102 detects that there is only one terminal device with the authority to execute the voice command, it feeds back to the voice recognition device the parameters representing the terminal device with the corresponding authority, and the voice recognition device exists according to the token.
  • the parameters of the terminal equipment with the corresponding authority are broadcast to the terminal equipment with the corresponding authority.
  • the server 102 also needs to control the current terminal device to perform corresponding operations according to the user's intention in the voice command.
  • the server 102 sends the voice instruction to the current terminal device, and the current terminal device receives the voice instruction and performs a corresponding operation according to the voice instruction.
  • the user is currently only equipped with a sweeping robot. If the user inputs a voice message of "sweeping the floor", the voice device will transmit the voice message to the server 102.
  • the server 102 finds that the current user is only equipped with a sweeping robot. With cleaning function. Therefore, the server 102 controls the voice recognition device to broadcast "the sweeping robot starts to sweep the floor", and controls the sweeping robot to perform the sweeping function.
  • the server 102 controls the speech recognition device to broadcast, it may feed back the parameters representing the terminal device with corresponding authority to the speech recognition device through a long link.
  • the sub-rules in the second set of rules are used to screen the multiple terminal devices that have the authority to execute the voice command one by one in order of priority from high to low. Terminal devices with the above-mentioned voice command permissions until a terminal device that best matches is screened out.
  • the second set of rules preset in the server 102 includes a user frequency sub-rule, a distance from a speech recognition device sub-rule, and a terminal device priority sub-rule.
  • the user frequency sub-rule refers to the number of times the user has executed similar voice commands through the terminal device, for example, the number of times the user plays video data such as A movie and B variety show through the TV, or the user plays C song and D song through the speaker.
  • the frequency of audio data such as A movie, B variety show, C song, D song, etc. can be divided into media data.
  • “song" and "play D song” can be regarded as similar voice commands, both of which are play-type voice commands.
  • the distance sub-rule to the speech recognition device refers to the distance between each terminal device and the speech recognition device.
  • the terminal device priority sub-rule refers to the priority of each terminal device set by the user when executing a voice command. For example, corresponding to the voice command for playing media assets, the priority of the TV is higher than that of the refrigerator screen. Among them, the terminal device The priority of the mobile terminal 101 can be set by the user through the application program.
  • a plurality of sub-rules in the above-mentioned second group of rules can be set with corresponding priorities by the user, for example, the priority of setting the priority of the sub-rule of user usage frequency is higher than the priority of the sub-rule of the distance from the speech recognition device, The priority of the terminal device priority sub-rule is higher than that of the user frequency sub-rule.
  • the server 102 uses filtering rules to filter terminal devices to filter out one of the most suitable terminal devices for executing the current voice command, that is to say, at the end of the screening, the number of the most matching terminal devices for 1 pc. After screening by the first set of rules, as long as the number of corresponding terminal devices is not unique, the server 102 will use the sub-rules in the second set of rules to screen the remaining terminal devices one by one according to the priority.
  • the server 102 finds out that the user is equipped with a TV, sound box, air conditioner, refrigerator, and washing machine. If the TV, sound box and refrigerator have the playback function, the TV, sound box and refrigerator need to be further screened through the second set of rules.
  • the server 102 further filters through the distance sub-rule with the speech recognition device, and through the device location information in the device attributes in the terminal device, the server 102 judges that the TV, the sound box and the speech recognition device are all in the living room, that is, the distance is relatively close, and the refrigerator In the kitchen, the distance from the speech recognition equipment is relatively long, and based on this, the refrigerator is excluded. Since there are still two candidate terminal devices left, i.e. TV and sound box, further screening is required, and the server 102 continues to filter through the terminal device priority sub-rules. The priority of the speaker, so the server 102 selects the TV as the most matching terminal device.
  • the server 102 finds out that the user is equipped with a TV, a speaker, an air conditioner, a refrigerator, and an electric fan. Obtaining that the air conditioner and the electric fan have the function of adjusting the room temperature, the server 102 needs to further screen the air conditioner and the electric fan through the second set of rules. The server 102 continues to filter through the terminal device priority sub-rule. For voice commands such as room temperature adjustment, the priority of the air conditioner set by the user is higher than that of the electric fan, so the server 102 selects the air conditioner as the most matching terminal device. Of course, users can also set the priority of the electric fan higher than that of the air conditioner according to their own needs.
  • the server 102 when using the user frequency sub-rule to screen terminal devices, the server 102 respectively detects the execution frequencies of multiple terminal devices related to the user identifier, wherein the execution frequency refers to the terminal device The number of times similar voice commands have been executed in historical behaviors. The server 102 will retain the terminal device with the highest execution frequency.
  • the server 102 when terminal devices are screened using the sub-rule of distance from a voice recognition device, the server 102 respectively detects the distances between a plurality of terminal devices related to the user identifier and the voice recognition device. The server 102 will reserve the terminal device with the closest distance to the speech recognition device.
  • the server 102 when using the terminal device priority to screen terminal devices, reserves the terminal device with the highest priority according to the terminal device priority set by the user.
  • the server when the server responds to the voice command issued by the user and inquires that there are currently multiple terminal devices, it can select the terminal device that will finally execute the command based on the filtering rules, so as to avoid multiple voice interactions between the user and the voice recognition device process to improve user experience.
  • the present application also provides a voice control method in some embodiments, the method includes: the server 102 receives the voice command containing the user ID sent by the voice recognition device, and searches for the voice command related to the user ID. all terminal equipment. When there is no terminal device related to the user identifier, the server 102 feeds back parameters representing the absence of the terminal device, so that the voice recognition device broadcasts that there is no terminal device executing the voice command. . When there is a terminal device related to the user identifier, the server 102 uses preset filtering rules to filter out the most matching terminal device, and feeds back parameters representing the most matching terminal device, so that the voice recognition device broadcasts the most matching terminal device. terminal device, and control the most matching terminal device to execute the voice command.

Abstract

The present application discloses a terminal device, a server, and a multi-device collaboration login method. The terminal device comprises a controller, configured to: receive user login information input by a user, so that the terminal device is used as a master device, the user login information corresponding to a specified account; send an account login request to a server on the basis of the user login information to request master token information used for login, wherein the master token information is generated by the server on the basis of success in verification of the user login information, and the master token information comprises an account ID used for identifying the specified account; receive the master token information from the server, and log in to the corresponding specified account on the basis of the account ID in the master token information; and send the master token information to a slave device, so that the slave device sends an automatic login request to the server on the basis of the master token information to request slave token information used for login and logs in to the corresponding specified account on the basis of the account ID in the slave token information, the slave device being in a pairing relationship with the master device.

Description

终端设备、服务器及多设备协同登录方法Terminal device, server and multi-device cooperative login method
本申请要求2021年8月11日提交的申请号为202110917713.4和2021年9月17日提交的申请号为202111093415.4的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This application claims priority to Chinese patent applications filed on August 11, 2021 with application numbers 202110917713.4 and 202111093415.4 filed on September 17, 2021, the entire contents of which are incorporated by reference into this disclosure.
技术领域technical field
本申请涉及设备协同登录技术领域,尤其涉及终端设备、服务器及多设备协同登录方法。The present application relates to the technical field of device cooperative login, and in particular to a terminal device, a server and a multi-device cooperative login method.
背景技术Background technique
随着终端设备的普及,用户的家庭中可能存在多个终端设备,如同时存在遥控器、电视、冰箱和空调等设备。在家居中,可以通过物联网模块将家中的各种终端设备,如照明设备、家电设备、安防设备等与服务器进行连接,用户通过移动端即可实现家电控制、照明控制、防盗报警等多种功能。With the popularization of terminal devices, there may be multiple terminal devices in a user's home, such as remote controllers, televisions, refrigerators, and air conditioners. In the home, various terminal devices in the home, such as lighting equipment, home appliances, security equipment, etc., can be connected to the server through the IoT module, and users can realize home appliance control, lighting control, anti-theft alarm, etc. through the mobile terminal Function.
为了获得丰富的功能体验,每个设备均需要登录用户账号后方可达到最佳的使用需求。In order to obtain a rich functional experience, each device needs to log in to the user account to achieve the best use requirements.
目前在家庭中,在用户想要操控某个终端设备时,可通过向智能音箱发送语音指令,智能音箱将语音指令发送至服务器,服务器根据语音指令控制相应的终端设备。At present, in the home, when the user wants to control a terminal device, he can send a voice command to the smart speaker, and the smart speaker sends the voice command to the server, and the server controls the corresponding terminal device according to the voice command.
发明内容Contents of the invention
根据本申请一些实施例,提供一种终端设备,包括控制器,被配置为:接收用户输入的用户登录信息而使所述终端设备用作主设备,所述用户登录信息对应于指定账号;基于用户登录信息而向服务器发送账号登录请求以请求用于登录的主令牌信息,所述主令牌信息是所述服务器基于对所述用户登录信息的校验通过而产生的,所述主令牌信息包括用于标识所述指定账号的账号ID;从所述服务器接收所述主令牌信息,以及,基于所述主令牌信息中的账号ID登录对应的指定账号;将所述主令牌信息发送至从设备,以使得从设备基于主令牌信息而向服务器发送自动登录请求以请求用于登录的从令牌信息以及基于从令牌信息中的账号ID登录对应的指定账号,所述从设备与所述主设备处于配对关系。According to some embodiments of the present application, there is provided a terminal device, including a controller configured to: receive user login information input by a user to make the terminal device act as a master device, the user login information corresponds to a specified account; based on User login information and send an account login request to the server to request the primary token information for login, the primary token information is generated by the server based on the verification of the user login information, the primary token The card information includes an account ID for identifying the specified account; receiving the primary token information from the server, and logging into the corresponding specified account based on the account ID in the primary token information; The card information is sent to the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request the slave token information for login and the corresponding specified account based on the account ID in the slave token information, so The slave device is in a pairing relationship with the master device.
根据本申请一些实施例,提供一种终端设备,包括控制器,被配置为:接收主设备在基于用户输入的用户登录信息登录指定账号后发送的主令牌信息而使所述终端设备用作从设备,所述主令牌信息是所述服务器基于对所述主设备发送的所述用户登录信息的校验通过而产生并发送给所述主设备的,所述主令牌信息包括用于标识所述指定账号的账号ID;基于所述主令牌信息而向所述服务器发送自动登录请求以请求用于登录的从令牌信息,所述从令牌信息是所述服务器基于对主令牌信息的校验通过而产生的,所述从令牌信息包括所述账号ID;从所述服务器接收所述从令牌信息,基于所述从令牌信息中的账号ID,登录对应的指定账号。According to some embodiments of the present application, there is provided a terminal device, including a controller configured to: receive the main token information sent by the main device after logging in to a specified account based on the user login information input by the user, so that the terminal device can be used as From the device, the master token information is generated by the server based on the verification of the user login information sent by the master device and sent to the master device, and the master token information includes information for Identifying the account ID of the specified account; sending an automatic login request to the server based on the primary token information to request secondary token information for logging in, the secondary token information being the information obtained by the server based on the primary token information The verification of the card information is generated by passing the verification, and the slave token information includes the account ID; receiving the slave token information from the server, based on the account ID in the slave token information, logging in to the corresponding specified account.
根据本申请一些实施例,提供一种多设备协同登录方法,应用于主设备,其中,所述方法包括:接收用户输入的用户登录信息,所述用户登录信息对应于指定账号;基于用户登录信息而向服务器发送账号登录请求以请求用于登录的主令牌信息,所述主令牌信息是所述服务器基于对所述用户登录信息的校验通过而产生的,所述主令牌信息包括用于标识所述指定账号的账号ID;从所述服务器接收所述主令牌信息,以及,基于所述主令牌信息中的账号ID登录对应的指定账号;将所述主令牌信息发送至从设备,以使得从设备基于主令牌信息而向服务器发送自动登录请求以请求用于登录的从令牌信息以及基于从令牌信息中的账号ID登录对应的指定账号,所述从设备与所述主设备处于配对关系。According to some embodiments of the present application, a multi-device cooperative login method is provided, which is applied to a master device, wherein the method includes: receiving user login information input by a user, the user login information corresponding to a specified account; An account login request is sent to the server to request primary token information for login, the primary token information is generated by the server based on the verification of the user login information, and the primary token information includes An account ID for identifying the specified account; receiving the primary token information from the server, and logging into a corresponding specified account based on the account ID in the primary token information; sending the primary token information To the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request the slave token information for login and log in the corresponding specified account based on the account ID in the slave token information, the slave device is in a pairing relationship with the master device.
根据本申请一些实施例,提供一种多设备协同登录方法,应用于从设备,其中,所述方法包括:接收主设备在基于用户输入的用户登录信息登录指定账号后发送的主令牌信息而使所述终端设备用作从设备,所述主令牌信息是所述服务器基于对所述主设备发送的所述用户登录信息的校验通过而产生并发送给所述主设备的,所述主令牌信息包括用于标识所述指定账号的账号ID;基于所述主令牌信息而向所述服务器发送自动登录请求以请求用于登录的从令牌信息,所述从令牌信息是所述服务器基于对主令牌信息的校验通过而产生的,所述从令牌信息包括所述账号ID;从所述服务器接收所述从令牌信息,基于所述从令牌信息中的账号ID,登录对应的指定账号。According to some embodiments of the present application, a multi-device cooperative login method is provided, which is applied to a slave device, wherein the method includes: receiving the master token information sent by the master device after logging in to a specified account based on the user login information input by the user; The terminal device is used as a slave device, the master token information is generated by the server based on the verification of the user login information sent by the master device and sent to the master device, the The primary token information includes an account ID for identifying the designated account; based on the primary token information, an automatic login request is sent to the server to request secondary token information for logging in, and the secondary token information is Generated by the server based on passing the verification of the primary token information, the secondary token information includes the account ID; receiving the secondary token information from the server, based on the secondary token information in the secondary token information Account ID, log in to the corresponding specified account.
根据本申请一些实施例,提供一种多设备协同登录方法,包括:第一终端设备接收用户输入的用户登录信息而使所述第一终端设备用作主设备,所述用户登录信息对应于指定账号;所述主设备基于用户登录信息而向服务器发送账号登录请求,以请求用于登录的主令牌信息;服务器响应于主设 备发送的携带用户登录信息的账号登录请求,对所述用户登录信息进行校验,以及,在校验通过后产生主令牌信息,所述主令牌信息包括用于标识所述指定账号的账号ID;服务器向所述主设备发送所述主令牌信息;主设备从所述服务器接收所述主令牌信息,以及,基于所述主令牌信息中的账号ID登录对应的指定账号;主设备发送所述主令牌信息;第二终端设备作为从设备而从主设备接收所述主令牌信;所述从设备基于所述主令牌信息而向所述服务器发送自动登录请求以请求用于登录的从令牌信息;服务器响应于从设备发送的自动登录请求,对所述自动登录请求中携带的主令牌信息进行校验,在校验通过后基于主令牌信息产生从令牌信息,并向所述从设备发送从令牌信息;从设备从所述服务器接收所述从令牌信息,基于所述从令牌信息中的账号ID,登录对应的指定账号。According to some embodiments of the present application, a multi-device cooperative login method is provided, including: a first terminal device receives user login information input by a user to make the first terminal device act as a master device, and the user login information corresponds to a specified account; the main device sends an account login request to the server based on the user login information to request primary token information for login; the server responds to the account login request carrying the user login information sent by the main device, Verify the information, and generate primary token information after the verification is passed, the primary token information includes an account ID for identifying the specified account; the server sends the primary token information to the primary device; The master device receives the master token information from the server, and logs in the corresponding designated account based on the account ID in the master token information; the master device sends the master token information; the second terminal device acts as a slave device And receive the master token letter from the master device; the slave device sends an automatic login request to the server based on the master token information to request the slave token information for logging in; the server responds to the slave token information sent from the device An automatic login request, verifying the primary token information carried in the automatic login request, generating secondary token information based on the primary token information after the verification is passed, and sending the secondary token information to the secondary device; The device receives the slave token information from the server, and logs in a corresponding designated account based on the account ID in the slave token information.
附图说明Description of drawings
图1为根据一些实施例的智能控制设备与控制装置之间操作场景的示意图;Fig. 1 is a schematic diagram of an operation scene between an intelligent control device and a control device according to some embodiments;
图2为根据一些实施例的智能控制设备200的硬件配置框图;FIG. 2 is a block diagram of a hardware configuration of an intelligent control device 200 according to some embodiments;
图3为根据一些实施例的控制设备100的硬件配置框图;FIG. 3 is a block diagram of a hardware configuration of a control device 100 according to some embodiments;
图4为根据一些实施例的智能控制设备200中软件配置图;Fig. 4 is a software configuration diagram in the intelligent control device 200 according to some embodiments;
图5为根据一些实施例的多设备建立配对关系的交互图;Fig. 5 is an interactive diagram of establishing a pairing relationship between multiple devices according to some embodiments;
图6为根据一些实施例的主设备执行的多设备协同登录方法的流程图;Fig. 6 is a flowchart of a multi-device coordinated login method performed by a master device according to some embodiments;
图7为根据一些实施例的多设备协同登录方法的交互图;Fig. 7 is an interaction diagram of a multi-device cooperative login method according to some embodiments;
图8为根据一些实施例的从设备执行的多设备协同登录方法的流程图;Fig. 8 is a flowchart of a multi-device cooperative login method performed by a slave device according to some embodiments;
图9为根据一些实施例的服务器执行的多设备协同登录方法的流程图;Fig. 9 is a flowchart of a multi-device cooperative login method performed by a server according to some embodiments;
图10为根据一些实施例的终端设备的应用场景图;Fig. 10 is an application scenario diagram of a terminal device according to some embodiments;
图11为根据一些实施例的终端设备的另一应用场景图;Fig. 11 is another application scenario diagram of a terminal device according to some embodiments;
图12为根据一些实施例的语音控制方法的流程示意图;Fig. 12 is a schematic flowchart of a voice control method according to some embodiments;
图13为根据一些实施例的筛选终端设备的流程示意图。Fig. 13 is a schematic flow diagram of screening terminal devices according to some embodiments.
具体实施方式Detailed ways
下面将结合本申请一些实施例中的附图,对本申请一些实施方式进行描述,显然,描述的一些实施例仅是本申请一部分实施例,而不是全部的实施例。Some embodiments of the present application will be described below with reference to the drawings in some embodiments of the present application. Apparently, some of the described embodiments are only some of the embodiments of the present application, not all of them.
图1为根据一些实施例的智能控制设备的使用场景。如图1所示,智能控制设备200可以是显示设备,还与服务器400进行数据通信,用户可通过智能设备300或控制装置100操作智能控制设备200。Fig. 1 is a usage scenario of an intelligent control device according to some embodiments. As shown in FIG. 1 , the intelligent control device 200 may be a display device, and also communicates with the server 400 , and the user may operate the intelligent control device 200 through the smart device 300 or the control device 100 .
在一些实施例中,控制装置100可以是遥控器,遥控器和智能控制设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式中的至少一种,通过无线或有线方式来控制智能控制设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等至少一种输入用户指令,来控制智能控制设备200。In some embodiments, the control device 100 may be a remote control, and the communication between the remote control and the intelligent control device includes at least one of infrared protocol communication, Bluetooth protocol communication, and other short-distance communication methods, and is controlled by wireless or wired Intelligent control device 200. The user can control the intelligent control device 200 by inputting at least one user instruction through buttons on the remote control, voice input, and control panel input.
在一些实施例中,智能设备300可以包括移动终端、平板电脑、计算机、笔记本电脑,AR/VR设备等中的任意一种。In some embodiments, the smart device 300 may include any one of a mobile terminal, a tablet computer, a computer, a notebook computer, an AR/VR device, and the like.
在一些实施例中,也可以使用智能设备300以控制智能控制设备200。例如,使用在智能设备上运行的应用程序控制智能控制设备200。在一些实施例中,也可以使用智能设备300和智能控制设备进行数据的通信。In some embodiments, the smart device 300 can also be used to control the smart control device 200 . For example, the smart control device 200 is controlled using an application program running on the smart device. In some embodiments, the smart device 300 and the smart control device may also be used for data communication.
在一些实施例中,智能控制设备200还可以采用除了控制装置100和智能设备300之外的方式进行控制,例如,可以通过智能控制设备200设备内部配置的获取语音指令的模块直接接收用户的语音指令控制,也可以通过智能控制设备200设备外部设置的语音控制装置来接收用户的语音指令控制。In some embodiments, the intelligent control device 200 can also be controlled in a manner other than the control device 100 and the intelligent device 300, for example, the voice instruction module configured inside the intelligent control device 200 can directly receive the user's voice The command control can also be controlled by receiving the user's voice command through the voice control device installed outside the intelligent control device 200 .
在一些实施例中,智能控制设备200还与服务器400进行数据通信。可允许智能控制设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可以向智能控制设备200提供各种内容和互动。In some embodiments, the intelligent control device 200 also performs data communication with the server 400 . The intelligent control device 200 can be allowed to communicate via local area network (LAN), wireless local area network (WLAN) and other networks. The server 400 may provide various contents and interactions to the smart control device 200 .
图2为根据一些实施例的控制装置100的硬件配置框图。如图2所示,控制装置100包括控制器110、通信接口130、用户输入/输出接口140、存储器、供电电源。控制装置100可接收用户的输入操作指令,且将操作指令转换为智能控制设备200可识别和响应的指令,起用用户与智能控制设备200之间交互中介作用。Fig. 2 is a block diagram of hardware configuration of the control device 100 according to some embodiments. As shown in FIG. 2 , the control device 100 includes a controller 110 , a communication interface 130 , a user input/output interface 140 , a memory, and a power supply. The control device 100 can receive the user's input operation instruction, and convert the operation instruction into an instruction that the intelligent control device 200 can recognize and respond to, and acts as an intermediary interaction between the user and the intelligent control device 200 .
在一些实施例中,通信接口130用于和外部通信,包含WIFI芯片,蓝牙模块,NFC或可替代模块中的至少一种。在一些实施例中,用户输入/输出接口140包含麦克风,触摸板,传感器,按键或 可替代模块中的至少一种。In some embodiments, the communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module. In some embodiments, the user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or an alternative module.
图3为根据一些实施例的智能控制设备200的硬件配置框图。参见图3,在一些实施例中,智能控制设备200包括调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、显示器260、音频输出接口285、存储器、供电电源、用户输入接口280中的至少一种。在一些实施例中,控制器包括中央处理器,视频处理器,音频处理器,图形处理器,RAM,ROM,用于输入/输出的第一接口至第n接口。Fig. 3 is a block diagram of a hardware configuration of an intelligent control device 200 according to some embodiments. 3, in some embodiments, the intelligent control device 200 includes a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 285, a memory, and a power supply , at least one of the user input interface 280 . In some embodiments, the controller includes a CPU, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input/output.
在一些实施例中,显示器260包括用于呈现画面的显示屏组件,以及驱动图像显示的驱动组件,用于接收源自控制器输出的图像信号,进行显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面等。在一些实施例中,显示器260可为液晶显示器、OLED显示器、以及投影显示器中的至少一种,还可以为一种投影装置和投影屏幕。In some embodiments, the display 260 includes a display screen component for presenting images, and a drive component for driving image display, for receiving image signals output from the controller, and displaying video content, image content, and menu manipulation interface. Components and user manipulation of the UI interface, etc. In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
在一些实施例中,控制器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在控制器250所在的主体设备的外置设备中,如外置机顶盒等。在一些实施例中,控制器250,通过存储在存储器上中各种软件控制程序,来控制智能控制设备的工作和响应用户的操作。控制器250控制智能控制设备200的整体操作。例如:响应于接收到用于选择在显示器260上显示UI对象的用户命令,控制器250便可以执行与由用户命令选择的对象有关的操作。In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different split devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box wait. In some embodiments, the controller 250 controls the work of the intelligent control device and responds to user operations by storing various software control programs in the memory. The controller 250 controls the overall operation of the smart control device 200 . For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
在一些实施例中,用户输入接口280,为可用于接收控制输入的接口(如:智能控制设备本体上的实体按键,或其他等)。In some embodiments, the user input interface 280 is an interface that can be used to receive control input (such as: physical buttons on the body of the smart control device, or others).
图4为根据一些实施例的智能控制设备200中软件配置图。参见图4,在一些实施例中,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。Fig. 4 is a software configuration diagram in the intelligent control device 200 according to some embodiments. Referring to Fig. 4, in some embodiments, the system is divided into four layers, from top to bottom are respectively the application (Applications) layer (abbreviated as "application layer"), application framework (Application Framework) layer (abbreviated as "framework layer") "), Android runtime (Android runtime) and system library layer (referred to as "system runtime layer"), and the kernel layer.
在一些实施例中,显示设备中配置操作系统,为了从该操作系统获得更丰富的功能体验,通常需要先登录系统账号。用户的家庭中可能存在多个终端设备,如同时存在智能遥控器、电视、冰箱和空调等设备。In some embodiments, an operating system is configured in the display device. In order to obtain a richer functional experience from the operating system, it is usually necessary to log in with a system account first. There may be multiple terminal devices in the user's home, such as smart remote controllers, TVs, refrigerators, and air conditioners.
为了获得丰富的功能体验,每个设备均需要登录用户账号。目前常采用的登录方式是每个设备均需要单独进行账号登录,例如,用户主动扫描每个设备上的二维码进行登录。这种SSO(单点登录)方式,需基于用户主动触发不同的设备登入账号。这种登录方式不够便利,导致登录效率低下,用户体验不好。In order to obtain a rich functional experience, each device needs to log in with a user account. At present, the commonly used login method is that each device needs to log in with an account separately, for example, the user actively scans the QR code on each device to log in. This SSO (single sign-on) method needs to be based on the user's initiative to trigger different devices to log in to the account. This login method is not convenient enough, resulting in low login efficiency and poor user experience.
为了提高用户体验,可以使家庭环境下的不同终端设备共享同一账号,在用户使用其中一个设备登录账号后,其余设备可以在无人为介入的情况下自动登录。因此,本申请一些实施例提供一种终端设备和服务器,其中多设备可以协同登录账号,即,在一个终端设备(例如显示设备,也可以是非显示设备)登录账号后,其他设备也自动登录上同一账号,在给用户提供便利的同时,也能提升用户的使用体验。在一些实施例中,其他设备也可以是显示设备,例如具有显示屏的各种设备,诸如电视、手机、冰箱等,或者也可以是非显示设备。用户可以只在一个设备上登录账号,根据用户自己定义的习惯,可以在自己想登录的设备上实现多设备自动登录账号,达到智能登录的同时又能提升用户交互体验。In order to improve user experience, different terminal devices in the home environment can share the same account. After the user uses one of the devices to log in to the account, the other devices can automatically log in without human intervention. Therefore, some embodiments of the present application provide a terminal device and a server, in which multiple devices can log in to an account cooperatively, that is, after a terminal device (such as a display device, or a non-display device) logs in to an account, other devices also automatically log in. The same account can not only provide convenience to users, but also improve user experience. In some embodiments, other devices may also be display devices, such as various devices with display screens, such as televisions, mobile phones, refrigerators, etc., or may also be non-display devices. Users can only log in to an account on one device, and according to the habits defined by the user, they can automatically log in to multiple devices on the device they want to log in to, achieving smart login and improving user interaction experience.
本申请实施例提供一种显示设备,如具有图1到图4配置的显示设备,该显示设备为主设备,即首先进行账号登录的设备。在另外一些实施方式中,显示设备可以作为从设备。该显示设备包括:显示器,被配置为呈现用户界面;与显示器连接的控制器。为实现多设备间的协同账号登录,家庭环境中的各个显示设备之间需先建立配对关系,为此,控制器被进一步配置为执行下述步骤:The embodiment of the present application provides a display device, such as the display device with the configurations shown in FIG. 1 to FIG. 4 , where the display device is a master device, that is, a device that performs account login first. In some other implementation manners, the display device may serve as a slave device. The display device includes: a display configured to present a user interface; and a controller connected to the display. In order to realize the collaborative account login between multiple devices, a pairing relationship needs to be established between each display device in the home environment. For this purpose, the controller is further configured to perform the following steps:
步骤一、启动本端配置的蓝牙模块。Step 1. Start the Bluetooth module configured on the local end.
在一些实施例中,在显示设备系统启动过程中,蓝牙模块会随着启动进程启动,在系统启动完成后才进行用户的登陆。In some embodiments, during the system startup process of the display device, the bluetooth module is started along with the startup process, and the user login is performed after the system startup is completed.
在一些实施例中,也可以在用户登陆后启动本端配置的蓝牙模块。在一些实施例中,一些终端显示设备会默认关闭蓝牙功能,因此终端显示设备可以在用户登陆前或者后的任一时间,通过设置菜单,选择开启蓝牙功能进而启动本端配置的蓝牙模块。In some embodiments, the bluetooth module configured at the local end may also be activated after the user logs in. In some embodiments, some terminal display devices will disable the Bluetooth function by default, so the terminal display device can choose to enable the Bluetooth function through the setting menu at any time before or after the user logs in, and then activate the Bluetooth module configured locally.
步骤二、基于蓝牙模块与从设备建立配对关系,以通过蓝牙模块与从设备进行数据传输,其中,从设备配置的蓝牙模块处于启动状态,从设备注册有监听令牌(token)事件,监听token事件用于实现从设备对主设备发送的token事件的监听。Step 2. Establish a pairing relationship with the slave device based on the Bluetooth module to transmit data with the slave device through the Bluetooth module. Wherein, the Bluetooth module configured from the device is in the startup state, and the slave device is registered with a monitoring token (token) event, and monitors the token The event is used to monitor the token event sent by the slave device to the master device.
家庭环境中协同登录的各个显示设备均配置有蓝牙模块,一般地,在物联网组网的状态下,蓝牙模块被配置为默认打开或强制性的必须打开,因此在各个显示设备初始化时,启动各自的蓝牙模块,各个显示设备之间通过蓝牙模块实现自身与其他设备的配对关系连接。在进行配对连接后,各个设备之间可以进行数据传输。数据传输包括通信数据传输和令牌数据传输,通信数据传输用于保 证各设备之间的通信,令牌数据传输可为从设备接收主设备发送的主令牌信息。Each display device for collaborative login in the home environment is equipped with a Bluetooth module. Generally, in the state of the Internet of Things network, the Bluetooth module is configured to be turned on by default or must be turned on forcibly. Therefore, when each display device is initialized, start Each display device has its own bluetooth module, and each display device realizes the pairing relation connection between itself and other devices through the bluetooth module. After the pairing connection is made, data transmission can be performed between each device. Data transmission includes communication data transmission and token data transmission. Communication data transmission is used to ensure communication between devices. Token data transmission can receive master token information sent by the master device from the device.
在一些实施例中,显示设备也可以根据需求手动打开或关闭蓝牙功能,在蓝牙功能关闭后,无法通过蓝牙模块和其他设备配对连接,在蓝牙功能开启后,可以通过蓝牙模块和其他设备配对连接。In some embodiments, the display device can also manually turn on or turn off the Bluetooth function according to requirements. After the Bluetooth function is turned off, it cannot be paired with other devices through the Bluetooth module. After the Bluetooth function is turned on, it can be paired with other devices through the Bluetooth module. .
多设备协同登录不仅可适用家庭环境中存在的各个显示设备,还可适用教室、商场等场所中存在的各个显示设备。各个显示设备满足距离连接要求,或者位于同一局域网中等条件即可。Multi-device collaborative login is applicable not only to various display devices in the home environment, but also to various display devices in classrooms, shopping malls and other places. Each display device meets the distance connection requirements, or is located in the same local area network.
图5为根据一些实施例的多设备建立配对关系的交互图。参见图5中(a)部分所示示例。Fig. 5 is an interaction diagram for establishing a pairing relationship between multiple devices according to some embodiments. See the example shown in part (a) of Figure 5.
S101、主设备为电视,从设备为魔方屏和冰箱屏,依次启动电视、魔方屏、冰箱屏的蓝牙模块。S101. The main device is a TV, and the slave devices are a Rubik's Cube screen and a refrigerator screen, and the Bluetooth modules of the TV, the Rubik's Cube screen, and the refrigerator screen are activated in sequence.
在上述示例中,魔方屏是一种具有显示屏和蓝牙模块的便携式终端设备,冰箱屏是指设置有显示屏幕和蓝牙模块的冰箱。In the above examples, the Rubik's Cube screen is a portable terminal device with a display screen and a Bluetooth module, and the refrigerator screen refers to a refrigerator equipped with a display screen and a Bluetooth module.
S102、通过各自的蓝牙模块,依次实现电视与魔方屏的蓝牙配对连接,电视与冰箱屏的蓝牙配对连接,魔方屏与冰箱屏的蓝牙配对连接。S102. Through the respective Bluetooth modules, the Bluetooth pairing connection between the TV and the Rubik's Cube screen, the Bluetooth pairing connection between the TV and the refrigerator screen, and the Bluetooth pairing connection between the Rubik's Cube screen and the refrigerator screen are sequentially realized.
S103、在完成多设备间的配对关系连接后,各设备响应于配对连接的建立,为连接的每个显示设备分别注册监听token事件。S103. After completing the pairing relationship connection among the multiple devices, each device registers the monitoring token event for each connected display device in response to the establishment of the pairing connection.
监听token事件用于实现对主设备发送的token事件的监听,token事件可为主设备发送的主令牌信息。Monitoring the token event is used to monitor the token event sent by the master device, and the token event can be the master token information sent by the master device.
在一些实施例中,在家庭环境中,基于用户输入而进行账号登录的显示设备为主设备,而其余通过主设备的登录而实现自动登录功能的显示设备为从设备。In some embodiments, in a home environment, the display device that performs account login based on user input is the master device, and the remaining display devices that implement the automatic login function through the login of the master device are slave devices.
在一些实施例中,为提升系统性能,仅保留从设备对主设备token事件的监听,例如,如果用户选择电视作为主设备进行最先的账号登录,则将电视的监听token事件取消,魔方屏与冰箱屏的监听token事件保留,即主设备不处于监听状态,其他从设备均处于监听状态。未处于监听状态的主设备具有接收令牌数据和发送令牌数据的功能,处于监听状态的从设备只具有接收令牌数据的功能,而不具有发送令牌数据的功能,其中通信数据可正常传输。In some embodiments, in order to improve system performance, only the monitoring of the token event of the master device by the slave device is reserved. For example, if the user selects the TV as the master device to log in the first account, the monitor token event of the TV is canceled, and the Rubik’s Cube screen The monitoring token event of the refrigerator screen is reserved, that is, the master device is not in the monitoring state, and other slave devices are in the monitoring state. The master device that is not in the listening state has the function of receiving token data and sending token data, and the slave device in the listening state only has the function of receiving token data, but not the function of sending token data, and the communication data can be normal transmission.
从设备在接收到主设备发送的主令牌信息登录对应账号后,不再向其他处于连接状态的设备发送令牌信息,而可以发送设备间用于实现蓝牙连接等相关的数据。处于监听状态的从设备与其他设备进行蓝牙连接不受影响,例如,从家庭环境中新启动一台显示设备,且该设备的蓝牙模块处于启动状态,则处于监听状态的从设备仍可与该新设备进行蓝牙连接。After receiving the master token information sent by the master device to log in to the corresponding account, the slave device no longer sends token information to other connected devices, but can send related data for Bluetooth connection between devices. The Bluetooth connection between the slave device in the listening state and other devices will not be affected. For example, if a new display device is started from the home environment, and the Bluetooth module of the device is activated, the slave device in the listening state can still communicate with the display device. The new device makes a Bluetooth connection.
由于其中一个设备登录账号后会向其他已配对的设备发送主令牌信息,因此,将处于监听状态的从设备只配置接收令牌数据和发送/接收通信数据的功能,而不配置发送令牌数据的功能,可以避免其中一个从设备在接收到主设备发送的主令牌信息实现账号登录后,再向其他从设备发送主令牌信息,进而可以避免出现数据传输混乱,影响其他从设备的账号登录效率。也就是说,每个从设备可以响应最先登录账号的主设备发送的主令牌信息和通信数据,以及,响应其他从设备发送的通信数据,而无法向其他设备发送令牌信息。Since one of the devices will send master token information to other paired devices after logging in to the account, the slave device in the listening state is only configured to receive token data and send/receive communication data functions, but not to send tokens The data function can prevent one of the slave devices from sending the master token information to other slave devices after receiving the master token information sent by the master device to achieve account login, thereby avoiding data transmission confusion and affecting other slave devices. Account login efficiency. That is to say, each slave device can respond to the master token information and communication data sent by the master device that logged in the account first, and respond to the communication data sent by other slave devices, but cannot send token information to other devices.
在一些实施例中,如果上述三个设备(电视、魔方屏与冰箱屏)在均未登录某一账号的前提下,该三个设备在启动蓝牙模块并相互之间进行蓝牙配对连接之后,均为该三个设备分别注册监听token事件,三个设备之间相互监听。此时,三个设备之间的数据传输仅为正常的通信数据。而如果某一个设备优先进行账号登录,被确定为主设备,则该主设备的监听token事件取消,切换为不处于监听状态。在此状态下,该主设备同时具有通信数据和令牌数据的传输功能。而其余两个设备的监听token事件保留,被确定为从设备,均继续处于监听状态,该两个从设备仅具有通信数据传输功能。因此,服务器可基于监听token事件的状态变化,来确定哪一个设备为优先登录账号的主设备,以及,告知其他设备已存在一个登录账号的主设备。In some embodiments, if the above-mentioned three devices (TV, Rubik's cube screen and refrigerator screen) are not logged into a certain account, after the three devices start the Bluetooth module and perform Bluetooth pairing and connection with each other, all Register and monitor token events for the three devices respectively, and the three devices monitor each other. At this point, the data transmission between the three devices is only normal communication data. However, if a certain device is prioritized for account login and is determined to be the master device, the monitoring token event of the master device will be canceled and switched to the non-monitoring state. In this state, the master device has the function of transmitting communication data and token data at the same time. The monitoring token events of the other two devices are reserved, and they are determined to be slave devices, and both continue to be in the monitoring state. The two slave devices only have the function of communication data transmission. Therefore, the server can determine which device is the master device of the priority login account based on monitoring the state change of the token event, and inform other devices that there is already a master device of the login account.
在一些实施例中,各个显示设备的监听状态可根据显示设备本身的身份而进行实时切换。例如,在显示设备作为主设备时,则该显示设备为未处于监听状态;在显示设备作为从设备时,则该显示设备为处于监听状态。In some embodiments, the listening status of each display device can be switched in real time according to the identity of the display device itself. For example, when the display device is the master device, the display device is not in the listening state; when the display device is the slave device, the display device is in the listening state.
在一些实施例中,在各个显示设备通过各自的蓝牙模块实现配对连接后,用户即可在其中一个显示设备上优先进行账号登录,而其余显示设备则可以自动登录,实现多设备协同登录账号的目的。In some embodiments, after each display device is paired and connected through its respective Bluetooth module, the user can preferentially log in the account on one of the display devices, while the other display devices can log in automatically, realizing the cooperative login account of multiple devices Purpose.
在一些实施例中,在各个显示设备通过各自的蓝牙模块实现配对连接后,可以根据一个显示设备上的账号登录信息,自动登录其余显示设备,实现多设备协同登录账号的目的。例如,在各个显示设备未开启蓝牙模块,即未建立配对连接时,如果某一个显示设备优先登录账号,而后再开启蓝牙模块与其他设备建立配对连接之后,该优先登录账号的主设备仍可基于账号登录信息向其他从设备发送令牌信息,便于各从设备实现自动登录。即在某一显示设备先登录账号而后再开启蓝牙配对的场景下,其他未登录账号的从设备仍可实现自动登录。In some embodiments, after each display device is paired and connected through its own Bluetooth module, it can automatically log in to other display devices according to the account login information on one display device, so as to realize the purpose of multi-device cooperative login account. For example, when each display device does not turn on the Bluetooth module, that is, when no pairing connection is established, if a certain display device has a priority login account, and then turns on the Bluetooth module to establish a pairing connection with other devices, the main device of the priority login account can still be based on The account login information sends token information to other slave devices, so that each slave device can automatically log in. That is to say, in the scenario where a certain display device logs in the account first and then turns on Bluetooth pairing, other slave devices that have not logged in the account can still achieve automatic login.
图6为根据一些实施例的主设备执行的多设备协同登录方法的流程图;图7为根据一些实施例的多设备协同登录方法的交互图。具体地,在完成配对连接后,各个显示设备实现多设备协同登录 账号,即在执行图6和图7所示的多设备协同登录方法时,主设备中的控制器被配置为执行下述步骤:Fig. 6 is a flowchart of a multi-device coordinated login method performed by a master device according to some embodiments; Fig. 7 is an interaction diagram of a multi-device coordinated login method according to some embodiments. Specifically, after the pairing connection is completed, each display device realizes the multi-device cooperative login account, that is, when performing the multi-device cooperative login method shown in FIG. 6 and FIG. 7, the controller in the main device is configured to perform the following steps: :
S11、接收用户输入的用户登录信息,所述用户登录信息对应于指定账号,基于用户登录信息而向服务器发送账号登录请求以请求用于登录的主令牌信息,所述主令牌信息是所述服务器基于对所述用户登录信息的校验通过而产生的,所述主令牌信息包括用于标识所述指定账号的账号ID。当所述服务器确定所述登录信息中的用户名和密码与所存储的与所述主设备ID对应的注册用户名和注册密码一致时,对所述用户登录信息的校验通过。S11. Receive user login information input by the user, the user login information corresponds to a specified account, and send an account login request to the server based on the user login information to request primary token information for login, and the primary token information is the specified account. generated by the server based on passing the verification of the user login information, and the primary token information includes an account ID used to identify the specified account. When the server determines that the username and password in the login information are consistent with the stored registered username and password corresponding to the main device ID, the verification of the user login information passes.
在家庭环境中,通常会存在多个显示设备,用户可选择其中一个显示设备作为首先登录账号的主设备。In a home environment, there are usually multiple display devices, and the user can select one of the display devices as the primary device for first logging in to the account.
S201、主设备实现账号登录的一种可行方式为由主设备的显示器中呈现登录二维码,用户通过智能终端扫描显示器中的登录二维码后,在智能终端上显示登录界面。S201. A feasible way for the main device to implement account login is to display a login QR code on the display of the main device, and after the user scans the login QR code on the display through the smart terminal, a login interface is displayed on the smart terminal.
登录界面中呈现用户名输入框和密码输入框,用户在用户名输入框中输入用户名,在密码输入框中输入密码,得到用户登录信息,以进行主设备的账号登录。其中,智能终端可为手机、Pad等具有扫描功能的设备。在一些实施例中,登录成功之后可以在显示器上弹出登录成功界面,提示例如账号A登录成功。主设备实现账号登录的另一种可行方式为直接在主设备的显示器中呈现登录界面,用户输入用户名和密码后,得到用户登录信息,以进行主设备的账号登录。该两种实现用户输入用户登录信息的方式,可根据实际情况而定,也可采用其他输入方式,此处不进行限定。The login interface presents a user name input box and a password input box. The user enters a user name in the user name input box and a password in the password input box to obtain user login information for account login of the master device. Wherein, the smart terminal may be a device with a scanning function such as a mobile phone and a Pad. In some embodiments, after successful login, a successful login interface may pop up on the display, prompting, for example, that account A has successfully logged in. Another feasible way for the main device to implement account login is to directly present the login interface on the display of the main device. After the user enters the user name and password, the user login information is obtained to log in the account of the main device. The two ways for the user to input the user login information may be determined according to actual conditions, and other input ways may also be used, which are not limited here.
参见图7中(a)部分所示内容,用户登录信息包括用户名和密码等,用户登录信息对应一个指定账号。用户输入用户登录信息后,由主设备向服务器请求校验用户登录信息,在校验通过后,方可实现账号登录。Referring to the content shown in part (a) of FIG. 7, the user login information includes a user name and password, etc., and the user login information corresponds to a designated account. After the user enters the user login information, the main device requests the server to verify the user login information, and the account login can only be realized after the verification is passed.
此时,主设备基于用户输入的用户登录信息生成账号登录请求,并发送至服务器,以访问服务器的登录(login)接口。At this time, the main device generates an account login request based on the user login information input by the user, and sends it to the server to access a login (login) interface of the server.
S202、服务器在接收到主设备发送的账号登录请求后,即可对账号登录请求中携带的用户登录信息进行校验。S202. After receiving the account login request sent by the master device, the server can verify the user login information carried in the account login request.
账号登录请求携带用户登录信息、用户ID和设备ID(此即,主设备ID),用户ID用于标识用户,设备ID用于标识实现账号登录的设备。The account login request carries user login information, a user ID and a device ID (that is, the main device ID), the user ID is used to identify the user, and the device ID is used to identify the device that implements account login.
服务器中的数据库存储有用户在注册账号时产生的账号信息,账号信息包括注册用户名和注册密码。因此,在校验时,服务器将用户登录信息中的用户名和密码,与服务器配置的数据库中存储的注册用户名和注册密码进行对比,如果一致,说明用户输入的用户名和密码准确,可进行账号登录。The database in the server stores account information generated when the user registers an account, and the account information includes a registered user name and a registered password. Therefore, when verifying, the server compares the user name and password in the user login information with the registered user name and password stored in the database configured by the server. If they are consistent, it means that the user name and password entered by the user are correct and the account can be logged in. .
在用户登录信息校验通过后,为便于主设备端进行账号登录,服务器随即产生对应的主令牌信息(token信息),Token为一串数字,包含用户ID、设备ID、账号ID、token创建时间和时长。利用主令牌信息,主设备和从设备可以实现登录用户登录信息对应的指定账号,其中,用户ID用于标识用户,设备ID用于标识实现账号登录的设备,账号ID用于标识账号(用户名和密码),token创建时间为令牌生效的时间起算点,时长为令牌的有效时长。例如,token创建时间为2021年9月1日,对应的令牌时长为3天,则有效期为2021年9月1日至2021年9月3日有效。其中,token创建时间从服务器校验用户登录信息通过时起算。After the user login information verification is passed, in order to facilitate account login on the main device side, the server will generate corresponding main token information (token information). Token is a string of numbers, including user ID, device ID, account ID, and token creation. time and duration. Using the master token information, the master device and the slave device can realize the specified account corresponding to the login user login information, where the user ID is used to identify the user, the device ID is used to identify the device that implements the account login, and the account ID is used to identify the account (user name and password), the token creation time is the starting point when the token becomes effective, and the duration is the effective duration of the token. For example, if the token was created on September 1, 2021, and the corresponding token duration is 3 days, then the validity period is from September 1, 2021 to September 3, 2021. Among them, the token creation time is calculated from the time when the server verifies the user login information.
S203、服务器在基于主设备发送的账号登录请求,对用户登录信息进行校验并通过后,获取账号登录请求中携带的用户ID和设备ID,从服务器数据库中获取账号信息对应的账号ID,以及生成token创建时间和时长,基于用户ID、设备ID、账号ID、token创建时间和时长,随即产生主令牌信息,并返回至主设备,实现主设备的账号登录。S203. After verifying and passing the user login information based on the account login request sent by the master device, the server obtains the user ID and device ID carried in the account login request, obtains the account ID corresponding to the account information from the server database, and Generate the token creation time and duration, based on the user ID, device ID, account ID, token creation time and duration, then generate the main token information, and return it to the main device to realize the account login of the main device.
在一些实施例中,如果在主设备进行账号登录后,存在一个新开启蓝牙模块进行配对连接的新设备,则在与新设备配对连接之后,响应于蓝牙连接了新的设备,主设备根据已登录账号的信息,请求服务器返回主令牌信息,此时的主令牌信息为仅更新token创建时间和时长的信息,其余内容不变。In some embodiments, if there is a new device with a newly turned on Bluetooth module for pairing connection after the main device logs in with the account, then after pairing and connection with the new device, in response to the Bluetooth connection of the new device, the main device according to the established Login account information, and request the server to return the primary token information. At this time, the primary token information only updates the token creation time and duration, and the rest remains unchanged.
S12、从服务器接收主令牌信息,以及基于主令牌信息中的账号ID登录对应的指定账号。S12. Receive primary token information from the server, and log in to a corresponding specified account based on the account ID in the primary token information.
服务器接收到主设备的请求后,可以通过HTTP接口请求把主令牌信息返回给主设备,由于HTTP请求的唯一性可确保只有请求方收到返回信息。主设备接收主令牌信息,当确定主令牌信息中包括的设备ID与主设备的设备ID一致时,主设备可基于主令牌信息中的账号ID进行账号登录。After the server receives the request from the master device, it can request to return the master token information to the master device through the HTTP interface. Due to the uniqueness of the HTTP request, only the requester can receive the returned information. The master device receives the master token information, and when it is determined that the device ID included in the master token information is consistent with the device ID of the master device, the master device can perform account login based on the account ID in the master token information.
S13、将所述主令牌信息发送至从设备,以使得从设备基于主令牌信息而向服务器发送自动登录请求以请求用于登录的从令牌信息以及基于从令牌信息中的账号ID登录对应的指定账号,所述从设备与所述主设备处于配对关系。S13. Send the master token information to the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request the slave token information for login and the account ID based on the slave token information Log in the corresponding designated account, and the slave device is in a pairing relationship with the master device.
在家庭环境中,其中一个显示设备最先进行账号登录后,为实现家庭环境中其他显示设备的账 号自动登录,可由主设备在实现指定账号登录后或者和其他从设备新建立蓝牙连接后,将用于实现指定账号登录的主令牌信息通过蓝牙模块自动发送至各个从设备,从设备是指家庭环境中除最先登录指定账号以外的其他显示设备。In the home environment, after one of the display devices first logs in with an account, in order to automatically log in the accounts of other display devices in the home environment, the master device can log in with the specified account or establish a new Bluetooth connection with other slave devices. The main token information used to realize the login of the specified account is automatically sent to each slave device through the Bluetooth module. The slave device refers to other display devices in the home environment except for the first login to the specified account.
如果家庭环境中存在五个显示设备,用户选择显示设备A为主设备进行账号登录,则在显示设备A完成账号登录后,由显示设备A通过蓝牙模块分别向显示设备B、显示设备C、显示设备D和显示设备E发送主令牌信息,其中,显示设备B、显示设备C、显示设备D和显示设备E均为从设备。If there are five display devices in the home environment, and the user selects display device A as the main device to log in with an account, then after display device A completes the account login, display device A sends display devices to display device B, display device C, and display device respectively through the Bluetooth module. Device D and display device E send master token information, wherein display device B, display device C, display device D, and display device E are all slave devices.
各个从设备在通过蓝牙模块接收到主设备发送的主令牌信息后,即可基于主令牌信息向服务器请求从令牌信息。具体地,从设备基于主令牌信息和对应于所述从设备的从设备ID生成自动登录请求发送至服务器以请求所述从令牌信息的;服务器收到从设备发送的主令牌信息后对主令牌信息进行验证,验证通过后根据主令牌信息和从设备ID产生从令牌信息并发送给从设备。从设备基于从令牌信息中的账号ID登录用户登录信息对应的指定账号。此时,主设备和从设备登录同一指定账号,实现用户在一个设备上登录后,可以自动的在家庭的其他设备下登录,既方便用户登录的同时,也提升了用户的使用体验。After each slave device receives the master token information sent by the master device through the bluetooth module, it can request the slave token information from the server based on the master token information. Specifically, the slave device generates an automatic login request based on the master token information and the slave device ID corresponding to the slave device and sends it to the server to request the slave token information; after the server receives the master token information sent by the slave device Verify the primary token information, and generate secondary token information according to the primary token information and the secondary device ID and send it to the secondary device after the verification is passed. The slave device logs in the specified account corresponding to the user login information based on the account ID in the slave token information. At this time, the master device and the slave device log in with the same designated account, so that after the user logs in on one device, he can automatically log in on other devices in the family, which is not only convenient for the user to log in, but also improves the user experience.
在本申请的一些实施例中,服务器对主令牌信息进行验证的过程包括:服务器接收到从设备发送的主令牌信息后,根据盐值解密出主令牌信息;从主令牌信息中获取主设备ID、账号ID、令牌创建时间、有效时长;确定主令牌信息是否过期,如果确定主令牌信息过期,则确定主令牌信息验证失败;如果确定主令牌信息未过期,则确定主令牌信息验证通过。In some embodiments of the present application, the process for the server to verify the primary token information includes: after the server receives the primary token information sent from the device, decrypts the primary token information according to the salt value; Obtain the main device ID, account ID, token creation time, and valid duration; determine whether the main token information has expired, if it is determined that the main token information has expired, then determine that the verification of the main token information has failed; if it is determined that the main token information has not expired, Then it is determined that the verification of the primary token information is passed.
主令牌信息和从令牌信息中的内容,除用户ID和账号ID一样之外,其余内容均不同,即设备ID、token创建时间和时长均会更新。从设备基于主设备发送的主令牌信息自动登录同一指定账号的具体实现过程可参照后续实施例提供的步骤S21至S23的内容。The contents of the master token information and the slave token information are different except that the user ID and account ID are the same, that is, the device ID, token creation time and duration will be updated. For a specific implementation process of the slave device automatically logging in to the same designated account based on the master token information sent by the master device, reference may be made to the contents of steps S21 to S23 provided in subsequent embodiments.
在一些实施例中,各个显示设备在完成一次账号登录后,在经历一段时间后,通常账号会自动退出,例如,token有效期失效,那么在用户后续使用时,需要相应的显示设备重新登录账号。In some embodiments, after each display device completes an account login, the account will usually log out automatically after a period of time. For example, if the validity period of the token expires, then the user needs to log in to the account again on the corresponding display device during subsequent use.
而显示设备重新登录的账号可为前一次登录的指定账号,也可为当前需要登录的第二账号。例如,如果某个从设备登录过指定账号,而在后续登录中,该从设备切换登录第二账号,则需要通知登录指定账号的主设备,告知该主设备无需再向该从设备发送指定账号对应的主令牌信息。The account for re-login of the display device may be the specified account for the previous login, or the second account that needs to be logged in currently. For example, if a slave device has logged in a specified account, and in the subsequent login, the slave device switches to log in to the second account, it is necessary to notify the master device that logs in to the specified account, and inform the master device that it does not need to send the specified account to the slave device. Corresponding primary token information.
为此,在从设备切换登录账号时,控制器被进一步配置为执行下述步骤:To this end, when the login account is switched from the device, the controller is further configured to perform the following steps:
在从设备登录的账号为第二账号时,接收从设备产生的监听取消指令;When the account logged in from the device is the second account, receiving a monitoring cancel instruction generated by the device;
响应于监听取消指令,停止向从设备发送主令牌信息。In response to the listen cancel command, stop sending master token information to the slave device.
在从设备的登录账号由指定账号切换为第二账号时,该从设备会取消对登录指定账号的主设备的token事件监听,即从设备产生监听取消指令,并发送至登录指定账号的主设备。When the login account of the slave device is switched from the specified account to the second account, the slave device will cancel the token event monitoring of the master device that logs in to the specified account, that is, the slave device generates a monitoring cancel command and sends it to the master device that logs in to the specified account .
主设备接收到从设备发送的监听取消指令,则不再向该从设备发送用于登录指定账号的主令牌信息,以便该从设备接收登录第二账号的新主设备发送的主令牌信息。After the master device receives the monitoring cancellation instruction sent by the slave device, it will no longer send the master token information for logging in to the specified account to the slave device, so that the slave device can receive the master token information sent by the new master device logging in to the second account .
在一些实施例中,在第一轮登录过指定账号的主设备和从设备均需要重新登录账号的情况下,各个设备均处于监听状态。如果用户选择另一设备登录第二账号,则原登录指定账号的主设备由于在本轮未优先登录账号,因此,其不再作为主设备发送信息,而是切换作为从设备。此场景下,该新切换的从设备和其他从设备一起,响应本轮优先登录第二账号的设备发送的令牌信息,实现第二账号的登录。In some embodiments, when both the master device and the slave device that have logged in the specified account in the first round need to log in again, each device is in a monitoring state. If the user chooses another device to log in to the second account, the master device that originally logged into the specified account does not have priority to log in to the account in this round, so it no longer serves as the master device to send information, but switches to be a slave device. In this scenario, the newly switched slave device, together with other slave devices, responds to the token information sent by the device that preferentially logs in to the second account in this round, and realizes the login of the second account.
在一些实施例中,在第一轮主设备和从设备均已登录指定账号的情况下,如果用户操作任一个从设备输入用户登录信息以更换登录账号为第二账号,此时,该登录第二账号的从设备作为第二轮账号登录的主设备,其对第一轮主设备的监听状态取消,切换为未监听状态。在一些实施例中,该切换账号登录的新主设备(原第一轮的从设备)可以产生监听取消指令。由于此场景下会存在两个登录不同账号的主设备,因此,切换账号登录的第二轮新主设备(原第一轮的从设备)可以向第一轮的主设备发送监听取消指令,以便告知第一轮的主设备无需再向该新主设备发送第一轮的主令牌信息。在一些实施例中,该新主设备可以拒绝接收第一轮的主设备发送的主令牌信息。In some embodiments, when both the master device and the slave device have logged into the specified account in the first round, if the user operates any slave device to input user login information to replace the login account with the second account, at this time, the login The slave device of the second account is used as the master device for the second round of account login, and its monitoring state for the first round of the master device is canceled and switched to the non-monitoring state. In some embodiments, the new master device (the original first-round slave device) logged in with the switching account may generate a monitoring cancellation instruction. Since there will be two master devices logged in with different accounts in this scenario, the second round of new master devices (the original first round of slave devices) that switch accounts to log in can send a monitoring cancel command to the first round of master devices, so that Inform the master device of the first round that there is no need to send the master token information of the first round to the new master device. In some embodiments, the new master device may refuse to receive the master token information sent by the master device in the first round.
在登录第二账号场景下,其他从设备(第一轮中的其他从设备)仍会接收到新主设备发送的令牌信息,此时,可在从设备的显示屏中显示提示界面,供用户选择继续保持登录原指定账号的状态还是切换登录第二账号。如果某个从设备上产生登录第二账号的指令,则该从设备产生监听取消指令并发送至第一轮的主设备,取消对第一轮主设备的令牌信息的监听,此时,该从设备会监听第二轮的新主设备的令牌信息,实现第二账号的自动登录。如果某个从设备上产生继续保持登录原指定账号状态的指令,则该从设备产生监听取消指令并发送至第二轮的新主设备,取消对第二轮新主设备的令牌信息的监听,此时,该从设备会继续监听第一轮主设备的令牌信息,继续保持指定账号的登录状态。In the scenario of logging in to the second account, other slave devices (other slave devices in the first round) will still receive the token information sent by the new master device. At this time, a prompt interface can be displayed on the display screen of the slave device for The user chooses to continue to log in to the original designated account or switch to log in to the second account. If a slave device generates an instruction to log in to the second account, the slave device generates a monitoring cancellation command and sends it to the first round of the master device to cancel the monitoring of the token information of the first round of the master device. At this time, the The slave device will monitor the token information of the new master device in the second round to realize the automatic login of the second account. If a slave device generates an instruction to continue to log in to the original designated account status, the slave device generates a monitoring cancellation command and sends it to the new master device in the second round, canceling the monitoring of the token information of the new master device in the second round , at this time, the slave device will continue to monitor the token information of the master device in the first round, and continue to maintain the login status of the specified account.
在一些实施例中,登录第二账号的显示设备可为家庭环境中的其他显示设备。例如,在第一轮 账号登录时,显示设备A为主设备,显示设备B和显示设备C为从设备,该三个显示设备均登录有指定账号。In some embodiments, the display device logged into the second account may be other display devices in the home environment. For example, in the first round of account login, display device A is the master device, display device B and display device C are slave devices, and the three display devices are all registered with the specified account.
由于各个设备可能会存在重新登录账号的情况,那么在第二轮账号登录时,用户选择显示设备B登录第二账号,则显示设备B的身份由原来的从设备转变为主设备,而显示设备A和显示设备C则为从设备。此时,由属于主设备身份的显示设备B向从设备(显示设备A和显示设备C)发送用于登录第二账号的令牌信息,便于显示设备A和显示设备C登录第二账号。Since each device may have to re-login to the account, in the second round of account login, the user selects display device B to log in to the second account, and the identity of display device B changes from the original slave device to the master device, while the display device A and display device C are slave devices. At this time, display device B belonging to the identity of the master device sends token information for logging in the second account to the slave devices (display device A and display device C), so that display device A and display device C log in to the second account.
在显示设备B登录第二账号后,其身份由原来的从设备转变为主设备,因此,为便于显示设备B可向其余从设备发送主令牌信息,则将显示设备B的监听token事件取消,处于未监听状态,使得显示设备B具有接收/发送令牌数据的功能。再将显示设备A的监听token事件恢复,处于监听状态,使得显示设备A只具有接收令牌数据和接收/发送通信数据的功能,而不具有发送令牌数据的功能。此时,显示设备B未处于监听状态,显示设备A和显示设备C均处于监听状态。After the display device B logs in to the second account, its identity changes from the original slave device to the master device. Therefore, in order to facilitate the display device B to send the master token information to the remaining slave devices, the monitoring token event of the display device B is cancelled. , in the unlistened state, so that the display device B has the function of receiving/sending token data. Then restore the monitoring token event of the display device A, and it is in the monitoring state, so that the display device A only has the function of receiving token data and receiving/sending communication data, but not the function of sending token data. At this time, the display device B is not in the listening state, and both the display device A and the display device C are in the listening state.
作为从设备的显示设备C接收到作为第二轮主设备的显示设备B发送的主令牌信息后,如果操作显示设备C登录的账号也由原来的指定账号切换为第二账号,在发送登录账号切换后,显示设备C对应产生监听取消指令,并发送至原登录指定账号的显示设备A,告知原作为第一轮主设备的显示设备A,停止向原从设备(显示设备C)发送指定账号对应的主令牌信息。After the display device C as the slave device receives the master token information sent by the display device B as the master device in the second round, if the account logged in by operating the display device C is also switched from the original designated account to the second account, the login After the account is switched, the display device C correspondingly generates a monitoring cancel command, and sends it to the display device A that originally logged in with the specified account, and informs the display device A that was originally the master device of the first round, to stop sending the specified account to the original slave device (display device C) Corresponding primary token information.
在一些实施例中,登录第二账号的显示设备也可为原来的主设备,即原登录指定账号的主设备。此时,主设备和从设备的身份均为原来的配置情况,那么,在切换登录第二账号,可直接参照指定账号的登录过程,各个从设备无需取消监听token事件,即无需产生监听取消指令。在此过程中,主设备始终处于未监听状态,各个从设备始终处于监听状态。In some embodiments, the display device logged in with the second account may also be the original main device, that is, the main device originally logged in with the specified account. At this time, the identities of the master device and the slave device are the original configuration. Then, when switching to log in to the second account, you can directly refer to the login process of the specified account. Each slave device does not need to cancel the monitoring token event, that is, there is no need to generate a monitoring cancel command. . During this process, the master device is always in a non-monitoring state, and each slave device is always in a listening state.
本申请实施例提供的一种显示设备,在作为最先登录账号的主设备进行多设备协同登录账号时,基于用户输入的用户登录信息,生成账号登录请求,发送至服务器,并接收服务器在用户登录信息校验通过后产生的主令牌信息,登录主令牌信息中账号ID对应的指定账号,同时,自动将主令牌信息发送至具有配对关系的从设备,使得从设备基于主令牌信息向服务器请求从设备信息后,基于从设备信息中的账号ID登录同一指定账号。用户在其中一个显示设备上优先进行账号登录后,其余显示设备可以自动登录,无需用户手动登录,实现多设备协同登录账号的目的。在给用户提供便利的同时,提升用户交互体验。A display device provided in an embodiment of the present application generates an account login request based on the user login information input by the user when the master device that first logs in to the account performs multi-device collaborative login, sends it to the server, and receives the server's request for the user to log in to the account. The master token information generated after the login information verification is passed, logs in the specified account corresponding to the account ID in the master token information, and at the same time, automatically sends the master token information to the slave device with a pairing relationship, so that the slave device is based on the master token After the information requests the slave device information from the server, log in the same specified account based on the account ID in the slave device information. After the user first logs in the account on one of the display devices, the other display devices can log in automatically, without the need for the user to log in manually, achieving the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
根据一些实施例提供一种从设备执行的多设备协同登录方法。本申请实施例提供的一种显示设备,该显示设备为从设备,即基于主设备发送的主令牌信息执行自动登录账号的设备。该显示设备包括:显示器,被配置为呈现用户界面;与显示器连接的控制器,在从设备执行多设备协同登录方法时,控制器被配置为执行下述步骤:According to some embodiments, a multi-device cooperative login method performed by a slave device is provided. A display device provided in an embodiment of the present application is a slave device, that is, a device that performs automatic account login based on the master token information sent by the master device. The display device includes: a display configured to present a user interface; a controller connected to the display, and when the slave device executes a multi-device cooperative login method, the controller is configured to perform the following steps:
S21、接收主设备在基于用户输入的用户登录信息登录指定账号后发送的主令牌信息,主令牌信息是指主设备基于用户登录信息向服务器请求校验通过后由服务器产生的信息,所述主令牌信息包括用户ID、主设备ID、账号ID、令牌创建时间和时长。S21. Receive the main token information sent by the main device after logging in to the specified account based on the user login information input by the user. The main token information refers to the information generated by the server after the main device requests the server to pass the verification based on the user login information. The primary token information includes user ID, primary device ID, account ID, token creation time and duration.
在家庭环境中,各个显示设备之间通过各自的蓝牙模块实现配对连接。在进行账号登录时,用户选择其中一个显示设备作为最先登录账号的设备,则该设备为主设备。主设备在基于用户输入的用户登录信息登录指定账号(如账号A)时,会向服务器请求验证并接收服务器在验证通过后产生的主令牌信息,而后主设备基于主令牌信息登录指定账号,同时将主令牌信息自动发送至各个从设备。In a home environment, each display device is paired and connected through its own bluetooth module. During account login, if the user selects one of the display devices as the first device to log in the account, then the device is the master device. When the main device logs in to the specified account (such as account A) based on the user login information entered by the user, it will request verification from the server and receive the primary token information generated by the server after the verification is passed, and then the primary device logs in to the specified account based on the primary token information , while automatically sending the master token information to each slave device.
各个从设备在接收到主设备发送的主令牌信息后,即可基于主令牌信息自动登录对应的指定账号,使得从设备和主设备登录同一账号。After each slave device receives the master token information sent by the master device, it can automatically log in the corresponding designated account based on the master token information, so that the slave device and the master device log in to the same account.
S22、基于从设备ID和主令牌信息中的用户ID、主设备ID、账号ID、令牌创建时间和时长,生成自动登录请求,发送至服务器,自动登录请求用于指示服务器对从设备ID和主令牌信息进行校验,以及,在校验通过后基于主令牌信息产生从令牌信息,从令牌信息包括用户ID、账号ID、从设备ID、更新后的令牌创建时间和时长。S22. Based on the user ID, master device ID, account ID, token creation time and duration in the slave device ID and master token information, an automatic login request is generated and sent to the server. The automatic login request is used to instruct the server to verify the slave device ID Check with the primary token information, and generate secondary token information based on the primary token information after the verification is passed. The secondary token information includes user ID, account ID, secondary device ID, updated token creation time and duration.
由于家庭环境中的各个显示设备是通过蓝牙模块实现相互间的配对连接,而很多蓝牙设备的初始蓝牙密码一般是0000或1234,甚至有些蓝牙配对不需要密码,只需要长按就行,这样会出现其他用户的显示设备也通过自身的蓝牙模块连接到本端用户家庭环境物联网中,导致其他用户的显示设备也自动登录本端用户所使用的账号,造成信息泄漏。Since the various display devices in the home environment are paired and connected to each other through the Bluetooth module, and the initial Bluetooth password of many Bluetooth devices is generally 0000 or 1234, and even some Bluetooth pairing does not require a password, just long press it, this will appear The display devices of other users are also connected to the Internet of Things of the local user's home environment through their own Bluetooth modules, causing the display devices of other users to automatically log in to the account used by the local user, resulting in information leakage.
因此,从设备在接收到主设备发送的主令牌信息并进行账号登录时,需要向服务器进行信息校验,在校验通过后方可进行指定账号的登录。此时,从设备会将自身的从设备ID和主令牌信息中的用户ID、主设备ID、账号ID、令牌创建时间和时长,生成自动登录请求,并发送至服务器。Therefore, when the slave device receives the master token information sent by the master device and performs account login, it needs to verify the information with the server, and the specified account can be logged in only after the verification is passed. At this time, the slave device will generate an automatic login request with its own slave device ID and the user ID, master device ID, account ID, token creation time and duration in the master token information, and send it to the server.
服务器响应从设备发送的自动登录请求,对自动登录请求携带的从设备ID和主令牌信息进行校验。校验内容包括检查该从设备是否允许自动登录,要执行自动登录的从设备是否为预设设备,以及,主令牌信息是否有效。预设设备是指同一家庭环境中的显示设备,例如处于同一物联网中的显 示设备。这是因为处于同一物联网中电视设备一般是属于相同用户的。The server responds to the automatic login request sent by the slave device, and verifies the slave device ID and master token information carried in the automatic login request. The verification content includes checking whether the slave device allows automatic login, whether the slave device to perform automatic login is a preset device, and whether the master token information is valid. Preset devices refer to display devices in the same home environment, such as display devices in the same Internet of Things. This is because TV devices in the same Internet of Things generally belong to the same user.
在一些实施例中,预设设备还可以是和账号进行绑定的设备,例如根据从设备ID和主令牌信息中的账号信息,在预先存储的账号和设备的映射关系中查询从设备ID和账号信息是否存在绑定关系,如果存在,则进行主令牌有效性的判断,如果不存在,则拒绝该设备的自动登陆。这样用户设备可以通过初次登陆或他端设置来进行账号和设备ID的绑定,进而可以在蓝牙连接的局域通信网络中,存在非用户设备的时候,也可以避免非用户设备自动登陆用户的账号。In some embodiments, the preset device can also be a device bound to an account, for example, according to the account information in the slave device ID and the master token information, query the slave device ID in the pre-stored mapping relationship between the account and the device Whether there is a binding relationship with the account information, if it exists, the validity of the primary token is judged, and if it does not exist, the automatic login of the device is rejected. In this way, the user device can bind the account and the device ID through the initial login or other terminal settings, and then in the local area communication network connected by Bluetooth, when there is a non-user device, it can also prevent the non-user device from automatically logging in to the user. account.
主令牌信息中包括用户ID、主设备ID、账号ID、token创建时间和时长,主设备ID用于标识主令牌信息的来源。因此,可基于用户ID和账号ID来检查该从设备是否允许自动登录,基于从设备ID判断当前需要进行自动账号登录的从设备是否为预设设备,基于token创建时间和时长来判断主令牌信息是否有效。上述三个判断过程均需在前一个判断过程校验通过后方可执行下一个判断过程,在三个判断过程均校验通过后,服务器才会生成从令牌信息。The main token information includes user ID, main device ID, account ID, token creation time and duration, and the main device ID is used to identify the source of the main token information. Therefore, it is possible to check whether the slave device allows automatic login based on the user ID and account ID, judge whether the slave device currently requiring automatic account login is a preset device based on the slave device ID, and judge the master token based on the token creation time and duration information is valid. The above three judging processes need to pass the verification of the previous judging process before the next judging process can be executed, and the server will generate slave token information only after the verification of the three judging processes is passed.
在一些实施例中,服务器在校验当前请求进行自动账号登录的从设备是否为预设设备时,还可采用另一方法:从设备上传主令牌信息的时候还需要从设备ID,在服务器校验出该从设备可实现自动账号登录功能后,服务器从主令牌信息中基于账号ID解析出账号信息,然后获取账号信息绑定或登陆过的用户设备列表。判断从设备ID是否在设备列表中,如果在,则校验通过,再进行主令牌信息有效性的校验;如果不在,则拒绝该从设备执行自动登陆过程。基于从设备ID与登录过账号的设备列表进行比对,如果该从设备是其他用户的设备,则由于其他用户的设备原本无法登录该账号,使得设备列表中不会存在其他用户的设备的标识,因此,对比不通过,可以避免外人设备蓝牙连接后导致的自动登陆账号。另外,为使得设备列表中存在家庭物联网中各个显示设备的标识,在一些实施例中,用户可以在新设备中主动登陆一次账号,以便在服务器中将新设备的设备ID加入账号对应的设备列表中,或者用户可以通过操作主设备以选择新设备的设备ID加入到用户设备列表中。In some embodiments, when the server checks whether the slave device currently requesting automatic account login is a preset device, another method can also be used: when the slave device uploads the master token information, the slave device ID is also required, and the server After verifying that the slave device can realize the automatic account login function, the server parses out the account information based on the account ID from the master token information, and then obtains a list of user devices bound to the account information or logged in. Judging whether the slave device ID is in the device list, if it is, then the verification is passed, and then the verification of the validity of the master token information is performed; if not, the slave device is rejected to perform the automatic login process. Based on the comparison between the slave device ID and the device list that has logged in to the account, if the slave device is another user's device, since the other user's device cannot log in to the account, there will be no other user's device identification in the device list , Therefore, if the comparison fails, it can avoid the automatic login account caused by the bluetooth connection of the outsider's device. In addition, in order to make the identification of each display device in the home Internet of Things exist in the device list, in some embodiments, the user can actively log in to the account once in the new device, so that the device ID of the new device can be added to the device corresponding to the account in the server. list, or the user can select the device ID of a new device to add to the user device list by operating the main device.
在服务器基于主令牌信息检查到该从设备可以执行自动登录过程,从设备为预设设备,以及,主令牌信息有效之后,即可确定主令牌信息的校验通过。其中,服务器执行主令牌信息校验的具体实现过程可参照后续实施例提供的步骤S31至S32及相关内容。After the server checks that the slave device can perform an automatic login process based on the master token information, that the slave device is a preset device, and that the master token information is valid, it can be determined that the verification of the master token information passes. Wherein, for the specific implementation process of the server performing the primary token information verification, reference may be made to steps S31 to S32 and related contents provided in subsequent embodiments.
服务器在校验从设备发送的自动登录请求中携带的主令牌信息通过后,会产生用于实现从设备进行指定账号登录的从令牌信息。由于从令牌信息是基于主设备发送的主令牌信息更新后得到,从令牌信息的作用是供从设备进行账号登录,而从设备需与主设备登录同一指定账号。因此,主设备发送的主令牌信息中的用户ID和账号ID无需更新,而用于标识从设备的设备ID以及供从设备在期限内登录的token创建时间和时长需要进行更新。After verifying that the primary token information carried in the automatic login request sent by the slave device is passed, the server will generate secondary token information for realizing the login of the specified account by the slave device. Since the slave token information is updated based on the master token information sent by the master device, the role of the slave token information is for the slave device to log in with an account, and the slave device needs to log in with the same specified account as the master device. Therefore, the user ID and account ID in the master token information sent by the master device do not need to be updated, but the device ID used to identify the slave device and the token creation time and duration for the slave device to log in within the time limit need to be updated.
更新内容包括将主令牌信息中的原主设备的设备ID替换为从设备的设备ID,以及,更新令牌创建时间和时长,使得更新后的从令牌信息中包括用户ID、从设备ID、账号ID、新token创建时间和新时长。新token创建时间的时间起算点从服务器校验主令牌信息通过时起算。The update content includes replacing the device ID of the original master device in the master token information with the device ID of the slave device, and updating the token creation time and duration, so that the updated slave token information includes user ID, slave device ID, Account ID, new token creation time and new duration. The starting point of the new token creation time is calculated from the time when the server verifies the primary token information.
在服务器校验从设备发送的自动登录请求中携带的主令牌信息通过后,将同步产生的从令牌信息返回至从设备,便于从设备基于从令牌信息登录指定账号。After the server verifies that the master token information carried in the automatic login request sent by the slave device has passed, it will return the synchronously generated slave token information to the slave device, so that the slave device can log in to the specified account based on the slave token information.
S23、从服务器接收从令牌信息,基于从令牌信息中的账号ID,登录对应的指定账号。S23. Receive the slave token information from the server, and log in the corresponding designated account based on the account ID in the slave token information.
参见图7中(b)和(c)部分所示内容,在主设备为电视,从设备为魔方屏和冰箱屏时。Referring to the content shown in parts (b) and (c) of Figure 7, when the master device is a TV, and the slave devices are Rubik's cube screen and refrigerator screen.
S204、电视将登录指定账号(如账号A)时所需的主令牌信息通过蓝牙模块分别发送至魔方屏和冰箱屏。S204. The TV sends the main token information required for logging in to the specified account (such as account A) to the Rubik's Cube screen and the refrigerator screen respectively through the Bluetooth module.
S205、魔方屏(或冰箱屏)通过该主令牌信息和从设备ID向服务器请求,以换取自身设备登录账号所需的从令牌信息。S205. The Rubik's Cube screen (or refrigerator screen) requests the server through the primary token information and the secondary device ID in exchange for the secondary token information required by its own device to log in to the account.
S206、魔方屏(或冰箱屏)在接收到服务器返回的从令牌信息后,即可实现指定账号的登录。S206. After receiving the slave token information returned by the server, the Rubik's Cube screen (or refrigerator screen) can log in the specified account.
此时,电视、魔方屏和冰箱屏均登录同一账号A,区别在于电视为用户手动登录账号,而魔方屏和冰箱屏为自动登录账号,未经过用户手动登录。At this time, the TV, Rubik’s Cube and Refrigerator are all logged into the same account A, the difference is that the TV is manually logged in by the user, while the Rubik’s Cube and Refrigerator are automatically logged in without the user’s manual login.
本申请实施例提供的一种显示设备,在作为自动登录账号的从设备进行多设备协同登录账号时,从设备接收主设备发送的主令牌信息,并生成自动登录请求发送至服务器,在服务器对主令牌信息进行校验且通过后基于从设备信息产生从令牌信息,从设备基于从令牌信息与主设备登录同一指定账号。用户在其中一个显示设备上优先进行账号登录后,其余显示设备可以自动登录,无需用户手动登录,实现了多设备协同登录账号的目的。在给用户提供便利的同时,提升用户交互体验。In the display device provided by the embodiment of the present application, when the slave device as an automatic login account performs multi-device cooperative login account, the slave device receives the master token information sent by the master device, generates an automatic login request and sends it to the server, and the server receives Check the master token information and generate slave token information based on the slave device information after passing the verification. The slave device logs in the same designated account as the master device based on the slave token information. After the user first logs in the account on one of the display devices, the other display devices can log in automatically, without the need for the user to log in manually, realizing the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
在一些实施例中,主设备和从设备在完成一次账号登录后,均会缓存对应的令牌信息。即主设备在基于用户输入的用户登录信息实现指定账号登录后,会在主设备本地缓存中存储对应的主令牌信息;从设备在基于主设备发送的主令牌信息实现指定账号的自动登录后,会在从设备本地缓存中存储对应的从令牌信息。In some embodiments, after completing an account login, both the master device and the slave device will cache the corresponding token information. That is, after the master device implements the specified account login based on the user login information entered by the user, it will store the corresponding master token information in the local cache of the master device; the slave device will automatically log in the designated account based on the master token information sent by the master device After that, the corresponding slave token information will be stored in the local cache of the slave device.
缓存令牌信息可便于在后续登录过程中,直接利用缓存中的令牌信息进行对应账号的登录。因 此,在完成一次账号登录后,控制器被进一步配置为:在与主设备登录同一指定账号后,缓存由所述服务器返回的用于实现指定账号登录的从令牌信息。The cached token information can facilitate the login of the corresponding account by directly using the token information in the cache in the subsequent login process. Therefore, after completing an account login, the controller is further configured to: cache the slave token information returned by the server for implementing the login of the specified account after logging in with the master device with the same specified account.
在从设备基于主设备发送的主令牌信息登录对应的同一指定账号后,在从设备的本地缓存中存储由服务器返回的用于实现指定账号登录的从令牌信息。After the slave device logs in the same specified account corresponding to the master token information sent by the master device, the slave token information returned by the server for realizing the login of the designated account is stored in the local cache of the slave device.
再次参见图5中(b)部分所示内容,在主设备(电视)登录账号A时,电视将账号A对应的主令牌信息分别发送至从设备(魔方屏和冰箱屏)。魔方屏和冰箱屏接收到账号A对应的主令牌信息后,向服务器换取自身的从令牌信息,而后基于从令牌信息实现账号A的自动登录。Referring again to the content shown in part (b) of Figure 5, when the master device (TV) logs into account A, the TV sends the master token information corresponding to account A to the slave devices (the Rubik's Cube screen and the refrigerator screen). After receiving the primary token information corresponding to account A, the Rubik’s cube screen and refrigerator screen exchange their own secondary token information from the server, and then realize automatic login of account A based on the secondary token information.
S104、魔方屏和冰箱屏在登录账号A后,将实现账号A登录的从令牌信息在各自的本地缓存中进行存储。S104 , after the Rubik's Cube screen and the refrigerator screen log in to the account A, store the slave token information for account A login in their respective local caches.
在一些实施例中,各个显示设备在完成一次账号登录后,在经历一段时间后,通常账号会自动退出。那么在用户后续使用时,需要相应的显示设备重新登录账号。In some embodiments, after each display device completes an account login, usually the account will automatically log out after a period of time. Then, when the user uses it subsequently, the corresponding display device needs to log in to the account again.
显示设备重新登录的账号可为前一次登录的指定账号,也可为当前需要登录的第二账号,第二账号与指定账号不同。The account for re-login of the display device may be the specified account for the previous login, or a second account that needs to be logged in currently, and the second account is different from the specified account.
为判断从设备在后续自动登录账号时所接收到的来自主设备的主令牌信息是否为原来登录指定账号时对应的主令牌信息,从设备需要在接收到新的主令牌信息时,与本地缓存中的用于登录指定账号的从令牌信息进行对比,通过对比结果来确定需要登录的当前账号是否为原登录的指定账号,以及,确定当前所需登录的目标账号。In order to judge whether the master token information received from the master device when the slave device automatically logs in to the account is the master token information corresponding to the original login to the specified account, the slave device needs to receive the new master token information when it receives the new master token information. Compare with the slave token information used to log in the specified account in the local cache, and determine whether the current account that needs to be logged in is the specified account for the original login through the comparison result, and determine the target account that needs to be logged in currently.
在一些实施例中,在后续重新登录账号时,控制器被进一步配置为执行下述步骤:In some embodiments, when re-logging into the account subsequently, the controller is further configured to perform the following steps:
在接收到主设备发送的第二主令牌信息时,判断本地缓存中是否存在用于登录指定账号时所需的从令牌信息。When receiving the second master token information sent by the master device, it is judged whether there is slave token information required for logging in the specified account in the local cache.
如果本地缓存中不存在从令牌信息,则基于第二主令牌信息登录对应的第二账号。If the slave token information does not exist in the local cache, log in the corresponding second account based on the second master token information.
如果本地缓存中存在从令牌信息,则对比从令牌信息中的账号ID和第二主令牌信息中的账号ID是否一致。If there is slave token information in the local cache, check whether the account ID in the slave token information is consistent with the account ID in the second master token information.
如果账号ID对比一致,则基于从令牌信息登录账号ID对应的指定账号。If the account IDs are consistent, log in to the specified account corresponding to the account ID based on the slave token information.
如果账号ID对比不一致,则基于用户的选择操作登录对应的目标账号,目标账号包括指定账号或第二账号中的一种。If the account IDs are inconsistent, the corresponding target account is logged in based on the user's selection operation, and the target account includes one of the specified account or the second account.
从设备在接收到主设备发送的第二主令牌信息时,在本地缓存中确定是否存储有之前登录账号时对应的从令牌信息。在后期登录账号过程中,第二主令牌信息是指主设备发送的第N个主令牌信息,N≥2,可以与前述的主设备发送的主令牌信息相同,是用于登录对应的指定账号的;也可以不同,是用于登录其他账号的。When the slave device receives the second master token information sent by the master device, it determines whether the slave token information corresponding to the previous login account is stored in the local cache. In the later account login process, the second primary token information refers to the Nth primary token information sent by the master device, N≥2, which can be the same as the primary token information sent by the aforementioned master device, and is used for login correspondence The specified account; it can also be different, it is used to log in to other accounts.
在一些实施例中,如果在从设备的本地缓存中未获取到从令牌信息,说明当前从设备的账号登录过程为第一次登录账号过程,那么接收到的第二主令牌信息即为之前描述的主设备发送的主令牌信息。In some embodiments, if the slave token information is not obtained in the local cache of the slave device, it means that the current account login process of the slave device is the first account login process, then the received second master token information is The master token information sent by the master device described earlier.
因此,判断本地缓存中是否存在从令牌信息的过程可应用在步骤S21的过程中,即从设备在接收到主设备发送的主令牌信息时,判断本地缓存中是否存在用于登录指定账号时所需的从令牌信息。在判断出本地缓存中不存在从令牌信息时,继续执行步骤S22至S23的过程,以完成第一次的账号登录过程。也就是说,从设备基于第二主令牌信息登录第二账号的过程可参照步骤S21至S23的实现内容。Therefore, the process of judging whether there is slave token information in the local cache can be applied in the process of step S21, that is, when the slave device receives the master token information sent by the master device, it judges whether there is a specified account for logging in in the local cache. required slave token information. When it is judged that there is no secondary token information in the local cache, the process of steps S22 to S23 is continued to complete the first account login process. That is to say, the process of logging in the second account by the slave device based on the second primary token information can refer to the implementation content of steps S21 to S23.
在一些实施例中,如果在从设备的本地缓存中能够获取到用于登录指定账号的从令牌信息,说明当前从设备的账号登录过程为第N次登录过程,即从设备已进行过N-1次账号登录过程,属于后期登录账号过程。那么接收到的第二主令牌信息为主设备发送的第N个主令牌信息。In some embodiments, if the slave token information used to log in to the specified account can be obtained in the local cache of the slave device, it means that the current account login process of the slave device is the Nth login process, that is, the slave device has performed N -1 account login process, which belongs to the post-login account process. Then the received second primary token information is the Nth primary token information sent by the master device.
在从设备本地缓存中存在从令牌信息时,需判断从设备是否需要进行账号切换登录,即判断第二主令牌信息对应的第二账号与从令牌信息对应的指定账号是否为同一个账号。此时,可通过账号ID来实现判断账号是否为同一个的对比。When there is slave token information in the local cache of the slave device, it is necessary to determine whether the slave device needs to perform account switch login, that is, to judge whether the second account corresponding to the second master token information and the specified account corresponding to the slave token information are the same account. At this time, the comparison of judging whether the accounts are the same can be realized through the account ID.
如果从令牌信息中的账号ID和第二主令牌信息中的账号ID对比一致,说明当前从设备接收到的第二主令牌信息对应的要登录的账号与之前登录过的一个账号为同一个。If the account ID in the slave token information is consistent with the account ID in the second master token information, it means that the account to be logged in corresponding to the second master token information currently received from the slave device is the same as the account that has been logged in before. the same one.
此时,如果根据本地缓存中的从令牌信息中的令牌创建时间和时长确认该从令牌信息还在创建时间内,则从设备无需再次基于第二主令牌信息向服务器换取新的从令牌信息,可直接基于本地缓存中的该从令牌信息登录指定账号,由此可提高账号登录效率。如果根据令牌创建时间和时长确认该从令牌信息已失效,则还是需要从设备基于从令牌信息向服务器请求更新从令牌信息后再进行指定账号登录。At this time, if it is confirmed according to the token creation time and duration in the slave token information in the local cache that the slave token information is still within the creation time, the slave device does not need to exchange for a new token from the server based on the second master token information again. From the token information, the designated account can be directly logged in based on the slave token information in the local cache, thereby improving account login efficiency. If it is confirmed that the slave token information is invalid according to the token creation time and duration, the slave device still needs to request the server to update the slave token information based on the slave token information before logging in with the specified account.
如果从令牌信息中的账号ID和第二主令牌信息中的账号ID对比不一致,说明当前需要登录的账号之前未登录过,需要进行账号切换登录。此时,由于从设备当前需要登录的第二账号与本地缓 存中的账号不同,则可以基于用户的选择操作登录对应的目标账号,目标账号包括指定账号或第二账号中的一种。If the account ID in the secondary token information is inconsistent with the account ID in the second primary token information, it means that the account that needs to be logged in has not been logged in before, and account switching and login are required. At this time, since the second account that the slave device currently needs to log in is different from the account in the local cache, the corresponding target account can be logged in based on the user's selection operation, and the target account includes one of the specified account or the second account.
在一些实施例中,控制器在执行如果账号ID对比不一致,则基于用户的选择操作登录对应的目标账号,被进一步配置为:In some embodiments, the controller is further configured to:
在账号ID对比不一致时,生成提示界面,展示在用户界面中,提示界面中包括从令牌信息对应的指定账号选项和第二主令牌信息对应的第二账号选项。When the account IDs are inconsistent, a prompt interface is generated and displayed in the user interface. The prompt interface includes the specified account option corresponding to the secondary token information and the second account option corresponding to the second primary token information.
响应于用户触发指定账号选项的登录指令,基于从令牌信息登录对应的指定账号。In response to the user triggering the login instruction of the specified account option, the corresponding specified account is logged in based on the secondary token information.
响应于用户触发第二账号选项的登录指令,基于第二主令牌信息登录对应的第二账号。In response to the user triggering the login instruction of the second account option, the corresponding second account is logged in based on the second primary token information.
在从设备需要进行账号切换登录时,用户可以进行选择操作。When the slave device needs to perform account switching and login, the user can perform a selection operation.
S105、在第二主令牌信息对应的账号ID与从设备本地缓存中存储的账号ID对比不一致时,在从设备的显示器中呈现提示界面供用户操作。S105. When the account ID corresponding to the second primary token information is inconsistent with the account ID stored in the local cache of the slave device, present a prompt interface on the display of the slave device for user operation.
在一些实施例中,如果在预定时长内用户未进行待登录账号的选择,从设备可以自动基于第二主令牌信息登录对应的第二账号,或者也可以设置为从设备可以自动基于从令牌信息登录对应的指定账号。In some embodiments, if the user does not select an account to be logged in within a predetermined period of time, the slave device can automatically log in to the corresponding second account based on the second primary token information, or it can also be set so that the slave device can automatically log in to the corresponding second account based on the slave token information. The designated account corresponding to the card information login.
在一些实施例中,在账号ID对比不一致时,提示界面中呈现指定账号选项和第二账号选项。指定账号选项用于实现从令牌信息对应的指定账号的登录,第二账号选项用于实现第二主令牌信息对应的第二账号(如账号B)的登录。In some embodiments, when the account IDs are inconsistent, the specified account option and the second account option are displayed on the prompt interface. The specified account option is used to implement the login of the specified account corresponding to the secondary token information, and the second account option is used to implement the login of the second account (such as account B) corresponding to the second primary token information.
如果用户依然想要从设备登录之前登录过的指定账号,则触发指定账号选项,同时产生对应的登录指令。从设备基于该登录指令,根据本地缓存中的从令牌信息登录对应的指定账号。由于从设备的本地缓存中的从令牌信息是之前从设备基于主令牌信息向服务器请求换取自身登录账号所需的从令牌信息,如果根据从令牌信息中的令牌创建时间和时长确认该从令牌信息还在创建时间内,则该从令牌信息可直接实现指定账号的登录,因此,从设备可直接基于本地缓存中的从令牌信息登录指定账号,无需再向服务器请求从令牌信息。If the user still wants to log in from the device with the specified account that has been logged in before, the specified account option is triggered, and a corresponding login instruction is generated at the same time. Based on the login instruction, the slave device logs in the corresponding specified account according to the slave token information in the local cache. Since the slave token information in the local cache of the slave device is the slave token information required by the slave device to request the server for its own login account based on the master token information, if the token creation time and duration in the slave token information After confirming that the slave token information is still within the creation time, the slave token information can directly realize the login of the specified account. Therefore, the slave device can directly log in to the specified account based on the slave token information in the local cache without requesting to the server. information from the token.
但是,如果根据从令牌信息中的令牌创建时间和时长确认该从令牌信息已失效,则还是需要从设备基于从令牌信息内的用户ID、账号ID和从设备ID向服务器换取新的从令牌信息后再进行指定账号登录,新从令牌信息中更新的内容为令牌创建时间和时长。However, if it is confirmed that the slave token information is invalid according to the token creation time and duration in the slave token information, the slave device still needs to exchange for a new token from the server based on the user ID, account ID and slave device ID in the slave token information. After logging in with the specified account after the secondary token information, the updated content of the new secondary token information is the token creation time and duration.
S106、如果用户想要从设备登录新的账号,则触发第二账号选项,此时,产生对应的登录指令。S106. If the user wants to log in a new account from the device, trigger the second account option, and at this time, generate a corresponding login instruction.
从设备基于该登录指令,根据第二主令牌信息向服务器换取全新的从令牌信息,以登录第二主令牌信息登录对应的第二账号(如账号B)。从设备基于第二主令牌信息登录对应的第二账号的实现过程可参照前述步骤S22至S23的内容。Based on the login instruction, the slave device exchanges brand new slave token information from the server according to the second master token information, and logs in the corresponding second account (such as account B) with the second master token information. For the implementation process of the slave device logging into the corresponding second account based on the second master token information, reference may be made to the content of the foregoing steps S22 to S23.
在一些实施例中,如果从设备在后续账号登录过程中,从设备发生登录账号的变化,即从原登录的指定账号切换为第二账号,则需要通知登录指定账号的主设备,告知该主设备无需再向该从设备发送指定账号对应的主令牌信息。In some embodiments, if the slave device changes its login account during the subsequent account login process, that is, it switches from the original designated account to the second account, it needs to notify the master device that logged in the designated account to inform the master The device no longer needs to send the master token information corresponding to the specified account to the slave device.
因此,在从设备切换账号登录时,控制器被进一步配置为执行下述步骤:Therefore, when the account is switched from the device to log in, the controller is further configured to perform the following steps:
在登录的账号由指定账号切换为第二账号时,产生监听取消指令,监听取消指令用于指示从设备停止接收主设备发送的主令牌信息。When the logged-in account is switched from the specified account to the second account, a monitoring cancel instruction is generated, and the monitoring cancel instruction is used to instruct the slave device to stop receiving the master token information sent by the master device.
S107、将监听取消指令发送至主设备,停止接收主设备发送的主令牌信息。S107. Send a monitoring cancel instruction to the master device, and stop receiving the master token information sent by the master device.
在一些实施例中,在从设备的本地缓存中能够获取到用于登录指定账号的从令牌信息的场景下,如果接收到的第二主令牌信息与从令牌信息的账号ID对比一致,则说明产生第二主令牌信息的主设备可为原登录指定账号的主设备。In some embodiments, in the scenario where the slave token information used to log in to the specified account can be obtained from the local cache of the slave device, if the received second master token information is consistent with the account ID of the slave token information , it means that the master device that generates the second master token information can be the master device that originally logged in with the specified account.
如果账号ID对比不一致,则存在两种情况,一是原登录指定账号的主设备切换登录第二账号,使得产生第二主令牌信息的主设备仍为原登录指定账号的主设备。此时,无需取消token监听。二是登录第二账号为另一主设备,此时,主设备进行切换,使得产生第二主令牌信息的主设备切换为另一显示设备,与原登录指定账号的主设备不同。此时,需要取消token监听。If the account IDs are inconsistent, there are two situations. One is that the master device that originally logged into the designated account switches to log in to the second account, so that the master device that generates the second master token information is still the master device that originally logged into the designated account. At this point, there is no need to cancel token monitoring. The second is to log in the second account as another master device. At this time, the master device switches, so that the master device that generates the second master token information is switched to another display device, which is different from the master device that originally logged in with the specified account. At this point, the token monitoring needs to be canceled.
在一些实施例中,在前述实施例中,从设备判断本地缓存是否存在从令牌信息的过程发生在从设备接收到第二主令牌信息的场景下,通过判断本地缓存中是否存在从令牌信息,以及,第二主令牌信息与从令牌信息的账号ID对比的结果,来确定进行账号登录所需的目标令牌信息,以及,确定从设备所要登录的目标账号,进而实现从设备的账号自动登录。In some embodiments, in the aforementioned embodiments, the process of the slave device judging whether there is slave token information in the local cache occurs in the scenario where the slave device receives the second master token information, by judging whether there is slave token information in the local cache card information, and the result of comparing the second master token information with the account ID of the slave token information to determine the target token information required for account login, and to determine the target account to be logged in from the slave device, and then realize the slave device The account of the device is automatically logged in.
在其他实施例中,从设备判断本地缓存是否存在从令牌信息的过程还可发生从设备处于监听状态的任一场景下,如后续账号登录的重新自动登录过程。此时,无需从设备接收到主设备发送的第二主令牌信息后触发判断进程,只要从设备需要重新登录账号,均可实时读取本地缓存中的从令牌信息来实现账号登录。例如,在第一轮各设备均登录指定账号后,如果主设备的指定账号仍登录,而某个从设备的账号自动退出,此时,该从设备为重新登录指定账号,在未接收到其他主设备发送 的新令牌信息的情况下,可直接从该从设备本地缓存中获取从令牌信息实现指定账号的登录。如果该本地缓存中的从令牌信息失效,则需重新向服务器端换取新的从令牌信息,实现指定账号的登录。In other embodiments, the process of the slave device judging whether there is slave token information in the local cache can also occur in any scenario where the slave device is in the monitoring state, such as the re-login process of subsequent account login automatically. At this time, there is no need for the slave device to trigger the judgment process after receiving the second master token information sent by the master device. As long as the slave device needs to log in to the account again, it can read the slave token information in the local cache in real time to realize the account login. For example, after all devices log in to the specified account in the first round, if the specified account of the master device is still logged in, but the account of a slave device automatically logs out, at this time, the slave device is re-logging in with the specified account, and if no other In the case of the new token information sent by the master device, the slave token information can be obtained directly from the local cache of the slave device to log in to the specified account. If the secondary token information in the local cache is invalid, it is necessary to exchange new secondary token information from the server to realize the login of the specified account.
具体实现过程可包括:从设备在进行自动登录账号过程中,如果从设备需要重新登录账号,此时,从设备从本地缓存中获取登录信息,登录信息是指用于登录前一账号所需的从令牌信息。The specific implementation process may include: during the automatic account login process of the slave device, if the slave device needs to log in to the account again, at this time, the slave device obtains the login information from the local cache. The login information refers to the information required for logging in to the previous account. information from the token.
如果本地缓存中没有登录信息,则继续监听token到来的事件。如果接收到来自主设备的token事件,则自动基于主设备发送的主令牌信息执行相应的账号登录过程。如果本地缓存中有登录信息,则可直接基于登录信息登录对应的账号,实现账号自动登录。If there is no login information in the local cache, continue to listen for token arrival events. If a token event from the master device is received, the corresponding account login process is automatically performed based on the master token information sent by the master device. If there is login information in the local cache, the corresponding account can be directly logged in based on the login information to realize automatic account login.
如果接收到新的token信息(如第二主令牌信息),则在新token信息中的账号ID与缓存中登录信息的账号ID不一致时,可通过界面提示切换登录信息。If new token information (such as the second primary token information) is received, when the account ID in the new token information is inconsistent with the account ID of the login information in the cache, you can prompt to switch the login information through the interface.
本申请实施例提供的一种显示设备,在作为自动登录账号的从设备进行多设备协同登录账号时,在后期账号登录过程中,一种实现场景可为:如果本地缓存中没有登录信息,监听token到来的事件,收到后自动登录。如果缓存中有登录信息且未失效,则直接自动登录。如果收到新的token信息,账号ID与缓存的不一致,可通过界面提示切换登录信息。另一种实现场景可为:在从设备接收到主设备发送的第二主令牌信息时,如果本地缓存中不存在登录信息,则基于第二主令牌信息登录对应账号。如果本地缓存中存在登录信息,以及,登录信息中的账号ID与第二主令牌信息中的账号ID对比一致,则基于缓存中的登录信息自动登录。而如果账号对比不一致,则可通过界面提示切换登录信息。在后期账号登录过程中,从设备可基于本地缓存来实现账号的自动登录,以与主设备登录同一账号,无需用户手动登录,实现多设备协同登录账号的目的。在给用户提供便利的同时,提升用户交互体验。For a display device provided in an embodiment of the present application, when a slave device for an automatic login account performs multi-device collaborative login, in the later account login process, an implementation scenario can be: if there is no login information in the local cache, monitor the The event of the arrival of the token will automatically log in after receiving it. If there is login information in the cache and it has not expired, it will be automatically logged in directly. If you receive new token information and the account ID is inconsistent with the cached one, you can switch the login information through the interface prompt. Another implementation scenario may be: when the slave device receives the second primary token information sent by the master device, if the login information does not exist in the local cache, log in the corresponding account based on the second primary token information. If there is login information in the local cache, and the account ID in the login information is consistent with the account ID in the second primary token information, then automatically log in based on the login information in the cache. And if the account comparison is inconsistent, you can switch the login information through the interface prompt. In the later account login process, the slave device can automatically log in the account based on the local cache, so as to log in the same account as the master device, without the need for the user to log in manually, and realize the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
图9为根据一些实施例的服务器执行的多设备协同登录方法的流程图。本申请实施例提供的一种服务器,包括:控制器,在执行图7和图9所示的多设备协同登录方法时,控制器被配置为执行下述步骤:Fig. 9 is a flowchart of a multi-device cooperative login method executed by a server according to some embodiments. A server provided in an embodiment of the present application includes: a controller. When executing the multi-device cooperative login method shown in FIG. 7 and FIG. 9 , the controller is configured to perform the following steps:
S31、响应于主设备发送的携带用户登录信息的账号登录请求,对用户登录信息进行校验,以及,在校验通过后产生主令牌信息,并发送至主设备,以使主设备基于主令牌信息中的账号ID登录对应的指定账号,以及,将主令牌信息发送至从设备,账号ID用于标识用户登录信息校验通过后对应的账号。S31. In response to the account login request carrying the user login information sent by the master device, verify the user login information, and generate master token information after the verification is passed, and send it to the master device, so that the master device The account ID in the token information is used to log in the corresponding specified account, and the master token information is sent to the slave device, and the account ID is used to identify the corresponding account after the verification of the user login information is passed.
在家庭环境中,用户想要对多个显示设备进行账号登录,基于本申请提供的多设备协同登录的方法,在进行账号登录时,用户可仅在一个显示设备进行手动账号登录,而其余显示设备均可实现自动账号登录。In a home environment, the user wants to log in to multiple display devices with an account. Based on the multi-device collaborative login method provided by this application, when performing account login, the user can only perform manual account login on one display device, while the other display devices All devices can realize automatic account login.
用户进行手动账号登录的显示设备为主设备,其余自动进行账号登录的显示设备为从设备。主设备基于用户输入的用户登录信息生成账号登录请求,并发送至服务器,以访问服务器的登录(login)接口。服务器在接收到主设备发送的账号登录请求后,即可对账号登录请求中携带的用户登录信息进行校验,用户登录信息包括用户名和密码。账号登录请求携带用户登录信息、用户ID和设备ID,用户ID用于标识用户,设备ID用于标识实现账号登录的设备。The display device that the user performs manual account login is the master device, and the other display devices that automatically perform account login are slave devices. The master device generates an account login request based on the user login information input by the user, and sends it to the server to access a login (login) interface of the server. After receiving the account login request sent by the master device, the server can verify the user login information carried in the account login request, and the user login information includes a user name and a password. The account login request carries user login information, user ID and device ID, the user ID is used to identify the user, and the device ID is used to identify the device that implements account login.
在校验时,服务器将用户登录信息中的用户名和密码,与服务器配置的数据库中存储的用户名和密码进行对比,如果一致,说明用户输入的用户名和密码准确,可进行账号登录。When verifying, the server compares the user name and password in the user login information with the user name and password stored in the database configured by the server. If they are consistent, it means that the user name and password entered by the user are correct and the account can be logged in.
在用户登录信息校验通过后,为便于主设备端进行账号登录,服务器随即产生对应的主令牌信息(token信息),Token为一串数字,包含用户ID、设备ID、账号ID、token创建时间和时长。主令牌信息用于实现主设备和从设备登录用户登录信息对应的指定账号,用户ID用于标识用户,设备ID用于标识实现账号登录的设备,账号ID用于标识校验通过后的账号(用户名和密码),token创建时间为令牌的有效时间段,时长为令牌的有效时长。After the user login information verification is passed, in order to facilitate account login on the main device side, the server will generate corresponding main token information (token information). Token is a string of numbers, including user ID, device ID, account ID, and token creation. time and duration. The master token information is used to realize the specified account corresponding to the user login information of the master device and the slave device, the user ID is used to identify the user, the device ID is used to identify the device that realizes the account login, and the account ID is used to identify the account after verification (username and password), the token creation time is the valid period of the token, and the duration is the valid period of the token.
服务器在基于主设备发送的账号登录请求,对用户登录信息进行校验并通过后,获取账号登录请求中携带的用户ID和设备ID,从服务器数据库中获取账号信息对应的账号ID,以及生成token创建时间和时长,基于用户ID、设备ID、账号ID、token创建时间和时长,随即产生主令牌信息,并返回至主设备,实现主设备的账号登录。After verifying and passing the user login information based on the account login request sent by the master device, the server obtains the user ID and device ID carried in the account login request, obtains the account ID corresponding to the account information from the server database, and generates a token Creation time and duration, based on user ID, device ID, account ID, and token creation time and duration, the main token information is generated immediately and returned to the main device to realize the account login of the main device.
主设备接收到服务器在校验用户登录信息并通过后产生的主令牌信息后,主设备可基于主令牌信息中的账号ID进行对应账号登录,即基于用户输入的用户名和密码实现指定账号的登录。After the master device receives the master token information generated by the server after verifying the user login information and passing it, the master device can log in to the corresponding account based on the account ID in the master token information, that is, realize the designated account based on the user name and password entered by the user. login.
同时,为便于家庭环境中的其余显示设备可自动登录账号,主设备将主令牌信息发送至从设备,从设备用于基于主令牌信息向服务器请求从令牌信息,以基于从令牌信息中的账号ID登录用户登录信息对应的指定账号,从设备是指与主设备处于配对关系的设备。主设备和从设备登录同一指定账号,实现用户在一个设备上登录后,可以自动的在家庭的其他设备下登录,既方便用户登录的同时,也提升了用户的使用体验。At the same time, in order to facilitate the other display devices in the home environment to automatically log in to the account, the master device sends the master token information to the slave device, and the slave device is used to request the slave token information from the server based on the master token information to The account ID in the information logs into the specified account corresponding to the user login information, and the slave device refers to the device that is in a pairing relationship with the master device. The master device and the slave device log in with the same designated account, so that after the user logs in on one device, he can automatically log in on other devices in the family, which is not only convenient for the user to log in, but also improves the user experience.
S32、响应于从设备在接收主设备发送的主令牌信息后基于从设备ID产生的自动登录请求,对 自动登录请求中携带的从设备ID和主令牌信息进行校验,在校验通过后基于主令牌信息产生从令牌信息,并发送至从设备,所述主令牌信息包括用户ID、账号ID、令牌创建时间和时长,从令牌信息包括用户ID、账号ID、从令牌ID、更新后的令牌创建时间和时长,以使从设备基于从令牌信息中的账号ID登录指定账号,从设备为与主设备处于配对关系的设备。S32. In response to the automatic login request generated by the slave device based on the slave device ID after receiving the master token information sent by the master device, the slave device ID and the master token information carried in the automatic login request are verified. Then generate slave token information based on the master token information and send it to the slave device. The master token information includes user ID, account ID, token creation time and duration, and the slave token information includes user ID, account ID, slave The token ID, the updated token creation time and duration, so that the slave device can log in to the specified account based on the account ID in the slave token information, and the slave device is a device in a pairing relationship with the master device.
各个从设备在接收到主设备发送的主令牌信息后,即可基于主令牌信息向服务器请求从令牌信息,自动登录从令牌信息中指定ID对应的指定账号,使得从设备和主设备登录同一账号。After each slave device receives the master token information sent by the master device, it can request the slave token information from the server based on the master token information, and automatically log in to the specified account corresponding to the specified ID in the slave token information, so that the slave device and the master The devices log in with the same account.
从设备在基于主设备发送的主令牌信息自动登录同一指定账号时,需要向服务器进行信息权限校验,在校验通过后方可进行指定账号的登录。此时,从设备基于主令牌信息生成自动登录请求,并发送至服务器。When the slave device automatically logs in to the same designated account based on the master token information sent by the master device, it needs to verify the information authority with the server, and the designated account can only be logged in after the verification is passed. At this point, the slave device generates an automatic login request based on the primary token information, and sends it to the server.
为避免其他用户的显示设备通过自身的蓝牙模块连接到本端用户家庭环境物联网中,导致其他用户的显示设备也自动登录本端用户所使用的账号,造成信息泄漏,需要对请求自动登录的从设备进行校验,为此,从设备产生的自动登录请求中需携带从设备ID,以标识该从设备。此时,从设备会将自身的从设备ID和主令牌信息中的用户ID、账号ID、令牌创建时间和时长,生成自动登录请求,并发送至服务器。In order to prevent the display devices of other users from connecting to the Internet of Things of the local user's home environment through their own Bluetooth modules, causing the display devices of other users to automatically log in to the account used by the local user, resulting in information leakage, it is necessary to request automatic login. The slave device performs verification. For this reason, the slave device ID must be carried in the automatic login request generated by the slave device to identify the slave device. At this time, the slave device will generate an automatic login request with its own slave device ID and the user ID, account ID, token creation time and duration in the master token information, and send it to the server.
服务器响应从设备发送的自动登录请求,对自动登录请求携带的从设备ID和主令牌信息进行校验。校验内容包括检查该从设备是否允许自动登录,要执行自动登录的从设备是否为预设设备,以及,主令牌信息是否有效。预设设备是指同一家庭环境中的显示设备,如处于同一物联网中的显示设备。The server responds to the automatic login request sent by the slave device, and verifies the slave device ID and master token information carried in the automatic login request. The verification content includes checking whether the slave device allows automatic login, whether the slave device to perform automatic login is a preset device, and whether the master token information is valid. Preset devices refer to display devices in the same home environment, such as display devices in the same Internet of Things.
主令牌信息中包括用户ID、主设备ID、账号ID、token创建时间和时长,主设备ID用于标识主令牌信息的来源。因此,可基于用户ID和账号ID来检查该从设备是否允许自动登录,基于从设备ID判断当前需要进行自动账号登录的从设备是否为预设设备,基于token创建时间和时长来判断主令牌信息是否有效。上述三个判断过程均需在前一个判断过程校验通过后方可执行下一个判断过程,在三个判断过程均校验通过后,服务器才会生成从令牌信息。The main token information includes user ID, main device ID, account ID, token creation time and duration, and the main device ID is used to identify the source of the main token information. Therefore, it is possible to check whether the slave device allows automatic login based on the user ID and account ID, judge whether the slave device currently requiring automatic account login is a preset device based on the slave device ID, and judge the master token based on the token creation time and duration information is valid. The above three judging processes need to pass the verification of the previous judging process before the next judging process can be executed, and the server will generate slave token information only after the verification of the three judging processes is passed.
在一些实施例中,控制器在执行响应于从设备在接收主设备发送的主令牌信息后基于从设备ID产生的自动登录请求,对自动登录请求中携带的从设备ID和主令牌信息进行校验,被进一步配置为执行下述步骤:In some embodiments, the controller executes the automatic login request generated based on the slave device ID after receiving the master token information sent by the master device in response to the slave device, and the slave device ID and the master token information carried in the automatic login request For verification, is further configured to perform the following steps:
响应于从设备在接收主设备发送的主令牌信息后基于从设备ID产生的自动登录请求,获取主令牌信息中的账号ID、令牌创建时间和时长。In response to the automatic login request generated by the slave device based on the slave device ID after receiving the master token information sent by the master device, the account ID, token creation time and duration in the master token information are acquired.
如果服务器中存在用于标识主设备登录的指定账号的已登账号ID,则允许从设备进行自动登录过程,以及,校验从设备ID对应的显示设备是否为预设设备,预设设备是指处于同一物联网中进行蓝牙配对连接的显示设备;If there is a registered account ID used to identify the specified account of the master device login in the server, the slave device is allowed to perform an automatic login process, and it is checked whether the display device corresponding to the slave device ID is a preset device, and the default device refers to Display devices that are in the same Internet of Things for Bluetooth pairing connection;
如果从设备ID对应的显示设备为预设设备,则校验令牌创建时间和时长是否有效。If the display device corresponding to the slave device ID is a preset device, check whether the token creation time and duration are valid.
如果令牌创建时间和时长有效,则确定从设备发送的自动登录请求中携带的从设备ID和主令牌信息校验通过。If the token creation time and duration are valid, it is determined that the slave device ID and master token information carried in the automatic login request sent by the slave device pass the verification.
服务器接收到任一从设备发送的自动登录请求后,获取该自动登录请求中携带的从设备ID、用户ID、账号ID、令牌创建时间和时长,以进行从设备是否允许自动登录的检验和登录信息是否有效的检验。After the server receives the automatic login request sent by any slave device, it obtains the slave device ID, user ID, account ID, token creation time and duration carried in the automatic login request to check whether the slave device allows automatic login Check if the login information is valid.
在检验从设备是否允许自动登录时,将从设备发送的自动登录请求中携带的主令牌信息中的账号ID与服务器端存储的已登账号ID进行对比,已登账号ID用于标识主设备已登录的账号。如果某个账号被主设备登录,则服务器端会存储对应的账号信息,如已登账号ID。因此,如果服务器端存储有已登账号ID,则账号ID与已登账号ID对比一致,说明账号ID对应的指定账号被主设备登录,则允许从设备响应主设备的令牌信息,实现对应账号的自动登录。如果服务器端未存储有账号ID,则账号ID与已登账号ID对比不一致,说明账号ID对应的指定账号未被主设备登录,那么不允许从设备执行自动登录账号过程。When checking whether the slave device allows automatic login, the account ID in the primary token information carried in the automatic login request sent by the slave device is compared with the registered account ID stored on the server side, and the registered account ID is used to identify the master device Logged in account. If an account is logged in by the main device, the server will store the corresponding account information, such as the registered account ID. Therefore, if the server stores the registered account ID, the account ID is consistent with the registered account ID, indicating that the specified account corresponding to the account ID is logged in by the master device, and the slave device is allowed to respond to the token information of the master device to realize the corresponding account ID. automatic login. If the account ID is not stored on the server, the account ID is inconsistent with the registered account ID, indicating that the specified account corresponding to the account ID has not been logged in by the master device, and the slave device is not allowed to perform the automatic login account process.
从设备执行自动登录过程的条件包括:响应于主设备发送的主令牌信息(即由主设备触发从设备的自动账号登录),以及,主设备已登录对应的账号。The conditions for the slave device to perform the automatic login process include: responding to the master token information sent by the master device (that is, the master device triggers automatic account login of the slave device), and the master device has logged into the corresponding account.
在服务器检查到服务器存储有与自动登录请求中携带的账号ID对比一致的已登账号ID时,说明主设备已登录对应的指定账号,以及,该从设备的自动账号登录过程由该主设备触发,因此,服务器可确定从设备可允许执行自动登录过程。When the server checks that the server stores a registered account ID that is consistent with the account ID carried in the automatic login request, it means that the master device has logged in the corresponding specified account, and the automatic account login process of the slave device is triggered by the master device , therefore, the server can determine that the slave device is allowed to perform an automatic login procedure.
在允许从设备进行自动登录过程后,进行下一个校验过程,即校验从设备ID对应的显示设备是否为预设设备,预设设备是指处于同一物联网中进行蓝牙配对连接的显示设备。After the slave device is allowed to perform the automatic login process, the next verification process is performed, that is, to verify whether the display device corresponding to the slave device ID is a preset device. The preset device refers to a display device that is in the same Internet of Things for Bluetooth pairing connection .
在一些实施例中,服务器校验当前发送自动登录请求的从设备是否为预设设备时,可将该从设备的从设备ID与服务器端存储的与主设备处于同一物联网中进行蓝牙配对连接的显示设备的ID进 行对比,如果从设备ID与同一物联网中的各个显示设备ID中的某一个对比一致,则可确定该从设备为预设设备,可进行自动账号登录过程。如果对比均不一致,则说明该从设备为其他用户的显示设备,不可与本端用户的显示设备登录同一账号,避免造成信息泄漏,即不可执行后续自动账号登录过程。In some embodiments, when the server verifies whether the slave device currently sending the automatic login request is a preset device, the slave device ID of the slave device can be connected with the Bluetooth pairing connection with the slave device stored on the server side in the same Internet of Things as the master device If the slave device ID is consistent with one of the display device IDs in the same Internet of Things, it can be determined that the slave device is a preset device, and the automatic account login process can be performed. If the comparisons are inconsistent, it means that the slave device is the display device of another user, and cannot log in with the same account as the display device of the local user to avoid information leakage, that is, the subsequent automatic account login process cannot be performed.
在一些实施例中,服务器在校验当前请求进行自动账号登录的从设备是否为预设设备时,还可采用另一方法:从设备上传主令牌信息的时候还需要从设备ID,在服务器校验出该从设备可实现自动账号登录功能后,服务器从主令牌信息中基于账号ID解析出账号信息,然后获取账号信息绑定或登陆过的设备列表。判断从设备ID是否在设备列表中,如果在,则校验通过,再进行主令牌校验;如果不在,则该从设备就不执行自动登陆过程。基于从设备ID与登录过账号的设备列表进行比对,如果该从设备其他用户的设备,则由于其他用户的设备原本无法登录该账号,使得设备列表中不会存在其他用户的设备的标识,因此,对比不通过,可以避免外人设备蓝牙连接后导致的账号在外人设备上自动登陆。此场景下,为使得设备列表中存在家庭物联网中各个显示设备的标识,需要用户在新设备中主动登陆一次账号,以便在服务器中将新设备的设备ID加入账号对应的设备列表中。In some embodiments, when the server checks whether the slave device currently requesting automatic account login is a preset device, another method can also be used: when the slave device uploads the master token information, the slave device ID is also required, and the server After verifying that the slave device can realize the automatic account login function, the server parses out the account information based on the account ID from the master token information, and then obtains a list of devices bound to the account information or logged in. Determine whether the slave device ID is in the device list. If it is, the verification is passed, and then the master token verification is performed; if not, the slave device does not perform the automatic login process. Based on the comparison between the slave device ID and the device list that has logged in to the account, if the slave device is another user's device, since the other user's device cannot log in to the account, there will be no other user's device identifier in the device list. Therefore, if the comparison fails, it can prevent the account from being automatically logged in on the outsider's device after the Bluetooth connection of the outsider's device. In this scenario, in order to have the IDs of each display device in the home IoT in the device list, the user needs to actively log in to the account once in the new device, so that the device ID of the new device can be added to the device list corresponding to the account in the server.
在校验出从设备ID对应的显示设备为预设设备后,可进行下一个校验过程,即检验登录信息是否有效。此时,获取自动登录请求携带的主令牌信息中的令牌创建时间和时长,以基于token创建时间和时长来判断主令牌信息是否有效。After verifying that the display device corresponding to the slave device ID is the default device, the next verification process can be performed, that is, verifying whether the login information is valid. At this time, the token creation time and duration in the primary token information carried in the automatic login request are obtained, so as to determine whether the primary token information is valid based on the token creation time and duration.
如果令牌创建时间和时长均满足相应的时间条件,则确定令牌创建时间和时长均有效。例如,令牌创建时间未到期,以及,主令牌信息的产生时长未超过时长阈值,即可确定令牌创建时间和时长均有效。If both the token creation time and the duration satisfy corresponding time conditions, it is determined that the token creation time and duration are both valid. For example, if the token creation time has not expired, and the generation time of the main token information does not exceed the time length threshold, it can be determined that both the token creation time and the time length are valid.
在服务器基于主令牌信息检验出允许从设备自动登录、该从设备为预设设备和登录信息(主令牌信息)有效后,可确定从设备发送的自动登录请求中携带的从设备ID和主令牌信息校验通过。After the server verifies that the slave device is allowed to log in automatically based on the master token information, the slave device is a default device, and the login information (master token information) is valid, it can determine the slave device ID and Primary token information verification passed.
服务器在校验从设备发送的自动登录请求中携带的从设备ID和主令牌信息通过后,会产生用于实现从设备进行指定账号登录的从令牌信息。由于从令牌信息是基于主设备发送的主令牌信息更新后得到,从令牌信息的作用是供从设备进行账号登录,而从设备需与主设备登录同一指定账号。因此,主设备发送的主令牌信息中的用户ID和账号ID无需更新,而用于标识从设备的设备ID以及供从设备在期限内登录的token创建时间和时长需要进行更新。After the server verifies that the slave device ID and master token information carried in the automatic login request sent by the slave device pass, it will generate slave token information for realizing the login of the specified account by the slave device. Since the slave token information is updated based on the master token information sent by the master device, the role of the slave token information is for the slave device to log in with an account, and the slave device needs to log in with the same specified account as the master device. Therefore, the user ID and account ID in the master token information sent by the master device do not need to be updated, but the device ID used to identify the slave device and the token creation time and duration for the slave device to log in within the time limit need to be updated.
更新内容包括将主令牌信息中的原主设备的设备ID替换为从设备的设备ID,以及,更新令牌创建时间和时长,使得更新后的从令牌信息中包括用户ID、从设备ID、账号ID、新token创建时间和新时长。新token创建时间的时间起算点从服务器校验主令牌信息通过时起算。The update content includes replacing the device ID of the original master device in the master token information with the device ID of the slave device, and updating the token creation time and duration, so that the updated slave token information includes user ID, slave device ID, Account ID, new token creation time and new duration. The starting point of the new token creation time is calculated from the time when the server verifies the primary token information.
在服务器校验从设备发送的自动登录请求中携带的主令牌信息通过后,将同步产生的从令牌信息返回至从设备,便于从设备基于从令牌信息登录指定账号。After the server verifies that the master token information carried in the automatic login request sent by the slave device has passed, it will return the synchronously generated slave token information to the slave device, so that the slave device can log in to the specified account based on the slave token information.
从设备接收到服务器返回的从令牌信息后,从令牌信息中包括用户ID、从设备ID、账号ID、新token创建时间和新时长,即可基于从令牌信息登录账号ID对应的指定账号,该指定账号与主设备登录的指定账号相同。After the slave device receives the slave token information returned by the server, the slave token information includes the user ID, slave device ID, account ID, new token creation time, and new duration, and can then log in to the designated account ID corresponding to the slave token information. Account, the specified account is the same as the specified account logged in on the main device.
本申请实施例提供的一种服务器,在多个显示设备进行协同登录账号时,基于主设备发送的账号登录请求,对用户登录信息校验通过后产生主令牌信息,便于主设备登录用户登录信息对应的指定账号,以及,自动将主令牌信息发送至具有配对关系的从设备。基于从设备根据主令牌信息产生的自动登录请求,对主令牌信息校验通过后产生从令牌信息并允许从设备登录账号,便于从设备基于从令牌信息与主设备登录同一指定账号。用户在其中一个显示设备上优先进行账号登录后,其余显示设备可以自动登录,无需用户手动登录,实现多设备协同登录账号的目的。在给用户提供便利的同时,提升用户交互体验。The server provided by the embodiment of the present application, when multiple display devices perform cooperative login account, based on the account login request sent by the main device, generates the main token information after the verification of the user login information is passed, so as to facilitate the main device to log in and the user to log in The specified account corresponding to the information, and automatically send the master token information to the slave device with the pairing relationship. Based on the automatic login request generated by the slave device based on the master token information, the slave token information is generated after the verification of the master token information is passed and the slave device is allowed to log in to the account, so that the slave device can log in to the same designated account as the master device based on the slave token information . After the user first logs in the account on one of the display devices, the other display devices can log in automatically, without the need for the user to log in manually, achieving the purpose of multi-device collaborative login account. While providing convenience to users, improve user interaction experience.
本申请实施例提供的一种多设备协同登录方法及显示设备、服务器,由最先登录账号的主设备基于用户输入的用户登录信息向服务器发送账号登录请求,在接收服务器校验用户登录信息通过后产生的主令牌信息,登录指定账号,同时,自动将主令牌信息发送至具有配对关系的从设备。从设备基于主令牌信息生成自动登录请求发送至服务器,在服务器对主令牌信息进行校验通过后产生从令牌信息并允许从设备登录账号,使得从设备基于从令牌信息与主设备登录同一指定账号。该方法、显示设备和服务器,可实现用户在其中一个显示设备上优先进行账号登录后,其余显示设备可以自动登录,无需用户手动登录,实现多设备协同登录账号的目的。在给用户提供便利的同时,账号登录效率高,提升用户交互体验。In the multi-device cooperative login method, display device, and server provided by the embodiments of the present application, the master device that first logs in to the account sends an account login request to the server based on the user login information input by the user, and the receiving server verifies the user login information and passes the verification. After the master token information is generated, log in to the specified account, and at the same time, automatically send the master token information to the slave device with the pairing relationship. The slave device generates an automatic login request based on the master token information and sends it to the server. After the server verifies the master token information, it generates the slave token information and allows the slave device to log in to the account, so that the slave device is based on the slave token information and the master device. Log in to the same designated account. The method, the display device and the server can realize that after the user logs in the account preferentially on one of the display devices, the other display devices can automatically log in, without the need for the user to log in manually, and realize the purpose of multi-device cooperative login account. While providing convenience to users, account login efficiency is high, which improves user interaction experience.
根据本申请一些实施例的多个终端设备在协同登录账户之后还可以通过语音控制相应的的终端设备进行相应的操作。According to some embodiments of the present application, the multiple terminal devices can also control the corresponding terminal devices to perform corresponding operations by voice after they log in to the account cooperatively.
随着家居的广泛应用,通过语音命令控制相应终端设备,得到广大用户的青睐。图10为根据一些实施例的终端设备的应用场景图。如图10中所示,家庭中的电视103、空调104、冰箱105以及 洗衣机106等终端设备可通过物联网模块与移动终端101和服务器102进行连接,移动终端101与终端设备之间,可通过局域网或者广域网进行数据传输,实现对终端设备的控制管理。通常情况下,物联网模块可以内置于各个终端设备中。With the wide application of home furnishing, controlling the corresponding terminal equipment through voice commands has won the favor of the majority of users. Fig. 10 is an application scenario diagram of a terminal device according to some embodiments. As shown in Figure 10, terminal equipment such as TV 103, air conditioner 104, refrigerator 105, and washing machine 106 in the home can be connected to mobile terminal 101 and server 102 through the Internet of Things module, and mobile terminal 101 and terminal equipment can be connected through LAN or WAN for data transmission to realize the control and management of terminal equipment. Typically, IoT modules can be built into individual end devices.
相关技术中,语音识别设备一般是具备一定功能的设备,对于接收到的语音,如果没有指明设备则认为是本设备响应该语音,如果指明了要操作的设备则发送控制指令给指明的设备,在一些实施例中,以音箱为例,如果接收到“快进”后,首先判断音箱是否存在对应该指令的操作,如果存在则执行快进操作,如果不存在,则反馈表征未识别的提示信息。如果接收到“电视快进”,音箱首先判断对应已存在映射关系的电视,是否存在对应该指令的操作,如果存在则发送触发电视快进的操作指令给电视,如果不存在,则反馈表征未识别的提示信息。在现有的操作中用户必须指定执行操作意图的目标设备,否则音箱会默认输入的是意图使音箱执行的操作。In related technologies, a voice recognition device is generally a device with certain functions. For the received voice, if no device is specified, it is considered that the device responds to the voice, and if a device to be operated is specified, a control command is sent to the specified device. In some embodiments, taking the speaker as an example, after receiving "fast forward", first judge whether there is an operation corresponding to the instruction on the speaker, if there is, perform the fast forward operation, if not, then feedback represents an unrecognized prompt information. If "TV fast forward" is received, the speaker first judges whether there is an operation corresponding to the corresponding TV corresponding to the mapping relationship, and if so, sends an operation command to trigger TV fast forward to the TV; if not, the feedback indicates that there is no Recognized prompt information. In the existing operation, the user must specify the target device to execute the operation intention, otherwise the speaker will input the operation intended to be performed by the speaker by default.
在一些实施例中,如果用户没有指明目标设备,语音识别设备可以播放表征存在映射的几个设备的提示给用户。In some embodiments, if the user does not specify a target device, the speech recognition device may play a prompt to the user representing several devices for which mappings exist.
在一些实施例中,关于语音识别设备和其他设备的映射关系的判断,可以在本地模块中执行,也可以在云端执行。在一些实施例中,本地模块可以安放在语音识别设备内或者相互固定。也可以是相互独立的客体。In some embodiments, the determination of the mapping relationship between the speech recognition device and other devices can be performed in a local module or in the cloud. In some embodiments, the local modules may be housed within the speech recognition device or fixed to each other. They can also be separate objects.
在一些实施例中,以云端执行为例,用户在家庭中增设终端设备时,可对终端设备进行区域划分,将终端设备设定于固定区域中。例如,将电视、音箱、空调等设置于客厅区域,将冰箱设置于厨房区域。图11为根据一些实施例的终端设备的另一应用场景图。当用户想要收听XXX歌曲时,在用户对语音识别设备输入唤醒词“嗨!XX”后,语音识别设备使设备中安装的语音应用处于激活状态,对语音识别设备输入“播放XXX歌曲”的语音消息,语音识别设备通过语音应用将语音消息转换为语音指令传输至服务器102,服务器102在接收到语音指令后查询当前该用户所配置的终端设备,在查询到有电视、冰箱和空调之后,会通过语音识别设备向用户反馈“您有3个设备,请问要用哪一个”,用户若是此时在客厅,可能会继续输入“用客厅的播放吧”的语音消息。服务器102会进一步判断此时客厅存在电视和空调两个终端设备,通过语音识别设备向用户反馈“您客厅有3个设备,请问要用哪一个”,用户则需要通过语音识别设备输入“用电视播放吧”,至此,服务器102会控制电视播放XXX歌曲。其中,语音识别设备可以为遥控器、音箱等具有收音功能的设备。语音识别设备还可以是具有语音识别和控制功能的显示设备,例如,电视或移动设备等。In some embodiments, taking cloud execution as an example, when a user adds a terminal device to a home, the terminal device can be divided into regions and the terminal device can be set in a fixed region. For example, TVs, speakers, air conditioners, etc. are installed in the living room area, and refrigerators are installed in the kitchen area. Fig. 11 is another application scenario diagram of a terminal device according to some embodiments. When the user wants to listen to XXX songs, after the user inputs the wake-up word “Hi! Voice message, the voice recognition device converts the voice message into a voice command through the voice application and transmits it to the server 102. After receiving the voice command, the server 102 inquires about the terminal equipment currently configured by the user. After finding out that there are TVs, refrigerators and air conditioners, It will give feedback to the user through the voice recognition device, "You have 3 devices, which one do you want to use?" The server 102 will further determine that there are two terminal devices, a TV and an air conditioner, in the living room at this time, and feed back to the user through the voice recognition device "You have 3 devices in the living room, which one do you want to use?" Let's play", so far, the server 102 will control the TV to play the XXX song. Wherein, the speech recognition device may be a device with a radio function such as a remote controller and a speaker. The voice recognition device may also be a display device with voice recognition and control functions, such as a TV or a mobile device.
基于上述一个家庭中存在多个终端设备的情况,服务器102需要与用户进行多轮语音交互,让用户主动的做各种提示,最终确定出最终要执行指令的终端设备。以上说明了与用户进行多次交互的过程。Based on the fact that there are multiple terminal devices in one family, the server 102 needs to perform multiple rounds of voice interaction with the user, so that the user can actively make various prompts, and finally determine the terminal device to execute the command. The above illustrates the process of multiple interactions with the user.
在一些实施例中,为了提高用户体验,本申请在一些实施例中提供了一种服务器,该服务器被配置为执行语音交互过程。下面结合附图对语音交互过程进行说明。In some embodiments, in order to improve user experience, the present application provides a server in some embodiments, and the server is configured to perform a voice interaction process. The voice interaction process will be described below with reference to the accompanying drawings.
在一些实施例中,在服务器102中执行的方法可以在一个其他设备或者语音识别设备中执行。后续以服务器执行为例。In some embodiments, methods performed in server 102 may be performed in one other device or voice recognition device. Follow-up uses server execution as an example.
图12为根据一些实施例的语音控制方法的流程示意图。如图12所示,所述方法包括以下步骤:Fig. 12 is a schematic flowchart of a voice control method according to some embodiments. As shown in Figure 12, the method includes the following steps:
用户实际环境中安置有语音识别设备,以及电视,冰箱,空调等其他设备,语音识别设备和所述其他设备均可以通过网络连接服务器,用户通过预先在某一设备端的操作,使得这些设备均登陆相同的账号,进而使得服务器端存储有用于标识用户的用户标识(即用户ID)和设备的映射关系。语音识别设备可以在任一时刻接收用户输入的语音。In the user's actual environment, there are speech recognition devices, as well as other devices such as TVs, refrigerators, and air conditioners. The speech recognition devices and the other devices can be connected to the server through the network, and the user can log in to the server through a pre-operation on a certain device. The same account further enables the server to store a mapping relationship between a user identifier (that is, a user ID) for identifying a user and a device. The speech recognition device can receive the speech input by the user at any moment.
在一些实施例中,用户可基于自身需求向语音识别设备发送语音指令,通过语音控制相应的终端设备执行语音指令。例如,在用户想要使用目标设备观看XXX影片时,可通过向语音识别设备输入唤醒词“嗨!XX”后,对语音识别设备输入“播放XXX影片”的语音消息。目标设备和语音识别设备是两个独立的设备,目标设备可以拥有自己的语音接收装置进行语音控制工作,目标设备和语音识别设备不是电视与仅供电视使用的电视遥控器之间的关系,也不是电视处理器和电视上的语音接收装置之间的关系。In some embodiments, the user may send a voice command to the voice recognition device based on his own needs, and control the corresponding terminal device to execute the voice command by voice. For example, when the user wants to use the target device to watch a XXX movie, he can input the wake-up word "Hi! XX" to the voice recognition device, and then input a voice message of "Play XXX movie" to the voice recognition device. The target device and the voice recognition device are two independent devices. The target device can have its own voice receiving device for voice control. The target device and the voice recognition device are not the relationship between the TV and the TV remote control that is only used for the TV. Not the relationship between the TV processor and the audio receiver on the TV.
在一些实施例中,唤醒词和语音指令可以连续输入。语音识别设备可以识别包含唤醒词的语句中所包含的语音指令。In some embodiments, the wake word and voice command can be entered continuously. The voice recognition device can recognize voice commands contained in sentences containing wake words.
在一些实施例中,语音识别设备可集成收音和语音解析功能。其中收音功能是接收用户发出的语音消息,语音解析功能指的是提取用户发出的语音消息中的关键部分,该关键部分能够体现出用户的意图或者说要做的内容,在解析出用户的意图之后,将其转换成语音指令,该语音指令可以是语音识别设备与服务器102之间可执行约定的指令格式。其中,指令格式可以包括command(指令)和parameters(参数)。在转换成语音指令后,将语音指令发送给服务器102。其中,将相应的用户标识添加至语音指令中,便于服务器102识别是哪个用户所发送的语音指令,也便于用户查找该 用户所配置的全部终端设备。In some embodiments, the voice recognition device can integrate sound collection and voice analysis functions. Among them, the radio function is to receive the voice message sent by the user, and the voice analysis function refers to extracting the key part of the voice message sent by the user. The key part can reflect the user's intention or the content to be done, and analyze the user's intention Afterwards, it is converted into a voice command, and the voice command may be an executable command format agreed between the voice recognition device and the server 102 . Wherein, the command format may include command (command) and parameters (parameter). After being converted into a voice command, the voice command is sent to the server 102 . Wherein, adding the corresponding user identifier to the voice command facilitates the server 102 to identify which user sent the voice command, and also facilitates the user to search for all terminal devices configured by the user.
在一些实施例中,语音识别设备可以具有独立的声像显示系统,可以进行音视频流的解码和播放。In some embodiments, the speech recognition device may have an independent audio-visual display system, which may decode and play audio and video streams.
在一些实施例中,目标设备可以具有独立的声像显示系统,可以进行音视频流的解码和播放。In some embodiments, the target device may have an independent audio-visual display system capable of decoding and playing audio and video streams.
S301:接收语音识别设备发送的包含用户标识的语音指令。S301: Receive a voice instruction including a user identifier sent by a voice recognition device.
在一些实施例中,语音识别设备可以将根据语音转化成的文本作为语音指令并发送给服务器。In some embodiments, the speech recognition device may use the text converted from the speech as a speech instruction and send it to the server.
在一些实施例中,语音转化的服务端在所述服务器中,因此语音识别设备可以将接收语音按约定的封装结构发送给服务器即可,服务器解封接收到的数据并获得语音指令。In some embodiments, the voice conversion server is in the server, so the voice recognition device can send the received voice to the server according to the agreed encapsulation structure, and the server decapsulates the received data and obtains voice instructions.
S302:查找与所述用户标识相关的所有终端设备。S302: Find all terminal devices related to the user identifier.
在一些实施例中,服务器102接收到语音指令之后,对语音指令进行解析,获取到用户标识和该语音指令所传递的用户的意图。In some embodiments, after receiving the voice command, the server 102 analyzes the voice command to obtain the user identifier and the user's intention conveyed by the voice command.
在一些实施例中,服务器通过对语音指令的解析,根据解析出的文本中的关键字,确定指令对应的设备类型,这里,设备类型指的是终端设备所具备的功能权限。In some embodiments, the server determines the device type corresponding to the command by analyzing the voice command and according to the keywords in the parsed text, where the device type refers to the functional authority of the terminal device.
在一些实施例中,服务器中可以缓存关键字和设备类型的映射关系,在一些实施例中,也可以存放已经训练好的关键词-设备类型的神经网络模型。In some embodiments, the mapping relationship between keywords and device types may be cached in the server, and in some embodiments, a trained keyword-device type neural network model may also be stored.
以服务器中缓存关键字对应的设备类型为例,如表一:Take the device type corresponding to the cache key in the server as an example, as shown in Table 1:
语音指令voice command 设备类型Equipment type 终端设备Terminal Equipment
播放电影play movie 视频播放video playback 电视、冰箱屏TV, refrigerator screen
播放歌曲play song 音频播放Audio Player 音箱speakers
开始送风start blowing 室温调整room temperature adjustment 空调、电风扇air conditioner, electric fan
同时,服务器102在获取到用户标识之后,从数据库中查找与用户标识相关的所有终端设备,也就是查找该用户所配置的全部终端设备。这是因为,如果基于近场通信进行设备的发现,设备可以发现其扫描到的所有设备,包括自己的和/或地理位置临近的其他用户的设备,但这些设备中有些是不属于该用户的,即使通过局域网判断,也可能初选局域网内接入了访客设备的场景。通过在一个具备管理功能的服务器中预先建立用户标识和自己的设备的关联关系,服务器102就可以根据用户标识确定用户实际拥有的设备。At the same time, after obtaining the user ID, the server 102 searches the database for all terminal devices related to the user ID, that is, searches for all terminal devices configured by the user. This is because, if device discovery is based on near-field communication, the device can discover all the devices it scans, including its own and/or devices of other users in close proximity, but some of these devices do not belong to the user , even if it is judged by the LAN, it is possible to initially select the scenario where a guest device is connected to the LAN. By pre-establishing the association between the user ID and its own equipment in a server with a management function, the server 102 can determine the equipment actually owned by the user according to the user ID.
在一些实施例中,所述终端设备是指与所述用户标识关联的除所述语音识别设备外的其他设备。In some embodiments, the terminal device refers to other devices associated with the user identifier except the speech recognition device.
在一些实施例中,语音指令的识别需要判断语音指令的类型,然后和各终端设备所能执行的类型相比对,进而确定可以执行该语音指令的终端设备。In some embodiments, the recognition of the voice command needs to determine the type of the voice command, and then compare it with the types that can be executed by each terminal device, and then determine the terminal device that can execute the voice command.
在一些实施例中,各终端设备所能执行的类型可以是预先标定好的,例如,厨房冰箱对应冷冻,冷藏,食谱推荐,食材识别。也可以是在扫描到新增设备时,根据设备标识确定的。例如,在新增的设备标识表征该设备是冰箱时,建立该设备标识与冷冻,冷藏,食谱推荐,食材识别等类型的关联。In some embodiments, the execution types of each terminal device may be pre-calibrated, for example, the kitchen refrigerator corresponds to freezing, refrigeration, recipe recommendation, and ingredient identification. It may also be determined according to the device identifier when a newly added device is scanned. For example, when the newly added device identifier indicates that the device is a refrigerator, an association between the device identifier and freezing, refrigeration, recipe recommendation, food material identification, etc. is established.
在一些实施例中,服务器102在获取到用户标识之后,还可以将与用户标识相关的所有终端设备及设备属性从数据库加载至缓存中。后续服务器102再查找终端设备时,可直接到缓存中查找,从而能够加快服务器102查找终端设备的速度。其中设备属性包括终端设备的位置、终端设备的名字、终端设备ID等固有属性。In some embodiments, after acquiring the user ID, the server 102 may also load all terminal devices and device attributes related to the user ID from the database into the cache. Subsequently, when the server 102 searches for the terminal device again, it can directly search in the cache, thereby speeding up the speed at which the server 102 searches for the terminal device. The device attributes include inherent attributes such as the location of the terminal device, the name of the terminal device, and the ID of the terminal device.
S303:在不存在与所述用户标识相关的终端设备时,反馈表征不存在终端设备的参数,以使所述语音识别设备播报不存在执行语音指令的终端设备。S303: When there is no terminal device related to the user identifier, feed back a parameter representing the absence of a terminal device, so that the voice recognition device broadcasts that there is no terminal device executing the voice command.
在一些实施例中,服务器102若是没有查找到与用户标识相关的终端设备,说明该用户没有配置终端设备,此时,服务器102需要向语音识别设备反馈表征不存在终端设备的参数。语音识别设备根据接收到的表征不存在终端设备的参数播报不存在终端设备。In some embodiments, if the server 102 does not find a terminal device related to the user identifier, it means that the user has not configured a terminal device. At this time, the server 102 needs to feed back parameters indicating that there is no terminal device to the speech recognition device. The voice recognition device broadcasts that there is no terminal device according to the received parameter representing the absence of the terminal device.
S304:在存在与所述用户标识相关的终端设备时,利用预设的过滤规则筛选出最匹配的终端设备,反馈表征最匹配的终端设备的参数,以使所述语音识别设备播报存在执行语音指令的终端设备,并控制最匹配的终端设备执行所述语音指令。S304: When there is a terminal device related to the user identifier, use the preset filtering rules to filter out the most matching terminal device, and feed back the parameters representing the most matching terminal device, so that the voice recognition device broadcasts the existence of the execution voice The terminal device with the instruction, and controls the most matching terminal device to execute the voice instruction.
在一些实施例中,预设的过滤规则筛是指用于筛选出符合用户意图的预置规则/可以执行该语音指令的设备的规则。例如,用户在输入“播放民乐”的语音时,语音识别设备将播放民乐的指令发送给服务器,服务器识别出用户的意图的类型是播放音乐,则根据该类型确定可以执行该类型操作的终端设备。In some embodiments, the preset filtering rule filter refers to a rule for filtering out a preset rule conforming to the user's intention/a device capable of executing the voice instruction. For example, when the user inputs the voice of "play folk music", the voice recognition device sends the instruction of playing folk music to the server, and the server recognizes that the type of user's intention is to play music, and then determines the terminal device that can perform this type of operation according to the type .
在一些实施例中,在存在与所述用户标识相关的终端设备时,利用与所述用户标识相关的终端设备来执行语音指令。In some embodiments, when there is a terminal device related to the user identifier, the terminal device related to the user identifier is used to execute the voice instruction.
在一些实施例中,在存在与所述用户标识相关的终端设备时,还需要确定终端设备的个数和/或终端设备所能执行的功能,这里,终端设备所能执行的功能即为终端设备功能权限。在一些实施例 中,在语音指令为播放视频的指令时,需要确定出可以进行视频播放的设备,不能执行视频播放的设备会筛除,在语音指令为制冷26°的指令时,不能进行制冷的设备被筛除,使用可以执行该制冷设备执行该语音指令。In some embodiments, when there is a terminal device related to the user identifier, it is also necessary to determine the number of terminal devices and/or the functions that the terminal device can perform. Here, the function that the terminal device can perform is the terminal Device function permissions. In some embodiments, when the voice instruction is an instruction to play a video, it is necessary to determine the device that can play the video, and the device that cannot perform video playback will be screened out. When the voice instruction is an instruction for cooling at 26°, cooling cannot be performed. The devices that are screened out, use the voice command that can be executed by the cooling device.
在一些实施例中,服务器102中配置有预设的过滤规则。所述过滤规则表征所述语音指令与所述终端设备之间的映射关系。所述过滤规则包含第一组规则和第二组规则,或者只包含第一组规则不包含第二组规则,其中,所述第一组规则指的是为了筛选出最匹配的终端设备所必需的规则,所述第二组规则指的是在没有筛选出最匹配的终端设备时逐一叠加利用的规则。In some embodiments, the server 102 is configured with preset filtering rules. The filtering rule characterizes the mapping relationship between the voice instruction and the terminal device. The filter rules include the first set of rules and the second set of rules, or only the first set of rules do not include the second set of rules, wherein the first set of rules refers to the necessary rules, and the second group of rules refers to the rules that are superimposed and utilized one by one when the best matching terminal device is not screened out.
第一组规则包含设备类型和各个设备的映射关系,例如表一。The first group of rules includes the mapping relationship between the device type and each device, such as Table 1.
第一组规则可以是对用户标识对应的个数的判断。The first group of rules may be a judgment on the number corresponding to user identifiers.
在一些实施例中,根据第一组规则确定出设备后,如果还是包含两个或以上的设备,则需要进一步利用第二规则进行进一步筛选。在一些实施例中,在根据设备类型和各个设备的映射关系确定出可选的设备后,如果设备数量为1个,则直接将语音指令发送给该设备,如果是0个,则反馈无可执行的设备给语音识别设备,如果大于1个,则可以根据位置/安装时间/使用频率/上次执行该类型指令的设备/启动时间/信号强度/优先级等等中的一个或任一组合来作为第二组规则进行过滤。In some embodiments, after the devices are determined according to the first set of rules, if there are still two or more devices, the second rule needs to be further used for further screening. In some embodiments, after the optional device is determined according to the device type and the mapping relationship of each device, if the number of the device is 1, the voice command is directly sent to the device; if it is 0, the feedback is irrelevant. The device to execute is given to the voice recognition device. If there are more than one, it can be based on one or any combination of location/installation time/usage frequency/device that executed this type of command last/start time/signal strength/priority, etc. to filter as the second set of rules.
图13为根据一些实施例的筛选终端设备的流程示意图。结合图13,本申请在一些实施例中根据过滤规则筛选终端设备的过程如下:Fig. 13 is a schematic flow diagram of screening terminal devices according to some embodiments. With reference to FIG. 13 , in some embodiments of the present application, the process of screening terminal devices according to filtering rules is as follows:
S401:利用所述第一组规则筛选当前终端设备与所述用户标识相关的终端设备。S401: Use the first set of rules to screen terminal devices related to the user identifier of the current terminal device.
在一些实施例中,在所述在存在与所述用户标识相关的终端设备时,服务器102首先通过为了筛选出最匹配的终端设备所必需的规则来对终端设备进行筛选。在一些实施例中,所述第一组规则包含终端设备功能权限子规则,这里,终端设备功能权限子规则指的是各个终端设备所分别具备的功能,如电视具有播放媒资的功能,空调具有制冷制热的功能等等。也就是当服务器102筛选出用户实际拥有的终端设备时,再进一步利用终端设备功能权限子规则筛选终端设备,排除掉不具有相应权限功能的终端设备。In some embodiments, when there is a terminal device related to the user identifier, the server 102 first screens the terminal device according to the necessary rules for screening out the most matching terminal device. In some embodiments, the first group of rules includes terminal device function authority sub-rules. Here, the terminal device function authority sub-rules refer to the functions that each terminal device has respectively, such as a TV having the function of playing media assets, an air conditioner, etc. It has the functions of cooling and heating, etc. That is, when the server 102 screens out the terminal devices actually owned by the user, it further uses the sub-rule of the terminal device function permission to screen the terminal devices, and excludes the terminal devices that do not have corresponding permission functions.
在一些实施例中,在利用所述终端设备功能权限子规则筛选终端设备时,服务器102分别检测多个与所述用户标识相关的终端设备的功能权限。在所述功能权限适合执行所述语音指令时,服务器102将相对应的终端设备选定为所述备选终端设备。在所述功能权限不适合执行所述语音指令时,服务器102排除相对应的终端设备。In some embodiments, when terminal devices are screened by using the sub-rules of terminal device function rights, the server 102 respectively detects function rights of multiple terminal devices related to the user identifier. When the function authority is suitable for executing the voice instruction, the server 102 selects the corresponding terminal device as the candidate terminal device. When the function authority is not suitable for executing the voice instruction, the server 102 excludes the corresponding terminal device.
S402:若与所述用户标识相关的终端设备不具备执行所述语音指令权限时,则反馈表征不存在终端设备的参数,以使所述语音识别设备播报不存在执行语音指令的终端设备。S402: If the terminal device related to the user identifier does not have the authority to execute the voice command, feed back a parameter representing the absence of a terminal device, so that the voice recognition device broadcasts that there is no terminal device that executes the voice command.
S403:若与所述用户标识相关的终端设备具备执行所述语音指令权限时,则确认具备执行所述语音指令权限的终端设备的数量。S403: If the terminal device related to the user identifier has the right to execute the voice command, confirm the number of terminal devices that have the right to execute the voice command.
在一些实施例中,在利用第一组规则过滤与所述用户标识相关的终端设备时,若是用户实际拥有的终端设备都不具备相应的功能权限,则服务器102需要向语音识别设备反馈表征不存在终端设备的参数。语音识别设备根据接收到的表征不存在终端设备的参数播报不存在终端设备。In some embodiments, when using the first set of rules to filter the terminal devices related to the user identifier, if none of the terminal devices actually owned by the user has the corresponding functional authority, the server 102 needs to feed back to the voice recognition device There are parameters for the end device. The voice recognition device broadcasts that there is no terminal device according to the received parameter representing the absence of the terminal device.
在一些实施例中,在利用第一组规则过滤与所述用户标识相关的终端设备时,若是用户实际拥有的终端设备具备相应的功能权限,则服务器102还需要确认具备相应功能权限的终端设备的数量。In some embodiments, when using the first set of rules to filter terminal devices related to the user identifier, if the terminal device actually owned by the user has the corresponding functional authority, the server 102 also needs to confirm that the terminal device with the corresponding functional authority quantity.
在一些实施例中,服务器102检测到仅在存在一个具备执行所述语音指令权限的终端设备时,则向语音识别设备反馈表征存在相应权限的终端设备的参数,所述语音识别设备根据表征存在相应权限的终端设备的参数播报具备相应权限的终端设备。In some embodiments, when the server 102 detects that there is only one terminal device with the authority to execute the voice command, it feeds back to the voice recognition device the parameters representing the terminal device with the corresponding authority, and the voice recognition device exists according to the token. The parameters of the terminal equipment with the corresponding authority are broadcast to the terminal equipment with the corresponding authority.
服务器102还需按照语音指令中用户的意图控制该当前终端设备执行相应操作。The server 102 also needs to control the current terminal device to perform corresponding operations according to the user's intention in the voice command.
在一些实施例中,服务器102将所述语音指令发送给当前终端设备,当前终端设备接收所述语音指令并根据所述语音指令执行响应的操作。In some embodiments, the server 102 sends the voice instruction to the current terminal device, and the current terminal device receives the voice instruction and performs a corresponding operation according to the voice instruction.
例如,用户当前仅配置了扫地机器人,若是用户输入“扫地”的语音消息,语音设别设备将该语音消息传输至服务器102,服务器102在查询后发现当前用户仅配置有扫地机器人,正好扫地机器人具备清扫功能。故服务器102控制语音识别设备播报“扫地机器人开始扫地”,并控制扫地机器人执行扫地功能。其中,服务器102控制语音识别设备播报时,可通过长链接的方式将表征存在相应权限的终端设备的参数反馈至语音识别设备。For example, the user is currently only equipped with a sweeping robot. If the user inputs a voice message of "sweeping the floor", the voice device will transmit the voice message to the server 102. After querying, the server 102 finds that the current user is only equipped with a sweeping robot. With cleaning function. Therefore, the server 102 controls the voice recognition device to broadcast "the sweeping robot starts to sweep the floor", and controls the sweeping robot to perform the sweeping function. Wherein, when the server 102 controls the speech recognition device to broadcast, it may feed back the parameters representing the terminal device with corresponding authority to the speech recognition device through a long link.
在一些实施例中,在存在多个具备执行所述语音指令权限的终端设备时,则按照优先级由高到低的顺序逐一利用所述第二组规则中的子规则筛选多个具备执行所述语音指令权限的终端设备,直至筛选出一个最匹配的终端设备。In some embodiments, when there are multiple terminal devices that have the authority to execute the voice command, the sub-rules in the second set of rules are used to screen the multiple terminal devices that have the authority to execute the voice command one by one in order of priority from high to low. Terminal devices with the above-mentioned voice command permissions until a terminal device that best matches is screened out.
在一些实施例中,服务器102中预设的第二组规则包括用户使用频次子规则、与语音识别设备的距离子规则以及终端设备优先级子规则。这里,用户使用频次子规则指的是用户通过终端设备所执行过相似语音指令的次数,例如,用户通过电视播放A电影、B综艺等视频数据的次数,或者用户 通过音箱播放C歌曲、D歌曲等音频数据的次数,其中,A电影、B综艺、C歌曲、D歌曲等均可划分为媒资数据,相应的,用户所发出的“播放A电影”、“播放B综艺”、“播放C歌曲”及“播放D歌曲”可视为相似的语音指令,均为播放类语音指令,还可以进一步将“播放A电影”和“播放B综艺”划分为视频播放类语音指令,将“播放C歌曲”及“播放D歌曲”划分为音频播放类语音指令。与语音识别设备的距离子规则指的是各个终端设备分别与语音识别设备之间的距离。终端设备优先级子规则指的是用户设置的在执行语音指令时各个终端设备的优先级,例如,对应播放媒资的语音指令,电视的优先级高于冰箱屏的优先级,其中,终端设备的优先级可由用户通过移动终端101上的应用程序进行设定。In some embodiments, the second set of rules preset in the server 102 includes a user frequency sub-rule, a distance from a speech recognition device sub-rule, and a terminal device priority sub-rule. Here, the user frequency sub-rule refers to the number of times the user has executed similar voice commands through the terminal device, for example, the number of times the user plays video data such as A movie and B variety show through the TV, or the user plays C song and D song through the speaker. The frequency of audio data such as A movie, B variety show, C song, D song, etc. can be divided into media data. "song" and "play D song" can be regarded as similar voice commands, both of which are play-type voice commands. "Play A movie" and "play B variety show" can be further divided into video-play voice commands, and "play C "Song" and "play D song" are divided into audio playback type voice commands. The distance sub-rule to the speech recognition device refers to the distance between each terminal device and the speech recognition device. The terminal device priority sub-rule refers to the priority of each terminal device set by the user when executing a voice command. For example, corresponding to the voice command for playing media assets, the priority of the TV is higher than that of the refrigerator screen. Among them, the terminal device The priority of the mobile terminal 101 can be set by the user through the application program.
在一些实施例中,上述第二组规则中的多个子规则可由用户设置相应的优先级,例如,设置用户使用频次子规则优先级的优先级高于与语音识别设备的距离子规则优先级,设置终端设备优先级子规则的优先级高于用户使用频次子规则的优先级等。In some embodiments, a plurality of sub-rules in the above-mentioned second group of rules can be set with corresponding priorities by the user, for example, the priority of setting the priority of the sub-rule of user usage frequency is higher than the priority of the sub-rule of the distance from the speech recognition device, The priority of the terminal device priority sub-rule is higher than that of the user frequency sub-rule.
在一些实施例中,服务器102利用过滤规则对终端设备进行过滤的目的就是筛选出其中一个用于执行当前语音指令最为合适的终端设备,也就是说,筛选到最后,最匹配的终端设备的数量为1个。在利用第一组规则筛选之后,只要相应的终端设备的数量不唯一,服务器102就会按照优先级高低逐一利用第二组规则中的子规则对剩余的终端设备进行筛选。In some embodiments, the server 102 uses filtering rules to filter terminal devices to filter out one of the most suitable terminal devices for executing the current voice command, that is to say, at the end of the screening, the number of the most matching terminal devices for 1 pc. After screening by the first set of rules, as long as the number of corresponding terminal devices is not unique, the server 102 will use the sub-rules in the second set of rules to screen the remaining terminal devices one by one according to the priority.
例如,在用户输入“播放A歌曲”之后,服务器102查询到该用户配置有电视、音箱、空调、冰箱以及洗衣机,服务器102在利用终端设备功能权限子规则对各个终端设备进行过滤之后,得到其中电视、音箱及冰箱具有播放功能,则需要通过第二组规则进一步筛选电视、音箱及冰箱。服务器102进一步通过与语音识别设备的距离子规则进行过滤,通过终端设备中设备属性中的设备位置信息,服务器102判断出电视、音箱与语音识别设备均在客厅,也就是距离较近,而冰箱在厨房,与语音识别设备的距离较远,基于此,将冰箱排除掉。由于备选终端设备的还剩下2个,即电视、音箱,还需要进一步筛选,服务器102继续通过终端设备优先级子规则进行过滤,对于播放类语音指令,用户设置的电视的优先级高于音箱的优先级,故服务器102将电视选定为最匹配的终端设备。For example, after the user inputs "play song A", the server 102 finds out that the user is equipped with a TV, sound box, air conditioner, refrigerator, and washing machine. If the TV, sound box and refrigerator have the playback function, the TV, sound box and refrigerator need to be further screened through the second set of rules. The server 102 further filters through the distance sub-rule with the speech recognition device, and through the device location information in the device attributes in the terminal device, the server 102 judges that the TV, the sound box and the speech recognition device are all in the living room, that is, the distance is relatively close, and the refrigerator In the kitchen, the distance from the speech recognition equipment is relatively long, and based on this, the refrigerator is excluded. Since there are still two candidate terminal devices left, i.e. TV and sound box, further screening is required, and the server 102 continues to filter through the terminal device priority sub-rules. The priority of the speaker, so the server 102 selects the TV as the most matching terminal device.
又如,在用户输入“降低室内温度”之后,服务器102查询到该用户配置有电视、音箱、空调、冰箱以及电风扇,服务器102在利用终端设备功能权限子规则对各个终端设备进行过滤之后,得到其中空调和电风扇具有室温调整功能,则服务器102需要通过第二组规则进一步筛选空调和电风扇。服务器102继续通过终端设备优先级子规则进行过滤,对于室温调整类语音指令,用户设置的空调的优先级高于电风扇的优先级,故服务器102将空调选定为最匹配的终端设备。当然,用户也可根据自己的需求,设置电风扇的优先级高于空调的优先级。For another example, after the user inputs "lower indoor temperature", the server 102 finds out that the user is equipped with a TV, a speaker, an air conditioner, a refrigerator, and an electric fan. Obtaining that the air conditioner and the electric fan have the function of adjusting the room temperature, the server 102 needs to further screen the air conditioner and the electric fan through the second set of rules. The server 102 continues to filter through the terminal device priority sub-rule. For voice commands such as room temperature adjustment, the priority of the air conditioner set by the user is higher than that of the electric fan, so the server 102 selects the air conditioner as the most matching terminal device. Of course, users can also set the priority of the electric fan higher than that of the air conditioner according to their own needs.
在一些实施例中,在利用所述用户使用频次子规则筛选终端设备时,服务器102分别检测多个与所述用户标识相关的终端设备的执行频次,其中,所述执行频次指的是终端设备在历史行为中所执行过相似语音指令的次数。服务器102将保留执行频次最多的终端设备。In some embodiments, when using the user frequency sub-rule to screen terminal devices, the server 102 respectively detects the execution frequencies of multiple terminal devices related to the user identifier, wherein the execution frequency refers to the terminal device The number of times similar voice commands have been executed in historical behaviors. The server 102 will retain the terminal device with the highest execution frequency.
在一些实施例中,在利用所述与语音识别设备的距离子规则筛选终端设备时,服务器102分别检测多个与所述用户标识相关的终端设备与语音识别设备的距离。服务器102将保留与语音识别设备的距离最近的终端设备。In some embodiments, when terminal devices are screened using the sub-rule of distance from a voice recognition device, the server 102 respectively detects the distances between a plurality of terminal devices related to the user identifier and the voice recognition device. The server 102 will reserve the terminal device with the closest distance to the speech recognition device.
在一些实施例中,在利用所述终端设备优先级筛选终端设备时,服务器102按照用户设置的终端设备优先级,保留优先级最高的终端设备。In some embodiments, when using the terminal device priority to screen terminal devices, the server 102 reserves the terminal device with the highest priority according to the terminal device priority set by the user.
以上实施例不仅适用于家庭场景,还可以是办公等场景。The above embodiments are not only applicable to home scenarios, but also to office scenarios.
本申请中,在服务器响应于用户发出的语音指令,并查询到当前有多个终端设备时,可基于过滤规则选择出最终要执行指令的终端设备,避免用户与语音识别设备进行多次语音交互过程,提升用户体验。In this application, when the server responds to the voice command issued by the user and inquires that there are currently multiple terminal devices, it can select the terminal device that will finally execute the command based on the filtering rules, so as to avoid multiple voice interactions between the user and the voice recognition device process to improve user experience.
基于同样的发明构思,本申请在一些实施例中还提供了一种语音控制方法,所述方法包括:服务器102接收语音识别设备发送的包含用户标识的语音指令,并查找与所述用户标识相关的所有终端设备。在不存在与所述用户标识相关的终端设备时,服务器102反馈表征不存在终端设备的参数,以使所述语音识别设备播报不存在执行语音指令的终端设备。。在存在与所述用户标识相关的终端设备时,服务器102利用预设的过滤规则筛选出最匹配的终端设备,反馈表征最匹配的终端设备的参数,以使所述语音识别设备播报具备最匹配的终端设备,并控制最匹配的终端设备执行所述语音指令。Based on the same inventive concept, the present application also provides a voice control method in some embodiments, the method includes: the server 102 receives the voice command containing the user ID sent by the voice recognition device, and searches for the voice command related to the user ID. all terminal equipment. When there is no terminal device related to the user identifier, the server 102 feeds back parameters representing the absence of the terminal device, so that the voice recognition device broadcasts that there is no terminal device executing the voice command. . When there is a terminal device related to the user identifier, the server 102 uses preset filtering rules to filter out the most matching terminal device, and feeds back parameters representing the most matching terminal device, so that the voice recognition device broadcasts the most matching terminal device. terminal device, and control the most matching terminal device to execute the voice command.
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述一些的讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用所述实施方式以及适于具体使用考虑的各种不同的变形的实施方式。For convenience of explanation, the above description has been made in conjunction with specific implementation manners. However, the discussion of some of the above is not intended to be exhaustive or to limit the implementations to the specific forms disclosed above. Many modifications and variations are possible in light of the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various modified embodiments suitable for specific use considerations.

Claims (24)

  1. 一种终端设备,包括:A terminal device comprising:
    控制器,被配置为:Controller, configured as:
    接收用户输入的用户登录信息而使所述终端设备用作主设备,所述用户登录信息对应于指定账号;receiving user login information input by the user to make the terminal device function as a master device, the user login information corresponding to a designated account;
    基于用户登录信息而向服务器发送账号登录请求以请求用于登录的主令牌信息,所述主令牌信息是所述服务器基于对所述用户登录信息的校验通过而产生的,所述主令牌信息包括用于标识所述指定账号的账号ID;Send an account login request to the server based on the user login information to request primary token information for login, the primary token information is generated by the server based on passing the verification of the user login information, the primary The token information includes an account ID for identifying the specified account;
    从所述服务器接收所述主令牌信息,以及,基于所述主令牌信息中的账号ID登录对应的指定账号;receiving the primary token information from the server, and logging into a corresponding designated account based on the account ID in the primary token information;
    将所述主令牌信息发送至从设备,以使得从设备基于主令牌信息而向服务器发送自动登录请求以请求用于登录的从令牌信息以及基于从令牌信息中的账号ID登录对应的指定账号,所述从设备与所述主设备处于配对关系。Send the master token information to the slave device, so that the slave device sends an automatic login request to the server based on the master token information to request slave token information for logging in and log in based on the account ID in the slave token information The specified account of the slave device is in a pairing relationship with the master device.
  2. 根据权利要求1所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 1, wherein the controller is further configured to:
    启动本端配置的蓝牙模块;Start the bluetooth module configured on this end;
    基于所述蓝牙模块与从设备建立配对关系,其中,所述从设备处于令牌监听状态,使得所述从设备具有接收令牌信息的功能且不具有发送令牌信息的功能;所述主设备处于令牌监听取消状态,使得所述主设备具有接收和发送令牌信息的功能。Establish a pairing relationship with the slave device based on the bluetooth module, wherein the slave device is in a token monitoring state, so that the slave device has the function of receiving token information and does not have the function of sending token information; the master device It is in the state of canceling token monitoring, so that the master device has the function of receiving and sending token information.
  3. 根据权利要求1所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 1, wherein the controller is further configured to:
    接收所述从设备登录不同于所述指定账号的第二账号时所产生的监听取消指令;receiving a monitoring cancellation instruction generated when the slave device logs in to a second account different from the specified account;
    响应于所述监听取消指令,停止向所述从设备发送主令牌信息。In response to the monitoring cancel instruction, stop sending master token information to the slave device.
  4. 根据权利要求1所述的终端设备,其中,所述控制器被进一步配置为:基于用户登录信息和对应于用于标识所述终端设备的设备ID的主设备ID生成所述账号登录请求发送至服务器,以向所述服务器请求主令牌信息,The terminal device according to claim 1, wherein the controller is further configured to: generate the account login request based on user login information and a master device ID corresponding to the device ID used to identify the terminal device and send it to a server to request master token information from said server,
    其中,当所述服务器确定所述登录信息中的用户名和密码与所存储的与所述主设备ID对应的注册用户名和注册密码一致时,对所述用户登录信息的校验通过,所述主令牌信息还包括所述主设备ID;以及Wherein, when the server determines that the username and password in the login information are consistent with the stored registered username and password corresponding to the master device ID, the verification of the user login information passes, and the master The token information also includes the master device ID; and
    其中,所述从设备是基于主令牌信息和对应于所述从设备的从设备ID生成所述自动登录请求发送至服务器以请求所述从令牌信息的,所述从令牌信息是所述服务器基于对主令牌信息的校验通过而根据从设备ID和主令牌信息产生的,所述从令牌信息包括所述账号ID和所述从设备ID,所述从设备是根据所述从令牌信息中的从设备ID而利用所述账号ID登录对应的指定账号的。Wherein, the slave device generates the automatic login request based on the master token information and the slave device ID corresponding to the slave device and sends it to the server to request the slave token information, and the slave token information is the The server generates it based on the slave device ID and the master token information based on the verification of the master token information, the slave token information includes the account ID and the slave device ID, and the slave device is based on the According to the slave device ID in the token information, use the account ID to log in the corresponding designated account.
  5. 一种终端设备,包括:A terminal device comprising:
    控制器,被配置为:Controller, configured as:
    接收主设备在基于用户输入的用户登录信息登录指定账号后发送的主令牌信息而使所述终端设备用作从设备,所述主令牌信息是所述服务器基于对所述主设备发送的所述用户登录信息的校验通过而产生并发送给所述主设备的,所述主令牌信息包括用于标识所述指定账号的账号ID;Receiving the master token information sent by the master device after logging in to the specified account based on the user login information input by the user to make the terminal device act as a slave device, the master token information is sent by the server based on the master device The verification of the user login information is generated and sent to the main device, and the main token information includes an account ID for identifying the specified account;
    基于所述主令牌信息而向所述服务器发送自动登录请求以请求用于登录的从令牌信息,所述从令牌信息是所述服务器基于对主令牌信息的校验通过而产生的,所述从令牌信息包括所述账号ID;Send an automatic login request to the server based on the primary token information to request secondary token information for logging in, the secondary token information is generated by the server based on the verification of the primary token information , the slave token information includes the account ID;
    从所述服务器接收所述从令牌信息,基于所述从令牌信息中的账号ID,登录对应的指定账号。receiving the slave token information from the server, and logging into a corresponding specified account based on the account ID in the slave token information.
  6. 根据权利要求5所述的终端设备,其中,所述控制器被进一步配置为:基于主令牌信息和对应于所述终端设备的设备ID的从设备ID生成所述自动登录请求以向服务器请求所述从令牌信息,The terminal device according to claim 5, wherein the controller is further configured to: generate the automatic login request based on the master token information and the slave device ID corresponding to the device ID of the terminal device to request The slave token information,
    其中,所述主设备是基于用户登录信息和对应于所述主设备的主设备ID生成账号登录请求而向服务器请求所述主令牌信息的,所述主令牌信息是所述服务器基于根据所述主设备ID对所述用户登录信息的校验通过而产生的,所述主令牌信息还包括所述主设备ID,当所述服务器确定所述登录信息中的用户名和密码与所存储的与所述主设备ID对应的注册用户名和注册密码一致时,对所用户登录信息的校验通过;以及Wherein, the master device generates an account login request based on the user login information and the master device ID corresponding to the master device, and requests the server for the master token information, and the master token information is obtained by the server based on the The main device ID is generated by passing the verification of the user login information, and the main token information also includes the main device ID. When the server determines that the user name and password in the login information are consistent with the stored When the registered user name corresponding to the master device ID and the registered password are consistent, the verification of the user's login information is passed; and
    其中,所述从令牌信息是所述服务器基于对主令牌信息的校验通过而根据所述主令牌信息和从设备ID产生的,所述从令牌信息包括所述账号ID和所述从设备ID,所述从设备是根据所述从令牌信息中的从设备ID而利用所述账号ID登录对应的指定账号的。Wherein, the secondary token information is generated by the server according to the primary token information and the secondary device ID based on the verification of the primary token information, and the secondary token information includes the account ID and the The slave device ID, the slave device uses the account ID to log in to the corresponding specified account according to the slave device ID in the slave token information.
  7. 根据权利要求6所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 6, wherein the controller is further configured to:
    在与所述主设备登录同一指定账号后,缓存所述从令牌信息。After logging in with the same specified account as the master device, the slave token information is cached.
  8. 根据权利要求7所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 7, wherein the controller is further configured to:
    响应于接收到的第二主令牌信息,判断本地缓存中是否存在用于登录第二账号所需的第二从令牌信息,其中,所述第二主令牌信息包括用于标识所述第二账号的第二账号ID,所述第二从令牌信息包括所述第二账号ID和所述从设备ID。In response to the received second primary token information, determine whether there is second secondary token information required for logging in to the second account in the local cache, wherein the second primary token information includes information for identifying the A second account ID of a second account, the second slave token information includes the second account ID and the slave device ID.
  9. 根据权利要求8所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 8, wherein the controller is further configured to:
    响应于本地缓存中不存在所述第二从令牌信息,基于用户的选择操作而登录对应的目标账号,所述目标账号包括所述指定账号和所述第二账号中的一种。In response to the fact that the second secondary token information does not exist in the local cache, a corresponding target account is logged in based on a user's selection operation, and the target account includes one of the specified account and the second account.
  10. 根据权利要求8所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 8, wherein the controller is further configured to:
    响应于本地缓存中存在所述第二从令牌信息,确定所述第二从令牌信息是否在创建时间内;In response to the existence of the second slave token information in the local cache, determine whether the second slave token information is within the creation time;
    响应于确定所述第二从令牌信息在创建时间内,基于所述第二从令牌信息利用第二账号ID登录所述第二账号;以及In response to determining that the second slave token information is within the creation time, log in the second account with a second account ID based on the second slave token information; and
    响应于确定所述第二从令牌信息已失效,基于所述第二从令牌信息向服务器请求更新的第二从令牌信息,以及基于更新的第二从令牌信息利用第二账号ID登录所述第二账号。In response to determining that the second slave token information has expired, requesting updated second slave token information from the server based on the second slave token information, and utilizing the second account ID based on the updated second slave token information Log in to the second account.
  11. 根据权利要求9所述的终端设备,其中,所述终端设备还包括显示器,被配置为呈现用户界面,The terminal device according to claim 9, wherein the terminal device further comprises a display configured to present a user interface,
    所述控制器被进一步配置为:The controller is further configured to:
    响应于本地缓存中不存在所述第二从令牌信息,生成提示界面,展示在用户界面中,所述提示界面中包括从令牌信息对应的所述指定账号选项和第二主令牌信息对应的第二账号选项;In response to the absence of the second secondary token information in the local cache, a prompt interface is generated and displayed on the user interface, the prompt interface includes the specified account option corresponding to the secondary token information and the second primary token information The corresponding second account option;
    响应于用户触发所述指定账号选项的登录指令,基于所述从令牌信息登录对应的所述指定账号;In response to the user triggering the login instruction of the designated account option, logging in the corresponding designated account based on the slave token information;
    响应于用户触发所述第二账号选项的登录指令,基于所述第二主令牌信息登录对应的所述第二账号。In response to the user triggering the login instruction of the second account option, the corresponding second account is logged in based on the second primary token information.
  12. 根据权利要求10或11所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 10 or 11, wherein the controller is further configured to:
    响应于所述从设备登录第二账号,产生监听取消指令;generating a monitoring cancellation instruction in response to the slave device logging into the second account;
    响应于所述监听取消指令,停止接收所述主设备发送的主令牌信息。In response to the monitoring cancellation instruction, stop receiving the master token information sent by the master device.
  13. 根据权利要求10或11所述的终端设备,其中,所述控制器被进一步配置为:The terminal device according to claim 10 or 11, wherein the controller is further configured to:
    响应于所述从设备登录第二账号,产生监听取消指令;generating a monitoring cancellation instruction in response to the slave device logging into the second account;
    将所述监听取消指令发送至主设备,使得所述主设备停止向所述从设备发送主令牌信息。Sending the monitoring cancel instruction to the master device, so that the master device stops sending master token information to the slave device.
  14. 一种服务器,包括:A server comprising:
    控制器,被配置为:Controller, configured as:
    响应于主设备发送的携带用户登录信息的账号登录请求,对所述用户登录信息进行校验,以及,In response to an account login request carrying user login information sent by the master device, verifying the user login information, and,
    在校验通过后产生主令牌信息,并发送至所述主设备,以使所述主设备基于所述主令牌信息中的账号ID登录对应的指定账号以及将所述主令牌信息发送至从设备,所述账号ID用于标识用户登录信息校验通过后对应的指定账号;After the verification is passed, the main token information is generated and sent to the main device, so that the main device logs in the corresponding designated account based on the account ID in the main token information and sends the main token information To the slave device, the account ID is used to identify the corresponding specified account after the user login information verification is passed;
    响应于从设备接收所述主设备发送的主令牌信息而产生的自动登录请求,对所述自动登录请求中携带的主令牌信息进行校验,在校验通过后基于主令牌信息产生从令牌信息,并发送至所述从设备,以使所述从设备基于所述从令牌信息中的账号ID登录所述指定账号,所述从设备与主设备处于配对关系。In response to the automatic login request generated by the slave device receiving the primary token information sent by the master device, the primary token information carried in the automatic login request is verified, and the primary token information is generated after the verification is passed. Slave token information, and send it to the slave device, so that the slave device logs in the specified account based on the account ID in the slave token information, and the slave device is in a pairing relationship with the master device.
  15. 根据权利要求14所述的服务器,其中,所述控制器被进一步配置为:在对所述主令牌信息进行校验时,The server according to claim 14, wherein the controller is further configured to: when verifying the primary token information,
    响应于从设备接收所述主设备发送的主令牌信息而产生的自动登录请求,获取从设备ID和所述主令牌信息,所述主令牌信息包括还包括令牌创建时间和时长;In response to the automatic login request generated by the slave device receiving the master token information sent by the master device, the slave device ID and the master token information are obtained, and the master token information includes token creation time and duration;
    响应于服务器中存在用于标识主设备登录的指定账号的账号ID,允许从设备进行自动登录,以及,校验所述从设备ID对应的终端设备是否为预设设备,所述预设设备是指处于同一物联网中进行蓝牙配对连接的终端设备;Responding to the presence of an account ID in the server for identifying a specified account for logging in by the master device, allowing the slave device to perform automatic login, and checking whether the terminal device corresponding to the slave device ID is a preset device, and the preset device is Refers to terminal devices that are in the same Internet of Things for Bluetooth pairing and connection;
    响应于所述从设备ID对应的终端设备为预设设备,则校验所述令牌创建时间和时长是否有效;In response to the terminal device corresponding to the slave device ID being a preset device, verifying whether the token creation time and duration are valid;
    响应于所述令牌创建时间和时长有效,则确定所述从设备发送的自动登录请求中携带的从设备ID和主令牌信息校验通过。In response to the valid token creation time and duration, it is determined that the slave device ID and master token information carried in the automatic login request sent by the slave device pass the verification.
  16. 根据权利要求14所述的服务器,其中,所述服务器还被配置为:The server according to claim 14, wherein the server is further configured to:
    接收语音识别设备发送的包含用户ID的语音指令;Receive the voice command including the user ID sent by the voice recognition device;
    查找与所述用户ID相关的所有终端设备;Find all terminal devices associated with said user ID;
    响应于不存在与所述用户ID相关的终端设备,反馈表征不存在终端设备的参数,以使所述语音识别设备播报不存在执行语音指令的终端设备;In response to the absence of a terminal device associated with the user ID, feeding back parameters representing the absence of a terminal device, so that the voice recognition device broadcasts that there is no terminal device executing a voice command;
    响应于存在与所述用户ID相关的终端设备,利用预设的过滤规则筛选出最匹配的终端设备,反馈表征最匹配的终端设备的参数,以使所述语音识别设备播报存在执行语音指令的终端设备,并控 制最匹配的终端设备执行所述语音指令。In response to the existence of a terminal device related to the user ID, use a preset filter rule to filter out the most matching terminal device, and feed back parameters representing the most matching terminal device, so that the voice recognition device broadcasts that there is a user who executes the voice command. terminal device, and control the most matching terminal device to execute the voice command.
  17. 根据权利要求16所述的服务器,其中,所述过滤规则表征所述语音指令与所述终端设备之间的映射关系,所述过滤规则包含第一组规则和第二组规则,或者只包含第一组规则不包含第二组规则,其中,所述第一组规则指的是为了筛选出最匹配的终端设备所必需的规则,所述第二组规则指的是在没有筛选出最匹配的终端设备时逐一叠加利用的规则。The server according to claim 16, wherein the filtering rule represents the mapping relationship between the voice command and the terminal device, and the filtering rule includes the first group of rules and the second group of rules, or only includes the first group of rules A set of rules does not include a second set of rules, wherein the first set of rules refers to the rules necessary to filter out the most matching terminal equipment, and the second set of rules refers to The rules are superimposed and utilized one by one when terminal devices are used.
  18. 根据权利要求17所述的服务器,其中,所述第一组规则包含终端设备功能权限子规则,所述控制器还被配置为:响应于存在与所述用户ID相关的终端设备,The server according to claim 17, wherein the first set of rules includes terminal device function authority sub-rules, and the controller is further configured to: in response to the existence of a terminal device related to the user ID,
    利用所述第一组规则筛选当前终端设备与所述用户ID相关的终端设备;Using the first set of rules to screen the current terminal device and the terminal device related to the user ID;
    响应于所述用户ID相关的终端设备不具备执行所述语音指令权限,反馈表征不存在终端设备的参数,以使所述语音识别设备播报不存在执行语音指令的终端设备;In response to the fact that the terminal device associated with the user ID does not have the authority to execute the voice command, feeding back parameters representing the absence of the terminal device, so that the voice recognition device broadcasts that there is no terminal device that executes the voice command;
    响应于与所述用户ID相关的终端设备具备执行所述语音指令权限,则确认具备执行所述语音指令权限的终端设备的数量。In response to the terminal device related to the user ID having the right to execute the voice command, confirm the number of terminal devices that have the right to execute the voice command.
  19. 根据权利要求18所述的服务器,其中,所述第二组规则包含多个子规则,多个所述子规则存在优先级,所述控制器还被配置为:The server according to claim 18, wherein the second set of rules includes a plurality of sub-rules, and a plurality of the sub-rules have priorities, and the controller is further configured to:
    响应于存在一个具备执行所述语音指令权限的终端设备,反馈表征存在相应权限的终端设备的参数,以使所述语音识别设备播报具备相应权限的终端设备,并控制当前终端设备执行所述语音指令;In response to the presence of a terminal device with the authority to execute the voice command, feed back parameters representing the terminal device with the corresponding authority, so that the voice recognition device broadcasts the terminal device with the corresponding authority, and controls the current terminal device to execute the voice command. instruction;
    响应于存在多个具备执行所述语音指令权限的终端设备,按照优先级由高到低的顺序逐一利用所述第二组规则中的子规则筛选多个具备执行所述语音指令权限的终端设备,直至筛选出一个最匹配的终端设备。In response to the presence of multiple terminal devices with the authority to execute the voice command, use the sub-rules in the second set of rules to screen the multiple terminal devices with the authority to execute the voice command in descending order of priority , until a most matching terminal device is selected.
  20. 根据权利要求17所述的服务器,其中,所述第二组规则包括用户使用频次子规则、与语音识别设备的距离子规则以及终端设备优先级子规则的至少一个。The server according to claim 17, wherein the second group of rules includes at least one of the user frequency sub-rule, the distance from the speech recognition device sub-rule, and the terminal device priority sub-rule.
  21. 根据权利要求20所述的服务器,其中,,所述服务器被配置为:响应于利用所述用户使用频次子规则筛选终端设备,The server according to claim 20, wherein, the server is configured to: in response to using the user usage frequency sub-rules to screen terminal devices,
    分别检测多个具备执行所述语音指令权限的终端设备的执行频次,其中,所述执行频次指的是终端设备在历史行为中所执行过相同功能的语音指令的次数;Detecting the execution frequency of multiple terminal devices with the authority to execute the voice command, wherein the execution frequency refers to the number of times the terminal device has executed voice commands with the same function in historical behaviors;
    保留执行频次最多的终端设备。The terminal device with the highest execution frequency is kept.
  22. 根据权利要求20所述的服务器,其中,所述服务器被配置为:响应于利用所述与语音识别设备的距离子规则筛选终端设备,The server according to claim 20, wherein the server is configured to: in response to screening terminal devices using the distance from speech recognition device sub-rule,
    分别检测多个具备执行所述语音指令权限的终端设备与语音识别设备的距离;Detecting the distance between a plurality of terminal devices having the authority to execute the voice command and the voice recognition device respectively;
    保留与语音识别设备的距离最近的终端设备。Reserve the terminal device with the closest distance to the voice recognition device.
  23. 根据权利要求20所述的服务器,其中,所述服务器被配置为:响应于利用所述终端设备优先级筛选终端设备,The server according to claim 20, wherein the server is configured to, in response to screening terminal devices using the terminal device priority,
    按照用户设置的终端设备优先级,保留优先级最高的终端设备。According to the terminal device priority set by the user, the terminal device with the highest priority is reserved.
  24. 根据权利要求16所述的服务器,其中,所述服务器还被配置为:响应于所述接收语音识别设备发送的语音指令,The server according to claim 16, wherein the server is further configured to: respond to the voice instruction sent by the receiving voice recognition device,
    将与所述用户ID相关的所有终端设备及设备属性从数据库加载至缓存中,以使所述服务器在所述缓存中查找终端设备。Loading all terminal devices and device attributes related to the user ID from the database into the cache, so that the server can search for the terminal devices in the cache.
PCT/CN2022/102579 2021-08-11 2022-06-30 Terminal device, server, and multi-device collaboration login method WO2023016126A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202280050101.2A CN117652134A (en) 2021-08-11 2022-06-30 Terminal equipment, server and multi-equipment collaborative login method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110917713.4 2021-08-11
CN202110917713.4A CN115910050A (en) 2021-08-11 2021-08-11 Server and voice control method
CN202111093415.4 2021-09-17
CN202111093415.4A CN115834095A (en) 2021-09-17 2021-09-17 Multi-device collaborative login method, display device and server

Publications (1)

Publication Number Publication Date
WO2023016126A1 true WO2023016126A1 (en) 2023-02-16

Family

ID=85200535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102579 WO2023016126A1 (en) 2021-08-11 2022-06-30 Terminal device, server, and multi-device collaboration login method

Country Status (2)

Country Link
CN (1) CN117652134A (en)
WO (1) WO2023016126A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118032A (en) * 2013-03-01 2013-05-22 北京奇艺世纪科技有限公司 Method, terminals and server for synchronization of terminal login accounts
CN104079565A (en) * 2014-06-13 2014-10-01 小米科技有限责任公司 Authorization method and device
CN106131047A (en) * 2016-08-12 2016-11-16 乐视控股(北京)有限公司 Account login method and relevant device, account login system
US20170195429A1 (en) * 2015-12-30 2017-07-06 Symantec Corporation Systems and methods for facilitating single sign-on for multiple devices
CN110035305A (en) * 2019-03-08 2019-07-19 佛山市云米电器科技有限公司 Multi-screen based on smart home shares the video following method and system of account information
CN113225188A (en) * 2020-01-19 2021-08-06 华为技术有限公司 Login authentication method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118032A (en) * 2013-03-01 2013-05-22 北京奇艺世纪科技有限公司 Method, terminals and server for synchronization of terminal login accounts
CN104079565A (en) * 2014-06-13 2014-10-01 小米科技有限责任公司 Authorization method and device
US20170195429A1 (en) * 2015-12-30 2017-07-06 Symantec Corporation Systems and methods for facilitating single sign-on for multiple devices
CN106131047A (en) * 2016-08-12 2016-11-16 乐视控股(北京)有限公司 Account login method and relevant device, account login system
CN110035305A (en) * 2019-03-08 2019-07-19 佛山市云米电器科技有限公司 Multi-screen based on smart home shares the video following method and system of account information
CN113225188A (en) * 2020-01-19 2021-08-06 华为技术有限公司 Login authentication method, device and system

Also Published As

Publication number Publication date
CN117652134A (en) 2024-03-05

Similar Documents

Publication Publication Date Title
US11137872B2 (en) Remote control of electronic devices via mobile device
CN108022590B (en) Focused session at a voice interface device
WO2018039814A1 (en) Smart household control method, apparatus and system
US7024256B2 (en) Method, system, and computer program product for automatically managing components within a controlled environment
EP3206362B1 (en) Account login method and apparatus
US20190304448A1 (en) Audio playback device and voice control method thereof
US9793962B2 (en) Processing near field communications between active/passive devices and a control system
WO2018010533A1 (en) Device control system, method and apparatus, and gateway
JP2018531404A (en) Proposal of history-based key phrase for voice control of home automation system
JP2018531404A6 (en) Proposal of history-based key phrase for voice control of home automation system
CN107976911B (en) Equipment control method, device and system
EP2412107A1 (en) An arrangement for managing wireless communication between devices
CN107635214B (en) Response method, device, system and readable storage medium storing program for executing based on blue Tooth remote controller
WO2023138285A1 (en) Binding method for smart home device and terminal
JP4903054B2 (en) Method, system and computer program product for automatically managing components in a controlled environment
CN111372222A (en) Device connection method and system, corresponding terminal device and server
KR20200024813A (en) Method and apparatus for controlling a home device remotely in a home network system
CN109599100A (en) Interactive electronic equipment control system, interactive electronic apparatus and its control method
WO2021248963A1 (en) Home appliance, networking method therefor, control terminal, and computer storage medium
WO2023016126A1 (en) Terminal device, server, and multi-device collaboration login method
WO2022268136A1 (en) Terminal device and server for voice control
CN113296415A (en) Intelligent household electrical appliance control method, intelligent household electrical appliance control device and system
CN114301628A (en) Smart home equipment authentication method, device, equipment, system and storage medium
CN113300920A (en) Intelligent household appliance control method and control equipment based on household appliance control group
CN114286144A (en) Control device and equipment pairing method and control device

Legal Events

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

Ref document number: 22855110

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE