Equipment account login method, electronic equipment and readable storage medium

By using NFC modules to establish connections between the device and the terminal device, automatically logging in to the terminal device account, solving the existing problems of complex and inefficient operations, improving operation simplicity and security.

CN119316157APending Publication Date: 2025-01-14HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310855560.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-12
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The account of existing vehicle login terminal equipment is complex and inefficient, which affects driving safety.

Method used

The NFC module is used to establish a connection between the device and the terminal device, and automatically log in by sending verification information, without the need for users to manually enter an account or scan a QR code, simplifying operations and improving security.

Benefits of technology

It realizes that the device logs into the terminal device's account is simple and efficient, improves user experience and driving safety, and improves security through server verification information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316157A_ABST
    Figure CN119316157A_ABST
Patent Text Reader

Abstract

The invention provides a method for logging in an account by a device, an electronic device and a readable storage medium, in the method, a user holds the terminal device by hand to approach a designated position of the device, the device can log in a first account of the terminal device, the user does not need to manually input an account and a password or scan a two-dimensional code, the operation is simple, and the efficiency is high. Besides, the server can enable the device to log in the first account of the terminal device only after verifying the device and the identity of the terminal device based on the first verification information of the device and the second verification information of the terminal device, so that the security is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a method for logging into an account on a device, an electronic device, and a readable storage medium. Background Art

[0002] With the continuous development of vehicle technology, vehicles are gradually moving towards intelligent driving, intelligent interaction, and intelligent interconnection. At present, when users log in to their accounts on terminal devices on vehicles, they need to manually enter their account and password, or use the terminal device to scan the QR code on the vehicle before the vehicle can log in to the account on the terminal device.

[0003] The current method of logging into a vehicle terminal device account is complex and inefficient. Summary of the invention

[0004] The embodiments of the present application provide a method for logging into an account through a device, an electronic device, and a readable storage medium. The operation of logging into an account through a device on a terminal device is simple and efficient.

[0005] In a first aspect, an embodiment of the present application provides a method for logging into an account through a device, which is applied to a system for logging into an account through a device, and the system may include a device and a terminal device. The device may include, but is not limited to: a vehicle, smart glasses, augmented reality (AR) devices, virtual reality (VR) devices, tablet computers (portable android devices, PADs), personal digital assistants (PDAs), etc., and the embodiment of the present application does not limit the form of the device.

[0006] In the method, an NFC module is provided at a designated position of the device. For example, taking a vehicle as an example, the vehicle may include at least one screen, and each screen may correspond to an NFC module. For example, taking smart glasses as an example, NFC modules may be provided on the temples and lenses of the smart glasses, respectively. Among them, an NFC module is also provided in the terminal device.

[0007] When the terminal device is close to the designated location of the device, the device can establish an NFC connection with the terminal device through the NFC module. The device can send first verification information to the terminal device so that the terminal device can assist the device in logging into the account of the terminal device. The first verification information is used to verify the identity of the device. It should be understood that in the embodiment of the present application, the terminal device has logged into the first account, wherein the terminal device can obtain second verification information from the server after logging into the first account, and the second verification information is used to verify the identity of the terminal device.

[0008] In an embodiment of the present application, after the terminal device receives the first verification information from the device, the terminal device may send the first verification information and the second verification information of the terminal device to the server. The server may verify the first verification information and the second verification information, wherein the purpose of the server verifying the first verification information is to verify the identity of the device, and the purpose of the server verifying the second verification information is to verify the identity of the terminal device. In response to the first verification information and the second verification information being verified, the server may send third verification information to the device, and the third verification information is used to indicate that the device has logged into the first account of the terminal device, and the device can access the resources of the first account through the third verification information. Therefore, the device can display the interface after logging into the first account according to the third verification information.

[0009] In the embodiment of the present application, the user holds the terminal device close to the designated position of the device, and the device can log in to the first account of the terminal device without the user manually entering the account and password or scanning the QR code, which is simple to operate and highly efficient. In addition, the server can verify the identity of the device and the terminal device based on the first verification information and the second verification information before enabling the device to log in to the first account of the terminal device, which is highly secure.

[0010] In a possible implementation, the third verification information is used to verify the identity of the device to verify whether the device has permission to access the resources corresponding to the first account. The device requests the server for the resources corresponding to the first account based on the third verification information.

[0011] Exemplarily, when the first account is a system account of the terminal device, the permissions of the device may include but are not limited to: access rights to system applications associated with the first account. For example, after the device logs in to the first account, the device can also log in to the system application associated with the first account. System applications may include but are not limited to: audio applications, reading applications, wallpaper applications, settings applications, etc. The resources corresponding to the first account can be understood as: resources corresponding to system applications.

[0012] In a possible implementation, the first account may be a system account or an application account logged in by the user on the terminal device. In some embodiments, the system account logged in by the user on the terminal device may be referred to as the system account of the terminal device, and the application account logged in by the user on the terminal device may be referred to as the application account of the terminal device.

[0013] In this implementation, the user holds the terminal device close to a designated location of the device and can log in to the system account or application account of the terminal device, which has a wide range of applications.

[0014] In a possible implementation, after the device and the NFC module establish an NFC connection with the terminal device near the specified location, the terminal device may further output a first prompt message. The first prompt message is used to prompt the user to confirm the use of the auxiliary login function, and the auxiliary login function is used to enable the device to log in to the first account. In an embodiment of the present application, in response to the user's operation of confirming the use of the auxiliary login function, the terminal device sends a first request to the device, and the first request is used to request the first verification information. In response to the first request, the device sends the first verification information to the terminal device.

[0015] In this implementation, the terminal device can output a first prompt message, and the user confirms the use of the auxiliary login function, triggering the device to log in to the account of the terminal device. In the embodiment of the present application, the terminal device can interact with the user, which can prevent the user from holding the terminal device close to the designated location of the device in order to perform other services. The user confirms the use of the auxiliary login function, which can improve the user experience.

[0016] In one possible implementation, after the device and the NFC module establish an NFC connection with a terminal device near the specified location, the terminal device can not only interact with the user, and the user triggers the device to log in to the terminal device account, but the terminal device can also provide the user with the account of the terminal device selected by the user to log in.

[0017] In this implementation, the terminal device may output a second prompt message. The second prompt message is used to prompt the user to select the identifier of the first account. The user may select the identifier of the first account to trigger the device to log in to the first account of the terminal device. In response to the user selecting the identifier of the first account, the terminal device sends a first request to the device, and the first request is used to request the first verification information. In response to the first request, the device sends the first verification information to the terminal device.

[0018] In this implementation, the terminal device can provide a solution for the user to select an account of the terminal device. The user can choose which account to log in to the terminal device. The user selects the account of the terminal device, which is highly flexible and can improve the user experience.

[0019] In a possible implementation, after the device and the NFC module establish an NFC connection with a terminal device near the designated location, the terminal device may output the first prompt information or the second prompt information.

[0020] In a possible implementation, after the device and the NFC module establish an NFC connection with the terminal device near the designated location, the device may also send the NFC function supported by the device to the terminal device, where the NFC function includes an auxiliary login function. The terminal device may determine whether to output the first prompt information based on the NFC function and the application running on the terminal device. In this way, the terminal device may avoid outputting the first prompt information or the second prompt information excessively to disturb the user.

[0021] Among them, when the device supports multiple NFC functions and the terminal device is running applications corresponding to functions other than the auxiliary login function, the terminal device cannot determine which NFC function is used at the specified location near the device. Therefore, the terminal device can determine to output the first prompt information, and the user determines to use the auxiliary login function.

[0022] Among them, when the device supports multiple NFC functions and the terminal device does not run applications corresponding to functions other than the auxiliary login function, the terminal device can determine that the designated location near the device is using the auxiliary login function, so the terminal device can determine not to output the first prompt information.

[0023] Among them, when the device supports only one NFC function, and the NFC function is assisted login, the terminal device can determine that the designated location near the device is using the assisted login function, so the terminal device can determine not to output the first prompt information.

[0024] In a possible implementation, the device may also output the first prompt information or the second prompt information. In this method, after the user holds the terminal device close to the designated position of the device, the user does not need to unlock the terminal device, but directly operates on the device, which is easy to operate. For example, taking the device as a vehicle, in some embodiments, the vehicle may include a first screen, the first screen may correspond to an NFC module, and the designated position of the vehicle may be on the first screen.

[0025] After the user gets on the vehicle with the handheld terminal device, the user brings the terminal device close to the first screen. The first screen of the vehicle can output the first prompt information or the second prompt information, so that the user does not need to unlock the terminal device, and the user can directly operate on the first screen of the device, which is easy to operate and can avoid repeatedly unlocking the terminal device.

[0026] After the device and the NFC module establish an NFC connection with the terminal device near the specified location, the device may also output a first prompt message. The first prompt message is used to prompt the user to confirm the use of the auxiliary login function, and the auxiliary login function is used to enable the device to log in to the first account. In the embodiment of the present application, in response to the user's operation of confirming the use of the auxiliary login function, the device sends the first verification information of the device to the terminal device.

[0027] In this implementation, the device can output a first prompt message, and the user confirms the use of the auxiliary login function, triggering the device to log in to the account of the terminal device. In the embodiment of the present application, the device can interact with the user, which can prevent the user from holding the terminal device close to the designated location of the device in order to perform other services. The user confirms the use of the auxiliary login function, which can improve the user experience.

[0028] After the device and the NFC module establish an NFC connection with the terminal device near the specified location, the device can not only interact with the user, and the user triggers the device to log in to the account of the terminal device, but also provide the user with the account of the terminal device selected by the device to log in. In this implementation, the device can output a second prompt information. The second prompt information is used to prompt the user to select the identifier of the first account; the user can select the identifier of the first account to trigger the device to log in to the first account of the terminal device. In response to the user's operation of selecting the identifier of the first account, the device sends the first verification information of the device to the terminal device.

[0029] In this implementation, the device can provide a solution for the user to select an account of the terminal device. The user can choose which account of the terminal device to log in to. The user selects the account of the terminal device, which is highly flexible and can improve the user experience.

[0030] In a possible implementation, the first verification information may be stored in the device, so after the device establishes an NFC connection with the terminal device, the device may send the first verification information to the terminal device.

[0031] Because the method of directly storing the first verification information in the device has low security, in a possible implementation, after the device establishes an NFC connection with the terminal device, the device can request the first verification information from the server. The device sends a second request to the server, the second request is used to request the first verification information, and the second request includes the identifier of the device. In response to the second request from the device, the server can generate the first verification information and feed back the first verification information to the device.

[0032] In some embodiments, the first verification information may include an identifier of the device and a first token, and the first token may be a session token between the device and the server.

[0033] In some embodiments, the second verification information may include a second token, and the third verification information may include a third token. Both the second token and the third token are access tokens.

[0034] In a possible implementation, the device may be a vehicle, the vehicle includes a first screen, and the designated position of the device is on the first screen. In some embodiments, the first screen may be a central control screen of the vehicle.

[0035] In the embodiment of the present application, before the device sends the second request to the server, the device can determine whether the first account logged in by the device is a system account or an application account of the terminal device, that is, the device can determine the server to which the second request is sent. When the device determines that the first account logged in by the device is a system account of the terminal device, the server can be a system account server, and when the device determines that the first account logged in by the device is an application account of the terminal device, the server can be a server corresponding to the application.

[0036] Before the device sends the second request to the server, the device may determine the server according to the content displayed on the first screen. Exemplarily, when the first screen displays the desktop or the login interface of the system account, the device may determine that the first account to be logged in is the system account of the terminal device. When the first screen displays the login interface of the application or the interface of the application, the device may determine that the first account to be logged in is the application account of the terminal device.

