Wireless connection device list refresh method, device, equipment and readable storage medium
By keeping the position of the first N devices unchanged in the wireless connected device list and reordering according to the signal strength, the error touch problem caused by the update of the wireless connected device list is solved, improving the accuracy and experience of user selection.
Patent Information
- Application Number
- CN202211160534.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-09-22
AI Technical Summary
During the wireless connection process, when the user clicks on the device he wants to connect to, the list of wireless connection devices is updated, causing the actual connected device to be inconsistent with the expected connected device, causing the problem of accidentally touching.
By detecting the wireless connected devices and signal strength, when generating and updating the list of wireless connected devices, the positions of the first N devices in the list remain unchanged, and other devices are reordered according to the signal strength to ensure the stable position of the key devices.
Improves the accuracy of users' choice of wireless connected devices, avoids mistouches caused by list updates, and improves user experience.
Smart Images

Figure CN115426642B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, apparatus, device and readable storage medium for refreshing a wireless connection device list. Background Art
[0002] At present, with the continuous advancement of science and technology, the trend of Internet of Things is becoming more and more obvious, and various devices are increasingly relying on wireless communication technology to connect with each other. In the current wireless connection process, users need to manually start wireless signal scanning (for example, Figure 1 As shown, the user manually selects to open Bluetooth scanning), the user device will generate a wireless connection device list for the devices that send wireless communication signals around and provide it to the user (for example Figure 2 As shown in the figure, the user device scans the surrounding Bluetooth signals and generates a Bluetooth device list), and the user manually clicks on the device to be connected to establish a wireless communication connection. However, since the wireless communication signals emitted by each wireless connection device are constantly changing, the wireless connection device list is also constantly updated accordingly. It is possible that when the user clicks on the device to be connected, the wireless connection device list is updated, causing the device actually clicked by the user to change from the device the user expected to connect to another wireless connection device, resulting in the connection process not meeting the user's expectations (for example, when the user sees the following Figure 2 After the Bluetooth device list is displayed, click "Li Lei's Smart Watch" to connect, but the Bluetooth device list is updated to Figure 3 As shown in the figure, the terminal will be connected to "Han Meimei's mobile phone", causing the user to touch it by mistake). Summary of the Invention
[0003] Embodiments of the present invention provide a method, apparatus, device, and readable storage medium for refreshing a wireless connection device list, to address the problem in the prior art of accidentally touching a wireless connection device list when a user clicks on a device they want to connect to, causing the device they actually click to be changed from the device they want to connect to another wireless connection device.
[0004] An embodiment of the present invention provides a method for refreshing a wireless connection device list, comprising:
[0005] In response to a wireless connection device scan instruction triggered by a user, detecting wireless connection devices and corresponding signal strengths;
[0006] Sort the detected wireless connection devices according to their corresponding signal strengths to generate a wireless connection device list;
[0007] When updating the wireless connection device list, maintaining the positions of the devices in the first part of the wireless connection device list in the wireless connection device list unchanged, and updating the remaining part of the wireless connection device list except the first part; the first part includes the first N wireless connection devices arranged in the wireless connection device list;
[0008] Wherein, N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list.
[0009] Optionally, if the number of wireless connection devices in the wireless connection device list before updating is less than P, the first part of the wireless connection device list includes all wireless connection devices in the wireless connection device list before updating;
[0010] Wherein, P is a preset first threshold and is a positive integer.
[0011] Optionally, if the number of wireless connection devices in the wireless connection device list before updating is greater than or equal to P, the first part of the wireless connection device list includes some of the wireless connection devices in the wireless connection device list before updating;
[0012] Wherein, P is a preset first threshold and is a positive integer.
[0013] Optionally, the method further includes:
[0014] If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than a preset signal strength threshold is greater than Q, then the wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold constitute the first part of the wireless connection device list;
[0015] If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold is less than or equal to Q, the first Q wireless connection devices in the wireless connection device list before the update are used to form the first part of the wireless connection device list;
[0016] Wherein, Q is a preset second threshold and Q is a positive integer.
[0017] Optionally, updating the remaining parts of the wireless connection device list except the first part includes:
[0018] The remaining wireless connection devices in the wireless connection device list except the first part are reordered according to the signal strength detected in real time.
[0019] Optionally, the wireless connection device is a Bluetooth device or a wireless local area network (WLAN) device.
[0020] Optionally, the method further includes:
[0021] When updating the wireless connection device list, if it is determined based on the real-time detected signal strength that the devices in the first part of the wireless connection device list cannot be connected, the unconnectable devices are updated to an invalid state in the wireless connection device list.
[0022] Based on the same inventive concept, an embodiment of the present invention further provides a device for refreshing a list of wirelessly connected devices, comprising:
[0023] a detection module, configured to detect wireless connection devices and corresponding signal strengths in response to a wireless connection device scanning instruction triggered by a user;
[0024] A list generation module is used to sort the detected wireless connection devices according to their corresponding signal strengths to generate a wireless connection device list;
[0025] a list refreshing module, configured to, when updating the wireless connection device list, maintain the positions of the devices in the first part of the wireless connection device list in the wireless connection device list unchanged, and update the remaining part of the wireless connection device list except the first part; the first part includes the first N wireless connection devices arranged in the wireless connection device list;
[0026] Wherein, N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list.
[0027] Based on the same inventive concept, an embodiment of the present invention further provides a device, comprising: a processor and a memory for storing instructions executable by the processor;
[0028] The processor is configured to execute the instructions to implement the method for refreshing the wireless connection device list.
[0029] Based on the same inventive concept, an embodiment of the present invention further provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is used to implement the wireless connection device list refreshing method.
[0030] The beneficial effects of the present invention are as follows:
[0031] The wireless connection device list refreshing method, apparatus, device, and readable storage medium provided by the embodiments of the present invention fix the position of the wireless connection device located at the front of the wireless connection device list when the wireless connection device list is generated, thereby ensuring that the position of the wireless connection device selected by the user with a high probability in the wireless connection device list does not change. This can avoid the situation where the wireless connection device finally selected by the user is inconsistent with the wireless connection device expected to be selected due to the update of the wireless connection list when the user selects the wireless connection device in the first part, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 One of the interface diagrams for users to connect Bluetooth devices using the terminal;
[0033] Figure 2 The second interface diagram shows the user connecting a Bluetooth device using a terminal;
[0034] Figure 3 The third interface diagram shows the user connecting a Bluetooth device using a terminal;
[0035] Figure 4 A flowchart of a method for updating a wireless connection device list provided by an embodiment of the present invention;
[0036] Figure 5 The fourth interface diagram shows the user connecting a Bluetooth device using a terminal;
[0037] Figure 6 Figure 5 of the interface for users to connect Bluetooth devices using the terminal;
[0038] Figure 7 Figure 6 of the interface for users to connect Bluetooth devices using the terminal;
[0039] Figure 8 Figure 7 of the interface for users to connect Bluetooth devices using the terminal;
[0040] Figure 9 Figure 8 of the interface for users to connect Bluetooth devices using the terminal;
[0041] Figure 10 Figure 9 shows the interface for users to connect Bluetooth devices using the terminal;
[0042] Figure 11 Figure 10 shows the interface for users to connect Bluetooth devices using the terminal;
[0043] Figure 12 Figure 11 shows the interface for users to connect Bluetooth devices using the terminal;
[0044] Figure 13A flowchart of a method for updating a Bluetooth device list provided by an embodiment of the present invention;
[0045] Figure 14 A schematic diagram of the structure of an apparatus for updating a wireless connection device list provided by an embodiment of the present invention;
[0046] Figure 15 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0047] Figure 16 for Figure 15 Schematic diagram of the software architecture of an electronic device. DETAILED DESCRIPTION
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention will be further described below with reference to the accompanying drawings and examples. However, the example embodiments can be implemented in various forms and should not be understood as being limited to the embodiments described herein; on the contrary, these embodiments are provided to make the present invention more comprehensive and complete, and to fully convey the concepts of the example embodiments to those skilled in the art. The same figure marks in the figures represent the same or similar structures, and their repeated descriptions will be omitted. The words expressing position and direction described in the present invention are all explained with reference to the accompanying drawings as examples, but changes can be made as needed, and the changes made are all included in the scope of protection of the present invention. The drawings of the present invention are only used to illustrate the relative position relationship and do not represent the true proportion.
[0049] It should be noted that specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in a variety of ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The subsequent description of the specification is a preferred embodiment of the present application, but the description is for the purpose of illustrating the general principles of the present application and is not intended to limit the scope of the present application. The scope of protection of the present application shall be determined as defined by the appended claims.
[0050] The following describes in detail the method, apparatus, device, and readable storage medium for refreshing the wireless connection device list provided by the embodiments of the present invention in conjunction with the accompanying drawings.
[0051] The embodiment of the present invention provides a method for refreshing a wireless connection device list. Figure 4 Shown, including:
[0052] S110 : In response to a wireless connection device scanning instruction triggered by a user, detecting wireless connection devices and corresponding signal strengths.
[0053] In a specific implementation process, the detected wireless connection devices and the corresponding signal strengths can be cached in a cache area of the terminal's memory. This process is a background operation and is not displayed to the user.
[0054] S120: Sort the detected wireless connection devices according to their corresponding signal strengths to generate a wireless connection device list.
[0055] In a specific implementation, the wireless connection device list can be generated again within a first preset time (e.g., 3 seconds) after the user triggers a wireless connection device scan instruction, and displayed to the user in the foreground. Sorting by corresponding signal strength can be performed in descending order of signal strength. For wireless connection devices with equal signal strength, the devices can be sorted in alphabetical or phonetic order of their names.
[0056] S130: Determine whether a condition for updating the wireless connection device list is met and detect wireless connection devices and corresponding signal strengths.
[0057] During the specific implementation process, the wireless connection device list can be updated once at a certain frequency every second preset time interval (for example, 5 seconds), and the corresponding terminal will continue to detect the wireless connection devices and the corresponding signal strength in the background; or the wireless connection device list can be updated once in response to an update list instruction manually triggered by the user (for example, the user clicks a list update button), and the corresponding terminal will detect the wireless connection devices and the corresponding signal strength again in response to the update list instruction manually triggered by the user; the step S130 can also be implemented in other ways, which are not limited here.
[0058] If the condition for updating the wireless connection device list is met, step S140 is executed; otherwise, the process continues to wait until the result is yes.
[0059] S130: When updating the wireless connection device list, maintain the positions of the devices in the first portion of the wireless connection device list in the wireless connection device list unchanged, and update the remaining portion of the wireless connection device list except the first portion, where the first portion includes the first N wireless connection devices arranged in the wireless connection device list.
[0060] Wherein, N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list.
[0061] Optionally, the wireless connection device is a Bluetooth device or a Wireless Local Area Network (WLAN) device.
[0062] For example, Figure 1As shown, after the user triggers the Bluetooth scan command, the terminal detects the Bluetooth device and the corresponding signal strength, and generates Figure 2 The Bluetooth device list shown. After that, when updating the Bluetooth device list, always keep the position of the first part of the devices in the Bluetooth list unchanged, and update the remaining parts of the Bluetooth device list outside the first part of the statement. In this way, for example Figure 5 As shown, whenever the user selects a Bluetooth device to connect to, as long as the user selects a target Bluetooth device (eg Figure 5 If the "Li Lei's smart watch" shown in the figure is the Bluetooth device in the first part, then the target Bluetooth device at this location will not be updated to other devices (such as Figure 3 (“Han Meimei’s mobile phone” indicated in the figure).
[0063] In this way, by fixing the position of the wireless connection device located at the front of the wireless connection device list when the wireless connection device list is generated, it is ensured that the position of the wireless connection device selected by the user with a high probability in the wireless connection device list does not change. This can avoid the situation where the wireless connection device finally selected by the user is inconsistent with the wireless connection device expected to be selected due to the update of the wireless connection list when the user selects the wireless connection device in the first part, thereby improving the user experience.
[0064] Furthermore, in step S140, updating the remaining parts of the wireless connection device list except the first part specifically includes:
[0065] The remaining wireless connection devices in the wireless connection device list except the first part are reordered according to the signal strength detected in real time.
[0066] In a specific implementation, the process of reordering according to the corresponding signal strength can be to sort in descending order of signal strength. For wireless connection devices with equal signal strength, they can be sorted in alphabetical or phonetic order of the device names.
[0067] As an optional implementation, if the number of wireless connection devices in the wireless connection device list before updating is less than P, the first part of the wireless connection device list includes all wireless connection devices in the wireless connection device list before updating.
[0068] Wherein, P is a preset first threshold and is a positive integer.
[0069] For example, Figure 6 As shown in , the terminal generates a Bluetooth device list ("AA audio", ..., "Han Meimei's computer") based on the detected Bluetooth devices and the corresponding signal strength. Figure 7As shown, when a new Bluetooth device ("Wang Xiaoming's mobile phone", "HH smart bracelet", "II headphones", "GG smart TV") that does not appear in the current Bluetooth device list is detected again in the process of detecting Bluetooth devices and corresponding signal strengths, if the number of Bluetooth devices in the current Bluetooth device list is less than the preset first threshold P (here P=8 is set as an example), then the new Bluetooth device ("Wang Xiaoming's mobile phone", "HH smart bracelet", "II headphones", "GG smart TV") is updated and displayed at the position after the first part.
[0070] As another optional implementation, if the number of wireless connection devices in the wireless connection device list before updating is greater than or equal to P, the first part of the wireless connection device list includes some of the wireless connection devices in the wireless connection device list before updating.
[0071] Wherein, P is a preset first threshold and is a positive integer.
[0072] Specifically, if the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold is greater than Q, then the wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold will constitute the first part of the wireless connection device list.
[0073] If, in the wireless connection device list before the update, the number of wireless connection devices with signal strength greater than the preset signal strength threshold is less than or equal to Q, the first Q wireless connection devices in the wireless connection device list before the update form the first part of the wireless connection device list;
[0074] Wherein, Q is a preset second threshold and Q is a positive integer.
[0075] For example, Figure 8 As shown, the terminal generates a list of Bluetooth devices ("AA audio", ..., "GG smart TV") based on the detection of Bluetooth devices and their corresponding signal strengths. Afterwards, in the process of detecting Bluetooth devices and their corresponding signal strengths again, it is detected that the signal strengths of some of these Bluetooth devices have changed. If Figure 8 The number of Bluetooth devices in the Bluetooth device list shown in FIG is greater than the preset first threshold value P (here, P=8 is taken as an example), and Figure 8 In the Bluetooth device list shown in FIG, the number of Bluetooth devices with a signal strength greater than the preset signal strength threshold (-75dB is taken as an example here) is greater than the preset second threshold Q (Q=3 is taken as an example here), then if Figure 9 As shown, Figure 8The Bluetooth devices in the Bluetooth device list shown in the figure ("AA speaker", "BB Bluetooth headset", "Han Meimei's mobile phone", "Li Lei's smart watch") with a signal strength greater than the preset threshold are the first part and remain in the same position in the Bluetooth device list; Figure 8 The Bluetooth devices in the Bluetooth device list shown in the figure that have a signal strength threshold that is less than or equal to the preset threshold (in order, "EE Smart Air Conditioner", "Han Meimei's Computer", "Wang Xiaoming's Mobile Phone", "HH Smart Bracelet", "II Headphones", and "GG Smart TV") are updated according to the current signal strength and arranged after the first part (after the update, they are "Wang Xiaoming's Mobile Phone", "HH Smart Bracelet", "EE Smart Air Conditioner", "Han Meimei's Computer", "II Headphones", and "GG Smart TV").
[0076] For example, Figure 10 As shown, the terminal generates a list of Bluetooth devices ("AA audio", ..., "GG smart TV") based on the detection of Bluetooth devices and their corresponding signal strengths. Afterwards, in the process of detecting Bluetooth devices and their corresponding signal strengths again, it is detected that the signal strengths of some of these Bluetooth devices have changed. If Figure 10 The number of Bluetooth devices in the Bluetooth device list shown in FIG is greater than the preset first threshold value P (here, P=8 is taken as an example), and Figure 10 The number of Bluetooth devices in the Bluetooth device list with a signal strength greater than the preset threshold (-75db is used as an example here) is less than the preset second threshold Q (Q=3 is used as an example here). Figure 11 As shown, Figure 10 The first three Bluetooth devices in the Bluetooth device list shown in FIG ("AA audio", "BB Bluetooth headset", "Han Meimei's mobile phone") are the first part and remain in the same position in the Bluetooth device list; Figure 10 List of Bluetooth devices shown in
[0077] The rest of the Bluetooth devices ("Li Lei's smart watch", "EE smart air conditioner", "Han Meimei's
[0078] Computer", "Wang Xiaoming's mobile phone", "HH smart bracelet", "II headphones", "GG smart TV") are updated according to the current signal strength and arranged after the first part (after the update, they are "Li Lei's smart watch", "GG smart TV", "HH smart bracelet", "Wang Xiaoming's mobile phone", "Han Meimei's computer", "II headphones", "EE smart air conditioner").
[0079] Optionally, the method further includes:
[0080] When updating the wireless connection device list, if it is determined based on the real-time detected signal strength that the devices in the first part of the wireless connection device list cannot be connected, the unconnectable devices are updated to an invalid state in the wireless connection device list.
[0081] For example, for the generated Figure 2 After the Bluetooth device list is shown, if the Bluetooth device "Li Lei's smart watch" turns off its own Bluetooth connection function when the Bluetooth device list is updated, so that the user terminal cannot connect to the Bluetooth device, you can Figure 12 As shown, the Bluetooth device is updated to an invalid state that cannot connect, but the Bluetooth device is not removed from the Bluetooth device list, nor is the position of the Bluetooth device in the Bluetooth device list changed. This can avoid removing an invalid wireless connection device in the first area from the wireless connection device list and changing the position of other wireless connection devices in the first area in the wireless connection device list, which may cause the user to accidentally touch it.
[0082] A specific example is given below to illustrate the above implementation.
[0083] like Figure 13 As shown, the specific steps include:
[0084] S201: In response to a Bluetooth device scan instruction triggered by a user, a buffer area is requested in a memory.
[0085] S202: Scan Bluetooth devices and corresponding signal strengths and cache them in the cache area.
[0086] S203: Determine whether the time from responding to the Bluetooth device scan instruction triggered by the user is 3 seconds.
[0087] If the result of step S203 is yes, execute step S204; if the result of step S203 is no, return to step S202.
[0088] S204: Generate a Bluetooth device list based on the records in the buffer area by sorting them in descending order of signal strength.
[0089] S205: Scan Bluetooth devices and corresponding signal strengths and cache them in the cache area.
[0090] S206: Determine whether it has been 5 seconds since the last Bluetooth device list was generated or the last Bluetooth device list was updated.
[0091] If the result of step S206 is yes, execute step S207; if the result of step S206 is no, return to step S205.
[0092] S207: Determine whether the number of Bluetooth devices in the Bluetooth device list before updating is less than 10.
[0093] If the result of step S207 is yes, execute step S208; if the result of step S207 is no, execute step S209.
[0094] S208: Keep the position of the Bluetooth device in the Bluetooth device list before the update unchanged in the updated Bluetooth device list, sort the newly detected Bluetooth devices in this update in descending order of signal strength and place them after the Bluetooth devices in the Bluetooth device list before the update. Return to step S206.
[0095] S209: Determine whether the number of Bluetooth devices with signal strength greater than -75dB in the Bluetooth device list before updating is greater than 5.
[0096] If the result of step S209 is yes, execute step S210; if the result of step S209 is no, execute step S211.
[0097] S210: Keep the position of the Bluetooth device with a signal strength greater than -75dB in the Bluetooth device list before the update unchanged in the updated Bluetooth device list, sort the remaining Bluetooth devices that can be detected in this update in descending order of signal strength and place them after the Bluetooth device with a signal strength greater than -75dB in the Bluetooth device list before the update. Return to step S206.
[0098] S211: Keep the positions of the first five Bluetooth devices in the Bluetooth device list before the update unchanged in the updated Bluetooth device list, sort the remaining Bluetooth devices that can be detected in this update in descending order of signal strength, and place them after the first five Bluetooth devices in the Bluetooth device list before the update. Return to step S206.
[0099] Based on the same inventive concept, an embodiment of the present invention further provides a device for refreshing a list of wireless connection devices, such as Figure 14 Shown, including:
[0100] The detection module M1 is used to detect wireless connection devices and corresponding signal strengths in response to a wireless connection device scanning instruction triggered by a user;
[0101] A list generating module M2 is used to sort the detected wireless connection devices according to their corresponding signal strengths to generate a wireless connection device list;
[0102] a list refreshing module M3, configured to, when updating the wireless connection device list, maintain the positions of the devices in the first part of the wireless connection device list in the wireless connection device list unchanged, and update the remaining part of the wireless connection device list except the first part; the first part includes the first N wireless connection devices arranged in the wireless connection device list;
[0103] Wherein, N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list.
[0104] Optionally, if the number of wireless connection devices in the wireless connection device list before updating is less than P, the first part of the wireless connection device list includes all wireless connection devices in the wireless connection device list before updating;
[0105] Wherein, P is a preset first threshold and is a positive integer.
[0106] Optionally, if the number of wireless connection devices in the wireless connection device list before updating is greater than or equal to P, the first part of the wireless connection device list includes some of the wireless connection devices in the wireless connection device list before updating;
[0107] Wherein, P is a preset first threshold and is a positive integer.
[0108] Optionally, the list refreshing module M3 is further configured to:
[0109] If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than a preset signal strength threshold is greater than Q, then the wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold constitute the first part of the wireless connection device list;
[0110] If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold is less than or equal to Q, the first Q wireless connection devices in the wireless connection device list before the update are used to form the first part of the wireless connection device list;
[0111] Wherein, Q is a preset second threshold and Q is a positive integer.
[0112] Optionally, updating the remaining parts of the wireless connection device list except the first part includes:
[0113] The remaining wireless connection devices in the wireless connection device list except the first part are reordered according to the signal strength detected in real time.
[0114] Optionally, the wireless connection device is a Bluetooth device or a wireless local area network (WLAN) device.
[0115] Optionally, the list refreshing module M3 is further configured to:
[0116] When updating the wireless connection device list, if it is determined based on the real-time detected signal strength that the devices in the first part of the wireless connection device list cannot be connected, the unconnectable devices are updated to an invalid state in the wireless connection device list.
[0117] In the several embodiments provided herein, it should be understood that the disclosed apparatuses can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the module division is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple modules into another system, or omitting or disabling certain features. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiments. In addition, the functional modules in the various embodiments of the present application may be integrated into a single processing module, each module may exist physically separately, or two or more modules may be integrated into a single module. The integrated modules may be implemented in either hardware or software functional modules. If the integrated modules are implemented as software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium.
[0118] Since the specific working principle of the wireless connection device list refreshing apparatus is substantially the same as that of the wireless connection device list refreshing method, reference may be made to the specific implementation process of the wireless connection device list refreshing method described above, which will not be described in detail here.
[0119] Based on the same inventive concept, an embodiment of the present invention further provides a device, such as Figure 15 As shown, it includes: a processor 110 and a memory 120 for storing instructions executable by the processor 180; wherein the processor 180 is configured to execute the instructions to implement the wireless connection device list refreshing method.
[0120] Figure 15FIG. 1 shows a block diagram of the hardware configuration of the device 100 according to an exemplary embodiment. Figure 1 As shown, the electronic device 100 includes: a radio frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a WLAN module 170, a processor 180, a Bluetooth module 181, and a power supply 190 and other components.
[0121] The memory 120 can be used to store software programs and data. The processor 180 executes various functions and data processing of the electronic device 100 by running the software programs or data stored in the memory 120. The memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 120 stores an operating system that enables the electronic device 100 to run. In the present application, the memory 120 can store the operating system and various application programs, and may also store code for executing the methods described in the embodiments of the present application.
[0122] The display unit 130 may be configured to receive input digital or character information and generate signal input related to user settings and function control of the electronic device 100. Specifically, the display unit 130 may include a touch screen 131 disposed on the front of the electronic device 100, which may receive user touch operations on or near the touch screen, such as clicking a button, dragging a scroll box, etc. In some embodiments, the receiving unit corresponds to the touch screen 131 of the display unit 130.
[0123] The display unit 130 can also be used to display information input by the user or provided to the user, as well as a graphical user interface (GUI) of various menus of the electronic device 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front of the electronic device 100. The display screen 132 may be configured in the form of a liquid crystal display, a light-emitting diode, electronic ink, etc. The display unit 130 can be used to display the various graphical user interfaces described in this application.
[0124] The touch screen 131 can be covered on the display screen 132, or the touch screen 131 and the display screen 132 can be integrated to realize the input and output functions of the electronic device 100. The integrated touch screen can be simply called a touch display screen. In this application, the display unit 130 can display applications and corresponding operation steps.
[0125] Specifically, the display screen 132 may display the recognized moving object and the image captured by the camera 140 .
[0126] The processor 180 is the control center of the electronic device 100. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, the processor 180 may include one or more processing units; the processor 180 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 180. In this application, the processor 180 can run the operating system, application programs, user interface display and touch response, as well as the processing method described in the embodiments of this application. In addition, the processor 180 is coupled to the display unit 130.
[0127] Camera 140 can be used to capture still images or video. The lens generates an optical image of an object and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to processor 180 for conversion into a digital image signal.
[0128] In some embodiments, the processor 180 is connected to a camera. After the camera 140 captures an image, the processor 180 can extract a moving object from the captured image and perform moving object recognition.
[0129] The electronic device 100 may further include at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, and a temperature sensor 154. The electronic device 100 may also be equipped with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.
[0130] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 100. The audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output. The electronic device 100 can also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then outputs the audio data to the RF circuit 110 to be sent to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 can obtain the user's voice and can extract moving objects through voice control to display on the display screen.
[0131] RF circuit 110 can be used to receive and transmit signals during information transmission or calls. It can receive downlink data from the base station and pass it to processor 180 for processing; it can also send uplink data to the base station. Typically, RF circuits include but are not limited to antennas, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and other components.
[0132] Wi-Fi is a short-range wireless transmission technology. The electronic device 100 can help users send and receive emails, browse web pages, and access streaming media through the WLAN module 170, providing users with wireless broadband Internet access.
[0133] The Bluetooth module 181 is used to exchange information with other Bluetooth devices having a Bluetooth module through the Bluetooth protocol. For example, the electronic device 100 can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 181 to exchange data.
[0134] The electronic device 100 also includes a power supply 190 (e.g., a battery) that supplies power to various components. The power supply can be logically connected to the processor 180 via a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption. The electronic device 100 can also be configured with a power button for turning the electronic device on and off, as well as locking the screen.
[0135] In some embodiments, the controller 150 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 150 controls the overall operation of the display device 100. A user can enter user commands through a graphical user interface (GUI) displayed on the display 160, and the user input interface receives the user input commands through the graphical user interface (GUI). Alternatively, the user can enter user commands by inputting specific sounds or gestures, and the user input interface recognizes the sounds or gestures through sensors to receive the user input commands.
[0136] In some embodiments, a "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on the display screen of an electronic device, where a control can include at least one of a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, or widget.
[0137] Figure 16 FIG. 1 is a schematic diagram of software configuration in the display device 100 according to one or more embodiments of the present application. Figure 16 As shown in Figure 1, the system is divided into four layers: from top to bottom, the Applications layer (referred to as the "Application layer"), the Application Framework layer (referred to as the "Framework layer"), the Android runtime and system library layer (referred to as the "System Runtime Library layer"), and the Kernel layer. The Kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, Wi-Fi driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver.
[0138] Based on the same inventive concept, an embodiment of the present invention further provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is used to implement the wireless connection device list refreshing method.
[0139] The wireless connection device list refreshing method, apparatus, device, and readable storage medium provided by the embodiments of the present invention fix the position of the wireless connection device located at the front of the wireless connection device list when the wireless connection device list is generated, thereby ensuring that the position of the wireless connection device selected by the user with a high probability in the wireless connection device list does not change. This can avoid the situation where the wireless connection device finally selected by the user is inconsistent with the wireless connection device expected to be selected due to the update of the wireless connection list when the user selects the wireless connection device in the first part, thereby improving the user experience.
[0140] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0144] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for refreshing a wireless connection device list, characterized in that: include: In response to a wireless connection device scan instruction triggered by a user, detecting wireless connection devices and corresponding signal strengths; After waiting for a first preset time, sorting the detected wireless connection devices according to their corresponding signal strengths to generate a wireless connection device list, wherein the wireless connection devices with equal signal strengths are sorted in alphabetical or phonetic order of the wireless connection device names; When updating the wireless connection device list, the positions of the devices in the first part of the wireless connection device list in the wireless connection device list are maintained unchanged, and the wireless connection devices in the remaining part of the wireless connection device list except the first part are reordered according to the real-time detected signal strength; the first part includes the first N wireless connection devices arranged in the wireless connection device list; wherein N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list; Wherein, if the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices with signal strength greater than a preset signal strength threshold in the wireless connection device list before the update is greater than Q, then the wireless connection devices with signal strength greater than the preset signal strength threshold in the wireless connection device list before the update constitute the first part of the wireless connection device list; If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold is less than or equal to Q, the first Q wireless connection devices in the wireless connection device list before the update are used to form the first part of the wireless connection device list; Wherein, P is a preset first threshold value and is a positive integer, and Q is a preset second threshold value and is a positive integer.
2. The method according to claim 1, wherein If the number of wireless connection devices in the wireless connection device list before updating is less than P, the first part of the wireless connection device list includes all the wireless connection devices in the wireless connection device list before updating.
3. The method according to claim 1, wherein If the number of wireless connection devices in the wireless connection device list before updating is greater than or equal to P, the first part of the wireless connection device list includes some of the wireless connection devices in the wireless connection device list before updating.
4. The method according to claim 1, wherein The wireless connection device is a Bluetooth device or a wireless local area network (WLAN) device.
5. The method according to claim 1, wherein The method further comprises: When updating the wireless connection device list, if it is determined based on the real-time detected signal strength that the devices in the first part of the wireless connection device list cannot be connected, the unconnectable devices are updated to an invalid state in the wireless connection device list.
6. A device for refreshing a list of wireless connection devices, characterized in that: include: a detection module, configured to detect wireless connection devices and corresponding signal strengths in response to a wireless connection device scanning instruction triggered by a user; a list generating module, configured to, after waiting for a first preset time, sort the detected wireless connection devices according to their corresponding signal strengths to generate a list of wireless connection devices, wherein the wireless connection devices with equal signal strengths are sorted in alphabetical or phonetic order of the wireless connection device names; a list refreshing module, configured to, when updating the wireless connection device list, maintain the positions of the devices in the first portion of the wireless connection device list unchanged in the wireless connection device list, and reorder the remaining wireless connection devices in the wireless connection device list except the first portion according to real-time detected signal strengths; the first portion includes the first N wireless connection devices arranged in the wireless connection device list; wherein N is greater than or equal to 1 and less than or equal to the number of wireless connection devices included in the wireless connection device list; The list refresh module is specifically used to: If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than a preset signal strength threshold is greater than Q, then the wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold constitute the first part of the wireless connection device list; If the number of wireless connection devices in the wireless connection device list before the update is greater than or equal to P, and the number of wireless connection devices in the wireless connection device list before the update whose signal strength is greater than the preset signal strength threshold is less than or equal to Q, the first Q wireless connection devices in the wireless connection device list before the update are used to form the first part of the wireless connection device list; Wherein, P is a preset first threshold value and is a positive integer, and Q is a preset second threshold value and is a positive integer.
7. A device, characterized in that include: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for refreshing the wireless connection device list according to any one of claims 1 to 5.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and the computer program is used to implement the method for refreshing a wireless connection device list according to any one of claims 1 to 5.
Citation Information
Patent Citations
Network list refreshing display method and display equipment
CN111459372A