A method for initial configuration of a smart device, the smart device, and a terminal device.
By interacting with the smart device and the terminal device, the initial configuration of the smart device is completed using the network name, password and login authorization information, which solves the configuration problem when not connected to the display device and optimizes the user experience and device performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 青岛聚看云科技有限公司
- Filing Date
- 2021-08-30
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, there are challenges in how to perform initial configuration, especially network settings and account login operations, when a smart device is not connected to a display device via HDMI upon first use.
Through the interaction between smart devices and terminal devices, the network connection configuration is configured by pushing the network name and password through the terminal device, and the account login authentication is achieved through the login identifier and access pass, generating login authorization information and completing the initial configuration.
It enables effective initial configuration of smart devices in different scenarios and working modes, reduces repetitive configuration processes, and improves user experience and device performance.
Smart Images

Figure CN115842724B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display devices, and more particularly to an initial configuration method for a smart device, a smart device, and a terminal device. Background Technology
[0002] Currently, a new type of smart device has emerged that combines the functions of a TV box and a smart speaker. On one hand, this smart device can connect to a display device via HDMI, in which case it functions as a TV box. On the other hand, when no HDMI connection is established between the smart device and the display device, it can function as a smart speaker, outputting audio played on the display device. When using this smart device for the first time, users need to perform initial configuration operations such as network settings and account login to gain access to the smart device's services.
[0003] Currently, the initial configuration of smart devices typically involves connecting the smart device to a display device via an HDMI cable. Then, based on the communication and interaction between the display device and the smart device, a user interface guides the user through a series of initial configuration steps. However, in some scenarios, if the smart device is used for the first time without an HDMI connection to the display device, but only as a smart speaker, how to perform the initial configuration of the smart device in this situation is the technical problem that this invention aims to solve. Summary of the Invention
[0004] To address the technical problems mentioned in the background section, the present invention provides an initial configuration method for a smart device, a smart device, and a terminal device.
[0005] A first aspect embodiment provides a smart device, comprising:
[0006] A communicator used for communication connections with terminal devices, a first server, and a second server;
[0007] The controller is used to perform:
[0008] Receive the network name and password sent by the terminal device, and configure the network connection according to the network name and password;
[0009] After receiving the login identifier sent by the terminal device, the system stores the login identifier, generates a login authentication request based on its own device information, and sends it to the first server.
[0010] The initial configuration is complete when the access pass sent by the first server in response to the login authentication request is received, and the login authorization information consisting of the login identifier and the access pass is stored; the login authorization information is used to support smart devices to access the second server to obtain business data.
[0011] A second aspect embodiment provides a terminal device, including:
[0012] A monitor is used to display the user interface.
[0013] A communicator used for communication connections with smart devices and a primary server;
[0014] The controller is used to perform:
[0015] After receiving the first prompt message from the smart device when it detects that it has not completed the initial configuration, send the network name and password to the smart device;
[0016] Receive network configuration completion information sent by the smart device after configuring network connection according to the network name and password, and send a login identifier request to the first server;
[0017] The system receives a login identifier sent by a first server and sends the login identifier to a smart device. The login identifier is used to trigger the smart device to perform login authentication with the first server and obtain an access pass. The login authorization information consisting of the login identifier and the access pass is used to support the smart device to access the second server to obtain business data.
[0018] A third aspect embodiment provides an initial configuration method for a smart device, for use in a smart device, including:
[0019] The smart device receives the network name and password sent by the terminal device, and configures the network connection according to the network name and password;
[0020] After receiving the login identifier sent by the terminal device, the smart device stores the login identifier, generates a login authentication request based on its own device information, and sends it to the first server.
[0021] The smart device receives the access pass sent by the first server after responding to the login authentication request, and stores the login authorization information consisting of the login identifier and the access pass, then the initial configuration is completed; the login authorization information is used to support the smart device to access the second server to obtain business data.
[0022] A fourth aspect embodiment provides an initial configuration method for a smart device, for a terminal device, comprising:
[0023] After receiving the first prompt message sent by the smart device when it detects that it has not completed the initial configuration, the terminal device sends the network name and password to the smart device.
[0024] The terminal device receives the network configuration completion information sent by the smart device after configuring the network connection according to the network name and password, and sends a login identifier request to the first server;
[0025] The terminal device receives a login identifier sent by the first server and sends the login identifier to the smart device. The login identifier is used to trigger the smart device to perform login authentication with the first server and obtain an access pass. The login authorization information consisting of the login identifier and the access pass is used to support the smart device to access the second server to obtain business data.
[0026] In the technical solution provided in this application, if the smart device is connected to the display device via an HDMI cable, the smart device can function as a TV box, which can be referred to as the first working mode; if the smart device is not connected to the display device via HDMI, the smart device can function as a smart speaker, which can be referred to as the second working mode. When the smart device is in the second working mode, this application achieves the initial configuration of the smart device through interaction and cooperation between the smart device and a terminal device, which can be a smartphone, tablet computer, etc.
[0027] The initial configuration of a smart device includes two aspects: network configuration and account login authorization. First, the smart device sets up a network connection based on the network name and password pushed to it, typically using Wi-Fi. Second, account login authorization mainly includes two important parameters: a login identifier and an access pass. The login identifier is requested from the first server after the terminal device logs in to its account and obtains the smart device's device information, and then pushed to the smart device. The access pass is obtained by the smart device after obtaining the login identifier and requesting login authentication from the first server. The login identifier and access pass can be combined to obtain login authorization information. After configuring the network and storing the login authorization information, the smart device completes its initial configuration. When the smart device is used again, it does not need to be reconfigured; it can automatically connect to the network and use the login authorization information to directly access its associated second server to process business and obtain relevant business data, thereby completing the functional services of the smart device in the current working mode. This application enables the initial configuration of a smart device when it is first used without an HDMI connection to a display device, allowing the smart device to perform an effective initial configuration process in different scenarios and working modes, thereby optimizing the functionality of the smart device. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings that need to be accessed in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1The diagram illustrates an application scenario of a smart device.
[0030] Figure 2 The example diagram illustrates the interaction logic of an initial configuration method for a smart device;
[0031] Figure 3 The flowchart of the initial configuration method executed on the smart device side is illustrated in the example;
[0032] Figure 4 The flowchart of the initial configuration method performed by the terminal device is illustrated in the example. Detailed Implementation
[0033] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0034] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0035] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0036] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0037] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0038] In one exemplary application scenario, such as Figure 1As shown, this scenario involves a smart device 100, a display device 200, a terminal device 300, and a cloud server 400. The smart device can communicate and interact with the display device 200, the terminal device 300, and the cloud server 400, respectively. The display device can be a smart TV or similar device, which users can control via remote control, terminal command interaction, touchscreen, etc. The terminal device 300 is, for example, a smartphone, tablet computer, or smart wearable device (such as a smart bracelet). The cloud server 400 can communicate with the smart device 100 and the display device 200 to process related business and provide the functional services of the smart device 100 and the display device 200.
[0039] In one exemplary implementation, the smart device 100 is an electronic product used in conjunction with the display device 200. In actual use, the smart device 100 can be fixedly placed on top of the display device 200, for example. The smart device 100 can integrate at least two modes. For example, the smart device can be used as an OTT TV box to connect to the display device, meaning that mode one of the smart device can be manifested as a signal source for the display device; or, the smart device can also be used as an external amplifier for the display device to output audio, meaning that mode two of the smart device can be manifested as a physical channel for outputting audio to the display device. The modes of the smart device are not limited to those described in this application. Users can switch the working mode of the smart device according to their usage needs to enjoy the functions and services supported by the smart device.
[0040] In one exemplary implementation, the smart device 100 may be equipped with a series of interfaces for connecting to certain devices. These interfaces include, but are not limited to, HDMI, USB, and audio output interfaces. The smart device may also include an image capture device (camera), an audio capture device (microphone), a sound player (speaker), a power switch, and a power socket. After the user clicks the power switch to start the smart device 100, an adapter cable can be used to connect the smart device 100 and the display device 200's HDMI interface, thereby establishing an HDMI connection between the smart device 100 and the display device 200. At this time, the smart device 100 acts as the signal source for the display device 200. The smart device 100 is not merely a TV box; it can also capture user images and / or user voice, and implement numerous interactive / social functions such as AI fitness, video calls, and smart home control, providing users with a better application experience.
[0041] For example, the smart device 100 can also connect to external storage devices, such as USB flash drives, hard drives, and card readers, via a USB interface to display local files on the external storage device in conjunction with the display device 200. Furthermore, the smart device 100 can support wireless communication methods such as Bluetooth and Wi-Fi. When the smart device 100 establishes a wireless communication connection with the display device 200, the smart device can, for example, be used as an independent speaker. It should be noted that the hardware and software configuration of the smart device 100 is not limited to the examples in this application.
[0042] In one exemplary implementation, a smart device may have multiple operating modes, each handled by a separate application. For example, if a smart device has both an OTT TV box and a smart speaker operating modes, with the OTT TV box being the first operating mode and the smart speaker the second, then the smart device needs two built-in applications: the first application handles the business when the smart device is in the first operating mode, and the second application handles the business when the smart device is in the second operating mode.
[0043] In one exemplary implementation, when a smart device is used for the first time, it typically requires initial configuration operations such as network settings and account login to ensure that the device has permission to use smart device services. Network settings involve setting the Wi-Fi name and password so that the smart device can automatically connect to that Wi-Fi network without repeatedly selecting the desired Wi-Fi network and entering the password. Account login involves completing SSO (Single Sign-On) authentication based on the cloud account and password. SSO allows users to log in once, gaining access to other related systems and applications within the single sign-on system. Administrators do not need to modify the user's login status or other information, meaning that users only need to log in once to access all mutually trusted application systems, reducing the time spent entering usernames and passwords and aiding user management.
[0044] After the initial configuration of a smart device is completed, subsequent uses of the device do not require re-performing the initial configuration. Instead, based on the Wi-Fi settings and stored authorization login information from the initial configuration, the device automatically connects to the Wi-Fi network and accesses the cloud server to access the user's desired business functions. In other words, the purpose of the initial configuration is to significantly reduce the time spent connecting to Wi-Fi and logging into accounts during subsequent uses of the smart device by configuring it once during the first use, thereby improving the performance of the smart device and the user experience.
[0045] In a conventional implementation, the smart device is typically connected to the display device via HDMI. In this mode, the smart device is in its first operating mode, and the display device can interact with the first application, guiding the user through the initial configuration process via its UI. For example, after establishing an HDMI connection, the smart device checks if initial configuration is complete. If so, it automatically connects to Wi-Fi according to the configured network and accesses the cloud server to retrieve user-specified business data based on the authenticated login authorization information. If the smart device detects that it has not completed initial configuration, it controls the first application to send an initial configuration command to the display device. The display device responds by launching a pre-built initial configuration program, guiding the user through the UI to set up the network (entering the Wi-Fi name and password) and log in to their cloud account for authorization. The first application then records that the smart device has completed initial configuration. Currently, most smart devices complete initial configuration in scenarios where they are connected to the display device via HDMI. How to perform initial configuration for smart devices in scenarios without HDMI connections is the technical problem this application aims to solve.
[0046] In one exemplary implementation, in a scenario where no HDMI cable is connected between the smart device and the display device—that is, the smart device is currently being processed by a second application, and the functions of the first application are disabled—the pre-installed smart device initial configuration program on the display device cannot be triggered. To address this, this application utilizes a terminal device 300 to assist the smart device 100 in completing the initial configuration, such as... Figure 2 The interaction logic diagram shown involves four parties: terminal devices, smart devices, authentication and authorization subsystems, and cloud servers. The authentication and authorization system can be a standalone server or a subsystem within a cloud server used for identity authentication and login authorization.
[0047] In one exemplary implementation, since the initial configuration includes two stages—network configuration and account login authentication—the smart device, in addition to the built-in first and second applications, also includes a network configuration service module for configuring network connections, and an account management module for account login authentication, authorization, and management. Optionally, the terminal device may have a target application configured, which is an associated application on the terminal device that cooperates with the smart device for initial configuration. The smart device can interact with the target application to complete its initial configuration. (See reference...) Figure 2 For example, the interaction logic includes the following program steps:
[0048] (1) Second application of smart device: After the second application is started, if it is detected that the smart device has not completed the initial configuration, the first prompt message is sent to the terminal device.
[0049] (2) Terminal device: In response to the first prompt message received, launch the target application.
[0050] (3) Target application of terminal device: display account login page, obtain the account and password entered by user, generate login instruction based on the account and password, and send the login instruction to authentication and authorization system.
[0051] (4) Authentication and authorization system: In response to the received login command, it sends a terminal access token (i.e., the terminal device's token) back to the terminal device.
[0052] (5) Target application of the terminal device: Enable Bluetooth function, and when a smart device is detected, obtain the device ID and UUID (Universally Unique Identifier) from the smart device's network configuration service module. The device ID and UUID are used to identify the smart device.
[0053] (6) Target application of terminal device: The UI displays a list of connectable devices, which includes device information of all devices that can currently establish a Bluetooth connection with the terminal device. The device information mentioned here includes, for example, the device name, model, MAC address, etc.
[0054] (7) Target application of the terminal device: When the user selects a smart device from the list of connectable devices, the network list is displayed. The network list includes network information of available Wi-Fi networks on the terminal device, including Wi-Fi names and information such as Wi-Fi signal strength for user reference.
[0055] (8) Target application of the terminal device: Obtain the name of the target Wi-Fi selected by the user in the network list, and obtain the password of the target Wi-Fi entered by the user. Then, send the name and password of the target Wi-Fi to the network configuration service module. After the user selects a Wi-Fi name in the network list, the UI prompts the user to enter the password. After the user sets and confirms the password, the target application can obtain the name and password of the target Wi-Fi configured by the user.
[0056] (9) Network Configuration Service Module: Based on the target Wi-Fi name and password, configure the wireless network connection and then send network configuration completion information back to the terminal device. By sending back the network configuration completion information, the module notifies the target application-side smart device that the network configuration has been successfully completed.
[0057] (10) Target application of terminal equipment: When receiving the distribution network completion information, the terminal access command (i.e., the terminal equipment token), the device ID and UUID of the smart device are used to generate a login identifier request and send the login identifier request to the authentication and authorization system.
[0058] (11) Authentication and authorization system: Based on the terminal access command, device ID and UUID carried in the login identifier request, generate and send the login identifier (CustomerID) back to the terminal device.
[0059] (12) Target application of terminal device: Send the login identifier (CustomerID) to the account management module of smart device.
[0060] (13) Account Management Module: Stores the received login identifier (CustomerID), generates a login authentication request based on the device ID, APPKey, APPSecret and other device information of the smart device, and sends the login authentication request to the authentication and authorization system.
[0061] (14) Authentication and authorization system: Perform SSO authentication based on the device information carried in the login authentication request, and send the access token back to the account management module.
[0062] In this system, APPKey is the public key (equivalent to an account), and AppSecret is the private key (equivalent to a password). The authentication and authorization system verifies the device ID, APPKey, and APPSecret. If the verification is successful, a unique string (i.e., AccessToken) is generated and returned to the client. The client then sends it to the smart device. The smart device's application must include the AccessToken when requesting business data again to have the manual login permission after SSO authentication.
[0063] (15) Account Management Module: Stores login authorization information consisting of login identifier (CustomerID) and access token (AccessToken).
[0064] (16) Account Management Module: Sends initial configuration completion information to the first application and the second application respectively. The initial configuration completion information is used to instruct the first application or the second application to directly call the login authorization information and access the cloud server to process business, without needing to perform initial configuration of the smart device again.
[0065] (17) The second application of the smart device: call the login authorization information (i.e. CustomerID+AccessToken) stored in the account management module, access the cloud server to obtain business data based on the login authorization information, and process the business of the second application.
[0066] (18) Network configuration service module: After the user connects to the display device via HDMI cable, and the smart device opens the first application and closes the second application, it automatically connects to the wireless network based on the recorded target Wi-Fi name and password, without requiring the user to configure the network connection again.
[0067] (19) The first application of the smart device: When the initial configuration completion information is detected in the record of this application, the login authorization information is directly called to the account management module. Based on the login authorization information, the cloud server is accessed to obtain business data to process the business of the first application.
[0068] When the smart device is in the second working mode, the account management module simultaneously broadcasts a notification to both the first and second applications that the initial configuration is complete. Both applications have recorded this initial configuration completion information. Therefore, when the smart device is switched to the first working mode (i.e., the first application handles the business), if the first application can read the initial configuration completion information it has recorded, it will not execute the initial configuration process again. Instead, it will directly query the login authorization information from the account management module. This login authorization information eliminates the need for the user to log in to their account again in the first application, allowing the first application to directly initiate service requests to the cloud server. In other words, the initial configuration completion information can be used by both the first and second applications to detect whether the smart device has completed its initial configuration. In other words, because the initial configuration is simultaneously notified to both applications within the smart device, the smart device will not trigger a secondary initial configuration regardless of application / working mode switching during subsequent use. Users will also not need to repeatedly log in to their cloud account or manually connect to Wi-Fi, improving the smart device's scenario adaptability and performance, and optimizing the user experience.
[0069] The above embodiments involve the concept of a token. In scenarios where the client frequently requests data from the server, and the server frequently queries the database for the username and password, compares them, determines their correctness, and provides appropriate prompts, a token becomes essential. A token is a string generated by the server that serves as a pass / password for the client to request services. After the first login, the server generates a token and returns it to the client. Subsequently, the client only needs to carry this token to request business data, without needing to carry the username and password again, thereby reducing the server's load, decreasing the frequency of database queries, and ensuring server performance.
[0070] In one exemplary implementation, after the initial configuration of the smart device is completed, subsequent use of the smart device may encounter anomalies in the initially configured wireless network, such as network non-existence, extremely poor network signal strength, or network disconnection, resulting in network connection failure. To address this, after the first or second application starts, it queries the network configuration service module to check if the network configuration is valid. If the network configuration is valid, the network configuration service module automatically connects to the wireless network, eliminating the need for the user to manually enter the Wi-Fi name and password. If the network configuration fails, the first application notifies the display device, or the second application notifies the terminal device. The target application on either the display device or the terminal device can then display the current network list in its UI and prompt the user to reselect the Wi-Fi and enter the corresponding password, thereby updating the initially configured network and ensuring that the smart device can function normally and process business operations.
[0071] The above exemplary embodiments describe in detail the logical mechanism of initial configuration of smart devices from the perspective of multi-device interaction. (Refer to...) Figure 2 The following section will provide examples of how to implement the initial configuration of a smart device from the perspective of single-end execution and control, specifically for smart devices and terminal devices.
[0072] In one exemplary implementation, Figure 3 An example of an initial configuration method executed on a smart device is provided. The smart device 100 includes at least a communicator A and a controller A. The communicator A is used for communication with the terminal device 300, the first server (equivalent to the aforementioned authentication and authorization system), and the second server (equivalent to the aforementioned cloud server). In this embodiment, the cloud server and the authentication and authorization system are planned as two independent servers; in other implementations, the first server and the second server can be configured as the same server. The controller A is used to execute the following program steps:
[0073] Step S101: Receive the network name and password sent by the terminal device, and configure the network connection according to the network name and password.
[0074] Optionally, before step S101, the terminal device may launch the target application, log in to the account, obtain the terminal access token, the device ID and UUID of the smart device, and obtain the name and password of the target Wi-Fi specified by the terminal user, and then push the name and password of the target Wi-Fi to the smart device.
[0075] Step S102: After receiving the login identifier sent by the terminal device, store the login identifier, generate a login authentication request based on its own device information, and send it to the first server.
[0076] Optionally, before step S102, the terminal device may request the server to create and return a login identifier (CustomerID) based on the terminal access command, the device ID of the smart device, and the UUID, and then send the login identifier to the smart device.
[0077] Optionally, the smart device can generate a login authentication request based on information such as device ID, APPKey, and APPSecret (specifically, SSO can be selected).
[0078] Step S103: Receive the access pass sent by the first server after responding to the login authentication request, and store the login authorization information consisting of the login identifier and the access pass. The initial configuration is then complete. The login authorization information is used to support smart devices accessing the second server to obtain business data.
[0079] After the smart device completes its initial configuration, if it switches its working mode / application, for example, switching from speaker mode to OTT TV box mode, to avoid the first application re-executing the initial configuration process after switching back to the first application when the second application has already completed its initial configuration, thus causing the initial configuration process to be executed repeatedly, optionally, this application sends initial configuration completion information to both the first and second applications simultaneously after storing the login authorization information. Upon receiving the initial configuration completion information, both the first and second applications can update their initial configuration status to "completed," thus completing the initial configuration. When switching to OTT TV box mode subsequently, if the first application finds that the current initial configuration status is "completed," it will not execute the initial configuration procedure; if the first application finds that the current initial configuration status is "incomplete" or "pending completion," it will cooperate with the display device to complete the initial configuration.
[0080] In one exemplary implementation, when the smart device is enabled, its current operating mode is first detected. If the smart device is currently in a second operating mode (the mode in which the smart device establishes a wireless communication connection (non-HDMI connection) with the display device), then the initial configuration status recorded in the second application is queried to determine whether the smart device has completed the initial configuration. If the initial configuration is not yet complete, a first prompt message is sent to the terminal device. Upon receiving the first prompt message, the terminal device launches the target application and follows the instructions. Figure 2 The interaction logic in the example, which is used in conjunction with the smart device for initial configuration, will not be elaborated here; if the smart device has been detected to have completed the initial configuration, controller A can control the second application to call the login authorization information and handle the business in the audio mode.
[0081] In one exemplary implementation, when the smart device is enabled, its current operating mode is first detected. If the smart device is currently in a first operating mode (the mode in which the smart device establishes an HDMI connection with the display device), the system checks whether the smart device has completed initial configuration by querying the initial configuration status recorded in the first application. If the system detects that the smart device has not completed initial configuration, it sends a second prompt message to the display device. Upon receiving the second prompt message, the display device performs initial configuration according to its pre-set initial configuration program, in cooperation with the smart device. (Further details are omitted here.) If the system detects that the smart device has completed initial configuration, controller A can control the first application to call login authorization information and handle relevant business services in the OTT electronic box mode, such as video calls, AI fitness, and media viewing.
[0082] In one exemplary implementation, with Figure 3 The opposite of the method, Figure 4 This example illustrates an initial configuration method executed on a terminal device 300. The terminal device 300 includes at least a display, a communicator B, and a controller B. The communicator B is used for communication connections with the smart device 100 and the first server (equivalent to the aforementioned authentication and authorization system). The controller B is used to execute the following program steps:
[0083] Step S201: After receiving the first prompt message sent by the smart device when it detects that it has not completed the initial configuration, send the network name and password to the smart device.
[0084] Optionally, prior to step S201, controller B is also used to perform:
[0085] Upon receiving the username and password entered by the user in the target application, a login command is generated based on the username and password and sent to the first server; wherein the target application is an application on the terminal device that is initially configured in conjunction with the smart device;
[0086] The terminal access token sent by the first server after responding to the login instruction is received, and the terminal access token is used to generate the login identifier;
[0087] The Bluetooth function is activated, and when the smart device is detected, the device ID and UUID of the smart device are obtained, and the display is controlled to show a list of connectable devices, which includes device information of devices that can establish a Bluetooth connection with the terminal device.
[0088] Upon receiving a user's selection operation for a smart device in the list of connectable devices, the system controls the display to show a network list, which includes network information of available Wi-Fi networks on the terminal device.
[0089] The system obtains the network name of the target Wi-Fi network selected by the user from the network list, as well as the password of the target Wi-Fi network entered by the user, and then pushes the name and password of the target Wi-Fi network to the smart device.
[0090] Step S202: Receive network configuration completion information sent by the smart device after configuring network connection according to the network name and password, and send a login identifier request to the first server.
[0091] Optionally, before step S202, controller B is further configured to: generate the login identifier request based on the terminal access command, the device ID and UUID of the smart device.
[0092] Step S203: Receive a login identifier sent by the first server and send the login identifier to the smart device. The login identifier is used to trigger the smart device to authenticate with the first server and obtain an access pass. The login authorization information consisting of the login identifier and the access pass is used to support the smart device to access the second server to obtain business data.
[0093] The cooperation of the terminal device ends after sending the login identifier (CustomerID). The initial configuration process, such as obtaining the access token and sending the initial configuration completion information to the mode application, is completed independently by the smart device.
[0094] Optionally, when the smart device completes its initial configuration in the second working mode, the second application can send a second configuration completion message to the terminal device. After receiving the second configuration completion message, the terminal device will display a UI prompt on the target application's page that the smart device has completed its initial configuration, and the user can then choose to exit the target application.
[0095] Optionally, when the smart device completes its initial configuration in the first working mode, the first application may send a first configuration completion message to the display device. After receiving the first configuration completion message, the display device will prompt the user on the current UI that the smart device has been initially configured, and the user can then enjoy the relevant services and functions in the first working mode.
[0096] In some exemplary embodiments, the smart device receives an input playback command, which may be a voice command or a command pushed by a mobile terminal. In response to receiving the playback command, the smart device determines whether a display device physically connected to it (e.g., HDMI) exists.
[0097] In some exemplary implementations, if the smart device detects a display device physically connected to it in the current scene, it launches a first application on the smart device and displays the interface through the display device. During the loading process, the first application calls the network configuration in the network configuration service module. If the network configuration fails, a prompt message indicating the network configuration failure is displayed on the display device's interface. Alternatively, the prompt message can be broadcast aloud via the display device's speaker. This implementation does not use the smart device for network configuration prompts.
[0098] In some embodiments, after a network configuration failure, the smart device queries the display device via a physical connection to determine if the display device is connected to the network. If the display device is not connected to the network, a prompt message is output through the display device. If the display device is connected to the network, the network configuration information (including the name and password of the wireless network) of the display device is synchronized to the smart device, so that the smart device updates the network configuration service module and connects to the network based on the synchronized network configuration information of the display device.
[0099] In some embodiments, the first application in the smart device directly sends the decoded audio and video signals to the display device for display via a physical connection, without requiring the display device to configure a separate associated application for the smart device. In this case, the smart device can send a network configuration information acquisition request to the framework layer of the display device. The framework layer of the display device accesses its own network configuration service module (for ease of distinction, the network configuration service module in the display device is named the first network configuration service module). When the first network configuration service module indicates that the display device is not connected to the network, it sends a first message back to the smart device. Upon receiving this first message, the smart device controls the first application to send a first prompt message indicating that additional network configuration is required to the display device. Upon receiving the first prompt message, the display device prompts the user to reconfigure the wireless network.
[0100] In some embodiments, when the first network distribution service module indicates that the display device is connected to the network, it sends a second message to the smart device. Upon receiving the second message, the smart device controls the first application to send a second prompt message to the display device. In response to receiving the second prompt message, the display device may ask the user, via voice or UI, whether to allow the synchronization of the display device's current network configuration information to the smart device. When the user inputs a command to allow synchronization, the display device synchronizes its current network configuration information to the smart device, triggering the smart device to update its network distribution service module and automatically connect to the network.
[0101] In some embodiments, synchronizing the network configuration information of the display device to the smart device can be done directly, or the smart device can send a synchronization request to the display device. The synchronization request includes cloud account information and may also include necessary information such as the smart device identifier. In response to the synchronization request, the display device identifies whether the cloud accounts currently logged in by the display device and the smart device are consistent. If the cloud accounts logged in by the two devices are consistent, the display device synchronizes its current network configuration information to the smart device.
[0102] In some embodiments, after the display device identifies that it is logged into the same cloud account as the smart device, it generates a network sharing interface. Optionally, for example, the network sharing interface displays a QR code image for network configuration operations to support users in completing network configuration of the smart device by scanning the code through the terminal device APP.
[0103] In some embodiments, after identifying that it and the smart device are logged into the same cloud account, the display device can also transmit network configuration information to the smart device through communication methods such as Bluetooth and NFC, so that the smart device can complete network configuration.
[0104] In some embodiments, the first network distribution service module accesses the network only after the TV smart operating system starts. If the signal source after the display device starts is a physical signal source (physical interface such as HDMI or AV) and not a smart TV signal source, the TV smart operating system will not start. If the signal source after the display device starts is a smart TV signal source, the TV smart operating system will start. Therefore, in some embodiments, when the display device receives a synchronization request sent by the smart device, if the associated application or framework layer of the display device finds that the TV smart operating system has not been started and cannot obtain its own network configuration information, the display device will create a new thread in the background and start the TV smart operating system through this thread to obtain the configuration information of the network currently connected to by the first network distribution service module.
[0105] In some embodiments, when the display device receives a synchronization request from a smart device, it reads the configuration information of the network that the first network distribution service module connected to during the last startup of the TV smart operating system, according to a preset cache address.
[0106] In some embodiments, the display device has an associated application installed to cooperate with a first application in the smart device. When the first application in the smart device starts, it notifies the display device to start the associated application via a physical connection. The first application in the smart device then transmits audio and video data to the associated application, enabling the associated application on the display device to decode the audio and video data. The smart device can send a network configuration information acquisition request to the associated application on the display device, with the associated application replacing the framework layer in the above embodiments as the main body communicating with the smart device.
[0107] In some embodiments, if the smart device detects that there is no physically connected display device in the current scene, it launches a second application on the smart device. During the loading process, the second application calls the network configuration in the network configuration service module. If the network configuration fails, a prompt message indicating the network configuration failure is played through the smart device's speaker. This embodiment does not use a display device for network configuration prompts.
[0108] In some embodiments, after the second application or the first application performs network configuration, a configuration status flag is set in both applications. The configuration status flag is used to indicate whether the network configuration is successful or unsuccessful. After switching between the second application and the first application, the newly launched application first queries the configuration status flag. If the configuration status flag indicates that the network configuration is successful, the newly launched application will not call the network configuration in the network configuration service module. If the configuration status flag indicates that the network configuration has failed, the newly launched application needs to call the network configuration in the network configuration service module to try again.
[0109] In some embodiments, the transition of the physical connection from an unconnected state to an connected state triggers the smart device to launch the first application and stop the second application.
[0110] In some embodiments, when the physical connection changes from an access state to an unaccessed state, it triggers the smart device to launch a second application and stop the first application.
[0111] In some embodiments, after the network is disconnected, the first application or the second application re-executes the network configuration call in the network configuration service module, as well as other subsequent steps.
[0112] This application also provides a computer-readable storage medium, including instructions that, when run on a computer, cause the computer to execute the initial configuration method corresponding to the above-mentioned smart device.
[0113] An eighth aspect embodiment provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the initial configuration method corresponding to the terminal device described above.
[0114] It should be noted that when a smart device is connected to a display device via HDMI, the initial configuration performed by the display device in conjunction with the smart device can refer to conventional methods and procedures, or can be adapted and selectively referred to the method of the terminal device in conjunction with the smart device to complete the initial configuration as described in this application. The same, similar, and related contents among the various embodiments of this application can be mutually referred to for verification.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0116] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A smart device, characterized in that, include: A communicator used for communication connections with terminal devices, a first server, and a second server; The controller is used to perform: Receive the network name and password sent by the terminal device, and configure the network connection according to the network name and password; After receiving the login identifier sent by the terminal device, the system stores the login identifier and generates and sends a login authentication request to the first server based on its own device information; wherein, the login identifier is generated by the first server based on the terminal access token, the device ID and UUID of the smart device and sent to the terminal device; The initial configuration is complete when the access pass sent by the first server in response to the login authentication request is received, and the login authorization information consisting of the login identifier and the access pass is stored; the login authorization information is used to support smart devices to access the second server to obtain business data.
2. The intelligent device according to claim 1, characterized in that, The smart device has a first application and a second application built in. The first application is used to handle the business when the smart device is in a first working mode, and the second application is used to handle the business when the smart device is in a second working mode. The first working mode is the working mode in which the smart device establishes an HDMI connection with the display device, and the second working mode is the working mode in which the smart device establishes a wireless communication connection with the display device.
3. The intelligent device according to claim 2, characterized in that, The controller is also used to perform: After storing the login authorization information, initial configuration completion information is sent to the first application and the second application respectively. The initial configuration completion information is used to instruct the first application or the second application to directly call the login authorization information to access the second server to process business, without having to perform initial configuration of the smart device again.
4. The intelligent device according to claim 2, characterized in that, Before receiving the network name and password sent by the terminal device, the controller is also used to perform: When the smart device is detected to be currently in the second working mode, check whether the smart device has completed the initial configuration; If it is detected that the smart device has not completed the initial configuration, a first prompt message is sent to the terminal device. The first prompt message is used to instruct the terminal device to cooperate with the smart device to complete the initial configuration. If the smart device is detected to have completed its initial configuration, the second application is controlled to use the login authorization information to process the business.
5. The intelligent device according to claim 2, characterized in that, Before receiving the network name and password sent by the terminal device, the controller is also used to perform: When the smart device is detected to be in its first working mode, check whether the smart device has completed its initial configuration. If the smart device is detected to have completed its initial configuration, the first application is controlled to call the login authorization information to process the business. If it is detected that the smart device has not completed the initial configuration, a second prompt message is sent to the display device, which is used to instruct the display device to cooperate with the smart device to complete the initial configuration.
6. A terminal device, characterized in that, include: A monitor is used to display the user interface. A communicator used for communication connections with smart devices and a primary server; The controller is used to perform: After receiving the first prompt message from the smart device when it detects that it has not completed the initial configuration, send the network name and password to the smart device; Receive network configuration completion information sent by the smart device after configuring network connection according to the network name and password, and send a login identifier request to the first server; The system receives a login identifier sent by a first server and sends the login identifier to a smart device. The login identifier is generated by the first server based on the terminal access token, the device ID and UUID of the smart device. The login identifier is used to trigger the smart device to perform login authentication with the first server and obtain an access token. The login authorization information consisting of the login identifier and the access token is used to support the smart device to access the second server to obtain business data.
7. The terminal device according to claim 6, characterized in that, Before sending the network name and password to the smart device, the controller is also used to perform: Upon receiving the username and password entered by the user in the target application, a login command is generated based on the username and password and sent to the first server; The target application is the application used in terminal devices to perform initial configuration with smart devices; Receive the terminal access command sent by the first server after responding to the login instruction; The Bluetooth function is activated, and when the smart device is detected, the device ID and UUID of the smart device are obtained, and the display is controlled to show a list of connectable devices, which includes device information of devices that can establish a Bluetooth connection with the terminal device. Upon receiving a user's selection operation for a smart device in the list of connectable devices, the system controls the display to show a network list, which includes network information of available Wi-Fi networks on the terminal device. Obtain the network name of the target Wi-Fi network selected by the user in the network list, and obtain the password of the target Wi-Fi network entered by the user.
8. The terminal device according to claim 7, characterized in that, Before sending a login identifier request to the first server, the controller is also used to perform: The login identifier request is generated based on the terminal access command, the device ID and UUID of the smart device.
9. A method for initial configuration of a smart device, characterized in that, Its features are, The smart device receives the network name and password sent by the terminal device, and configures the network connection according to the network name and password; After receiving the login identifier sent by the terminal device, the smart device stores the login identifier, generates a login authentication request based on its own device information, and sends it to the first server; wherein, the login identifier is generated by the first server based on the terminal access command, the smart device's device ID, and UUID and sent to the terminal device; The smart device receives the access pass sent by the first server after responding to the login authentication request, and stores the login authorization information consisting of the login identifier and the access pass, then the initial configuration is completed; the login authorization information is used to support the smart device to access the second server to obtain business data.
10. A method for initial configuration of a smart device, characterized in that, include: After receiving the first prompt message sent by the smart device when it detects that it has not completed the initial configuration, the terminal device sends the network name and password to the smart device. The terminal device receives the network configuration completion information sent by the smart device after configuring the network connection according to the network name and password, and sends a login identifier request to the first server; The terminal device receives a login identifier sent by the first server and sends the login identifier to the smart device. The login identifier is generated by the first server based on the terminal access token, the device ID and UUID of the smart device. The login identifier is used to trigger the smart device to perform login authentication with the first server and obtain an access token. The login authorization information consisting of the login identifier and the access token is used to support the smart device to access the second server to obtain business data.