[0037] Before the device sends the second request to the server, the device can determine the server according to the area to which the specified position belongs in the first screen. Exemplarily, the system account of the terminal device corresponds to the first area at the top of the first screen. When the terminal device is close to the first area at the top of the first screen, the device can determine that the first account to be logged in is the system account of the terminal device. Exemplarily, the account of the first application of the terminal device corresponds to the second area at the bottom of the first screen. When the terminal device is close to the second area at the bottom of the first screen, the device can determine that the first account to be logged in is the account of the first application of the terminal device.

[0038] Among them, before the device sends the second request to the server, when the device outputs the second prompt information, the user can select the identifier of the first account by himself. In response to the operation of the user selecting the identifier of the first account, the device can determine the server based on the identifier of the first account selected by the user, and the server is the server corresponding to the application to which the first account belongs.

[0039] The embodiments of the present application provide a variety of ways for devices to determine servers, which are easy to implement and highly flexible.

[0040] In a possible implementation, after the device establishes an NFC connection with the terminal device near the specified location through the NFC module, it can also establish a wireless communication connection with the terminal device. The wireless communication connection is different from the NFC connection, and the wireless communication connection is used to transmit data exchanged between the device and the terminal device. The data includes the first verification information, the first request, the NFC function supported by the device, etc.

[0041] In this implementation, the data exchanged between the device and the terminal device is transmitted based on the wireless communication connection. There is no need for the user to keep the terminal device close to the specified location all the time. The use of the wireless communication connection can realize the interaction of data between the device and the terminal device, facilitate user operation, and improve user driving safety.

[0042] In a possible implementation, in response to the terminal device approaching the designated location again, the device displays an interface for logging out of the first account.

[0043] In the embodiment of the present application, after the device logs in the first account on the first screen, the user's handheld terminal device approaches the designated position of the device again, which can trigger the device to log out of the first account, and the operation is simple.

[0044] In a second aspect, an embodiment of the present application provides a method for logging into a device account, which is applied to a device.

[0045] In the method, an NFC module is provided at a designated position of the device, and the method includes: the device can establish an NFC connection with a terminal device near the designated position through the NFC module; the device sends first verification information to the terminal device, so that the terminal device assists the device in logging into a first account of the terminal device based on the first verification information and second verification information of the terminal device, and the second verification information is obtained from the server after the terminal device logs in to the first account; the device receives third verification information from the server, and the third verification information is used for the device to access the resources of the first account; the device displays the interface after logging in to the first account according to the third verification information.

[0046] In a possible implementation, the first account is a system account or an application account used by a user to log in on the terminal device.

[0047] In a possible implementation, after establishing an NFC connection with a terminal device close to the specified location through the NFC module, it also includes: the device outputs a first prompt message, the first prompt message is used to prompt the user to confirm the use of an auxiliary login function, and the auxiliary login function is used to enable the device to log in to the first account.

[0048] The sending the first verification information of the device to the terminal device includes: in response to the user determining to use the auxiliary login function, the device sending the first verification information of the device to the terminal device.

[0049] In a possible implementation, after establishing an NFC connection with a terminal device near the designated location through the NFC module, the method further includes: the device outputting a second prompt message, where the second prompt message is used to prompt a user to select an identifier of the first account.

[0050] The sending of the first verification information of the device to the terminal device includes: in response to the user selecting the identifier of the first account, the device sending the first verification information of the device to the terminal device.

[0051] In a possible implementation, before sending the first verification information of the device to the terminal device, it also includes: the device sends a second request to the server, the second request is used to request the first verification information, the second request includes the identification of the device; and receives the first verification information from the server.

[0052] In a possible implementation manner, the device includes a first screen, and the designated position is located on the first screen.

[0053] In a possible implementation, before sending the second request to the server, it also includes: the device determines the server according to the content displayed on the first screen; or, determines the server according to the area to which the specified location belongs in the first screen; or, determines the server according to the identifier of the first account selected by the user.

[0054] In a possible implementation, after displaying the interface for logging into the first account, the method further includes: in response to the terminal device approaching the designated location again, the device displays an interface for logging out of the first account.

[0055] In a possible implementation, the first verification information is a uniform resource locator URL, the first verification information includes: an identifier of the device and a first token token, the second verification information includes a second token, and the third verification information includes a third token.

[0056] In a possible implementation manner, the method further includes: the device requesting, from the server, resources corresponding to the first account based on the third verification information.

[0057] In a possible implementation, after the device establishes an NFC connection with a terminal device near the specified location through the NFC module, it also includes: the device establishes a wireless communication connection with the terminal device, the wireless communication connection is different from the NFC connection, and the wireless communication connection is used to transmit data interacted between the device and the terminal device, and the data includes the first verification information.

[0058] In a possible implementation, the method further includes: in response to the terminal device approaching the designated location again, the device displaying an interface for logging out of the first account.

[0059] In a possible implementation manner, the device is a vehicle.

[0060] In a possible implementation, the vehicle includes a first screen, the designated position is located on the first screen, and the first screen is a central control screen of the vehicle.

[0061] In a third aspect, an embodiment of the present application provides a method for logging into a device account, which is applied to a terminal device.

[0062] In this method, in response to the terminal device approaching a designated position of a device, the terminal device can establish an NFC connection with the device, and an NFC module is arranged at the designated position of the device; the terminal device receives first verification information from the device; the terminal device sends the first verification information and the second verification information of the terminal device to the server to trigger the device to log in to the first account of the terminal device, and the second verification information is obtained from the server after the terminal device logs in to the first account.

[0063] In a possible implementation, the first account is a system account or an application account used by a user to log in on the terminal device.

[0064] In a possible implementation, after establishing the NFC connection with the device, it also includes: the terminal device outputs a first prompt message, the first prompt message is used to prompt the user to confirm the use of the auxiliary login function, and the auxiliary login function is used to enable the device to log in to the first account; in response to the user's determination to use the auxiliary login function, a first request is sent to the device, and the first request is used to request the first verification information.

[0065] In a possible implementation, before outputting the first prompt information, it also includes: the terminal device receives an NFC function supported by the device from the device, and the NFC function includes the auxiliary login function; the terminal device determines whether to output the first prompt information based on the NFC function and the application running by the terminal device.

[0066] In a possible implementation, determining whether to output the first prompt information based on the NFC function and the application running on the terminal device includes: when there are multiple NFC functions and the terminal device is running applications corresponding to functions other than the auxiliary login function, determining to output the first prompt information; when there are multiple NFC functions and the terminal device is not running applications corresponding to functions other than the auxiliary login function, determining not to output the first prompt information; when there is only one NFC function, determining not to output the first prompt information.

[0067] In a possible implementation, after establishing the NFC connection with the device, the method further includes: the terminal device outputting a second prompt message, wherein the second prompt message is used to prompt the user to select the identifier of the first account. In response to the user selecting the identifier of the first account, the terminal device may send a first request to the device, and the device may send the first verification information of the device to the terminal device in response to the first request.

[0068] In a possible implementation, the first verification information is a uniform resource locator URL, the first verification information includes: an identifier of the device and a first token token, the second verification information includes a second token, and the third verification information includes a third token.

[0069] In a possible implementation, after the terminal device establishes an NFC connection with the device, it also includes: the terminal device establishes a wireless communication connection with the device, the wireless communication connection is different from the NFC connection, and the wireless communication connection is used to transmit data exchanged between the device and the terminal device, and the data includes the first verification information.

[0070] In a fourth aspect, an embodiment of the present application provides a method for logging into an account through a device, which is applied in a server.

[0071] In this method, the server can receive first verification information and second verification information from a terminal device, wherein the first verification information comes from the device, and the second verification information is obtained from the server after the terminal device logs in to a first account; the server verifies the first verification information and the second verification information; the server generates third verification information in response to the verification of the first verification information and the second verification information; the server sends the third verification information to the device, and the third verification information is used for the device to access the resources of the first account.

[0072] In a possible implementation, in response to the first verification information and the second verification information being verified successfully, the method further includes: the server correspondingly storing the first account of the terminal device, the password of the first account, and the identifier of the device.

[0073] In this implementation, the server may store the third verification information, wherein the server may store the first account of the terminal device, the password of the first account, the third verification information, and the identifier of the device in correspondence. When the device requests the server for resources corresponding to the first account based on the third verification information, the server may verify the third verification information, and when the third verification information passes, the server may feedback the resources corresponding to the first account to the device.

[0074] In a possible implementation, before the server receives the first verification information and the second verification information from the terminal device, the server may receive a second request from the device, generate the first verification information, and send the first verification information to the device.

[0075] In a possible implementation, the first verification information is a uniform resource locator URL, the first verification information includes: an identifier of the device and a first token token, the second verification information includes a second token, and the third verification information includes a third token.

[0076] In one possible implementation, the first token may be a session token between the device and the server, the second token may be an access token for the terminal device to access resources corresponding to the first account, and the third token may be an access token for the device to access resources corresponding to the first account.

[0077] In a fifth aspect, an embodiment of the present application provides a device, which may include: a processor and a memory. The memory is used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the device to execute the method in the second aspect.

[0078] In a sixth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory. The memory is used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the terminal device to execute the method in the third aspect.

[0079] In a seventh aspect, an embodiment of the present application provides a server, which may include: a processor and a memory. The memory is used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the server to execute the method in the fourth aspect.

[0080] In an eighth aspect, an embodiment of the present application provides a vehicle-mounted device, which is disposed in a vehicle and includes: a module for executing the method described in the second aspect.

[0081] In a ninth aspect, an embodiment of the present application provides a system for logging into a device account, which system may include the device in the fifth aspect or the vehicle-mounted device in the eighth aspect, and the terminal device in the sixth aspect.

[0082] In a tenth aspect, an embodiment of the present application provides a system for logging into a device account, which system may include the device in the fifth aspect or the vehicle-mounted device in the eighth aspect, and the server in the seventh aspect.

[0083] In the eleventh aspect, an embodiment of the present application provides a system for logging into a device account, which system may include the terminal device of the sixth aspect above, and the server of the seventh aspect.

[0084] In the twelfth aspect, an embodiment of the present application provides a system for logging into a device account, which system may include the device of the fifth aspect or the vehicle-mounted device of the eighth aspect, the terminal device of the sixth aspect, and the server of the seventh aspect.

[0085] In a thirteenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods in the second, third, and fourth aspects above.

[0086] In a fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the methods in the second, third, and fourth aspects above.

[0087] The beneficial effects of the possible implementation methods of the second to fourteenth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] Figure 1A schematic diagram of a scenario applicable to the method for logging into an account with a device provided in an embodiment of the present application;

[0089] Figure 2 A schematic diagram of interaction between a vehicle and a terminal device provided in an embodiment of the present application;

[0090] Figure 3 A flowchart of an embodiment of a method for logging into an account using a device provided in an embodiment of the present application;

[0091] Figure 4A A schematic diagram of an interface of a first screen provided in an embodiment of the present application;

[0092] Figure 4B Another interface schematic diagram of the first screen provided in an embodiment of the present application;

[0093] Figure 5 A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0094] Fig. 6A A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0095] Figure 6B A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0096] Fig. 7A A schematic diagram of an interface for outputting first prompt information by a terminal device provided in an embodiment of the present application;

[0097] Figure 7B A schematic diagram of an interface for outputting second prompt information by a terminal device provided in an embodiment of the present application;

[0098] Fig. 8A A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0099] Figure 8B A schematic diagram of an interface for outputting first prompt information for a vehicle provided in an embodiment of the present application;

[0100] Figure 8C A schematic diagram of an interface for outputting second prompt information for a vehicle provided in an embodiment of the present application;

[0101] Fig.9A Another interface schematic diagram of the first screen provided in an embodiment of the present application;

[0102] Fig. 9B A schematic diagram of managing the account of a logged-in terminal device provided in an embodiment of the present application;

