Display method and device and electronic equipment
By running the first application on the terminal device, using the target protocol to obtain the electronic devices that can be added in the current environment and generate a display list, the problem that users find it difficult to find the added device when adding the device is solved, and a convenient device addition process is realized.
Patent Information
- Application Number
- CN202410009495.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-01-03
AI Technical Summary
When users add electronic devices, they often cannot find the electronic devices that can be added at present, resulting in limited convenience.
By running the first application on the terminal device, using the target protocol (such as the LAN protocol, Bluetooth protocol and the Digital Life Network Alliance protocol) to obtain the electronic devices that can be added in the current environment, and generate a display list. If the conditions are met, it will be displayed on the target page. Device list pop-up window.
Users do not need to manually obtain the electronic devices that can be added. They just need to open the first application to check the devices that can be added in the current environment in the target page, solving the problem that users find it difficult to find the devices that can be added when adding devices.
Smart Images

Figure CN119420976A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a display method, device and electronic device. Background Art
[0002] Currently, more and more electronic devices (such as televisions, refrigerators, etc.) support remote control. For example, users can control the power on and off of the television through terminal devices, or control the refrigerator to adjust the operating model through terminal devices.
[0003] Usually, when a user controls an electronic device through a terminal device, the user needs to bind the electronic device on the terminal device. During this process, the user needs to manually obtain the electronic devices that can be added and select the electronic devices to be added for binding. After binding the electronic devices, the user can control the electronic devices through the terminal device. However, due to the different proficiency of different users in using terminal devices, when adding electronic devices, users often encounter the problem of being unable to find the electronic devices that can be added.
[0004] Therefore, enabling users to easily find electronic devices that can be added has become an urgent problem to be solved. Summary of the invention
[0005] In order to solve the above technical problems, the present disclosure provides a display method, device and electronic device.
[0006] The technical solution of the present disclosure is as follows:
[0007] In a first aspect, the present disclosure provides an electronic device, comprising: a processor, configured to, in response to a startup operation, control a communicator to obtain electronic devices that can be added to the current environment through a target protocol; wherein the target protocol includes a local area network protocol, a Bluetooth protocol, and a Digital Living Network Alliance protocol; the processor is also configured to generate a display list based on the electronic device; wherein the display list includes one or more electronic devices; the processor is also configured to display a device list pop-up window in the target page according to the display list if there is no other preset pop-up window to display and the currently displayed page is the target page.
[0008] In a second aspect, the present disclosure provides a display method, including: in response to a startup operation, obtaining two electronic devices that can be added to the current environment through a target protocol; wherein the target protocol includes a local area network protocol, a Bluetooth protocol, and a Digital Living Network Alliance protocol; based on the electronic devices, generating a display list; wherein the display list includes one or more electronic devices; if there are no other preset pop-up windows to display, and the currently displayed page is the target page, displaying a device list pop-up window in the target page according to the display list.
[0009] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to enable the electronic device to implement any one of the display methods provided in the second aspect when executing the computer program.
[0010] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform any display method provided in the second aspect.
[0011] In a fifth aspect, the present invention provides a computer program product. When the computer program product is run on a computer, the computer executes any one of the display methods provided in the second aspect.
[0012] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium, wherein the first computer-readable storage medium may be packaged together with the processor of the electronic device, or may be packaged separately from the processor of the electronic device, which is not limited in the present disclosure.
[0013] The description of the second, third, fourth and fifth aspects in the present disclosure can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0014] In the present disclosure, the names of the above electronic devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0015] These and other aspects of the present disclosure will become more apparent from the following description.
[0016] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0017] The electronic device provided in the present disclosure may be a mobile terminal, and the user can control the electronic device (such as a TV, a refrigerator, etc.) through the mobile terminal during the use of the mobile terminal. If the electronic device and the mobile terminal have not established a binding relationship, the user can open the first application on the mobile terminal at this time, and the first application responds to the startup operation and obtains at least two electronic devices that can be added to the current environment through the target protocol. Among them, the target protocol includes a local area network protocol, a Bluetooth protocol, and a digital life network alliance protocol. Afterwards, the first application performs deduplication processing on the electronic device bound to the current account and at least two electronic devices that can be added to the current environment to obtain the electronic device that can be added. Afterwards, the first application determines that if there is no other preset pop-up window to display, and the currently displayed page is the target page, the device list pop-up window is displayed in the target page. Among them, the device list pop-up window includes each electronic device that can be added. In this way, the user can check the electronic device that needs to be added in the target page, such as the device list pop-up window displayed on the homepage, and perform the corresponding addition operation.
[0018] It can be seen that by adopting the display method provided by the present invention, when a user needs to add an electronic device, the user only needs to open the first application installed on the terminal device, and then he can check the electronic devices that can be added in the current environment in the target page, without the need for the user to manually obtain the electronic devices that can be added currently. This can avoid the problem that different users have different proficiency in using the terminal device, which causes the user to often be unable to find the electronic devices that can be added currently when adding electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A schematic diagram of a scene of a display method provided in an embodiment of the present application;
[0022] Figure 2 One of the structural schematic diagrams of the display device provided in the embodiment of the present application;
[0023] Figure 3 The second structural schematic diagram of the display device provided in the embodiment of the present application;
[0024] Figure 4One of the flow charts of the display method provided in the embodiment of the present application;
[0025] Figure 5 One of the scene schematic diagrams of the display method provided in the embodiment of the present application;
[0026] Figure 6 The second scene diagram of the display method provided in the embodiment of the present application;
[0027] Figure 7 The third scene diagram of the display method provided in the embodiment of the present application;
[0028] Figure 8 A fourth schematic diagram of a scene of the display method provided in an embodiment of the present application;
[0029] Fig. 9 A fifth scene diagram of the display method provided in an embodiment of the present application;
[0030] Fig.10 The second flowchart of the display method provided in the embodiment of the present application;
[0031] Fig.11 The third flowchart of the display method provided in the embodiment of the present application;
[0032] Fig.12 A fourth flowchart of the display method provided in an embodiment of the present application;
[0033] Fig.13 A fifth flow chart of the display method provided in the embodiment of the present application;
[0034] Fig.14 The sixth flowchart of the display method provided in the embodiment of the present application;
[0035] Fig.15 The seventh flowchart of the display method provided in the embodiment of the present application;
[0036] Fig.16 The eighth flowchart of the display method provided in the embodiment of the present application;
[0037] Fig.17 The ninth flowchart of the display method provided in the embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0040] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart TV, a laser projection device, a monitor, an electronic whiteboard, an electronic table, etc. Figure 1 and Figure 1 This is a specific implementation of the display device of the present application.
[0041] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0042] The Tab page in the embodiment of the present disclosure refers to an interface design similar to a tab page, which generally displays different content areas of the same page through a series of independent tabs at the top of the page.
[0043] Figure 1 is a schematic diagram of an operation scenario between a household appliance and a control device according to one or more embodiments of the present application, such as Figure 1 As shown, the user can operate the display device 200 through the mobile terminal 300 and / or the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices can also be used to control the display device 200.
[0044] In some embodiments, the electronic device provided in the embodiment of the present application may be the mobile terminal 300 described above. In the process of using the mobile terminal 300, the user may control the display device 200 through the mobile terminal 300. If the display device 200 and the mobile terminal 300 have not established a binding relationship, the user may open the first application on the mobile terminal 300. At this time, the first application responds to the startup operation and obtains the electronic devices that can be added in the current environment through the target protocol. Among them, the target protocol includes a local area network protocol, a Bluetooth protocol, and a digital living network alliance protocol. Afterwards, the first application generates a display list based on the electronic device; wherein the display list includes one or more electronic devices. When the first application determines that there are no other preset pop-up windows to display at present, and the currently displayed page is the target page, the device list pop-up window is displayed in the target page according to the display list. In this way, the user can check the display device 200 that needs to be added in the device list pop-up window displayed on the target page, such as the homepage, and perform the corresponding adding operation.
[0045] It can be seen that by adopting the display method provided by the embodiment of the present disclosure, when the user needs to add an electronic device, the user only needs to open the first application installed on the terminal device, and then he can check the electronic devices that can be added in the current environment in the target page, without the need for the user to manually obtain the electronic devices that can be added currently. This can avoid the problem that different users have different proficiency in using the terminal device, which causes the user to often be unable to find the electronic devices that can be added currently when adding electronic devices.
[0046] Figure 2 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 2 The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be a display with a touch function, such as a touch display. The detector 230 is used to collect signals of the external environment or interaction with the outside.
[0047] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0048] In some examples, the display device 200 of one or more embodiments is a TV set 1, and the operating system of the TV set 1 is an Android system. Figure 3 As shown, the television 1 can be logically divided into an application layer (Applications) (referred to as "application layer") 21, an application framework layer (Application Framework) (referred to as "framework layer") 22, an Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 24.
[0049] Among them, the application layer 21 includes one or more applications. The application can be a system application or a third-party application. The framework layer 22 provides an application programming interface (API) and a programming framework for the application of the application layer 21. The system runtime layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system will run the C / C++ library contained in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 24 serves as a software middleware between the hardware layer and the application layer 21, and is used to manage and control hardware and software resources.
[0050] In some examples, the user can control the TV 1 through the mobile terminal 300 during the use of the mobile terminal 300. If the TV 1 and the mobile terminal 300 have not established a binding relationship, the user can open the first application on the mobile terminal 300. At this time, the processing unit 201 of the first application responds to the start operation and controls the acquisition unit 202 to acquire the electronic devices that can be added in the current environment through the target protocol. Among them, the target protocol includes a local area network protocol, a Bluetooth protocol, and a digital living network alliance protocol. Afterwards, the processing unit 201 of the first application generates a display list based on the electronic devices acquired by the acquisition unit 202; wherein the display list includes one or more electronic devices. Afterwards, the processing unit 201 of the first application determines that if there is no other preset pop-up window to display, and the currently displayed page is the target page, the control display unit 203 displays the device list pop-up window according to the display list in the target page. In this way, the user can check the electronic devices that need to be added in the device list pop-up window displayed in the target page, such as checking the TV 1 that needs to be added in the device list pop-up window displayed on the homepage, and perform the corresponding adding operation.
[0051] Specifically, when the execution subject of the display method provided by the embodiment of the present disclosure is the mobile terminal 300, the storage unit 204 of the mobile terminal 300 is used to store data such as program codes of the display method provided by the embodiment of the present disclosure.
[0052] In the following embodiments, the method of the embodiment of the present application is described by taking the television 1 as an example of an execution subject of the display method provided by the embodiment of the present disclosure.
[0053] The present application embodiment provides a display method, which is applied to a television set 1, such as Figure 4 As shown, the display method may include S11-S13.
[0054] S11, in response to the start operation, obtaining electronic devices that can be added in the current environment through the target protocol, wherein the target protocol includes a local area network protocol, a Bluetooth protocol and a Digital Living Network Alliance (DLNA) protocol.
[0055] In some examples, in response to a startup operation, the first application sends broadcast information using a target protocol. After receiving the broadcast information sent by the first application, the electronic device reports configuration information to the first application; for example, when the target protocol is a Bluetooth protocol, the configuration information includes a media access control address (MAC) corresponding to a mobile hotspot module of the mobile terminal 300 and a Bluetooth identifier (code information of the Bluetooth module); when the target protocol is a local area network protocol, the configuration information includes a local area network identifier (code information of the wifi module).
[0056] In some examples, after the first application is started, the first application automatically discovers a first electronic device, such as a TV, a stereo, or a game console, that is in the same local area network as the terminal device on which the first application is currently installed through a DLNA service. The first application automatically discovers a second electronic device, such as a washing machine, a dryer, a dishwasher, etc., that is in the same local area network as the terminal device on which the first application is currently installed through a Bluetooth service and / or a local area network service.
[0057] It should be noted that the first application starts the DLNA service, Bluetooth service and LAN service immediately after the first application is started, and saves the new devices (such as the first electronic device and / or the second electronic device) discovered by the DLNA service, Bluetooth service and LAN service in the "device update subunit" of the first application, and waits for the "upgrade detection subunit" and "boot detection subunit" to complete the detection before actively notifying the outside world of the changes in the device list pop-up window.
[0058] In some examples, the processing unit further includes a device update subunit, an upgrade detection subunit, a boot detection subunit, and a home page Tab manager.
[0059] Among them, after the first application is started, the upgrade detection subunit detects the version information, such as: the detection information carrying the current version information sent by the first application to the Internet of Things server. After receiving the detection information sent by the first application, the Internet of Things server determines whether there is new version information. When there is new version information, the Internet of Things server sends the upgrade information to the terminal device installed with the first application. After the upgrade detection subunit of the first application receives the upgrade information sent by the Internet of Things server, it adds an upgrade pop-up window in the home page Tab manager. When the home page Tab manager determines that the upgrade pop-up window needs to be displayed, it initializes the PageStatus unstarted state. PageStatus includes pop-up window label attributes (upgrade, guide), display status (not started, displaying and ended). And insert the upgrade pop-up window into pageList. Among them, pageList is initialized to an empty list. The home page Tab manager determines that the current home page is the target page (such as the home page logo indicates that the current home page is the home page), displays the upgrade pop-up window in the target page, and at the same time, the home page Tab manager sends an indication information that the upgrade pop-up window has been displayed to the upgrade detection subunit. Afterwards, the upgrade detection subunit responds to the closing operation of the upgrade pop-up window and sends the pop-up window closing indication information to the home page Tab manager. The home page Tab manager takes out the corresponding PageStatus in pageList and modifies the display status to "ended", or the home page display changes, or the home page identification changes, or the device update subunit determines that the display list sends changes, and the home page Tab manager determines that the current page is not the target page, then no processing is performed. The home page Tab manager determines that the current page is the target page, and the display status of the pop-ups in pageList are all "ended", and deviceListshowed is all false, and there is a display list that can be displayed, then display it in the device list pop-up window according to the display list. The home page Tab manager determines that the current page is the target page, and the display status of the pop-ups in pageList is not all "ended", and there is a pop-up window being displayed, then continue to display the pop-up window. The home page Tab manager determines that the current page is the target page, and the display status of the pop-ups in pageList is not all "ended", and there is no pop-up window being displayed, then remove the next display pop-up window in pageList for display. The home page Tab manager determines that the current page is not the target page, and does not do anything. The home page Tab manager determines that the current page is the target page, and the display status of the pop-up windows in pageList is "ended", and deviceListshowed is not all false, and the home page Tab manager notifies the device update subunit to continue to obtain the display list.
[0060] The Home Page Tab Manager determines that the current page is not the target page, and does not do anything. The Home Page Tab Manager determines that the current page is the target page, and the display status of the pop-up windows in pageList is "ended", and deviceListshowed is false, and there is no display list to display, so continue waiting.
[0061] It should be noted that the process of guiding the detection subunit to display and close the user guidance pop-up window is similar to the process of upgrading the detection subunit to display and close the upgrade pop-up window, which will not be repeated here.
[0062] In some examples, since the Bluetooth service and the LAN service may discover the same electronic device, it is necessary to deduplicate the acquired electronic devices, such as: if the second electronic device has been networked (that is, the second electronic device can establish a communication connection with the LAN), then the second electronic device can be discovered not only through the Bluetooth protocol, but also through the LAN protocol. Therefore, the same electronic device can be discovered as two devices, one is an electronic device discovered by the LAN service, and the other is an electronic device discovered by the Bluetooth service. However, when actually displayed in the device list pop-up window, it is necessary to give priority to presenting the electronic devices discovered by the LAN service to the user and filter out the same electronic devices discovered by the Bluetooth service. Therefore, it involves the problem of deduplication of discovered devices.
[0063] In some examples, the content of the broadcast packet of the electronic device discovered by the local area network service or the electronic device discovered by the Bluetooth service is as shown in Table 1:
[0064] Table 1
[0065]
[0066] Among them, the wifiId definition rules of the wifi module are:
[0067] To distinguish product information, wifiId starts with the product model (featureCode) of the first target number of digits, such as 24. Then, the MAC address of the second target number of digits corresponding to the wifi module is concatenated after featureCode, such as 12. In this way, wifiId can be obtained (if the first target number of digits is 24 and the second target number of digits is 12, the length of wifiId is 36 bits).
[0068] For example: the wifiId is "86100c00fffe00600000004038640773889c", the featureCode is "86100c00fffe006000000040", and the MAC address is "38640773889c".
[0069] Bluetooth module local_name definition rules:
[0070] To distinguish devices from other manufacturers, local_name starts with the target identifier, such as "HIS-".
[0071] After that, continue to splice the last N bits of the wifiId corresponding to the wifi module after the target identifier. For example, if the wifiId is "86100c00fffe00600000004038640773889c", N is equal to 4. At this time, it can be determined that local_name is "HIS-889c".
[0072] S12. Generate a display list based on the electronic devices; wherein the display list includes one or more electronic devices.
[0073] In some examples, based on the actual identifier in the reported information reported by the electronic device, a query can be performed in the device category list to determine whether there is a theoretical identifier that is the same as the actual identifier, and the network identifier corresponding to the theoretical identifier that is the same as the actual identifier is used to indicate that the electronic device supports the Internet of Things function, and based on the configuration information of the electronic device corresponding to the actual identifier, when the device model information is obtained, a display list is generated based on the device model information. Among them, the device model information includes at least a device icon, a device name, and a device model, and the display list includes the electronic device corresponding to each device model information.
[0074] In some examples, the actual identification includes a local area network device identification code or a Bluetooth pairing device identification code.
[0075] In some examples, the first application in the mobile terminal 300 responds to the startup operation, and the first application calls the Bluetooth module of the mobile terminal 300 to obtain the reporting information reported by the electronic device in the current environment, such as the content of the Bluetooth broadcast packet, and after parsing the content of the broadcast packet, connects with the Internet of Things server 400 to obtain the device model information. In addition, after the first application successfully pairs the Bluetooth network with the electronic device, as long as the first application and the electronic device are in the same local area network, the local area network discovery protocol can be used to determine whether the electronic device has been connected to the local area network.
[0076] In some examples, the correspondence between the theoretical identifier and the network identifier is pre-configured in the device category list, such as the network identifier is the netconfigStatus identifier (wherein, when the netconfigStatus identifier is 0, it indicates that the electronic device does not support the Internet of Things function; when the netconfigStatus identifier is 1, it indicates that the electronic device supports the Internet of Things function, the theoretical identifier includes a local area network device identification code (deviceIdCode) or a Bluetooth network device identification code (deviceIdCodeBLE).
[0077] In some examples, deviceIdCodeBLE is obtained in the manufacturer data (ManufacturerData) in the Bluetooth advertising packet.
[0078] In some examples, the reported information includes a Bluetooth broadcast packet; when the first application receives a Bluetooth broadcast packet reported by an electronic device in the current environment, the first application parses the Bluetooth broadcast packet to determine the actual identifier (such as deviceIdCodeBLE1). Afterwards, based on deviceIdCodeBLE1, a query is made in the device category list to determine the theoretical identifier that is the same as deviceIdCodeBLE1 in the device category list, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCodeBLE1 is sent to the Internet of Things server. After receiving the configuration information sent by the mobile terminal, the Internet of Things server queries the database based on the configuration information to obtain the device model information. Afterwards, the Internet of Things server sends the device model information to the mobile terminal, so that the mobile terminal can display it in the display list based on the device model information sent by the Internet of Things service. Alternatively, if the network identifier is used to indicate that the electronic device does not support the Internet of Things function, the electronic device corresponding to deviceIdCodeBLE1 is deleted. Alternatively, a query is performed in the device category list based on deviceIdCodeBLE1 to determine the theoretical identifier in the device category list that is the same as deviceIdCodeBLE1, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCodeBLE1 is sent to the Internet of Things server. After the Internet of Things server receives the configuration information sent by the mobile terminal, it queries the database based on the configuration information. If the device model information is not found, the Internet of Things server sends the target information to the mobile terminal to indicate that the device model information has not been obtained. After the mobile terminal receives the target information sent by the Internet of Things server, it queries in the device category list based on deviceIdCodeBLE1. When it is determined that the device category corresponding to the theoretical identifier corresponding to deviceIdCodeBLE1 has a corresponding device icon and device name, the device icon and device name corresponding to the device category are used as the device model information. In this way, the mobile terminal can be displayed in the display list based on the device model information. Alternatively, based on deviceIdCodeBLE1, a query is performed in the device category list to determine the theoretical identifier in the device category list that is the same as deviceIdCodeBLE1, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCodeBLE1 is sent to the Internet of Things server.After the IoT server receives the configuration information sent by the mobile terminal, it queries the database based on the configuration information. If the device model information is not found, the IoT server sends the target information to the mobile terminal to indicate that the device model information has not been obtained. After the mobile terminal receives the target information sent by the IoT server, it queries the device category list based on deviceIdCodeBLE1. When it is determined that the device category corresponding to the theoretical identifier corresponding to deviceIdCodeBLE1 does not have a corresponding device icon and device name, it queries the database of the mobile terminal based on deviceIdCodeBLE1. If there is a pre-configured local icon and local name corresponding to the deviceIdCodeBLE1, the local icon and the local name are used as the device model information. In this way, the mobile terminal can display in the display list based on the device model information.
[0079] In some examples, the reported information includes an online package; when the first application receives the online package reported by the electronic device in the current environment, the first application parses the online package to determine the actual identifier (such as deviceIdCode1). Afterwards, based on deviceIdCode 1, a query is performed in the device category list to determine the theoretical identifier that is the same as deviceIdCode 1 in the device category list, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCode 1 is sent to the Internet of Things server. After receiving the configuration information sent by the mobile terminal, the Internet of Things server queries the database based on the configuration information to obtain the device model information. Afterwards, the Internet of Things server sends the device model information to the mobile terminal, so that the mobile terminal can display it in the display list based on the device model information sent by the Internet of Things service.
[0080] Alternatively, if the network identifier is used to indicate that the electronic device does not support the Internet of Things function, the electronic device corresponding to deviceIdCode1 is deleted. Alternatively, a query is performed in the device category list based on deviceIdCode 1 to determine the theoretical identifier in the device category list that is the same as deviceIdCode 1, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCode 1 is sent to the Internet of Things server. After receiving the configuration information sent by the mobile terminal, the Internet of Things server queries the database based on the configuration information. If the device model information is not found, the Internet of Things server sends the target information indicating that the device model information has not been obtained to the mobile terminal. After receiving the target information sent by the Internet of Things server, the mobile terminal queries in the device category list based on deviceIdCode 1. When it is determined that the device category corresponding to the theoretical identifier corresponding to deviceIdCode 1 has a corresponding device icon and device name, the device icon and device name corresponding to the device category are used as the device model information. In this way, the mobile terminal can be displayed in the display list based on the device model information. Alternatively, a query is performed in the device category list based on deviceIdCode 1 to determine the theoretical identifier in the device category list that is the same as deviceIdCode 1, and the network identifier corresponding to the theoretical identifier. If the network identifier is used to indicate that the electronic device supports the Internet of Things function, the configuration information of the electronic device corresponding to the deviceIdCode 1 is sent to the Internet of Things server. After receiving the configuration information sent by the mobile terminal, the Internet of Things server queries the database based on the configuration information. If the device model information is not found, the Internet of Things server sends the target information indicating that the device model information has not been obtained to the mobile terminal. After receiving the target information sent by the Internet of Things server, the mobile terminal queries the device category list based on deviceIdCode 1. When it is determined that the device category corresponding to the theoretical identifier corresponding to deviceIdCode 1 does not have a corresponding device icon and device name, a query is performed in the database of the mobile terminal based on deviceIdCode 1. If there is a pre-configured local icon and local name corresponding to the deviceIdCode 1, the local icon and the local name are used as the device model information. In this way, the mobile terminal can be displayed in the display list based on the device model information.
[0081] In some examples, when it is obtained through the target protocol that there is only one electronic device that can be added in the current environment, a display list is directly generated.
[0082] In some examples, when the number of electronic devices that can be added to the current environment obtained through the target protocol is greater than or equal to 2, it is necessary to perform deduplication on the electronic devices that can be added to obtain a display list, such as: when deduplication is performed on the electronic devices bound to the current account and at least two electronic devices that can be added to the current environment, since the electronic devices obtained through the Bluetooth protocol and the electronic devices obtained through the local area network protocol have the problem of re-acquisition, the electronic devices obtained by the local area network protocol and the Bluetooth protocol can be deduplicated first to obtain the deduplicated electronic devices; then, the deduplicated electronic devices and the electronic devices obtained by the Digital Life Network Alliance protocol are merged to obtain the merged electronic devices. Since there are electronic devices in the merged electronic devices that have been bound to the current account currently logged in by the first application, it is necessary to perform deduplication on the electronic devices bound to the current account and the merged electronic devices to obtain the electronic devices that can be displayed. Afterwards, based on the electronic devices that can be displayed, a display list containing each electronic device that can be displayed is generated, such as: deleting the electronic devices in the merged electronic devices that are the same as the electronic devices bound to the current account (such as the same device identification code used to uniquely identify the electronic device), thereby obtaining the electronic devices that can be displayed.
[0083] S13. If no other preset pop-up window is currently displayed and the currently displayed page is the target page, a device list pop-up window is displayed in the target page according to the display list.
[0084] In some examples, the display conditions of the device list pop-up window include:
[0085] 1. The device list pop-up window is displayed only once in the life cycle of the first application (after startup and before the process is killed by the background). For example, after the first application is started, the display mark is recorded, such as: the default value of deviceListShowed is false. After the device list pop-up window is displayed on the target page, the default value of the display mark is set to true. The next time the target page is displayed again, the device list pop-up window will not be displayed.
[0086] 2. The first application is successfully loaded on the target page and displayed on the top layer. For example, when the target page fails to load, even if there are displayable devices in the current device list pop-up window, the device list pop-up window will not be displayed. The device list pop-up window is allowed to be displayed only when the page currently displayed on the top layer is the target page.
[0087] 3. There are currently electronic devices that can be added
[0088] The device list pop-up window can only be displayed when the number of electronic devices that can be added is greater than 1.
[0089] In some examples, the target page may be a home page.
[0090] In some examples, the first application responds to the launch operation by first displaying the Figure 5 The startup page shown in the figure, and then enter the set home page, such as the home page. Among them, the first application includes at least one home page, such as the first application includes 4 home pages, respectively as follows Figure 6 The home page shown in 1, such as Figure 7 Home page 2, as shown Figure 8 Home page 3 shown and Fig. 9 When the user sets home page 1 as the home page, the first application responds to the start operation and first enters the Figure 5 The startup page shown in the figure, then enter Figure 6 Home page shown.
[0091] In some examples, a home page corresponds to a Tab page. The home page is the first Tab page of the home page (i.e., the page displayed after the first application is started and the startup page is displayed). The pop-up window that may be displayed on the home page is any one of the upgrade pop-up window 3-1, the user guide pop-up window 4-1, and the device list pop-up window 5-1. Only one pop-up window can be displayed at the same time.
[0092] In some examples, the display priority of the pop-up window includes the priority of the upgrade pop-up window being greater than the priority of the user guidance pop-up window, and the priority of the user guidance pop-up window is greater than the priority of the device list pop-up window.
[0093] In some examples, because the first application is a hybrid stack routing management, the tab page forms include: Flutter page (such as home page 1, home page 4, etc.) and Native page (such as startup page, home page 2, home page 3, etc.). If each pop-up window is displayed according to priority, it is necessary to ensure that the high-priority pop-up window does not exist or is closed before the subsequent pop-up window can be displayed. Therefore, when the device list pop-up window is displayed, it is necessary to ensure that the upgrade pop-up window and the user guidance pop-up window are closed.
[0094] From the above, it can be seen that by adopting the display method provided by the present invention, when a user needs to add an electronic device, the user only needs to open the first application installed on the terminal device, and then he can check the electronic devices that can be added in the current environment in the target page, without the need for the user to manually obtain the electronic devices that can be added currently. This can avoid the problem that different users have different proficiency in using terminal devices, which causes the user to often be unable to find the electronic devices that can be added currently when adding electronic devices.
[0095] In some possible implementation examples, combined with Figure 4 ,like Fig.10 As shown, the above S12 can be specifically implemented through the following S120-S122.
[0096] S120, performing deduplication processing on the electronic devices respectively obtained by the local area network protocol and the Bluetooth protocol to obtain deduplicated electronic devices.
[0097] S121. Obtain a merged electronic device based on the deduplicated electronic devices and the electronic devices acquired through the Digital Living Network Alliance protocol.
[0098] S122: De-duplicate the electronic devices bound to the current account and the merged electronic devices to generate a display list.
[0099] In some examples, for some scenarios where the precision of deduplication is not high, it is possible to determine whether the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service are the same electronic device through local_name and wifiId. For example: In combination with the example given in S11 above, the last 4 digits of local_name and the last 4 digits of wifiId are used for deduplication. If the last 4 digits of local_name and the last 4 digits of wifiId are equal, it means that the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service are the same electronic device. At this time, the electronic device discovered by the LAN service is retained, and the electronic device discovered by the Bluetooth service is deleted, and the retained electronic device discovered by the LAN service is used as the electronic device after deduplication.
[0100] In some examples, a 4-digit number in hexadecimal can enumerate up to 65536 devices. Then, when determining whether the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service are the same electronic device through local_name and wifiId, the last 4 digits of local_name and the last 4 digits of wifiId are the same, but the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service are two different devices. This will erroneously filter out the electronic device discovered by the Bluetooth service. To this end, the display method provided in the embodiment of the present disclosure deduplicates the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service through one or more of the category information, the media access control address, and the network configuration information, thereby ensuring the accuracy of deduplication.
[0101] In some possible implementation examples, combined with Fig.10 ,like Fig.11 As shown, the above S120 can be specifically implemented through the following S1200 and S1201.
[0102] S1200: Acquire target information of the electronic device respectively acquired by the local area network protocol and the Bluetooth protocol.
[0103] S1201: De-duplicate the electronic devices obtained by the local area network protocol and the Bluetooth protocol respectively based on the target information to obtain the de-duplicated electronic devices. The target information includes any one of the media access control address or configuration information corresponding to the mobile hotspot module.
[0104] In some feasible examples, the target information includes a media access control address corresponding to the mobile hotspot module; Fig.11 ,like Fig.12 As shown, the above S1201 can be specifically implemented through the following S12010 and S12011.
[0105] S12010, obtaining Bluetooth information reported by each electronic device obtained by the Bluetooth protocol; wherein the Bluetooth information includes information added to indicate a media access control address;
[0106] S12011. When the media access control address and Bluetooth information corresponding to the mobile hotspot module are the same, delete the electronic device obtained by the first protocol, retain the electronic device obtained by the second protocol, and use the retained electronic device obtained by the second protocol as the deduplicated electronic device; wherein the first protocol includes any one of the local area network protocol and the Bluetooth protocol, and the second protocol includes the local area network protocol and the Bluetooth protocol except the first protocol.
[0107] In some examples, the electronic device obtained by the retained second protocol is used as the deduplicated electronic device.
[0108] In some examples, for ease of understanding, it is assumed that the electronic device discovered through the Bluetooth service (such as called the Bluetooth device) is B_1, and the electronic device discovered through the LAN service (such as called the LAN device) is W_1, and the electronic device discovered by the Bluetooth service and the electronic device discovered by the LAN service are the same electronic device through the unique identification MAC of the wifi module. This solution relies on the MAC of the wifi module reported by the Bluetooth device when broadcasting.
[0109] In some examples, combined with the example given in Table 1, the process of a Bluetooth device obtaining the MAC of a wifi module is as follows: When the first M bits of the manufacturer_data information in the broadcast packet content reported by the Bluetooth device are ≥128 (such as M is equal to 2), the Bluetooth device is deleted and the LAN device is retained. When the first 2 bits of the manufacturer_data information in the broadcast packet content reported by the Bluetooth device are <128, such as: the "manufacturer_data" information in the broadcast packet content of B_1 is "40007638640773889c", the first 2 bits "40" in "40007638640773889c" are taken and converted to decimal 64. Since 64<128, it means that the electronic device supports MAC resolution. Afterwards, the MAC address length is determined by judging the relationship between the first two bits of the "manufacturer_data" information in the broadcast packet content and a preset threshold value (such as 64), such as: when the first two bits of the "manufacturer_data" information in the broadcast packet content are ≥ 64, the MAC address length is determined to be 12; when the first two bits of the "manufacturer_data" information in the broadcast packet content are < 64, the MAC address length is determined to be 8. For example, if the "manufacturer_data" information in the broadcast packet content is "40007638640773889c", the first two bits "40" in "40007638640773889c" are taken and converted to decimal 64. Since 64=64, the MAC address length is 12. Afterwards, based on the address length, the characters of the address length are intercepted from the "manufacturer_data" information in the broadcast packet content as the MAC (the characters after the address length in the "manufacturer_data" information in the broadcast packet content are taken). For example, if the "manufacturer_data" information in the broadcast packet content is "40007638640773889c", the characters with a step length equal to the address length are intercepted from the last character c as the MAC, that is, the MAC is "8640773889c".
[0110] Afterwards, the process of the LAN device obtaining the MAC of the wifi module is as follows: As can be seen from Table 1, the definition rule of wifiId stipulates that the last 12 of wifiId are the MAC of the wifi module. Since the length of the MAC of the wifi module obtained by the Bluetooth device is dynamic, the length of the MAC of the wifi module obtained by the Bluetooth device is compared with 12. When the length of the MAC of the wifi module obtained by the Bluetooth device is greater than or equal to 12, the characters with a step length of 12 are intercepted from the last character of wifiId as the MAC. When the length of the MAC of the wifi module obtained by the Bluetooth device is less than 12, the characters with a step length equal to the length of the MAC of the wifi module obtained by the Bluetooth device are intercepted from the last character of wifiId as the MAC. Exemplarily, in combination with the above-mentioned numbers, the length of the MAC of the wifi module obtained by B_1 is 12, and the length of the MAC of the wifi module obtained by W_1 is 12, and the minimum value of the two is 12. Assume that the wifiId of W_1 is "86100c00fffe00600000004038640773889c"; among them, the characters with a step length of 12 from the last character c are taken as the MAC, that is, the MAC is "8640773889c".
[0111] Afterwards, the MAC of the wifi module obtained by the Bluetooth device is compared with the MAC of the wifi module obtained by the LAN device. When the MAC of the wifi module obtained by the Bluetooth device is the same as the MAC of the wifi module obtained by the LAN device, it means that the Bluetooth device and the LAN device are the same device. The Bluetooth device can be deleted, the LAN device is retained, and the retained LAN device is used as the electronic device after deduplication. When the MAC of the wifi module obtained by the Bluetooth device is different from the MAC of the wifi module obtained by the LAN device, it means that the Bluetooth device and the LAN device are not the same device, so both need to be retained at the same time, that is, the retained Bluetooth device and the LAN device are used as the electronic device after deduplication.
[0112] In some feasible examples, the target information includes configuration information, and the configuration information includes category information to which the electronic device belongs; Fig.11 ,like Fig.13 As shown, the above S1201 can be specifically implemented through the following S12012.
[0113] S12012. In the case of electronic devices with the same category information, delete the electronic devices obtained by the third protocol, retain the electronic devices obtained by the fourth protocol, and use the retained electronic devices obtained by the fourth protocol as the deduplicated electronic devices; wherein the third protocol includes any one of the local area network protocol and the Bluetooth protocol, and the fourth protocol includes any one of the local area network protocol and the Bluetooth protocol except the first protocol.
[0114] In some examples, the electronic device obtained by the fourth protocol is retained as the deduplicated electronic device.
[0115] In some examples, combined with the example given in S12011 above, the display method provided by the embodiment of the present disclosure can also perform deduplication using the category information to which the Bluetooth device belongs and the category information to which the LAN device belongs. For example, the category information corresponding to B_1 is a washing machine, and the category information corresponding to W_1 is an air conditioner. Since the category information of the two is different, it is necessary to retain both the Bluetooth device and the LAN device, that is, the retained Bluetooth device and LAN device are used as the electronic devices after deduplication.
[0116] Exemplarily, when the first application is started, the current category data is obtained and persisted in the memory of the terminal device. Each time the first application is started, it is necessary to detect whether the locally stored category data needs to be updated. For example, the first application sends an update request carrying the update date of the current category data to the IoT server. The IoT server determines that there is no new category data after the update date, and sends a non-update indication to the terminal device, so that the terminal device does not update the category data for the current time based on the indication. The category data includes category information, code information of the Bluetooth module, code information of the wifi module, etc.
[0117] Assume that the code information of the category information corresponding to the electronic device "range hood" is "connector.device.type.greasepump", the code information of the Bluetooth module is "23", and the code information of the wifi module is "35". The code information of the corresponding category information can be uniquely matched through the code information of the Bluetooth module or the code information of the wifi module. For example, in combination with the example given in Table 1 above, the "service_data" corresponding to B_1 is "0202040f000000", where every 2 bits correspond to a hexadecimal value. Take the 3rd to 4th bits in "service_data", such as the value taken out is "02". Get the hType field corresponding to W_1, such as "2", and pad the front bit of hType to the target length, such as: the target length is 2, and the code information of the wifi module is "02". After that, query the code information "23" of the Bluetooth module in the category data, and get the code information of the category information corresponding to the code information "23" of the Bluetooth module as "connector.device.type.fridge". The code information "02" of the wifi module is searched in the category data, and the code information of the category information corresponding to the code information "02" of the wifi module is obtained as "connector.device.type.fridge".
[0118] Afterwards, when the code information of the category information corresponding to the code information of the Bluetooth module is the same as the code information of the category information corresponding to the code information of the WiFi module, it means that the Bluetooth device and the LAN device are the same electronic device. Therefore, the Bluetooth device can be deleted, the LAN device can be retained, and the retained LAN device can be used as the deduplicated electronic device. When the code information of the category information corresponding to the code information of the Bluetooth module is different from the code information of the category information corresponding to the code information of the WiFi module, it means that the two are not the same electronic device. At this time, both need to be retained, that is, the retained Bluetooth device and LAN device will be used as the deduplicated electronic devices.
[0119] In some feasible examples, the target information includes configuration information, the configuration information includes network configuration information, and the network configuration information includes any one of a configured network and an unconfigured network; Fig.11 As shown in FIG14 , the above S1201 can be specifically implemented through the following S12013 and S12014.
[0120] S12013. When the network configuration information of the electronic device obtained by the Bluetooth protocol indicates that the electronic device is not network configured, retain the electronic device whose network configuration information indicates that the electronic device is not network configured, and use the retained electronic device whose network configuration information indicates that the electronic device is not network configured as the deduplicated electronic device;
[0121] S12014. When the network configuration information of the electronic device obtained through the Bluetooth protocol indicates that the electronic device has been configured, delete the electronic device whose network configuration information indicates that the electronic device has been configured.
[0122] In some examples, the retained network configuration information of the electronic device that is not network configured is used as the deduplicated electronic device.
[0123] In some examples, combined with the example given in S12011 above, the display method provided by the embodiment of the present disclosure can use the network configuration information of the electronic device to determine whether the Bluetooth device and the local area network device are the same electronic device, because the electronic device cannot be discovered by the local area network service when it is not networked.
[0124] For example, the first application can determine the network configuration information based on the "service_data" in the broadcast packet content reported by B_1, such as: "service_data" is "0202040f000000", where every 2 bits correspond to a hexadecimal value. Take the 5th to 6th bits in "service_data", and the value is "01". Then, convert "01" into an 8-bit binary value "00000100", and take out the 4th to 6th bits "001" in "00000100".
[0125] Among them, "000" means that the network configuration information is not configured; "001" means that the network configuration information is configured.
[0126] When the network configuration information is not configured, it means that the electronic device is not connected to the network, so the Bluetooth device needs to be retained. When the network configuration information is configured, it means that the electronic device is connected to the network, so the Bluetooth device can be deleted.
[0127] In some possible implementation examples, combined with Fig.10 ,like Fig.15 As shown, the above S122 can be specifically implemented through the following S1220.
[0128] S1220: Delete the electronic devices bound to the current account from the merged electronic devices to obtain electronic devices that can be added.
[0129] In some examples, if the device found has been bound to the current account, the device will be deleted from the homepage device list to avoid the bound devices in the user's home being repeatedly popped up every time the user starts up, affecting the user experience.
[0130] In some feasible examples, the device list pop-up window also includes an ignore control for not displaying within a preset time, and one ignore control corresponds to one electronic device; Figure 4 ,like Fig.16 As shown, the display method provided by the embodiment of the present disclosure also includes: S14.
[0131] S14. In response to a selection operation on an ignore control, the electronic device corresponding to the ignore control is deleted from a device list pop-up window, and the electronic device corresponding to the ignore control is no longer displayed in the device list pop-up window displayed within a preset time.
[0132] In some examples, each time the first application is started, a pop-up window of the list of devices that meet the conditions will automatically pop up. If the electronic device found in the device list pop-up window is a neighbor's TV, or an electronic device that the user does not want to bind, the user experience will be affected if the electronic device continues to be displayed in the device list pop-up window each time the first application is started. Therefore, the display method provided in the embodiment of the present disclosure optimizes this problem and provides the user with an entry to ignore the electronic device. The user can ignore all or ignore a single device with one click. The first application locally records the device ignore mark as a basis for whether the device is displayed in the device list next time.
[0133] In some examples, combined Fig. 9As shown in the homepage 5, the user can select the electronic device to be added in the device list pop-up window 5-1 displayed in the homepage 5, such as: when the user needs to add the refrigerator RDDDEE-af(b888b), the user can select the add control 5-1-1 corresponding to the refrigerator RDDDEE-af(b888b), so that the refrigerator RDDDEE-af(b888b) can be added to the home of AAA. Alternatively, when the user no longer needs to display the refrigerator RDDDEE-af(b888b) in the device list pop-up window, the user can select the ignore control 5-1-2 corresponding to the refrigerator RDDDEE-af(b888b), so that the refrigerator RDDDEE-af(b888b) will no longer be displayed in the device list pop-up window.
[0134] In some examples, in order to prevent the user from ignoring the electronic device in the device list pop-up window and then needing to display the electronic device in the device list pop-up window again, the first application can periodically (such as once a month) prompt the user whether to display the electronic device in the device list pop-up window.
[0135] In some possible implementation examples, combined with Figure 4 ,like Fig.17 As shown, the above S13 can be specifically implemented through the following S130-S132.
[0136] S130: Obtain the priority of the category to which each addable electronic device belongs.
[0137] S131. Sort the addable electronic devices in descending order of priority to obtain a display order.
[0138] S132: If no other preset pop-up window is currently displayed and the currently displayed page is the target page, the electronic devices that can be added are displayed in the device list pop-up window displayed in the target page in the order in which they are displayed.
[0139] In some examples, since there are differences in the shipping quantities corresponding to different categories, in order to improve the user experience, the display method provided in the embodiments of the present disclosure sorts the categories to which the electronic devices displayed in the device list pop-up window belong based on the shipping quantities corresponding to different categories, thereby ensuring the order of display of the electronic devices displayed in the device list pop-up window.
[0140] Exemplarily, the priority of the first electronic device is greater than the priority of the second electronic device.
[0141] In some examples, electronic devices of the same priority are displayed in the device list pop-up window in ascending order of discovery time.
[0142] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0143] The embodiment of the present application can divide the functional modules of the display device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0144] The embodiment of the present application provides a structural diagram of a mobile terminal 300 , which includes a processor 101 , a communicator 102 , and a display 103 .
[0145] The processor 101 is configured to, in response to a startup operation, control the communicator 102 to obtain electronic devices that can be added to the current environment through a target protocol; wherein the target protocol includes a local area network protocol, a Bluetooth protocol, and a Digital Living Network Alliance protocol; the processor 101 is also configured to generate a display list based on the electronic devices obtained by the communicator 102; wherein the display list includes one or more electronic devices; the processor 101 is also configured to control the display 103 to display a device list pop-up window according to the display list in the target page if there is no other preset pop-up window to display and the currently displayed page is the target page; wherein the device list pop-up window includes each electronic device that can be added.
[0146] In some feasible examples, the processor 101 is further configured to perform deduplication processing on the electronic devices respectively obtained by the communicator 102 through the local area network protocol and the Bluetooth protocol to obtain deduplicated electronic devices; the processor 101 is further configured to obtain a merged electronic device based on the deduplicated electronic devices and the electronic devices obtained by the communicator 102 through the Digital Living Network Alliance protocol; the processor 101 is further configured to perform deduplication processing based on the electronic devices bound to the current account and the merged electronic devices to generate a display list.
[0147] In some feasible examples, the communicator 102 is further configured to obtain target information of electronic devices respectively obtained by the local area network protocol and the Bluetooth protocol; the processor 101 is further configured to perform deduplication processing on the electronic devices respectively obtained by the local area network protocol and the Bluetooth protocol obtained by the communicator 102 based on the target information to obtain deduplicated electronic devices; wherein the target information includes any one of the media access control address or configuration information corresponding to the mobile hotspot module.
[0148] In some feasible examples, the target information includes a media access control address corresponding to a mobile hotspot module; the communicator 102 is further configured to obtain Bluetooth information reported by each electronic device obtained by the Bluetooth protocol; wherein the Bluetooth information includes information added to represent the media access control address; the processor 101 is further configured to delete the electronic device obtained by the first protocol, retain the electronic device obtained by the second protocol, and use the retained electronic device obtained by the second protocol as the deduplicated electronic device when the media access control address corresponding to the mobile hotspot module and the Bluetooth information obtained by the communicator 102 are the same; wherein the first protocol includes any one of the local area network protocol and the Bluetooth protocol, and the second protocol includes any one of the local area network protocol and the Bluetooth protocol except the first protocol.
[0149] In some feasible examples, the target information includes configuration information, and the configuration information includes category information to which the electronic device belongs; the communicator 102 is further configured to delete the electronic device obtained by the third protocol, retain the electronic device obtained by the fourth protocol, and use the retained electronic device obtained by the fourth protocol as the deduplicated electronic device when electronic devices with the same category information exist; wherein the third protocol includes any one of the local area network protocol and the Bluetooth protocol, and the fourth protocol includes any one of the local area network protocol and the Bluetooth protocol except the first protocol.
[0150] In some implementable examples, the target information includes configuration information, the configuration information includes network configuration information, and the network configuration information includes any one of configured and unconfigured; the communicator 102 is further configured to retain the electronic device whose network configuration information is not configured when the network configuration information of the electronic device obtained by the Bluetooth protocol is not configured, and use the retained electronic device whose network configuration information is not configured as the deduplicated electronic device; the communicator 102 is further configured to delete the electronic device whose network configuration information is configured when the network configuration information of the electronic device obtained by the Bluetooth protocol is configured.
[0151] In some feasible examples, the communicator 102 is further configured to delete the electronic devices bound to the current account from the merged electronic devices to obtain the electronic devices that can be added.
[0152] In some feasible examples, the device list pop-up window also includes an ignore control for not displaying within a preset time, and one electronic device corresponds to one ignore control; the communicator 102 is further configured to delete the electronic device corresponding to the ignore control in the device list pop-up window in response to a selection operation on the ignore control, and no longer display the electronic device corresponding to the ignore control in the device list pop-up window displayed within the preset time.
[0153] In some implementable examples, the communicator 102 is further configured to obtain the priority of the category to which each addable electronic device belongs; the processor 101 is further configured to sort the addable electronic devices in descending order according to the priority obtained by the communicator 102 to obtain a display order; the processor 101 is further configured to control the display 103 to display the addable electronic devices in the device list pop-up window displayed on the target page in the display order if there are no other preset pop-up windows to display and the page currently displayed by the display 103 is the target page.
[0154] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0155] Of course, the mobile terminal 300 provided in the embodiment of the present application includes but is not limited to the above modules, for example, the mobile terminal 300 may also include a memory 104. The memory 104 may be used to store program codes of the mobile terminal 300, and may also be used to store data generated by the mobile terminal 300 during operation, such as data in a write request.
[0156] As an example, combining Figure 4 The function implemented by the acquisition unit 202 in the mobile terminal 300 is the same as that of the communicator 102, the function implemented by the processing unit 201 is the same as that of the processor 101, the function implemented by the display unit 203 is the same as that of the display 103, and the function implemented by the storage unit 204 is the same as that of the memory 104.
[0157] The embodiment of the present application also provides a chip system, which can be applied to the mobile terminal 300 in the aforementioned embodiment. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the above-mentioned mobile terminal 300. The processor 1501 and the interface circuit 1502 can be interconnected through a line. The processor 1501 can receive and execute computer instructions from the memory of the above-mentioned mobile terminal 300 through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the mobile terminal 300 can execute the various steps performed by the mobile terminal 300 in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0158] The embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the mobile terminal 300.
[0159] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An electronic device, characterized in that: include: The processor is configured to control the communicator to obtain electronic devices that can be added to the current environment through a target protocol in response to a startup operation; wherein the target protocol includes a local area network protocol, a Bluetooth protocol, and a Digital Living Network Alliance protocol; The processor is further configured to generate a display list based on the electronic devices acquired by the communicator; wherein the display list includes one or more of the electronic devices; The processor is further configured to control the display to display a device list pop-up window according to the display list in the target page if no other preset pop-up window is currently displayed and the currently displayed page is the target page.
2. The electronic device according to claim 1, characterized in that: The processor is further configured to perform deduplication processing on the electronic devices respectively acquired by the communicator through the local area network protocol and the Bluetooth protocol to obtain deduplicated electronic devices; The processor is further configured to obtain a merged electronic device based on the deduplicated electronic device and the electronic device acquired by the communicator through the Digital Living Network Alliance protocol; The processor is further configured to perform deduplication processing based on the electronic devices bound to the current account and the merged electronic devices to generate a display list.
3. The electronic device according to claim 2, characterized in that: The communicator is further configured to obtain target information of the electronic device obtained by the local area network protocol and the Bluetooth protocol respectively; The processor is further configured to perform deduplication processing on the electronic devices respectively obtained by the local area network protocol and the Bluetooth protocol obtained by the communicator based on the target information to obtain deduplicated electronic devices; wherein the target information includes the media access control address corresponding to the mobile hotspot module or any one of the configuration information.
4. The electronic device according to claim 2, characterized in that: The target information includes a media access control address corresponding to the mobile hotspot module; The communicator is further configured to obtain Bluetooth information reported by each electronic device obtained by the Bluetooth protocol; wherein the Bluetooth information includes information added to represent a media access control address; The processor is further configured to delete the electronic device obtained by the first protocol, retain the electronic device obtained by the second protocol, and use the retained electronic device obtained by the second protocol as the deduplicated electronic device when the media access control address corresponding to the mobile hotspot module and the Bluetooth information obtained by the communicator are the same; wherein the first protocol includes any one of the local area network protocol and the Bluetooth protocol, and the second protocol includes the local area network protocol and the Bluetooth protocol except the first protocol.
5. The electronic device according to claim 2, characterized in that: The target information includes configuration information, and the configuration information includes category information to which the electronic device belongs; The communicator is further configured to delete the electronic device obtained by the third protocol, retain the electronic device obtained by the fourth protocol, and use the retained electronic device obtained by the fourth protocol as the deduplicated electronic device when there are electronic devices with the same category information; wherein the third protocol includes any one of the local area network protocol and the Bluetooth protocol, and the fourth protocol includes the local area network protocol and the Bluetooth protocol except the first protocol.
6. The electronic device according to claim 2, characterized in that: The target information includes configuration information, the configuration information includes network configuration information, and the network configuration information includes any one of a configured network and an unconfigured network; The communicator is further configured to retain the electronic device whose network configuration information is not configured, and use the retained electronic device whose network configuration information is not configured as the deduplicated electronic device, when the network configuration information of the electronic device obtained by the Bluetooth protocol is not configured. The communicator is further configured to delete the electronic device whose network configuration information indicates that the electronic device has been network configured when the network configuration information of the electronic device obtained through the Bluetooth protocol indicates that the electronic device has been network configured.
7. The electronic device according to claim 2, characterized in that: The communicator is further configured to delete the electronic devices bound to the current account from the merged electronic devices to obtain the electronic devices that can be added.
8. The electronic device according to claim 1, characterized in that: The device list pop-up window also includes an ignore control for not displaying the device within a preset time, and one ignore control corresponds to one electronic device; The communicator is further configured to delete the electronic device corresponding to the ignore control in the device list pop-up window in response to a selection operation on the ignore control, and no longer display the electronic device corresponding to the ignore control in the device list pop-up window displayed within a preset time.
9. A display method, characterized in that: include: In response to the start operation, two electronic devices that can be added to the current environment are acquired through a target protocol; wherein the target protocol includes a local area network protocol, a Bluetooth protocol, and a Digital Living Network Alliance protocol; Based on the electronic device, generating a display list; wherein the display list includes one or more of the electronic devices; If no other preset pop-up windows are currently displayed, and the currently displayed page is the target page, a device list pop-up window is displayed in the target page according to the display list.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the display method described in claim 9.
Citation Information
Patent Citations
Pop-up window display method and device
CN107463440A
Equipment binding method and device and computer readable storage medium
CN113596795A
Smart home equipment binding method and terminal
CN114513379A
Display device and Bluetooth pairing control method
CN115567748A
System, computer program product and method for managing and controlling a local network of electronic devices
US20060031457A1
Cited By
Data query display method and system and electronic equipment
CN120508584A
Intelligent equipment self-discovery and network distribution method based on broadcast feature recognition
CN122533885A
Intelligent device self-discovery and network configuration method based on broadcast feature recognition
CN122533885B