Display device, terminal device and network connection method
By skipping the scanning process of network scanning requests when the display device accesses the wireless network to which the terminal device is connecting, the problem of conflict between scanning wireless network and network configuration is solved, and the success rate of network configuration is improved.
Patent Information
- Application Number
- CN202411884551.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-18
AI Technical Summary
When the display device accesses the wireless network to which the terminal device is connecting, the process of scanning the wireless network conflicts with the process of the terminal device performing network configuration on the display device, resulting in the network configuration failure.
In the target network connection mode, the display device receives the network address sent by the terminal device and skips the scanning process of the network scanning request when connecting to the network until it is connected to the network.
By skipping the first scan of wireless network, the impact of scanning wireless network on display devices' access to the network is reduced, and the network configuration success rate of display devices and terminal devices is improved.
Smart Images

Figure CN119854760A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device, a terminal device and a network connection method. Background Art
[0002] The display device can receive network configuration from the terminal device through the Device Provisioning Protocol (DPP) to enable the display device to access the wireless network to which the terminal device is already connected. During the network configuration process, the terminal device will send the network address to which the terminal device is connecting to the display device, so that the display device can access the corresponding wireless network according to the network address sent by the terminal device.
[0003] After turning on the wireless network connection function, the display device will periodically scan for connectable wireless networks. However, when the display device is accessing the wireless network based on the network address sent by the terminal device, the process of scanning the wireless network will conflict with the process of the terminal device performing network configuration on the display device, resulting in failure of the network configuration between the display device and the terminal device. Summary of the invention
[0004] The present application provides a display device, a terminal device and a network connection method to solve the problem that the network configuration of the display device and the terminal device fails during the process of scanning a wireless network.
[0005] In a first aspect, some embodiments of the present application provide a display device, including a display, a communication device, and a controller, wherein the display is configured to display a user interface, and the controller is configured to:
[0006] In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed, wherein the target network connection mode is a connection mode in which the display device performs network configuration via a terminal device that has been connected to a network;
[0007] Receiving a network address sent by the terminal device through the connection information, where the network address is a network address corresponding to a network currently connected to the terminal device;
[0008] In the process of connecting to the network corresponding to the network address, a scanning process corresponding to the network scanning request is skipped until the display device is connected to the network corresponding to the network address.
[0009] The above technical solution has the following beneficial effects or advantages: after receiving the network address sent by the terminal device through the connection information, when the display device accesses the corresponding network according to the network address, if a network scanning request generated periodically by the display device is detected, the process of scanning the wireless network is skipped in the process of connecting to the network corresponding to the network address, thereby reducing the connection impact of scanning the wireless network on the display device accessing the network that the terminal device is connecting to according to the network address, thereby improving the success rate of network configuration of the display device and the terminal device.
[0010] In some embodiments, the controller is further configured to:
[0011] In the process of connecting to the network corresponding to the network address, detecting the network scanning request;
[0012] If the network scanning request is detected, and the network scanning request is the first network scanning request detected in the process of connecting to the network corresponding to the network address, after skipping the scanning process corresponding to the network scanning request, obtaining the maximum scanning time for scanning the wireless network;
[0013] updating the time interval for the communication device to periodically generate the network scan request according to the maximum scan time;
[0014] The scanning network request is detected according to the updated time interval.
[0015] The above technical solution has the following beneficial effects or advantages: after skipping the process of scanning the wireless network, the display device increases the time interval for generating the network scanning request to provide configuration time for the terminal device to perform network configuration on the display device, thereby avoiding the situation where the terminal device has not completed the network configuration of the display device when the display device generates a new network scanning request, resulting in configuration failure, thereby improving the success rate of executing the network configuration on the display device.
[0016] In some embodiments, if the network scan request is a non-first network scan request detected during the process of connecting to the network corresponding to the network address, the controller is further configured to:
[0017] Get the maximum number of channels to scan for wireless networks;
[0018] The wireless network is scanned according to the maximum number of channels to obtain a first number of wireless scanning results.
[0019] The above technical solution has the following beneficial effects or advantages: if the network scanning request is not the first network scanning request detected in the process of connecting to the network corresponding to the network address, the wireless network scan can be performed normally. In order to provide the user with more wireless scanning results, the display device can obtain the maximum number of channels of the wireless network and scan the wireless network according to the maximum number of channels, thereby providing the user with the most wireless scanning results.
[0020] In some embodiments, after the controller executes the step of accessing the network currently connected to the terminal device according to the network name and the network password, the controller is further configured to:
[0021] When the target network connection mode is turned off, canceling the display of the connection information;
[0022] After canceling the display of the connection information, detecting a network scanning request for scanning a wireless network generated periodically by the display device;
[0023] If the network scan request is detected, and the network scan request is the first network scan request after the target network connection mode is turned off, setting a priority scan number for scanning wireless networks, the priority scan number being less than the maximum channel number;
[0024] In response to the first network scan request after the target network connection mode is turned off, wireless networks are scanned according to the priority scan quantity to obtain a second number of wireless scan results.
[0025] The above technical solution has the following beneficial effects or advantages: when the display device turns off the target network connection mode, after detecting a network scan request again, in order to quickly provide the user with the wireless scanning results obtained by the scan, the priority scanning number for scanning the wireless network can be set, and the wireless network can be scanned according to the priority scanning number, so that after the display device exits the target network connection mode, the user can quickly see the wireless scanning results obtained by the display device.
[0026] In some embodiments, after the controller executes the step of scanning the wireless network according to the priority scanning number, the controller is further configured to:
[0027] Calculate the difference between the maximum number of channels and the priority scanning number;
[0028] After obtaining the second number of wireless scanning results, scanning wireless networks according to the difference number to obtain a third number of wireless scanning results;
[0029] According to the third number of wireless scanning results, the second number of wireless scanning results is updated to the first number of wireless scanning results.
[0030] The above technical solution has the following beneficial effects or advantages: after the user sees the second number of wireless scanning results obtained based on the priority scanning, the display device can perform a supplementary scan based on the difference between the maximum number of channels and the priority scanning number to obtain a third number of wireless scanning results, and display them together with the second number of wireless scanning results to obtain the first number of wireless scanning results, thereby increasing the number of wireless scanning results provided to the user.
[0031] In some embodiments, the controller performs scanning of wireless networks according to the priority scanning quantity, and is specifically configured to:
[0032] Retrieve the configuration policy file including the network scanning policy from the local configuration file;
[0033] According to the network scanning strategy, the number of first channels to be scanned in the first frequency band is set, and the number of second channels to be scanned in the second frequency band is set;
[0034] In the first frequency band, scanning wireless networks according to the first number of channels to obtain a first channel result;
[0035] In the second frequency band, scanning wireless networks according to the second number of channels to obtain a second channel result;
[0036] A second number of wireless scanning results are obtained according to the first scanning result and the second scanning result.
[0037] The above technical solution has the following beneficial effects or advantages: according to the network scanning strategy, the first frequency band and the second frequency band for priority scanning are determined, and the number of first channels scanned in the first frequency band and the number of second channels scanned in the second frequency band are determined, so that wireless network scanning is performed within the corresponding network frequency band according to the corresponding number of channels.
[0038] In some embodiments, the controller is further configured to:
[0039] parsing the network scanning strategy to obtain a scanning order of scanning wireless networks in the first frequency band and scanning wireless networks in the second frequency band;
[0040] If the scanning order is the first order, the wireless network is scanned in the first frequency band according to the first number of channels to obtain a first channel result, and then the wireless network is scanned in the second frequency band according to the second number of channels to obtain a second channel result;
[0041] If the scanning order is the second order, wireless networks are scanned in the second frequency band according to the second number of channels to obtain second channel results, and then wireless networks are scanned in the first frequency band according to the first number of channels to obtain first channel results.
[0042] The above technical solution has the following beneficial effects or advantages: by analyzing the network scanning strategy, the scanning order of the first frequency band and the second frequency band is determined, so that the wireless network is scanned in the first frequency band and the wireless network is scanned in the second frequency band in sequence.
[0043] In some embodiments, after the controller executes the step of receiving the network address sent by the terminal device through the connection information, the controller is further configured to:
[0044] Resolving the network name and network password of the network address;
[0045] Access the network to which the terminal device is currently connected according to the network name and network password.
[0046] The above technical solution has the following beneficial effects or advantages: after receiving the network address, the network name and network password are obtained by parsing the network address, and the network connection is completed according to the network name and network password.
[0047] In a second aspect, some embodiments of the present application provide a terminal device, including:
[0048] The processor is configured as:
[0049] In response to a control instruction for starting a first configuration mode, operating in the first configuration mode, the first configuration mode being a connection mode for providing a network configuration to a display device;
[0050] In the first configuration mode, based on the connection information displayed by the display device in the target network connection mode, a network address is obtained, where the network address is a network address corresponding to the network currently connected to the terminal device; the target network connection mode is a connection mode in which the display device performs network configuration through a terminal device that is already connected to the network;
[0051] A network address is sent to the display device so that the display device detects a network scanning request for scanning a wireless network that is periodically generated by the display device during the process of connecting to the network corresponding to the network address, and when a network scanning request is detected and the network scanning request is the first network scanning request after starting the target network connection mode, the scanning process corresponding to the network scanning request is skipped until the display device connects to the network corresponding to the network address.
[0052] The above technical solution has the following beneficial effects or advantages: when the display device displays connection information in the target network connection mode, the terminal device starts the first configuration mode to send the network address corresponding to the network currently connected to the terminal device to the display device to perform network configuration on the display device.
[0053] In a third aspect, some embodiments of the present application provide a network connection method, which is applied to the display device described in the first aspect, wherein the display device includes a display, a communication device, and a controller, wherein the display is configured to display a user interface, and the communication device is configured to periodically generate a network scanning request for scanning a wireless network, wherein the method includes:
[0054] In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed, wherein the target network connection mode is a connection mode in which the display device performs network configuration via a terminal device that has been connected to a network;
[0055] Receiving a network address sent by the terminal device through the connection information, where the network address is a network address corresponding to a network currently connected to the terminal device;
[0056] In the process of connecting to the network corresponding to the network address, a scanning process corresponding to the network scanning request is skipped until the display device is connected to the network corresponding to the network address.
[0057] It can be seen from the above technical solutions that the present application provides a display device, a terminal device and a network connection method, wherein the method displays connection information for receiving a terminal device to perform network configuration on a display device in a target network connection mode. The network address sent by the receiving terminal device through the connection information is skipped during the process of connecting to the corresponding network through the network address until the display device accesses the network corresponding to the network address. The present application skips the process of scanning the wireless network for the first time, thereby reducing the impact of scanning the wireless network on the network configuration between the terminal device and the display device, and improving the success rate of the network configuration of the display device and the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;
[0060] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;
[0061] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;
[0062] Figure 4 A flowchart of a display device performing network connection provided in some embodiments of the present application;
[0063] Figure 5 A timing diagram of a display device performing network connection according to some embodiments of the present application;
[0064] Figure 6 This is a flow chart of a terminal device sending a network address to a display device in some embodiments of the present application;
[0065] Figure 7 A flowchart showing a device accessing a network according to a network address in some embodiments of the present application;
[0066] Figure 8 A flowchart of performing network scanning according to the maximum number of channels in some embodiments of the present application;
[0067] Fig. 9 A flowchart showing a device performing a network scan after exiting a target network connection mode in some embodiments of the present application;
[0068] Fig.10 A timing diagram showing a device performing a network scan after exiting a target network connection mode in some embodiments of the present application;
[0069] Fig.11 A flowchart of performing supplementary scanning on a display device provided in some embodiments of the present application;
[0070] Fig.12 A flowchart of a display device performing priority scanning according to different frequency bands provided in some embodiments of the present application. DETAILED DESCRIPTION
[0071] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0072] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0073] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0074] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0075] The term "module" refers to any known or later 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.
[0076] In the embodiment of the present application, the display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.
[0077] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that can be recognized and responded to by the display device 200. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0078] The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.
[0079] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .
[0080] like Figure 1As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0081] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.
[0082] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0083] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0084] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0085] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.
[0086] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.
[0087] The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.
[0088] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0089] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0090] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).
[0091] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.
[0092] In some embodiments, the user input interface 280 may be used to receive instructions from a user.
[0093] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.
[0094] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.
[0095] The operating system can be divided into different modules or layers according to the functions implemented, such as Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.
[0096] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0097] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0098] like Figure 3As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0099] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes, for example, reducing the display window, shaking the display, distorting the display, etc.
[0100] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.
[0101] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 3 As shown, the kernel layer may be configured with hardware drivers, and the drivers included in the kernel layer may be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0102] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.
[0103] In some embodiments, the display device 200 may execute a startup procedure in response to a startup instruction. After the startup is completed, the display device 200 may display a user interface, which may include a list interface for displaying applications, so that the user can send a startup instruction to the display device 200 according to the application controls in the list interface to control the display device 200 to run the corresponding application. For different application functions, the list interface may include a variety of different application controls, such as a map application control, a social application control, a player application control, or other functional application controls.
[0104] Different application functions have different requirements for the network. For example, offline applications can be run when the display device 200 is disconnected from the network, while online applications need to be run when the display device 200 is connected to the network, so that the display device 200 provides the network conditions required for the online application to run. To this end, the display device 200 needs to maintain a network connection when running or intending to run an online application.
[0105] The network connection may include a wired connection and a wireless connection. The wired connection is to insert a network cable into the display device 200, and the wireless connection is to input the network address of the local area network in the display device 200 so that the display device 200 can connect to the local area network by accessing the network address, thereby realizing the wireless connection of the network. The display device 200 can start the network connection function to scan the wireless networks in the same area as the display device 200, and display them in the user interface for the user to select the local area network to connect. After the user enters the selection instruction and determines the local area network to be connected, the user needs to enter the network password corresponding to the local area network so that the network password entered by the user can be verified by the display device 200. If the verification is successful, the display device 200 starts to access the network address corresponding to the local area network to complete the network connection. If the verification fails, the network connection fails.
[0106] When the user does not obtain the network password or forgets the network password, the desired network cannot be connected. Therefore, the display device 200 can connect to the network by means of a quick connection. The quick connection is a simple network connection method based on the device-to-device protocol (DDP), that is, a device that has established a network connection with the desired network is used as a configuration device (Configurator) to perform network configuration on the enrollee devices, so that the enrollee devices can access the network currently connected by the configuration device. Taking the configuration device as the terminal device 300 and the enrollee device as the display device 200 as an example, after the display device 200 enters the connection mode based on the DDP protocol, the connection information such as a QR code, a string input box, etc. can be displayed. The terminal device 300 can send the network address corresponding to the network currently connected to the terminal device 300 to the display device 200 through the connection information, so that the display device 200 can access the network currently connected to the terminal device 300 through the network address, thereby saving the step of entering the network password, simplifying the connection process, and reducing the risk of network password leakage, and improving the security of the network connection.
[0107] However, after the display device 200 turns on the wireless network connection function, the display device 200 will periodically scan for connectable wireless networks to provide the user with continuously updated connectable networks. The scanning process of the display device 200 will conflict with the network configuration of the display device 200 based on the DDP protocol. For example, when the display device 200 receives the network address sent by the terminal device 300, it takes a certain amount of time to connect to the network according to the network address. During this process, if the display device 200 scans for wireless networks, the scanning process will conflict with the connection process, resulting in the failure of the terminal device 300 to configure the network of the display device 200.
[0108] In order to solve the problem that the network configuration of the display device and the terminal device fails during the process of scanning the wireless network, some embodiments of the present application provide a display device 200, including a display 260, which is configured to display a user interface; a communication device 220, which is configured to periodically generate a network scanning request for scanning the wireless network after starting the wireless network connection function. The controller 250 is configured to execute a network connection method. Figure 4 A flowchart of a display device performing network connection provided in some embodiments of the present application. Figure 5 The timing diagram of the display device performing network connection provided in some embodiments of the present application. The display device 200 performs network connection according to the following steps: Figure 5 The timing diagram executes the network connection method, see Figure 4 and Figure 5 , the method comprises the following contents:
[0109] S100: In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed.
[0110] The display device 200 may respond to the start-up instruction for starting the wireless network connection function by displaying a wireless network configuration interface in the user interface. The wireless network configuration interface may include at least two connection modes. The first mode is to periodically scan wireless networks and generate a network list with the scan results obtained by scanning the wireless networks for the user to select and connect the display device 200 to the corresponding network. The second mode is the target network connection mode, that is, the connection mode in which the network configuration of the display device 200 is performed through the connected network terminal device 300 (configuration device) based on the DDP protocol.
[0111] The display device 200 can operate in a target network connection mode in response to a first control instruction to start a wireless network connection. In the target network connection mode, the display device 200 can display connection information on a user interface. The connection information is connection information used to prompt or guide the terminal device 300 to perform network configuration on the display device 200.
[0112] The connection information may include multiple styles, such as a QR code or a character string. Taking the QR code style as an example, after the display device 200 enters the target network connection mode, the QR code can be displayed on the user interface or the wireless network configuration interface to facilitate the terminal device 300 to scan the QR code and perform network configuration on the display device 200.
[0113] S200: Receive the network address sent by the terminal device through connection information.
[0114] The terminal device 300 can send the network address corresponding to the network that the terminal device 300 is connecting to to the display device 200 through the connection information. For example, after scanning the connection information in the form of a QR code, the terminal device 200 can establish a communication connection with the communication device 220 of the display device 200. At the same time, the terminal device 300 can obtain the network address that is currently being connected, and send the network address to the display device 200 through the communication connection.
[0115] See also Figure 6, the display device 200 can receive the network address sent by the terminal device 200 through the connection information, and save the network address to the network list of the display device 200, so that the user can select the network displayed in the network list, so that the display device 200 can connect to the selected network. In order to distinguish it from the wireless network scanned by the display device 200 itself, the display device 200 can mark the network address after receiving the network address sent by the terminal device 200. The mark can be used to indicate the transmission source of the network address, for example, the mark can be a device source mark, which is used to indicate that the network address comes from the terminal device 300, etc.
[0116] In some embodiments, the display device 200 can also receive a historical network address of the terminal device 200, where the historical network address is a network address corresponding to a network to which the terminal device 300 has been connected but is not currently connected, so as to pre-configure the network of the display device 200 through the historical network address to indicate that the display device 200 can perform network scanning and connection according to the historical network address sent by the terminal device 300.
[0117] S300: In the process of connecting to the network corresponding to the network address, skipping the scanning process corresponding to the network scanning request until the display device is connected to the network corresponding to the network address.
[0118] After the display device 200 receives the network address sent by the terminal device 300, it can connect to the corresponding network based on the network address. Since the terminal device 300 has established a network connection with the network corresponding to the network address or has established a network connection before, the terminal device 300 saves the network name and network password corresponding to the network address.
[0119] In the process of transmitting the network address, the terminal device 300 can encode the network name and the network password and add them to the network address. Figure 7 As shown, after receiving the network address, the display device 200 can parse the network name and network password corresponding to the network address, and access the network to which the terminal device 300 is currently connected according to the network name and network password, thereby saving the process of searching for the network name and network password and improving the simplicity of network connection.
[0120] However, in the process of accessing the network through the network address, a certain amount of time is required to load the configuration. During this process, if the display device 200 performs a scheduled network scan, it will conflict with the network connection mode of the display device 200 based on the DDP protocol, resulting in the failure of the terminal device 300 to configure the display device 200 network.
[0121] To this end, the display device 200 needs to detect a network scan request for scanning a wireless network during the process of connecting to the corresponding network through the network address. The network scan request is a network scan request for scanning a wireless network periodically generated by the communication device 220 after the controller 250 starts the wireless network connection function.
[0122] If the display device 200 detects the network scanning request during the process of connecting to the network corresponding to the network address, the display device 200 can skip the scanning process corresponding to the network scanning request. It should be noted that when the display device 200 only displays the connection information, it is not in the process of accessing the network through the network address. Therefore, it can normally respond to the network scanning request and perform the network scanning process. This embodiment only skips the network scanning request detected by the display device 200 during the process of connecting to the network corresponding to the network address, so as to reduce the conflict caused by the network scanning request on the process of the display device 200 being able to access the network corresponding to the network address.
[0123] It can be seen from the above technical solution that the display device 200 provided in the embodiment of the present application can detect the network scanning request periodically generated by the display device 200 during the process of accessing the network to which the terminal device 300 is connected. If a network scanning request is detected, the process of scanning the wireless network is skipped, thereby reducing the conflict between the process of scanning the wireless network by the display device 200 and the network connection mode based on the DDP protocol, thereby improving the success rate of the terminal device 300 in executing network configuration on the display device 200.
[0124] In the process of connecting to the network corresponding to the network address, after the display device 200 skips the scanning process of the first network scanning request, in order not to generate the network scanning request again in a short time, the time interval for generating the network scanning request can also be reset. To this end, in some embodiments, the network scanning request is the first network scanning request after starting the target network connection mode, then after skipping the scanning process corresponding to the network scanning request, the display device 200 can obtain the maximum scanning time for scanning the wireless network, and update the time interval for the display device to generate the network scanning request according to the maximum scanning time. When the time for scanning the wireless network is the maximum scanning time, the display device 200 can continue to scan the wireless network. For example, when the maximum scanning time is 60s, the display device 200 completes the scanning of the wireless network after executing 60s. At this time, the display device 200 generates the network scanning request again, and the display device 200 continues to scan the wireless network according to the maximum scanning time. After setting the time interval to the maximum scanning time, the display device 200 can detect the scanning network request according to the updated time interval.
[0125] The above technical features increase the time interval for generating network scan requests and reduce the situation where network scan requests are continuously generated in a short period of time, thereby reducing the conflict between high-frequency generated network scan requests and the network connection mode based on the DDP protocol, and improving the success rate of executing network configuration on the display device 200.
[0126] In some embodiments, if the display device 200 is in the state of scanning wireless networks when receiving the network address, that is, the time point of responding to the network scanning request occurs before receiving the network address, and the time point of ending the scanning of the wireless network occurs after receiving the network address. At this time, the display device 200 can wait until the scanning of the wireless network ends, and then access the corresponding network according to the network address, or interrupt the process of scanning the wireless network and start to access the corresponding network according to the network address. This improves the efficiency of executing network configuration for the display device 200.
[0127] In some embodiments, if the network scanning request is not the first network scanning request after starting the target network connection mode, it means that the current network scanning request has been generated at least after the maximum scanning time. Therefore, time has been provided for the terminal device 300 to perform network configuration on the display device 200. Therefore, at this time, the display device 200 can respond normally to the non-first network scanning request, without being restricted by the access status of the current display device 200 to the network corresponding to the network address, and start scanning the wireless network.
[0128] It should be noted that, in the embodiment of the present application, performing a wireless network scan will conflict with the process of the display device 200 accessing the network to which the terminal device 300 is connected. After the display device 200 has been connected to the network, performing a wireless network scan will not affect the normal network connection of the display device 200. Therefore, the display device 200 can perform a wireless network scan normally when it is in a network connection state.
[0129] In some embodiments, the display device 200 may scan the wireless network according to the maximum number of channels. Figure 8 As shown, the display device 200 can obtain the maximum number of channels for scanning the wireless network when responding to a network scanning request, and perform a full-channel scan of the wireless network according to the maximum number of channels to obtain a first number of wireless scanning results. The first number of wireless scanning results is the scanning result of scanning the wireless network according to the maximum number of channels. Different wireless scanning results can be generated based on different network scanning requests. However, the number of results in each scanning process is the same as the maximum number of channels.
[0130] The above technical solution can obtain a first number of wireless scanning results according to the maximum number of channels when scanning wireless networks, so as to provide users with more network connection options and improve the flexibility and extensiveness of network connection.
[0131] In some embodiments, if the display device 200 enters the target network connection mode and finds that the terminal device 300 that configures the display device 200 does not support the DDP protocol, it is impossible to send the network address to the display device 200 through the connection information to perform network configuration on the display device 200. Fig. 9 and Fig.10 As shown, the display device 200 may also respond to a second control instruction for closing the target network connection mode to close the target network connection mode, thereby canceling the display of the connection information.
[0132] When the display device 200 exits the target network connection mode, the communication device 220 disconnects the communication connection between the controller 250 and the terminal device, and the display device 200 needs to re-scan the wireless network. However, scanning the wireless network with the maximum number of channels takes a long time, and the user needs to wait for a certain period of time before seeing the scanning results.
[0133] Based on the above scenario, in order to improve the speed of displaying the scan results after the display device 200 exits the target network connection mode, the display device 200 can detect the network scan request for scanning the wireless network generated by the display device at a fixed time after canceling the display connection information. It should be noted that after the display device 200 starts the target network connection mode and skips the network scan request in the network connection process, the time interval for generating the network scan request is adjusted according to the maximum scan time. For this reason, after exiting the target network connection mode, the display device 200 can also restore the time interval so that the time interval is restored to the time interval before starting the target network connection mode.
[0134] If a network scan request is detected, and the network scan request is the first network scan request after the target network connection mode is turned off, the display device 200 can set a priority scan number for scanning the wireless network. The priority scan number is less than the maximum number of channels. For example, when the maximum number of channels is 30, the display device 200 can set the priority scan number to 20. After setting the priority scan number, the display device 200 responds to the first network scan request after the target network connection mode is turned off, and scans the wireless network according to the priority scan number. Since the priority scan number is less than the maximum number of channels, the speed of scanning the wireless network this time is faster than the speed of scanning the wireless network according to the maximum number of signals, thereby obtaining a second number of wireless scan results, and displaying the second number of wireless scan results in the wireless network configuration interface. After each exit from the target network connection mode, different wireless scan results can be generated according to the first detected network connection request. However, after each exit from the target network connection mode, the number of results in the scanning process of the first detected network connection request is the same as the priority scan number.
[0135] Continue to see Fig. 9 and Fig.10 If the network scan request is not the first network scan request after the target network connection mode is turned off, a full channel scan can be performed directly on the wireless network according to the maximum number of channels, and the first number of wireless scan results can be displayed on the network configuration interface.
[0136] After the target network connection mode is closed, if the first network scan request is detected, the above-mentioned technical feature sets a priority scan number that is less than the maximum number of channels, so that the display device 200 can quickly scan the wireless network according to the priority scan number after exiting the target network connection mode, so as to quickly provide the user with a connectable wireless network and reduce the user's waiting time.
[0137] In some embodiments, the wireless scanning results in the second scanning results are not all wireless scanning results. Fig.11 As shown, after the display device 200 scans the wireless network according to the priority scan quantity, the difference between the maximum channel quantity and the priority scan quantity can be calculated, and after the display device 200 displays the second number of wireless scan results in the wireless network configuration interface, a supplementary scan is performed according to the difference quantity to enrich the wireless scan results, thereby obtaining a third number of wireless scan results. After obtaining the third number of wireless scan results, the display device 200 can supplementarily display the third number of wireless scan results in the wireless network configuration interface to update the second number of wireless scan results to the first number of wireless scan results, and update the wireless scan results in the wireless network configuration interface, so that the user can select the wireless network to be connected according to the wireless scan results in the current wireless network configuration interface.
[0138] In some embodiments, when setting the priority scan number for scanning a wireless network, the display device 200 may determine a network channel for priority scanning. A wireless network may include multiple frequency bands, and different frequency bands may include multiple channels. Therefore, during the wireless network scanning process, a channel for priority scanning may be selected.
[0139] In some embodiments, Fig.12As shown, the display device 200 can retrieve a configuration policy file including a network scanning strategy in a local configuration file, and parse the configuration policy file to set the number of first channels to be scanned in the first frequency band and the number of second channels to be scanned in the second frequency band according to the network scanning strategy. For example, the network scanning strategy is to perform priority scanning on the first frequency band and the second frequency band after exiting the target network connection mode. Taking the first frequency band as the 2.4Ghz frequency band and the second frequency band as the 5Ghz frequency band as an example, 13 channels can be included in the 2.4Ghz frequency band, therefore, 13 channels can be used as the first channel number, 7 channels can be included in the 5Ghz frequency band, and 7 channels can be used as the second channel number. When the display device 200 scans the wireless network according to the priority scanning quantity, it can scan the wireless network according to 13 channels in the 2.4Ghz frequency band, i.e., the first frequency band, to obtain the first channel result, and scan the wireless network according to 7 channels in the 5Ghz frequency band, i.e., the second frequency band, to obtain the second channel result, and obtain the second number of wireless scanning results based on the first scanning result and the second scanning result, i.e., the wireless scanning results obtained by performing the priority scanning.
[0140] In some embodiments, the display device 200 may also scan wireless networks of different frequency bands in a specific order. To this end, the display device 200 may parse the network scanning strategy to obtain a scanning order in which the first frequency band scans the wireless network in the first frequency band and scans the wireless network in the second frequency band. The scanning order includes two types, namely, a first scanning order: first scanning the wireless network in the first frequency band, and then scanning the wireless network in the second frequency band. A second scanning order: first scanning the wireless network in the second frequency band, and then scanning the wireless network in the first frequency band.
[0141] When the scanning order is the first order, the display device 200 can scan the wireless network according to the first number of channels in the first frequency band, and after obtaining the first channel result, continue to scan the wireless network according to the second number of channels in the second frequency band to obtain the second channel result. For example, the display device 200 can now scan the wireless network according to 13 channels in the 2.4Ghz frequency band to obtain the first channel result. After obtaining the first channel result, the display device 200 switches from the 2.4Ghz frequency band to the 5Ghz frequency band, and continues to scan the wireless network according to 7 channels to obtain the second channel result.
[0142] When the scanning order is the first order, the display device 200 can scan the wireless network according to the second number of channels in the second frequency band, and after obtaining the second channel result, continue to scan the wireless network according to the first number of channels in the first frequency band to obtain the first channel result. For example, the display device 200 can now scan the wireless network according to 7 channels in the 5Ghz frequency band to obtain the second channel result. After obtaining the second channel result, the display device 200 switches from the 5Ghz frequency band to the 2.4Ghz frequency band, and continues to scan the wireless network according to 13 channels to obtain the first channel result.
[0143] It should be noted that the above embodiments all use the 2.4Ghz frequency band and the 5Ghz frequency band as exemplary explanations of network frequency bands. In actual applications, network scanning can also be performed in frequency bands other than the above two frequency bands. Different channels correspond to different numbers of channels. Therefore, the display device 200 can adjust the priority scanning number according to the number of channels in different frequency bands to improve the flexibility of scanning wireless networks.
[0144] Some embodiments of the present application further provide a terminal device 300, wherein the terminal device 300 may include a processor, wherein the processor is configured to:
[0145] In response to a control instruction for starting the first configuration mode, the terminal device 300 operates in the first configuration mode, wherein the first configuration mode provides a connection mode of a network configuration to the display device 200. In the first configuration mode, a network address is acquired based on the connection information displayed by the display device in the target network connection mode. The network address is a network address corresponding to the network to which the terminal device 300 is currently connected. For example, when the display device 200 displays connection information in a QR code format, in the first configuration mode, the terminal device 300 can start a camera function so that the terminal device 300 can scan the QR code and establish a communication connection with the display device 200. The connection information can also be in the form of an input string, and the terminal device 300 can send a string for network connection to the display device 200 to establish a communication connection with the display device 200.
[0146] After establishing a communication connection, the terminal device 300 can obtain the network address corresponding to the network currently being connected, and send the network address to the display device 200, so that the display device 200 can detect the network scanning request for scanning the wireless network generated periodically by the display device 200 during the process of connecting to the network corresponding to the network address, and when the network scanning request is detected, skip the scanning process corresponding to the network scanning request until the display device 200 accesses the network corresponding to the network address.
[0147] The terminal device 300 provided in the present application sends the network address corresponding to the network currently connected to the terminal device 300 to the display device 200 through the connection information displayed by the display device 200, so that the display device 200 skips the scanning process of scanning the wireless network when connecting to the network corresponding to the network address, thereby reducing the problem of network configuration failure between the terminal device 300 and the display device 200 caused by scanning the wireless network, thereby improving the success rate of the network configuration.
[0148] Some embodiments of the present application further provide a network connection method, which is applied to a display device 200. To facilitate the execution of the network connection method, the display device 200 should at least include a display 260, a communication device 220, and a controller 250, wherein the display 260 is configured to display a user interface, and the communication device 220 is configured to periodically generate a network scanning request for scanning a wireless network. The method includes:
[0149] S100: In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed.
[0150] The target network connection mode is a connection mode in which the display device performs network configuration through a terminal device that is connected to the network.
[0151] S200: Receive the network address sent by the terminal device through the connection information.
[0152] The network address is the network address corresponding to the network to which the terminal device is currently connected.
[0153] S300: In the process of connecting to the network corresponding to the network address, skipping the scanning process corresponding to the network scanning request until the display device is connected to the network corresponding to the network address.
[0154] It can be seen from the above technical solutions that the present application provides a display device, a terminal device and a network connection method, wherein the method displays connection information for receiving a terminal device to perform network configuration on a display device in a target network connection mode. The network address sent by the receiving terminal device through the connection information is skipped during the process of connecting to the corresponding network through the network address until the display device accesses the network corresponding to the network address. The present application skips the process of scanning the wireless network for the first time, thereby reducing the impact of scanning the wireless network on the network configuration between the terminal device and the display device, and improving the success rate of the network configuration of the display device and the terminal device.
[0155] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0156] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0158] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: a display configured to display a user interface; a communication device configured to periodically generate a network scan request for scanning a wireless network; The controller is configured as: In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed, wherein the target network connection mode is a connection mode in which the display device performs network configuration via a terminal device that has been connected to a network; Receiving a network address sent by the terminal device through the connection information, where the network address is a network address corresponding to a network currently connected to the terminal device; In the process of connecting to the network corresponding to the network address, a scanning process corresponding to the network scanning request is skipped until the display device is connected to the network corresponding to the network address.
2. The display device according to claim 1, characterized in that The controller is also configured to: In the process of connecting to the network corresponding to the network address, detecting the network scanning request; If the network scanning request is detected, and the network scanning request is the first network scanning request detected in the process of connecting to the network corresponding to the network address, after skipping the scanning process corresponding to the network scanning request, obtaining the maximum scanning time for scanning the wireless network; updating the time interval for the communication device to generate the network scan request according to the maximum scan time; The scanning network request is detected according to the updated time interval.
3. The display device according to claim 2, characterized in that If the network scanning request is a non-first network scanning request detected during the process of connecting to the network corresponding to the network address, the controller is further configured to: Get the maximum number of channels to scan for wireless networks; The wireless network is scanned according to the maximum number of channels to obtain a first number of wireless scanning results.
4. The display device according to claim 3, characterized in that The controller is also configured to: When the target network connection mode is turned off, canceling the display of the connection information; After canceling the display of the connection information, detecting a network scanning request for scanning a wireless network generated periodically by the display device; If the network scan request is detected, and the network scan request is the first network scan request after the target network connection mode is turned off, setting a priority scan number for scanning wireless networks, the priority scan number being less than the maximum channel number; In response to the first network scan request after the target network connection mode is turned off, wireless networks are scanned according to the priority scan quantity to obtain a second number of wireless scan results.
5. The display device according to claim 4, characterized in that After the controller executes the step of scanning the wireless network according to the priority scanning quantity, the controller is further configured to: Calculate the difference between the maximum number of channels and the priority scanning number; After obtaining the second number of wireless scanning results, scanning wireless networks according to the difference number to obtain a third number of wireless scanning results; According to the third number of wireless scanning results, the second number of wireless scanning results is updated to the first number of wireless scanning results.
6. The display device according to claim 4, characterized in that The controller performs scanning of wireless networks according to the priority scanning quantity, and is specifically configured as follows: Retrieve the configuration policy file including the network scanning policy from the local configuration file; According to the network scanning strategy, the number of first channels to be scanned in the first frequency band is set, and the number of second channels to be scanned in the second frequency band is set; In the first frequency band, scanning wireless networks according to the first number of channels to obtain a first channel result; In the second frequency band, scanning wireless networks according to the second number of channels to obtain a second channel result; A second number of wireless scanning results are obtained according to the first scanning result and the second scanning result.
7. The display device according to claim 6, characterized in that The controller is also configured to: parsing the network scanning strategy to obtain a scanning order of scanning wireless networks in the first frequency band and scanning wireless networks in the second frequency band; If the scanning order is the first order, the wireless network is scanned in the first frequency band according to the first number of channels to obtain a first channel result, and then the wireless network is scanned in the second frequency band according to the second number of channels to obtain a second channel result; If the scanning order is the second order, wireless networks are scanned in the second frequency band according to the second number of channels to obtain second channel results, and then wireless networks are scanned in the first frequency band according to the first number of channels to obtain first channel results.
8. The display device according to claim 1, characterized in that After the controller executes the step of receiving the network address sent by the terminal device through the connection information, the controller is further configured to: Resolving the network name and network password of the network address; Access the network to which the terminal device is currently connected according to the network name and network password.
9. A terminal device, characterized in that: include: The processor is configured as: In response to a control instruction for starting a first configuration mode, operating in the first configuration mode, the first configuration mode being a connection mode for providing a network configuration to a display device; In the first configuration mode, based on the connection information displayed by the display device in the target network connection mode, a network address is obtained, where the network address is a network address corresponding to the network currently connected to the terminal device; The target network connection mode is a connection mode in which the display device performs network configuration through a terminal device connected to the network; A network address is sent to the display device so that the display device can detect a network scanning request for scanning a wireless network generated periodically by the display device during the process of connecting to the network corresponding to the network address, and when the network scanning request is detected, the scanning process corresponding to the network scanning request is skipped until the display device is connected to the network corresponding to the network address.
10. A network connection method, characterized in that: Applied to a display device, the display device includes a display, a communication device and a controller, the display is configured to display a user interface, the communication device is configured to periodically generate a network scanning request for scanning a wireless network, the method includes: In a target network connection mode, connection information for prompting a terminal device to perform network configuration on the display device is displayed, wherein the target network connection mode is a connection mode in which the display device performs network configuration via a terminal device that has been connected to a network; Receiving a network address sent by the terminal device through the connection information, where the network address is a network address corresponding to a network currently connected to the terminal device; In the process of connecting to the network corresponding to the network address, a scanning process corresponding to the network scanning request is skipped until the display device is connected to the network corresponding to the network address.