[0103] Fig. 10A A schematic diagram of a vehicle logging out of a first account provided in an embodiment of the present application;

[0104] Fig. 10B A flowchart of an embodiment of a vehicle logout account provided in an embodiment of the present application;

[0105] Fig.11 A schematic diagram of logging into different accounts on different screens is provided for an embodiment of the present application;

[0106] Fig.12 Another schematic diagram of logging into different accounts on different screens is provided for an embodiment of the present application;

[0107] Fig.13A A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0108] Fig. 13B A flowchart of another embodiment of the method for logging into an account using a device provided in an embodiment of the present application;

[0109] Fig. 13C A flowchart of an embodiment of a vehicle logout account provided in an embodiment of the present application;

[0110] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0111] Definitions of terms used in the embodiments of this application:

[0112] Token: Currently, when an electronic device requests data from a server, it can carry its own account number and password. The server will frequently verify whether the account number and password of the electronic device are correct. When the account number and password are correct, the server can return data to the electronic device. In order to reduce the verification workload of the server, tokens came into being. After the electronic device logs in to the account, the server can generate a token and return the token to the electronic device. The electronic device can subsequently use the token to request data from the server without carrying the account number and password. In some embodiments, after the electronic device logs in to the account, the token generated by the server can be called an access token.

[0113] In some embodiments, the electronic device may be a device or terminal device as described in the following embodiments. In some embodiments, the device may be a vehicle, smart glasses, augmented reality (AR) device, virtual reality (VR) device, tablet computer (portable android device, PAD), personal digital assistant (PDA), etc. The embodiments of the present application do not limit the form of the device.

[0114] The terminal device in the embodiments of the present application may be referred to as user equipment (UE), terminal, etc. For example, the terminal device may be a mobile phone, a portable android device (PAD), a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. The embodiments of the present application do not specifically limit the form of the terminal device.

[0115] In some embodiments, the session token can be regarded as an authorization identifier for a session between the device and the server. In some embodiments, the validity period of the session token can be shorter than the validity period of the access token.

[0116] In some embodiments, the token may be a string, such as a token may include information such as the identification of the electronic device, the time when the token was generated, and the signature of the server, etc., which is not limited in this embodiment of the present application.

[0117] Figure 1 A schematic diagram of a scenario applicable to the method for logging into an account using a device provided in an embodiment of the present application. Figure 1 In a, the vehicle includes a central control screen 11. When a user operates the central control screen 11, the vehicle can trigger the account of the terminal device to log in. After the vehicle logs in to the account of the terminal device, the user can use the resources corresponding to the account on the vehicle. For example, taking the account as an audio application (APP) account of the terminal device as an example, after the vehicle logs in to the audio APP account, the user can play the local music of the account on the central control screen 11.

[0118] Currently, refer to Figure 1 b, for example, the central control screen 11 may display a login control 111, and the user operating the login control 111 may trigger the central control screen 11 to display a login interface. In some embodiments, the login interface may display an account input box and a password input box, and the user enters the account of the terminal device in the account input box and the password corresponding to the account in the password input box, so that the vehicle can log in to the account of the terminal device. In some embodiments, the login interface may display a QR code, and the user uses the terminal device to scan the QR code, so that the vehicle can log in to the account of the terminal device. It should be understood that Figure 1 b in the figure takes the display of the QR code on the login interface as an example.

[0119] At present, the operation of logging into the terminal device account is complicated and inefficient, and the user is using Figure 1 The method in this paper is likely to cause driving safety problems.

[0120] In some embodiments, a camera can be set in the vehicle, and the user can capture the face through the camera in advance, and bind the face to the account of the terminal device. After the user gets on the vehicle, the camera can capture the user's face, the vehicle can recognize the user's face, and log in to the account corresponding to the user. This method of logging into the account of the terminal device in the vehicle is simple to operate, but it is necessary to add a camera to the vehicle in advance, which increases the cost. In addition, the camera's collection of faces is easily affected by light brightness. In scenes with low light brightness, the camera cannot capture clear faces.

[0121] The embodiment of the present application provides a method for logging into an account with a device. A near field communication (NFC) module corresponding to the screen can be set in the vehicle, and an NFC module is also set in the terminal device. When the user holds the terminal device close to the designated position of the vehicle, the terminal device and the vehicle can establish an NFC connection, thereby triggering the vehicle to automatically log into the account of the terminal device. In the embodiment of the present application, the user only needs to touch the designated position of the vehicle with the handheld terminal device to complete the automatic login of the vehicle to the terminal device account. The operation is simple, efficient, and not affected by light brightness, etc., with high accuracy and a wide range of applications.

[0122] It should be understood that the method for logging into an account on a device provided in the embodiment of the present application can be applied not only to vehicles, but also to smart glasses, AR devices, VR devices, tablet computers (portable android devices, PADs), personal digital assistants (personal digital assistants, PDAs) and other devices. Among them, an NFC module is provided in the device, and an NFC module is also provided in the terminal device. When the user holds the terminal device close to the designated position of the device, the terminal device and the device can establish an NFC connection, thereby triggering the device to automatically log into the account of the terminal device.

[0123] Before introducing the method for logging into an account using a device provided in an embodiment of the present application, the structure of the vehicle and the structure of the terminal device are first introduced by taking the device as a vehicle as an example:

[0124] Figure 2 A schematic diagram of the structure of a vehicle and a terminal device provided in an embodiment of the present application. Figure 2 The vehicle may include: a screen 21, an NFC module 22, a processing module 23, and an account APP 24.

[0125] In some embodiments, the vehicle may include at least one screen, which may include but is not limited to a central control screen, a co-pilot screen, a dashboard screen, and a rear screen. Each screen may correspond to an NFC module. For example, Figure 2 Taking the vehicle including screen 1 and screen 2 as an example, screen 1 corresponds to NFC module 1, and screen 2 corresponds to NFC module 2.

[0126] In some embodiments, the NFC module corresponding to the screen can be set at a position close to the screen, so that when the terminal device touches the screen, the terminal device can establish an NFC connection with the vehicle through the NFC module in the terminal device and the NFC module corresponding to the screen.

[0127] In an embodiment of the present application, an NFC module 21A can be set in the terminal device. Since each screen of the vehicle can correspond to an NFC module, when a user wants to log in to an account of the terminal device on a screen, the user can touch the screen with the handheld terminal device. The specific process of logging in to the account can refer to the description in the following embodiment.

[0128] The processing module 23 is used to assist the vehicle in logging into the account of the terminal device. In some embodiments, the processing module 23 can be a chip, a processor, a processing system, etc. in the vehicle. Exemplarily, the processing module 23 can be an in-vehicle infotainment system (IVI) in the vehicle.

[0129] The account APP 24 is used to obtain verification information of the account of the auxiliary vehicle login terminal device. For example, the verification information can be a uniform resource locator (URL), and the details can refer to the description of the first verification information in the following embodiment. In some embodiments, when the vehicle login terminal device is a system account, the account APP 24 can be a system account APP. In some embodiments, when the vehicle login terminal device is used to log in to an account of an application, the account APP 24 can be the application.

[0130] In some embodiments, the vehicle may further include: a Bluetooth module and / or a Wi-Fi module. The terminal device may include a Bluetooth module and / or a Wi-Fi module. The vehicle may establish Bluetooth communication with the Bluetooth module in the terminal device through the Bluetooth module in the vehicle, and the vehicle may establish Wi-Fi communication with the Wi-Fi module in the terminal device through the Wi-Fi module in the vehicle. It should be understood that Figure 2 In the example, a vehicle including a Bluetooth module 25 is taken.

[0131] In some embodiments, taking the example that both the vehicle and the terminal device include Bluetooth modules, after the vehicle and the terminal device establish an NFC connection, the vehicle and the terminal device can transmit data via Bluetooth communication. For details, please refer to the description in the following embodiments.

[0132] Reference Figure 2 The terminal device may include: an NFC module 21A, an account APP 22A, and a processing module 23A.

[0133] Among them, the NFC module 21A is used to assist the terminal device and the vehicle to establish an NFC connection.

[0134] Account APP 22A, used to assist the vehicle to log in to the terminal device account. In some embodiments, when the vehicle logs in to the system account of the terminal device, the account APP 22A can be the system account APP. In some embodiments, when the vehicle logs in to the account of the terminal device for logging in to the application, the account APP 22A can be the application.

[0135] The processing module 23A can be used to determine whether to output the first prompt information, send a first request to the vehicle, and receive first verification information, etc., which can be described in the following embodiments.

[0136] In some embodiments, the terminal device may include a Bluetooth module and / or a Wi-Fi module. Figure 2 In the example, the terminal device includes a Bluetooth module 24A.

[0137] In some embodiments, the first NFC module, the second NFC module, the Bluetooth module, and / or the Wi-Fi module in the vehicle may be referred to as a first communication module. The NFC module, the Bluetooth module, and / or the Wi-Fi module in the terminal device may be referred to as a second communication module.

[0138] In some embodiments, the account APP 24 in the vehicle may be referred to as a first account APP, and the account APP 22A in the terminal device may be referred to as a second account APP.

[0139] In some embodiments, the processing module 23 in the vehicle may be referred to as a cockpit collaborative service, and the processing module 23A in the terminal device may be referred to as an interconnection meta-service (feature ability, FA).

[0140] In some embodiments, when the device is a smart glasses, an AR device, a VR device, a tablet computer, a personal digital assistant or other device, the device may include a screen 21, an NFC module 22, a processing module 23, and an account APP 24, which can be referred to as Figure 2 In some embodiments, the device may include at least one screen, each of which may correspond to an NFC module, which may refer to Figure 2 Description.

[0141] In some embodiments, the device may include a screen, and an NFC module may be installed at at least one position of the device, so that the terminal device touching a designated position of the device can also trigger the device to log into the terminal device account. For example, taking smart glasses as an example, an NFC module is provided on the temples of the smart glasses, and the user holding the terminal device and touching the temples of the smart glasses can trigger the smart glasses to log into the terminal device account.

[0142] The following is a description of the device login account method provided by the embodiment of the present application in conjunction with a specific embodiment. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. It should be understood that Figure 3 In the embodiment of the present application, the method for logging into an account through a device is described by taking the perspective of the interaction between a device, a terminal device, and a server as an example. In some embodiments, the device can be used as a first device, and the terminal device can be used as a second device.

[0143] Figure 3 A flowchart of an embodiment of the method for logging into an account using a device provided in an embodiment of the present application. Figure 3 The method for logging into an account through a device provided in the embodiment of the present application may include:

[0144] S301, the device establishes an NFC connection with a terminal device at a specified location close to the device.

[0145] In some embodiments, the device may include at least one screen, the first screen is any one of the at least one screen, and the first NFC module corresponds to the first screen. The terminal device includes an NFC module, and when the terminal device is close to the first screen, the first NFC module may establish an NFC connection with the NFC module in the terminal device, so that the device establishes an NFC connection with the terminal device. The designated position of the device may be on the first screen, and the first NFC module may be set at the first screen, or at a designated position of the first screen.

[0146] In some embodiments, the NFC module in the device can be set at a designated location. Taking the device as smart glasses as an example, the designated location can be on the temples or lenses of the smart glasses.

[0147] It should be understood that the designated position may be different for different devices. In some embodiments, the designated position may be at least one, and an NFC module may be provided at each designated position, so that when the terminal device approaches any designated position, the device may establish an NFC connection with the terminal device through the NFC module at the designated position.

[0148] In some embodiments, the terminal device being close to the designated location can be understood as: the distance between the terminal device and the designated location is less than or equal to a preset distance. In some embodiments, the terminal device being close to the designated location can be understood as: the terminal device touching the designated location.

[0149] In some embodiments, when the device establishes an NFC connection with the terminal device for the first time, the device may output a prompt message, which is used to prompt the user to confirm the establishment of an NFC connection between the device and the terminal device. After the user performs an operation to confirm the establishment of an NFC connection between the device and the terminal device, the device may establish an NFC connection with the terminal device.

[0150] S302, the device sends first verification information of the device to the terminal device.

[0151] The first verification information is used to verify the identity of the device. In some embodiments, the first verification information may include but is not limited to a first token, an identity identifier, etc. Exemplarily, the first token may be a session token.

[0152] In some embodiments, the first verification information may be pre-stored in the device. In some embodiments, the first verification information may be pre-registered by the device from a server.

[0153] Exemplarily, taking the system account of the terminal device that the device can log in to as an example, the device can apply to the system account server to register the device's own first verification information when it is powered on for the first time, and save the first verification information. The system account server can also store the mapping relationship between the device's identification and the device's first verification information, so that the system account server can verify the identity of the device based on the mapping relationship between the device's identification and the device's first verification information stored therein. The device's identification may include but is not limited to the device's identification code (vehicle identification number, VIN), number, ID, and other information used to distinguish the device.

[0154] For example, taking the application account that the device can log in to the terminal device as an example, after installing the application, the device can apply to the server corresponding to the application to register the device's own first verification information and save the first verification information. The server corresponding to the application can also store the mapping relationship between the device's identification and the device's first verification information, so that the server corresponding to the application can verify the identity of the device based on the mapping relationship between the device's identification and the device's first verification information stored therein.

[0155] In some embodiments, after the device establishes an NFC connection with a terminal device near a specified location of the device, the device may request first verification information from the server, and the server may generate the first verification information and send it to the device. For details, refer to Figure 5 Description in . In some embodiments, the server can store a mapping relationship between the device identifier and the first verification information of the device. In this example, the first verification information does not need to be pre-stored in the device, which can improve the security of the first verification information and avoid the problem that a malicious device obtains the first verification information from the device and triggers the device to log in to the account of the malicious device. It should be noted that when the account logged in by the device is an application account of the terminal device, the server can be a server corresponding to the application, and when the account logged in by the device is a system account of the terminal device, the server can be a system account server.

[0156] In this example, when the device requests the first verification information from the same server multiple times, the first verification information sent by the server to the device each time can be different. In this way, the first verification information used by the device each time to log in to the terminal device account is different, thereby avoiding the reproducibility of the first verification information and improving the security of the device login account.

[0157] S303, the terminal device sends first verification information and second verification information of the terminal device to the server.

[0158] In the embodiment of the present application, the terminal device has logged into the first account. After the terminal device logs into the first account, the server may send second verification information to the terminal device. The second verification information is used to verify the identity of the terminal device. Exemplarily, the second verification information may include a second token, and the second token may be an access token.

[0159] In some embodiments, the server may store the first account, password, and second verification information of the terminal device accordingly.

[0160] In response to the first verification information from the device, the terminal device may send the first verification information and the second verification information of the terminal device to the server.

[0161] S304, the server verifies the first verification information and the second verification information.

[0162] Because the first verification information is pre-registered by the device to the server, or requested by the device to the server, in some embodiments, the server can verify whether the first verification information is correct based on the mapping relationship between the device identifier and the first verification information of the device stored therein. When the first verification information from the terminal device is correct, the server can determine that the first verification information verification has passed, and when the first verification information from the terminal device is wrong, the server can determine that the first verification information verification has not passed. It should be understood that the correctness of the first verification information from the terminal device can be understood as: the first verification information from the terminal device is the same as the first verification information stored in the server.

[0163] Similarly, because the server can store the first account, password, and second verification information of the terminal device, the server can use the second verification information stored therein to verify the second verification information from the terminal device. When the second verification information from the terminal device is correct, the server can determine that the second verification information verification has passed. When the second verification information from the terminal device is wrong, the server can determine that the second verification information verification has failed. It should be understood that the second verification information from the terminal device is correct, which can be understood as: the second verification information from the terminal device is the same as the second verification information stored in the server.

[0164] In some embodiments, the server may also use the currently available verification token method to verify the second verification information, which is not elaborated in the embodiments of the present application.

[0165] S305, in response to the first verification information and the second verification information being verified, the server stores the first account of the terminal device, the password of the first account, and the identification of the device in correspondence, and generates third verification information.

[0166] The identification of the terminal device may include, but is not limited to: the international mobile equipment identity (IMEI) of the terminal device, a telephone number, and other information used to distinguish the terminal device.

[0167] When the first verification information and the second verification information are verified, the server can store the first account of the terminal device, the password of the first account, and the second verification information accordingly. Exemplarily, the server can store the first account of the terminal device, the password of the first account, and the identification of the device accordingly, and generate the third verification information and send it to the device. In some embodiments, the server can store the first account of the terminal device, the password of the first account, the identification of the device, and the third verification information accordingly.

[0168] Exemplarily, the third verification information includes a third token, and the third token can be an access token. The third verification information is used for the device to access the resources of the first account. In an embodiment of the present application, when the device accesses the server based on the third verification information, the server can determine, based on the third verification information, that the device corresponds to the first account and password of the terminal device, and that the device has the authority to use (or access) the resources corresponding to the first account. In other words, the server stores the first account of the terminal device, the password of the first account, and the identifier of the device in correspondence, and generates the third verification information and sends it to the device, so that the device can log in to the first account.

[0169] S306: The server sends third verification information to the device.

[0170] S307: The device displays an interface after logging into the first account according to the third verification information.

[0171] The third verification information is used to indicate that the device has logged into the first account and the device has the authority to use the resources corresponding to the first account. In response to the third verification information from the server, the device can display the interface after logging into the first account.

[0172] For example, Figure 4A A schematic diagram of an interface of the first screen provided in an embodiment of the present application. Figure 4A In the example, the first account is a system account of the terminal device, and the terminal device is a mobile phone and the device is a vehicle. In some embodiments, the vehicle may include multiple screens, and the first screen may be any one of the multiple screens. Figure 4A The first screen is the vehicle's central control screen as an example. Figure 4A In a, the first screen can display the desktop, which can include icons of multiple applications. Figure 4AThe icons of the applications are represented by boxes. When the user brings the phone close to the first screen, the vehicle can automatically log in to the phone's system account, and the first screen can display the interface after logging in to the first account. Figure 4A In b, the first screen may display a desktop, and in order to indicate that the vehicle has logged into the first account, the desktop may include a logo 41 of the first account. The logo 41 of the first account may be a user's avatar, the name of the first account, a phone number corresponding to the first account, etc. Figure 4A In b, the identifier 41 of the first account is avatar 1 as an example. Figure 4A The b in the figure uses avatar 1 to represent the system account of the vehicle that has logged into the terminal device.

[0173] For example, Figure 4B Another interface schematic diagram of the first screen provided in an embodiment of the present application. Figure 4B In the example, the first account is the account of the first application of the terminal device, and the terminal device is a mobile phone and the device is a vehicle. Figure 4B In a, the first screen can display the login interface of the first application. When the user brings the mobile phone close to the first screen, the vehicle can log in to the first account of the mobile phone, and the first screen can display the interface after logging in to the first account. Figure 4B In b, the first screen may display the interface of the first application, and the logo 41 of the first account may be displayed on the interface of the first application. Figure 4B In b, avatar 2 represents the account of the first application of the vehicle that has logged into the terminal device.

[0174] In the embodiment of the present application, the user can hold the terminal device close to the designated position of the device, and the device can log in to the first account of the terminal device without the user manually entering the account and password or scanning the QR code, which is simple to operate and highly efficient. In addition, the server can verify the identity of the device and the terminal device based on the first verification information and the second verification information before enabling the device to log in to the first account of the terminal device, which is highly secure.

[0175] The above embodiment describes a method in which the device can pre-store the first verification information. In the case where the device is vulnerable to attack by a malicious device, the security of the first verification information is low. For example, if a malicious device attacks the device to obtain the first verification information, it will cause the device to fail to log in to the first account, or the device logs in to the account of the malicious device, which will cause the malicious device to send junk information to the device.

[0176] In some embodiments, in order to improve the security of the first verification information, the device may request the first verification information from the server in real time. The high security of the server can improve the security of the first verification information. In some embodiments, the first verification information may be a first uniform resource locator (URL), and illustratively, the first URL may include a first token and an identifier of the device. The following description is made by taking the first verification information as the first URL as an example.

[0177] In some embodiments, the device includes a first screen, the first screen corresponds to the first NFC module, and the designated position is on the first screen.

[0178] Reference Figure 5 The method for logging into an account through a device provided in the embodiment of the present application may include:

[0179] S501, in response to the device being powered on, writing an identifier of a first screen and an NFC function supported by the device into a first NFC module.

[0180] In response to the device being powered on, the device (such as a processing module in the device) may write the identifier of the first screen and the NFC functions supported by the device in the first NFC module. The identifier of the first screen may be information such as the number, identity document (ID), name, etc. of the first screen used to distinguish the screen. The NFC functions supported by the device may be understood as functions that can be realized through NFC or functions that can be realized by approaching a specified location.

[0181] In some embodiments, the NFC function supported by the device may include an auxiliary login function, which can be understood as: the function of automatically logging into the account of the terminal device through NFC. In some embodiments, the NFC function supported by the device may also include: navigation flow function, audio flow function, etc. Exemplarily, the navigation flow function can be understood as: the navigation flow in the terminal device terminal can be transferred to the device for navigation through NFC. The audio flow function can be understood as: the audio played in the terminal device terminal can be transferred to the device for playback through NFC.

[0182] In some embodiments, when the NFC function supported by the device only includes the auxiliary login function, in response to the device being powered on, the identifier of the first screen may be written into the first NFC module, but the NFC function supported by the device may not be written. In this example, the device and the terminal device may default to knowing that the NFC function supported by the device only includes the auxiliary login function.

[0183] In some embodiments, S501 is an optional step. Exemplarily, the first NFC module may pre-store the identifier of the first screen and the NFC functions supported by the device, without having to write when the device is powered on.

[0184] It should be noted that compared with the method of "pre-storing the identifier of the first screen and the NFC functions supported by the device in the first NFC module", the method of "writing the identifier of the first screen and the NFC functions supported by the device in the first NFC module when the device is powered on" has higher security. The reason is that: each time the device is powered off, the identifier of the first screen and the NFC functions supported by the device in the first NFC module can be deleted, which can reduce the probability of a malicious device obtaining the identifier of the first screen and the NFC functions supported by the device in the first NFC module, thereby preventing malicious devices from using the NFC functions supported by the device.

[0185] S502: The device establishes an NFC connection with a terminal device at a designated location close to the device.

[0186] S502 may refer to the description in S301.

[0187] S503, the device establishes a wireless communication connection with the terminal device. The wireless communication connection is different from the NFC connection. The wireless communication connection is used to transmit data exchanged between the device and the terminal device.

[0188] In some embodiments, S503 is an optional step. For example, after the device and the terminal device establish an NFC connection, the NFC connection can be used to transmit the data exchanged between the device and the terminal device. In some embodiments, when there is a lot of data exchanged between the device and the terminal device, the terminal device needs to be kept close to the specified location, which will cause inconvenience to the user during driving.

[0189] In the embodiment of the present application, after the device establishes an NFC connection with the terminal device, the device can also establish a wireless communication connection with the terminal device, which is different from the NFC connection. Exemplarily, the wireless communication connection can be a Bluetooth connection or a Wi-Fi connection, etc. The purpose of establishing a wireless communication connection between the device and the terminal device is to transmit the data exchanged between the device and the terminal device based on the wireless communication connection, without having to keep the terminal device close to the specified location all the time. The use of the wireless communication connection can realize the interaction of data between the device and the terminal device, facilitate user operation, and improve the user's driving safety.

[0190] In some embodiments, the data exchanged between the device and the terminal device may include: an identifier of the first screen, a first request, and a first URL. The first URL and the first request may refer to the relevant description in the following embodiments. In some embodiments, the data exchanged between the device and the terminal device may include: an identifier of the first screen, an NFC function supported by the device, a first request, and a first URL.

[0191] S504: The device sends the identifier of the first screen to the terminal device.

[0192] The terminal device is close to the designated position of the device, and the designated position is on the first screen, so the device (such as the processing module in the device) can read the identification of the first screen and the NFC function supported by the device from the first NFC module corresponding to the first screen. In some embodiments, the device can send the identification of the first screen to the terminal device.

[0193] In some embodiments, S504 is an optional step.

[0194] S505: The terminal device sends a first request to the device, where the first request includes an identifier of the first screen.

[0195] The first request is used to request a first URL from the device.

[0196] In some embodiments, the first request may include an identifier of the first screen, where the identifier of the first screen is specifically used to request a first URL corresponding to the first screen from the device.

[0197] In some embodiments, when S504 is not executed, the first request may not include the identifier of the first screen.

[0198] S506: The device sends a second request to the server, where the second request includes an identifier of the device.

[0199] In response to the first request from the terminal device, the device may send a second request to the server. The second request is used to request the first URL. In some embodiments, the second request may include an identifier of the device. In some embodiments, the second request may include an identifier of the first screen and an identifier of the device. The following embodiments are described by taking the second request including the identifier of the device as an example.

[0200] In some embodiments, the first account may be a system account logged in by the user on the terminal device, or an application account logged in by the user on the terminal device. In some embodiments, the system account logged in by the user on the terminal device may be referred to as the system account of the terminal device, and the application account logged in by the user on the terminal device may be referred to as the application account of the terminal device.

[0201] Different first accounts, different servers. In some embodiments, before the device sends the second request to the server, the device may first determine whether the first account that the device is about to log in is a system account of the terminal device or an application account of the terminal device. When the first account is a system account of the terminal device, the server may be a system account server, and when the first account is an application account of the terminal device, the server may be a server corresponding to the application. In other words, before the device sends the second request to the server, the server may be determined first.

[0202] In some embodiments, when the terminal device is close to the designated location and the designated location is on the first screen, the device can determine whether the first account is a system account of the terminal device or an application account of the terminal device based on the content displayed on the first screen. Exemplarily, when the first screen displays the desktop or the login interface of the system account, the device can determine that the first account to be logged in is the system account of the terminal device. When the first screen displays the login interface of the application or the interface of the application, the device can determine that the first account to be logged in is the application account of the terminal device.

[0203] In some embodiments, when the terminal device is close to the specified position and the specified position is on the first screen, the device can determine whether the first account is a system account of the terminal device or an application account of the terminal device based on the area to which the specified position belongs to the first screen. In some embodiments, the area to which the specified position belongs to the first screen can be understood as the area of ​​the terminal device close to the first screen.

[0204] In some embodiments, in the first screen, the system account of the terminal device and the accounts of each application of the terminal device correspond to different areas. Exemplarily, the system account of the terminal device corresponds to the first area at the top of the first screen. When the terminal device is close to the first area at the top of the first screen, the device can determine that the first account to be logged in is the system account of the terminal device. Exemplarily, the account of the first application of the terminal device corresponds to the second area at the bottom of the first screen. When the terminal device is close to the second area at the bottom of the first screen, the device can determine that the first account to be logged in is the account of the first application of the terminal device. Exemplarily, the account of the second application of the terminal device corresponds to the third area at the bottom of the first screen. When the terminal device is close to the third area at the bottom of the first screen, the device can determine that the first account to be logged in is the account of the second application of the terminal device.

[0205] In some embodiments, when the first screen displays the desktop, the desktop may include at least one application icon. The device may determine whether to log in to the system account of the terminal device or the application account of the terminal device according to the area of ​​the terminal device close to the first screen.

[0206] In an embodiment of the present application, the preset distance range around the icon of the application all corresponds to the application. Exemplarily, when the area of ​​the first terminal close to the desktop is within the preset distance range of the icon of the first application, the device can determine that the first account to be logged in is the account of the first application of the terminal device. Exemplarily, when the area of ​​the first terminal close to the desktop is within the preset distance range of the icon of the second application, the device can determine that the first account to be logged in is the account of the second application of the terminal device. Exemplarily, when the area of ​​the first terminal close to the desktop is not within the preset distance range of the icon of any application, the device can determine that the account to be logged in is the system account of the terminal device.

[0207] The embodiment of the present application does not limit the method of triggering the device to log in to the system account or application account of the terminal device.

[0208] S507: The server generates a first URL, where the first URL corresponds to the device.

[0209] In an embodiment of the present application, the server may generate a first URL, which corresponds to the device. In some embodiments, the server may store the first URL and the identifier of the device in correspondence.

[0210] It should be understood that the first URL is different for different devices. In some embodiments, when the same device logs in to the same first account multiple times on the same screen, the first URL generated by the server can be the same or different. Among them, when the first URL generated by the server is different, the reproducibility of the first URL can be avoided, and the security of the first URL can be improved.

[0211] In some embodiments, the first URL may include the first token and the device identifier, wherein the first token may be a session token between the device and the server, and in some embodiments, the first URL may also include the validity period of the first token.

[0212] S508: The server sends the first URL to the device.

[0213] S509: The device sends the first URL to the terminal device.

[0214] S510, the terminal device sends a first URL and second verification information of the terminal device to the server.

[0215] S511, the server verifies the first URL and the second verification information.

[0216] The server may verify the second verification information with reference to the description in S304.

[0217] Here is the process of the server verifying the first URL: because the first URL and the device identifier can be stored in the server accordingly, the server can detect whether the first token and the device identifier in the first URL are correct in response to receiving the first URL. For example, the server can detect whether the server has a token identical to the first token stored in it. If the server has a token identical to the first token, the server can also detect whether the first token is within the validity period. If the first token is within the validity period, the server can determine that the first token is correct. The server also detects the device identifier in the first URL to see if it is the identifier of the device corresponding to the token stored in the server (the same token as the first token). If the device identifier in the first URL is the identifier of the device corresponding to the token stored in the server, the server determines that the device identifier is correct.

[0218] When the first token and the device identifier in the first URL are both correct, the server determines that the first verification information is correct, that is, the first verification information is verified successfully.

[0219] S512, in response to the first verification information and the second verification information being verified, the server stores the first account number, password, and device identification of the terminal device in correspondence, and generates third verification information.

[0220] S513: The server sends third verification information to the device.

[0221] S514, the device displays an interface after logging into the first account according to the third verification information.

[0222] S512 - S514 may refer to the description in S305 - S307 .

[0223] In the embodiment of the present application, the device can request the first URL from the server, and the server can generate the first URL and return it to the device, and the security of the first URL is high. In addition, when the first screen of the same device logs in to the same account multiple times, the first URL generated by the server can be different, which can avoid the recurrence of the first URL and improve the security of the first URL.

[0224] In some embodiments, when the device supports multiple NFC functions, when the terminal device is close to the designated location of the terminal, the device cannot determine which function the terminal device is to use. In an embodiment of the present application, the terminal device can interact with the user, and the user determines that the terminal device uses the auxiliary login function so that the terminal device assists the device in logging into the first account of the terminal device.

[0225] Reference Fig. 6AIn some embodiments, S504 may be replaced by S504A, and S505A-S506A may be executed after S504A, and S505 may be replaced by S507A:

[0226] S504A, the device sends the identifier of the first screen and the NFC function supported by the device to the terminal device.

[0227] In the embodiment of the present application, the device may support multiple NFC functions, which may include an auxiliary login function and other NFC functions. Exemplarily, the other NFC functions may include but are not limited to a navigation streaming function, an audio streaming function, and the like.

[0228] In some embodiments, when the device supports only one NFC function, and the NFC function is an auxiliary login function, when the device sends the identifier of the first screen to the terminal device, the NFC function supported by the device may not be sent.

[0229] S505A, the terminal device determines whether to output the first prompt information based on the NFC function supported by the device and the application running on the terminal device, and the first prompt information is used to prompt the user to confirm the use of the auxiliary login function.

[0230] In some embodiments, S505A is an optional step. Exemplarily, when the device supports an NFC function, and the NFC function is an auxiliary login function, the terminal device can directly execute S505.

[0231] In some embodiments, when a device supports multiple NFC functions, in order to ensure that the device can accurately determine that the terminal device uses the auxiliary login function, the terminal device can interact with the user, and the user determines that the terminal device uses the auxiliary login function.

[0232] In some embodiments, the terminal device may output first prompt information in response to receiving the identification of the first screen and the NFC function supported by the device, wherein the first prompt information is used to prompt the user to confirm the use of the auxiliary login function.

[0233] In some embodiments, in order not to disturb the user too much, the terminal device can determine whether to output the first prompt information according to the NFC function supported by the device and the operating status of the terminal device.

[0234] Among them, when the device supports an NFC function, and the NFC function is an auxiliary login function, the terminal device can determine not to output the first prompt information, and the terminal device can directly execute S505.

[0235] Wherein, when the device supports multiple NFC functions and the terminal device is running applications corresponding to other NFC functions other than the auxiliary login function, the terminal device may determine to output the first prompt information. Wherein, when the device supports multiple NFC functions and the terminal device is not running applications corresponding to other NFC functions other than the auxiliary login function, the terminal device may determine not to output the first prompt information.

[0236] For example, the multiple NFC functions include: an auxiliary login function and a navigation flow function. Fig. 7A In a, taking the device as a vehicle as an example, the terminal device is close to the first screen of the vehicle. When the terminal device is running the navigation application corresponding to the navigation flow function, if the terminal device can display the interface of the navigation application, the terminal device may use the auxiliary login function or the navigation flow function. In order to accurately determine that the terminal device uses the auxiliary login function, the terminal device can output the first prompt information. Fig. 7A In step b, the terminal device may display a prompt box 71 and a control 72 of "auxiliary login account" on the interface, so that the user can determine that the touch of the first screen is to use the auxiliary login function. In some embodiments, the prompt box 71 and the control 72 of "auxiliary login account" can be used as the first prompt information.

[0237] It should be understood that Fig. 7A This is an example of a terminal device outputting the first prompt information. The embodiment of the present application does not limit the manner in which the terminal device outputs the first prompt information and the form of the interface.

[0238] Exemplarily, when the terminal device is not running the navigation application corresponding to the navigation flow function, the terminal device is not navigating and therefore will not use the navigation flow function. The terminal device itself may determine to use the auxiliary login function. In this example, the terminal device may not output the first prompt information and the terminal device may directly execute S505.

[0239] S506A: When it is determined that the first prompt information is input, the terminal device outputs the first prompt information.

[0240] S507A, in response to the user determining to use the auxiliary login function, the terminal device sends a first request to the device.

[0241] In the embodiment of the present application, when the terminal device outputs the first prompt information, the user can perform an operation to determine the use of the auxiliary login function based on the first prompt information to trigger the terminal device to send a first request to the device. In response to the user's operation to determine the use of the auxiliary login function, the terminal device can send the first request to the device.

[0242] For example, refer to Fig. 7Ab, if the user operates the control 72 of "auxiliary login account", it means that the user determines to use the auxiliary login function, and the terminal device can send a first request to the vehicle. It should be understood that after S507A, S506-S514 can also be executed, and the vehicle can log in to the first account of the terminal device. Fig. 7A In c, a vehicle displays a desktop, and the desktop includes the logo of the first account as an example.

[0243] It should be understood that if the user does not perform an operation to determine the use of the auxiliary login function, the terminal device may not send the first request to the device.

[0244] In the embodiment of the present application, when the device supports multiple NFC functions, when the terminal device is close to the specified location, the terminal device can output the first prompt information, interact with the user, and the user determines whether to use the auxiliary login function, which is highly accurate. In addition, the terminal device can determine whether to output the first prompt information according to the operating state of the terminal device to avoid disturbing the user too much. Among them, when the terminal device outputs the first prompt information, the user can determine that the terminal device uses the auxiliary login function, so that the terminal device can assist the device to log in to the first account of the terminal device.

[0245] The above embodiments introduce a method in which the device can determine which account of the terminal device the device is logged into based on the content displayed on the first screen and the area of ​​the terminal device close to the first screen. In some embodiments, the embodiments of the present application can also provide a method for the user to select the account of the terminal device to log in to the device.

[0246] In one embodiment, referring to Figure 6B , S504 can be replaced by S504A, and S505B can be executed after S504A, and S505 can be replaced by S506B:

[0247] S504A, the device sends the identifier of the first screen and the NFC function supported by the device to the terminal device.

[0248] S505B, the terminal device outputs a second prompt message, where the second prompt message is used to prompt the user to select an identifier of the first account.

[0249] In an embodiment of the present application, the terminal device may output a second prompt message. In some embodiments, the second prompt message is used to prompt the user to select an identifier of an account for logging into the terminal device. Since the embodiment of the present application takes the example of logging into the first account by the terminal device, the second prompt message may be used to prompt the user to select an identifier of the first account.

[0250] In some embodiments, the second prompt information may include at least one account identifier, such as the name, icon, etc. of the application corresponding to the account, and the at least one account identifier may include the identifier of the first account. Figure 7B In ab, when the terminal device is close to the first screen, the terminal device can output the second prompt information. Figure 7B In b, the terminal device may display a prompt box 73 on the interface, and the prompt box 73 may include the name of the application corresponding to at least one account, such as application 1, application 2, etc. Among them, application 1 may correspond to account 1, and application 2 may correspond to account 2. It should be understood that Figure 7B The content displayed on the first screen in a can be Fig. 7A The content displayed on the first screen is the same as in a.

[0251] It should be understood that the purpose of the terminal device outputting the second prompt information in the embodiment of the present application is to facilitate the user to select an account for logging into the terminal device.

[0252] S506B, in response to the user selecting the identifier of the first account, the terminal device sends a first request to the device, where the first request includes the identifier of the first account.

[0253] For example, take the application corresponding to the first account as application 1, such as Figure 7B In b, the user operates the name of application 1, which can trigger the terminal device to send a first request to the vehicle. The first request includes the identifier of the first account, for example, the identifier of the first account can be the name of application 1. In this way, the vehicle responds to the first request and can determine that the server is the server corresponding to application 1 based on the name of application 1 in the first request. The vehicle can send a second request to the server corresponding to application 1 to request the first verification information.

[0254] It should be understood that after S506B, S506-S514 may be further executed, and the device may log in to the first account of the terminal device, and the first account may be the account of application 1. Figure 7B In c, the vehicle displays the interface of application 1, and the interface of application 1 includes the logo of the first account as an example. It should be understood that Figure 7B In c, application 1 is used as the first application, and the identifier of the first account is used as avatar 2 as an example.

[0255] In the embodiment of the present application, the terminal device can output the second prompt information, and the user can freely select the account of the terminal device to log in to the device. The implementation logic is simple and the flexibility of the device login account can be improved.

[0256] In some embodiments, the first screen of the device can also display the first prompt information or the second prompt information, so that when the user is in the car, there is no need to perform operations such as unlocking the mobile phone. The user can trigger the device to log in to the account of the terminal device by operating on the first screen, which is easy to operate.

[0257] Reference Fig. 8A The method for logging into an account through a device provided in the embodiment of the present application may include:

[0258] S801, in response to powering on the device, writing an identifier of a first screen and an NFC function supported by the device into a first NFC module.

[0259] S802: The device establishes an NFC connection with a terminal device at a designated location close to the device.

[0260] S803, the device establishes a wireless communication connection with the terminal device. The wireless communication connection is different from the NFC connection. The wireless communication connection is used to transmit data exchanged between the device and the terminal device.

[0261] S804: The device sends the identifier of the first screen to the terminal device.

[0262] S805: The terminal device sends a first request to the device, where the first request includes an identifier of the first screen.

[0263] S801-S805 may refer to the description in S501-S505.

[0264] In some embodiments, S804-S805 are optional steps.

[0265] S806: The device outputs the first prompt information.

[0266] Reference Figure 8B In ab, the terminal device is close to the first screen, and the vehicle can output the first prompt information on the first screen. The first prompt information may include a prompt box 71 and a control 72 of "auxiliary login account" so that the user can determine that the touch of the first screen is to use the auxiliary login function. In some embodiments, the prompt box 71 and the control 72 of "auxiliary login account" can be used as the first prompt information. Among them, the user operates the control 72 of "auxiliary login account" to trigger the vehicle to log in to the first account, Figure 8B In c, a vehicle displays a desktop, and the desktop includes the logo of the first account as an example.

[0267] S807: In response to the user determining to use the auxiliary login function, the device sends a second request to the server.

[0268] In the embodiment of the present application, before the device sends the second request to the server, the device may determine the server, and reference may be made to the relevant description in S506.

[0269] In some embodiments, S806 may be replaced by: the device outputs the second prompt information. Accordingly, S807 may be replaced by: in response to the user selecting the identifier of the first account, the device sends a second request to the server. The device may determine the server based on the user selecting the identifier of the first account, and then the device may send the second request to the corresponding server.

[0270] For example, refer to Figure 8C In ab, the terminal device is close to the first screen, and the vehicle can output the second prompt information on the first screen. Figure 8C In b, the vehicle may display a prompt box 73 on the first screen, and the prompt box 73 may include the name of the application corresponding to at least one account, such as application 1, application 2, etc. Figure 8C b in which the user operates the name of application 1, the vehicle can determine that the server is the server corresponding to application 1, and the vehicle can send a second request to the server corresponding to application 1 to request the first URL. After the server assists the vehicle in logging into the first account, the vehicle can display the interface after logging into the first account on the first screen. Figure 8C In c, a case is taken where the vehicle displays the interface of application 1 on the first screen, and the interface of application 1 includes the logo of the first account.

[0271] S808, the server generates a first URL, and the first URL corresponds to the device.

[0272] S809: The server sends the first URL to the device.

[0273] S810, the device sends a first URL to the terminal device.

[0274] S811, the terminal device sends the first URL and second verification information of the terminal device to the server.

[0275] S812, the server verifies the first URL and the second verification information.

[0276] S813, in response to the first verification information and the second verification information being verified, the server stores the first account number, password, and device identification of the terminal device in correspondence, and generates third verification information.

[0277] S814, the server sends third verification information to the device.

[0278] S815, the device controls the first screen to display the interface after the device logs in to the first account.

[0279] S808-S815 may refer to the description in S507-S514.

[0280] In an embodiment of the present application, the first screen of the device can display the first prompt information or the second prompt information, so that the user does not need to perform operations such as unlocking the terminal device when in the car. The user can directly operate on the first screen to trigger the device to log in to the account of the terminal device.

[0281] In some embodiments, after the device logs in to the first account of the terminal device, the server can store the first account, the password of the first account, and the device identification in correspondence. The device can request the server for resources corresponding to the first account based on the third verification information. In other words, the terminal device has access rights when logging in to the first account, and the device has access rights after logging in to the first account.

[0282] Exemplarily, when the first account is a system account of the terminal device, the permissions of the device may include but are not limited to: access rights to system applications associated with the first account. For example, after the device logs in to the first account, the device can also log in to the system application associated with the first account. System applications may include but are not limited to: audio applications, reading applications, wallpaper applications, settings applications, etc. The resources corresponding to the first account can be understood as: resources corresponding to system applications.

[0283] For example, refer to Fig.9A In ab, take the vehicle as an example, and the vehicle can access the wallpaper application. After the vehicle logs in to the first account, the vehicle can request the wallpaper corresponding to the first account from the server based on the third verification information. Because the terminal device has logged in to the first account, the wallpaper corresponding to the first account can be the wallpaper of the terminal device. The server can verify the third verification information. When the third verification information is verified, the server can send the wallpaper corresponding to the first account (that is, the wallpaper of the terminal device) to the vehicle, so that the vehicle can display the wallpaper corresponding to the first account on the first screen. It should be understood that Fig.9A The a in can refer to Figure 4A The relevant description of a in Fig.9A b in Figure 4A The difference between b in FIG. 1 and FIG. 2 is that the vehicle can request the wallpaper corresponding to the first account from the server based on the third verification information, so that the wallpaper displayed on the first screen can be the same as the wallpaper displayed on the terminal device. It should be understood that the black circle and the black triangle are arranged up and down as an example to represent the wallpaper in FIG. 9A.

[0284] In this example, when the terminal device is close to the designated location of different devices, the device can not only log in to the first account of the terminal device, but also switch the wallpaper of the device screen to the wallpaper of the terminal device, which can make the user feel seamless and improve the user experience.

[0285] For example, taking the example of a device being able to access a settings application, after the device logs in to a first account, the device can request settings information related to the first account from the server based on the third verification information. The settings information may include but is not limited to network settings information, display settings information, sound and vibration settings information, etc.

[0286] For example, when the first account is an application account of a terminal device, the permissions of the device may include, but are not limited to, permissions to access the application. For example, after the device logs in to the account of an audio application of the terminal device, the device can play the local music of the account, and the user can also use the membership rights of the account.

[0287] In the embodiments of the present application, the device does not exhaustively list the resources corresponding to the first account requested from the server, and the above examples are for illustrative purposes only.

[0288] In some embodiments, the device can manage the accounts of the terminal devices that the device has logged in, wherein the account of the terminal device that the device has logged in can be at least one. Exemplarily, the device can include multiple screens, and the device can log in different accounts on each screen. For details, please refer to Figure 11-Figure 12 Related description.

[0289] In an embodiment of the present application, the device can manage the account of the terminal device that has been logged in. Exemplarily, the user can operate on the first screen to manage the account of the terminal device that has been logged in by the device. For example, taking the device as a vehicle as an example, the first screen can be the central control screen of the vehicle. In some embodiments, the account of the terminal device that the device has logged in can include the account of the terminal device that the device is currently logged in. In some embodiments, the account of the terminal device that the device has logged in can include: the account of the terminal device that the device is currently logged in, and the account of the terminal device that the device has logged in but has logged out of.

[0290] The account management option 91 may be displayed on the vehicle's central control screen, or the account management option 91 may be displayed in a settings application displayed on the central control screen. Fig. 9B For example, the account management option 91 can be displayed on the central control screen. Fig. 9B In a, the user operates the account management option 91, and the vehicle can display a list of accounts of the terminal device that has logged into the vehicle. Fig. 9B In b, the vehicle can display the ID of the logged-in terminal device, the ID of the account, and the login status. Among them, the login status of the account 1 of the terminal device 1 currently logged in by the vehicle and the account 2 of the terminal device 1 can be "logged in". The login status of the account 3 of the terminal device 2 that the vehicle has logged in but has logged out can be "not logged in".

[0291] For example, for the account of the terminal device currently logged in by the device, the user can operate the corresponding account identifier to trigger the device to log out of the account. For the account of the terminal device that the device has logged in but has been logged out of, the user can operate the corresponding account identifier, and if the terminal device is in the device, it can trigger the device to log in to the account again.

[0292] In some embodiments, the user can also operate the identifier of the corresponding account to perform operations such as deletion and marking. Deletion can be understood as deleting the account from the list, and marking can include marking the account as a family member, etc., which is not limited in the embodiments of the present application.

[0293] In some embodiments, a user operates the identifier of the corresponding account to trigger the device to display selectable operation controls, which may include but are not limited to "login", "logout", "delete", and "mark".

[0294] Fig. 9B A method for logging out of a terminal device account is shown in FIG. 1 . In some embodiments, when the terminal device approaches the specified location of the device again, the device can also be triggered to log out of the first account. Fig. 10A In a, taking the device as a vehicle and the designated position as the first screen of the vehicle as an example, the first screen of the vehicle may display an interface after logging into the first account. Fig. 10A a in Figure 4A The same as b in Figure 4A See the description in Fig. 10A b in the figure, if the user brings the phone close to the first screen again, the vehicle can automatically log out of the first account logged into the phone, refer to Fig. 10A c in the figure, the first screen can display the interface after the vehicle logs out of the first account. Fig. 10A The c in Figure 4A The same as a in Figure 4A Description in .

[0295] Combine the following Fig. 10B Describe the process of logging out of the first account on the device, refer to Fig. 10B , the process of the device logging out of the first account may include:

[0296] S1001, when a device has logged into a first account of the terminal device, in response to the terminal device approaching a designated location of the device again, the device logs out of the first account.

[0297] In some embodiments, when the device has logged into the first account of the terminal device, in response to the terminal device approaching the designated position of the device again, the device can detect that the first account of the terminal device has been logged in, and the device can output a third prompt message on the first screen, and the third prompt message is used to prompt the user to determine whether to log out of the first account. When the user performs an operation to determine to log out of the first account, the device can log out of the first account.

[0298] In some embodiments, when the device has logged into the first account of the terminal device, in response to the terminal device approaching the designated position of the device again, when the designated position is on the first screen, the device can send the identifier of the first screen and the NFC function supported by the device to the terminal device, and the terminal device determines that it has approached the first screen once based on the identifier of the first screen, and the device has logged into the first account. The terminal device can send a third request to the device, and the third request is used to request the device to log out of the first account, and the third request can include the first account. Among them, in response to the third request, the device can determine that the first account of the terminal device has been logged in based on the first account, and then perform operations such as outputting the third prompt information and logging out of the first account.

[0299] In some embodiments, when the device has logged into the first account of the terminal device, in response to the terminal device approaching the designated position of the device again, when the designated position is on the first screen, the device can send the identifier of the first screen and the NFC function supported by the device to the terminal device, and the terminal device determines that it has approached the designated position once based on the identifier of the first screen, and the terminal device can output a third prompt information, and the third prompt information is used to prompt the user to determine whether to log out of the first account. When the user performs an operation to determine to log out of the first account, the terminal device can send a third request to the device to request the device to log out of the first account. In response to the third request, the device can log out of the first account.

[0300] In some embodiments, the device may send a fourth request to the server, the fourth request being used to request to log out of the first account. In response to the fourth request, the server may delete the corresponding stored first account, the password of the first account, and the device identifier, and mark the third token as invalid. In this way, when the device subsequently uses the third token to access the server, the server verifies that the third token is invalid and does not return data to the device, that is, the device logs out of the first account.

[0301] S1002, the device displays an interface for logging out of the first account.

[0302] In the embodiment of the present application, after the device logs in the first account on the first screen, the user's handheld terminal device approaches the designated position of the device again, which can trigger the device to log out of the first account, and the operation is simple.

[0303] The above embodiments describe a method for a device to log in a first account of a terminal device on a first screen. In some embodiments, the device may include multiple screens, and the device may log in different accounts on different screens. The following description is made by taking the device including a first screen and a second screen as an example, wherein the first screen corresponds to a first NFC module, and the second screen corresponds to a second NFC module.

[0304] In some embodiments, the device can log in to different accounts of the same terminal device on different screens. Fig.11 In a, the user holds the first terminal device close to the first screen of the vehicle, and the vehicle can log in to the first account of the first terminal device. Fig.11 In b, the user holds the first terminal device close to the second screen of the vehicle, and the vehicle can log in to the second account of the first terminal device. The first account and the second account are different.

[0305] For example, refer to Fig.11 In a and b, for example, the first account may be a system account of the first terminal device, and the second account may be an account of the first application of the first terminal device. Fig.11 The a in the figure represents the system account of the vehicle that has logged into the first terminal device with the head image 1. Fig.11 In b, avatar 2 is used to represent the account of the first application of the first terminal device that the vehicle has logged into.

[0306] For example, the first account may be an account of a first application of the first terminal device, and the second account may be an account of a second application of the first terminal device. Whether the vehicle logs in to the system account of the first terminal device or the account of the application can refer to the description in S506.

[0307] In some embodiments, the vehicle can log in to different terminal device accounts on different screens. Fig.12 In a, the user holds the first terminal device close to the first screen, and the vehicle can log in to the first account of the first terminal device. Fig.12 In b, the user holds the first terminal device close to the second screen, and the vehicle can log in to the second account of the second terminal device. The first account and the second account are different.

[0308] For example, refer to Fig.12 a and b in the example, the first account is the account of the first application of the first terminal device, and the second account is the account of the first application of the second terminal device. Fig.12 a in which the vehicle has logged into the first application of the first terminal device with the avatar 2, Fig.12 b in which the avatar 3 represents the account of the first application of the vehicle that has logged into the second terminal device. It should be understood that Fig.12In the example, the first terminal device is a mobile phone and the second terminal device is a watch.

[0309] Exemplarily, for example, the first account is a system account of the first terminal device, and the second account is an account of the first application of the first terminal device. Exemplarily, for example, the first account is an account of the first application of the first terminal device, and the second account is an account of the second application of the first terminal device.

[0310] Among them, the process of the vehicle logging into the first account of the first terminal device on the first screen, and the process of the vehicle logging into the second account of the first terminal device on the second screen can refer to the description in the above embodiment.

[0311] In some embodiments, the following is combined Figure 2 The modules inside the device shown in FIG. 1 and the modules inside the terminal device illustrate the process of the device logging into the account of the terminal device. In some embodiments, taking the terminal device outputting the first prompt information as an example, referring to FIG. Fig.13A The method for logging into an account through a device provided in the embodiment of the present application may include:

[0312] S1301, the second account APP requests the server to log in to the first account.

[0313] S1302: In response to the second account APP logging into the first account, the server sends second verification information to the second account APP.

[0314] S1303, in response to the device being powered on, the cockpit collaborative service writes the identifier of the first screen and the NFC functions supported by the device into the first NFC module.

[0315] S1304: In response to the terminal device approaching a designated position of the device, the first NFC module in the first communication module establishes an NFC connection with the NFC module in the second communication module.

[0316] S1305: The first communication module establishes a wireless communication connection with the second communication module. The wireless communication connection is different from the NFC connection. The wireless communication connection is used to transmit data exchanged between the device and the terminal device.

[0317] S1306, the cockpit collaborative service reads the identifier of the first screen and the NFC function supported by the device from the first NFC module.

[0318] It should be understood that there is no order distinction between S1305 and S1306, and they can be executed simultaneously.

[0319] S1307, the cockpit collaborative service pulls up the interconnected FA and sends the identifier of the first screen and the NFC function supported by the device to the interconnected FA.

[0320] S1308, the interconnected FA determines whether to output the first prompt information according to the NFC function supported by the device and the application running on the terminal device.

[0321] S1309: When it is determined that the first prompt information is input, the interconnection FA outputs the first prompt information.

[0322] S1310: In response to the user determining to use the auxiliary login function, the interconnected FA sends a first request to the cockpit collaborative service, where the first request includes an identifier of the first screen.

[0323] S1311, the cockpit collaborative service sends a first request to the first account APP.

[0324] S1312: The first account APP sends a second request to the server, where the second request includes an identifier of the device.

[0325] S1313, the server generates a first URL, and the first URL corresponds to the device.

[0326] S1314, the server sends the first URL to the first account APP.

[0327] S1315, the first account APP sends the first URL to the cockpit collaborative service.

[0328] S1316, the cockpit collaborative service sends the first URL to the interconnected FA.

[0329] S1317, the interconnected FA sends the first URL to the second account APP.

[0330] S1318, the second account APP sends the first URL and the second verification information of the terminal device to the server.

[0331] S1319, the server verifies the first URL and the second verification information.

[0332] S1320, in response to the second verification information of the first URL being verified, the server stores the first account of the terminal device, the password of the first account, and the identification of the device in correspondence, and generates third verification information.

[0333] S1321, the server sends third verification information to the first account APP.

[0334] S1322, the cockpit collaborative service controls the first screen to display the interface after the device logs in to the first account.

[0335] In some embodiments, taking the device outputting the first prompt information on the first screen as an example, referring to Fig. 13B The method for logging into an account through a device provided in the embodiment of the present application may include:

[0336] S1301A, the second account APP requests the server to log in to the first account.

[0337] S1302A, in response to the second account APP logging into the first account, the server sends second verification information to the second account APP.

[0338] S1303A, in response to the device being powered on, the cockpit collaborative service writes the identifier of the first screen and the NFC functions supported by the device into the first NFC module.

[0339] S1304A: In response to the terminal device approaching a designated position of the device, the first NFC module in the first communication module establishes an NFC connection with the NFC module in the second communication module.

[0340] S1305A, the first communication module establishes a wireless communication connection with the second communication module. The wireless communication connection is different from the NFC connection. The wireless communication connection is used to transmit data exchanged between the device and the terminal device.

[0341] S1306A, the cockpit collaborative service reads the identifier of the first screen and the NFC function supported by the device from the first NFC module.

[0342] It should be understood that there is no order of precedence between S1305A and S1306A, and they can be executed simultaneously.

[0343] S1307A, the cockpit collaborative service pulls up the interconnected FA and sends the identifier of the first screen and the NFC function supported by the device to the interconnected FA.

[0344] S1308A, the interconnected FA sends a first request to the cockpit collaborative service.

[0345] S1309A, the cockpit collaborative service outputs the first prompt information.

[0346] S1310A, in response to the user determining to use the auxiliary login function, the cockpit collaborative service sends a first request to the first account APP.

[0347] S1311A, the first account APP sends a second request to the server, where the second request includes the identifier of the first screen and the identifier of the device.

[0348] S1312A, the server generates a first URL, and the first URL corresponds to the device.

[0349] S1313A, the server sends the first URL to the first account APP.

[0350] S1314A, the first account APP sends the first URL to the cockpit collaborative service.

[0351] S1315A, the cockpit collaborative service sends the first URL to the interconnected FA.

[0352] S1316A, the interconnected FA sends the first URL to the second account APP.

[0353] S1317A, the second account APP sends the first URL and second verification information of the terminal device to the server.

[0354] S1318A, the server verifies the first URL and the second verification information.

[0355] S1319A, in response to the second verification information of the first URL being verified, the server stores the first account of the terminal device, the password of the first account, and the identification of the device in correspondence, and generates third verification information.

[0356] S1320A, the server sends third verification information to the first account APP.

[0357] S1321A, the cockpit collaborative service controls the first screen display device to log in to the first account interface.

[0358] Fig.13A , Fig. 13B The method for logging into an account on a device in the embodiment has the same principle and technical effect as the above embodiment, and can refer to the description in the above embodiment.

[0359] In some embodiments, the device can output the third prompt information on the first screen as an example to illustrate the process of the device logging out of the first account. Fig. 13C The method for logging into an account through a device provided in the embodiment of the present application may include:

[0360] S1301B, when the device has logged in to the first account of the terminal device, in response to the terminal device approaching the designated position of the device again, the cockpit collaborative service pulls up the interconnected FA and sends the identifier of the first screen and the NFC function supported by the device to the interconnected FA, and the designated position is on the first screen.

[0361] S1302B, the interconnected FA determines, based on the identification of the first screen, the designated location of approaching the device again.

[0362] S1303B, the interconnected FA requests the second account APP for the first account.

[0363] S1304B, the second account APP sends the first account to the interconnected FA.

[0364] S1305B, the interconnected FA sends a third request to the cockpit collaborative service, where the third request is used to request the device to log out of the first account, and the third request includes the first account.

[0365] S1306B, the cockpit collaborative service outputs a third prompt message according to the first account.

[0366] S1307B: In response to the user's determination to log out of the first account, the cockpit collaborative service sends a request to log out of the first account to the first account APP.

[0367] S1308B, the first account APP logs out of the first account.

[0368] In some embodiments, the process of the first account APP logging out of the first account may specifically include: the first account APP may send a fourth request to the server, and the fourth request is used to request to log out of the first account. In response to the fourth request, the server may delete the corresponding stored first account, the password of the first account, and the identifier of the device, and mark the third token as invalid. In this way, when the first account APP subsequently uses the third token to access the server, the server verifies that the third token is invalid and will not return data to the first account APP, that is, the first account APP logs out of the first account.

[0369] Fig. 13C The method for logging out of an account on a device in the embodiment has the same principle and technical effect as the above embodiment, and can refer to the description in the above embodiment.

[0370] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0371] In one embodiment, the present application also provides an electronic device, which may be the device, terminal device, or server described in the above embodiment. Fig.14 , the electronic device may include: a processor 1401 (such as a CPU), and a memory 1402. The memory 1402 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory. The memory 1402 may store various instructions for completing various processing functions and implementing the method steps of the present application.

[0372] Optionally, the electronic device involved in the present application may further include: a power supply 1403, a communication bus 1404 and a communication port 1405. The above-mentioned communication port 1405 is used to realize the connection and communication between the electronic device and other peripherals. In the embodiment of the present application, the memory 1402 is used to store computer executable program code, and the program code includes instructions; when the processor 1401 executes the instruction, the instruction causes the processor 1401 of the electronic device to perform the action in the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0373] Optionally, the electronic device involved in the present application may further include: a display screen 1406, and the display screen 1406 is used to display an interface of the electronic device.

[0374] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0375] In some embodiments, the embodiments of the present application may also provide a system for logging in to a device account. The system may include at least two of a device, a terminal device, and a server. The system for logging in to a device account may execute the method for logging in to a device account provided in the embodiments of the present application, and may refer to the description in the above embodiments.

[0376] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0377] The term "plurality" in this article refers to two or more than two. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0378] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0379] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims

1. A method for logging into an account through a device, characterized in that: An NFC module is provided at a designated position of the device, and the method comprises: The device establishes an NFC connection with a terminal device near the designated location through the NFC module; The device sends first verification information of the device to the terminal device; The terminal device sends the first verification information and second verification information of the terminal device to the server, where the second verification information is obtained from the server after the terminal device logs in to the first account; In response to the first verification information and the second verification information being verified, the device receives third verification information from the server, where the third verification information is used for the device to access resources of the first account; The device displays an interface after logging into the first account according to the third verification information.

2. The method according to claim 1, characterized in that The first account is a system account or an application account that a user logs into on the terminal device.

3. The method according to claim 1 or 2, characterized in that: After the device establishes an NFC connection with a terminal device near the designated location through the NFC module, the device further includes: The device outputs first prompt information, where the first prompt information is used to prompt the user to confirm the use of the auxiliary login function, where the auxiliary login function is used to enable the device to log in to the first account; The device sends first verification information of the device to the terminal device, including: In response to the user determining to use the auxiliary login function, the device sends first verification information of the device to the terminal device.

4. The method according to claim 1 or 2, characterized in that: After the device establishes an NFC connection with a terminal device near the designated location through the NFC module, the device further includes: The device outputs second prompt information, where the second prompt information is used to prompt the user to select an identifier of the first account; The device sends first verification information of the device to the terminal device, including: In response to the user selecting the identifier of the first account, the device sends first verification information of the device to the terminal device.

5. The method according to claim 1 or 2, characterized in that: After the device establishes an NFC connection with a terminal device near the designated location through the NFC module, the device further includes: The terminal device outputs first prompt information, where the first prompt information is used to prompt the user to confirm the use of the auxiliary login function, where the auxiliary login function is used to enable the device to log in to the first account; In response to the user determining to use the auxiliary login function, the terminal device sends a first request to the device, where the first request is used to request the first verification information; The device sends first verification information of the device to the terminal device, including: In response to the first request, the device sends the first verification information to the terminal device.

6. The method according to claim 5, characterized in that Before the terminal device outputs the first prompt information, the method further includes: The device sends, to the terminal device, an NFC function supported by the device, where the NFC function includes an auxiliary login function; The terminal device determines whether to output the first prompt information according to the NFC function and the application running on the terminal device.

7. The method according to claim 6, characterized in that The terminal device determines, according to the NFC function and an application running on the terminal device, whether to output the first prompt information, including: When there are multiple NFC functions and the terminal device is running applications corresponding to other functions besides the auxiliary login function, determine to output the first prompt information; When there are multiple NFC functions and the terminal device does not run applications corresponding to other functions except the auxiliary login function, determine not to output the first prompt information; When the NFC function is one, it is determined not to output the first prompt information.

8. The method according to any one of claims 1 to 7, characterized in that Before the device sends the first verification information of the device to the terminal device, the device further includes: The device sends a second request to the server, where the second request is used to request the first verification information, and the second request includes an identifier of the device; The device receives the first verification information from the server.

9. The method according to claim 8, characterized in that The device includes a first screen, and the designated position is located on the first screen.

10. The method according to claim 9, characterized in that Before the device sends the second request to the server, the device further includes: The device determines the server according to the content displayed on the first screen; or, The device determines the server according to the area to which the designated location belongs in the first screen; or, The device determines the server according to the identifier of the first account selected by the user.

11. The method according to any one of claims 1 to 10, characterized in that The first verification information is a uniform resource locator URL, and the first verification information includes: an identifier of the device and a first token token, the second verification information includes a second token, and the third verification information includes a third token.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: The device requests the server for resources corresponding to the first account based on the third verification information.

13. The method according to any one of claims 1 to 12, characterized in that After the device establishes an NFC connection with a terminal device near the designated location through the NFC module, the device further includes: The device establishes a wireless communication connection with the terminal device, where the wireless communication connection is different from the NFC connection and is used to transmit data exchanged between the device and the terminal device, where the data includes the first verification information.

14. The method according to any one of claims 1 to 13, characterized in that After the device displays the interface after logging into the first account, the device further includes: In response to the terminal device approaching the designated location again, the device displays an interface for logging out of the first account.

15. The method according to any one of claims 1 to 14, characterized in that The device is a vehicle.

16. The method according to claim 15, characterized in that The vehicle includes a first screen, the designated position is located on the first screen, and the first screen is a central control screen of the vehicle.

17. A method for logging into an account through a device, characterized in that: Applied to a device, wherein an NFC module is provided at a designated position of the device, the method comprising: Establishing an NFC connection with a terminal device near the designated location through the NFC module; Sending first verification information to the terminal device, so that the terminal device assists the device in logging into a first account of the terminal device based on the first verification information and second verification information of the terminal device, where the second verification information is obtained from the server after the terminal device logs into the first account; receiving third verification information from the server, where the third verification information is used by the device to access resources of the first account; According to the third verification information, an interface after logging into the first account is displayed.

18. The method according to claim 17, characterized in that The first account is a system account or an application account that a user logs into on the terminal device.

19. The method according to claim 17 or 18, characterized in that After establishing an NFC connection with a terminal device near the designated location through the NFC module, the method further includes: Outputting first prompt information, where the first prompt information is used to prompt the user to confirm to use the auxiliary login function, where the auxiliary login function is used to enable the device to log in to the first account; The sending the first verification information of the device to the terminal device includes: In response to the user determining to use the auxiliary login function, first verification information of the device is sent to the terminal device.

20. The method according to claim 17 or 18, characterized in that After establishing an NFC connection with a terminal device near the designated location through the NFC module, the method further includes: Outputting second prompt information, where the second prompt information is used to prompt the user to select an identifier of the first account; The sending the first verification information of the device to the terminal device includes: In response to the user selecting the identifier of the first account, first verification information of the device is sent to the terminal device.

21. The method according to any one of claims 17 to 20, characterized in that Before sending the first verification information of the device to the terminal device, the method further includes: Sending a second request to the server, where the second request is used to request the first verification information, and the second request includes an identifier of the device; The first verification information is received from the server.

22. The method according to claim 21, characterized in that The device includes a first screen, and the designated position is located on the first screen.

23. The method according to claim 22, characterized in that Before sending the second request to the server, the method further includes: determining the server according to the content displayed on the first screen; or, determining the server according to the area to which the designated position belongs in the first screen; or, The server is determined according to the identifier of the first account selected by the user.

24. The method according to any one of claims 17 to 23, characterized in that After displaying the interface after logging into the first account, the method further includes: In response to the terminal device approaching the designated location again, an interface for logging out of the first account is displayed.

25. A method for logging into an account through a device, characterized in that: Applied to a terminal device, the method comprises: In response to the terminal device approaching a designated position of a device, establishing an NFC connection with the device, wherein an NFC module is disposed at the designated position of the device; receiving first verification information from the device; The first verification information and the second verification information of the terminal device are sent to the server to trigger the device to log in to the first account of the terminal device, and the second verification information is obtained from the server after the terminal device logs in to the first account.

26. The method according to claim 25, characterized in that The first account is a system account or an application account that a user logs into on the terminal device.

27. The method according to claim 25 or 26, characterized in that After establishing the NFC connection with the device, the method further includes: Outputting first prompt information, where the first prompt information is used to prompt the user to confirm to use the auxiliary login function, where the auxiliary login function is used to enable the device to log in to the first account; In response to the user determining to use the auxiliary login function, a first request is sent to the device, where the first request is used to request the first verification information.

28. The method according to claim 27, characterized in that Before outputting the first prompt information, the method further includes: receiving, from the device, NFC functions supported by the device, the NFC functions including the auxiliary login function; Determine whether to output the first prompt information according to the NFC function and the application running on the terminal device.

29. The method according to claim 28, characterized in that The determining, according to the NFC function and the application running on the terminal device, whether to output the first prompt information includes: When there are multiple NFC functions and the terminal device is running applications corresponding to other functions besides the auxiliary login function, determine to output the first prompt information; When there are multiple NFC functions and the terminal device does not run applications corresponding to other functions except the auxiliary login function, determine not to output the first prompt information; When the NFC function is one, it is determined not to output the first prompt information.

30. A method for logging into an account through a device, characterized in that: Applied to a server, the method comprises: Receiving first verification information and second verification information from a terminal device, wherein the first verification information comes from the device, and the second verification information is obtained from the server after the terminal device logs in to a first account; Verifying the first verification information and the second verification information; In response to the first verification information and the second verification information being verified, generating third verification information; Sending third verification information to the device, where the third verification information is used by the device to access resources of the first account.

31. The method according to claim 30, characterized in that In response to the first verification information and the second verification information being verified, the method further includes: The first account of the terminal device, the password of the first account, and the identification of the device are stored correspondingly.

32. A device, characterized in that include: Processor and memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory, so that the processor performs the method according to any one of claims 17 to 24.

33. A vehicle machine device, characterized in that: The vehicle-mounted device is arranged in a vehicle, and the vehicle-mounted device comprises: a module for executing the method as claimed in any one of claims 17-24.

34. A terminal device, characterized in that: include: Processor and memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory, so that the processor performs the method according to any one of claims 25-29.

35. A server, characterized in that: include: Processor and memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory, so that the processor performs the method according to claim 30 or 31.

36. A system for logging into a device account, characterized in that: include: The device as described in claim 32 or the vehicle device as described in claim 33, the terminal device as described in claim 34, and the server as described in claim 35.

37. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 17 to 31 is implemented.