CN108696914B - Method and device for scanning intelligent equipment and storage medium - Google Patents

Method and device for scanning intelligent equipment and storage medium Download PDF

Info

Publication number
CN108696914B
CN108696914B CN201810525562.6A CN201810525562A CN108696914B CN 108696914 B CN108696914 B CN 108696914B CN 201810525562 A CN201810525562 A CN 201810525562A CN 108696914 B CN108696914 B CN 108696914B
Authority
CN
China
Prior art keywords
blacklist
network
scanning
wireless network
connectable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810525562.6A
Other languages
Chinese (zh)
Other versions
CN108696914A (en
Inventor
范林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810525562.6A priority Critical patent/CN108696914B/en
Publication of CN108696914A publication Critical patent/CN108696914A/en
Application granted granted Critical
Publication of CN108696914B publication Critical patent/CN108696914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a method and a device for scanning intelligent equipment and a storage medium, and belongs to the technical field of intelligent equipment. The method is applied to the terminal and comprises the following steps: determining scene information of a current scene; when the scene information is located in a scanning blacklist, stopping broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal so as to stop scanning connectable intelligent equipment; wherein the scan blacklist is used for storing scene information of a scene in which scanning of connectable smart devices is stopped. The utility model provides a scan blacklist to when the scene information of present scene is located the scan blacklist, stop scanning the connectable smart machine, thereby can realize ignoring the scanning to a plurality of smart machines under specific scene, convenient and fast more.

Description

Method and device for scanning intelligent equipment and storage medium
Technical Field
The present disclosure relates to the field of smart device technologies, and in particular, to a method and an apparatus for scanning a smart device, and a storage medium.
Background
At present, along with the gradual popularization of wireless networks, more and more intelligent device manufacturers select the wireless networks as the mode of connecting the intelligent devices with the networks when manufacturing the intelligent devices, that is, the intelligent devices support the wireless network function. In order to realize the control of the terminal on the intelligent device, the intelligent device supporting the wireless network function can broadcast the data packet by taking the intelligent device as a wireless hotspot so as to scan by the terminal. When a terminal scans certain intelligent equipment and detects the connection operation aiming at the intelligent equipment, the intelligent equipment can be connected, and then the intelligent equipment is controlled through the terminal.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for scanning a smart device.
According to a first aspect of the embodiments of the present disclosure, a method for scanning a smart device is provided, which is applied in a terminal, and the method includes:
determining scene information of a current scene;
when the scene information is located in a scanning blacklist, stopping broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal so as to stop scanning connectable intelligent equipment;
wherein the scan blacklist is used for storing scene information of a scene in which scanning of connectable smart devices is stopped.
Optionally, the determining the scene information of the current scene includes:
determining the position information of the current position;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
Optionally, the determining the scene information of the current scene includes:
determining a network identifier of a currently accessed wireless network;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
Optionally, the method further comprises:
displaying a network blacklist management interface, wherein the network blacklist management interface comprises network identifications of currently accessed wireless networks and network identifications of a plurality of currently connectable wireless networks;
when detecting a blacklist joining operation for a first target wireless network, adding a network identifier of the first target wireless network to the scan blacklist, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
Optionally, the network blacklist management interface further includes a network identifier of a wireless network that is saved but not currently connectable.
Optionally, the method further comprises:
when the operation of scanning blacklist display is detected, displaying the network identification of each wireless network in the scanning blacklist;
when detecting a blacklist removal operation for a second target wireless network, removing a network identifier of the second target wireless network from the scanning blacklist, wherein the second target wireless network is any wireless network in the scanning blacklist.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for scanning a smart device, which is applied in a terminal, the apparatus including:
the determining module is used for determining scene information of a current scene;
the stopping module is used for stopping broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal when the scene information is located in a scanning blacklist so as to stop scanning connectable intelligent equipment;
wherein the scan blacklist is used for storing scene information of a scene in which scanning of connectable smart devices is stopped.
Optionally, the determining module includes:
the first determining submodule is used for determining the position information of the current position;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
Optionally, the determining module includes:
the second determining submodule is used for determining the network identification of the currently accessed wireless network;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
Optionally, the apparatus further comprises:
the system comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a network blacklist management interface, and the network blacklist management interface comprises network identifiers of currently accessed wireless networks and network identifiers of a plurality of currently connectable wireless networks;
and the adding module is used for adding the network identifier of the first target wireless network to the scan blacklist when the blacklist adding operation aiming at the first target wireless network is detected, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
Optionally, the network blacklist management interface further includes a network identifier of a wireless network that is saved but not currently connectable.
Optionally, the apparatus further comprises:
the second display module is used for displaying the network identifiers of all the wireless networks in the scanning blacklist when the scanning blacklist display operation is detected;
a removing module, configured to remove a network identifier of a second target wireless network from the scan blacklist when a blacklist removal operation for the second target wireless network is detected, where the second target wireless network is any wireless network in the scan blacklist.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for scanning a smart device, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of the first aspect described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of any one of the methods of the first aspect described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of any of the methods of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method and the device for scanning the intelligent device determine whether the scene information of the current scene is located in a scanning blacklist or not by determining the scene information of the current scene, namely determine whether the user wants to scan the intelligent device in the current scene or not. Then, when the scene information is in the scan blacklist, that is, the user does not want to link the smart device in the current scene, the broadcasting of the scan frame carrying the specified product identifier through the system wireless network module of the terminal may be stopped to stop scanning the connectable smart devices. By providing the scanning blacklist, the scanning of the connectable intelligent equipment is flexibly managed for the user, so that the scanning of the connectable intelligent equipment is stopped when the scene information of the current scene is located in the scanning blacklist, the problem that the user is unwilling to receive the prompt message of scanning the connectable intelligent equipment in certain specific scenes is solved, the scanning of a plurality of intelligent equipment can be ignored, and the method is more convenient and faster.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
Fig. 1 is a flowchart illustrating a method for scanning a smart device according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating another method for scanning a smart device according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a wireless network setup interface according to an embodiment of the disclosure.
Fig. 4 is a schematic diagram of a network blacklist management interface according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram illustrating a scan blacklist interface according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of another apparatus for scanning a smart device according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of another apparatus for scanning a smart device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
For ease of understanding, before explaining the embodiments of the present disclosure in detail, reference will be made to the application scenarios related to the embodiments of the present disclosure.
Along with the development of the intelligent device industry, the intelligent device gradually integrates into the life of people, people can use through the terminal control intelligent device, and the intelligent device is scanned and is controlled the first step through connecting intelligent device. In practical application, a user may not want to connect a smart device in some scenarios for some reasons, and batch omission of scanning for connectable smart devices can be achieved by the method for scanning smart devices provided by the present disclosure.
For example, when a user is in a company with more smart devices, and does not want to connect multiple smart devices of the company, ignoring the scanning of the smart devices can be achieved by the method of scanning smart devices provided by the present disclosure.
For example, if a user does not want his/her terminal to connect to a wireless network in a public place, the method for scanning smart devices provided by the present disclosure can be used to stop scanning accessible smart devices around.
Of course, the embodiment of the present disclosure may be applied to not only the two application scenarios, but also other application scenarios in practical application.
Fig. 1 is a flowchart illustrating a method for scanning a smart device according to an embodiment of the present disclosure. The method is applied to a terminal, and comprises the following steps as shown in figure 1.
In step 101, scene information of a current scene is determined.
In step 102, when the scene information is in the scan blacklist, stopping broadcasting a scan frame carrying a specified product identifier through a system wireless network module of the terminal to stop scanning connectable intelligent devices; wherein the scan blacklist is used for storing scene information of a scene in which scanning of connectable smart devices is stopped.
In summary, the embodiment of the present disclosure determines, by determining the scene information of the current scene, whether the scene information of the current scene is located in the scan blacklist, that is, whether the user wishes to scan the smart device in the current scene. Then, when the scene information is in the scan blacklist, that is, the user does not want to link the smart device in the current scene, the broadcasting of the scan frame carrying the specified product identifier through the system wireless network module of the terminal may be stopped to stop scanning the connectable smart devices. By providing the scanning blacklist, the scanning of the connectable intelligent equipment is flexibly managed for the user, so that the scanning of the connectable intelligent equipment is stopped when the scene information of the current scene is located in the scanning blacklist, the problem that the user is unwilling to receive the prompt message of scanning the connectable intelligent equipment in certain specific scenes is solved, the scanning of a plurality of intelligent equipment can be ignored, and the method is more convenient and faster.
Optionally, determining the scene information of the current scene includes:
determining the position information of the current position;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
Optionally, determining the scene information of the current scene includes:
determining a network identifier of a currently accessed wireless network;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
Optionally, the method further comprises:
displaying a network blacklist management interface, wherein the network blacklist management interface comprises network identifications of currently accessed wireless networks and network identifications of a plurality of currently connectable wireless networks;
and when detecting that the blacklist adding operation aiming at the first target wireless network is carried out, adding the network identification of the first target wireless network to the scanning blacklist, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
Optionally, the network blacklist management interface further includes a network identifier of a wireless network that is saved but not currently connectable.
Optionally, the method further comprises:
when the operation of scanning the blacklist is detected, displaying the network identification of each wireless network in the scanning blacklist;
and when detecting the operation of removing the blacklist aiming at the second target wireless network, removing the network identification of the second target wireless network from the scanning blacklist, wherein the second target wireless network is any wireless network in the scanning blacklist.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 2 is a flowchart illustrating a method for scanning a smart device, which is applied to a terminal according to an embodiment of the present disclosure, and the embodiment illustrated in fig. 1 will be described in the following. As shown in fig. 2, the method includes the following steps.
In the embodiment of the present disclosure, the intelligent device includes a wireless network module, supports a wireless network function, and may broadcast a data packet carrying a product identifier after the intelligent device is plugged for the first time or is restored to factory settings, where the duration of broadcasting the data packet by the intelligent device is preset. The system wireless network module of the terminal can be used as a discovering party to scan the intelligent equipment by broadcasting the scanning frame carrying the specified product identifier.
The product identifier is used to indicate the identity of the smart device, and the product identifier may be preset, and may be a character string, or may be other identifiers, for example, an SSID (Service set identifier) with a specific prefix. The embodiments of the present disclosure are not limited thereto.
It should be noted that, before the system wireless network module of the terminal scans the smart device by broadcasting the scanning frame carrying the specified product identifier, step 201 may be executed to determine the scene information of the current scene, and then determine whether to perform scanning according to the current scene.
In step 201, scene information of a current scene is determined.
It should be noted that the current scene of the terminal refers to the current location of the terminal or the current wireless network accessed. In practical cases, the scene information for determining the current scene can be determined in the following two possible implementation manners.
A first possible implementation: and determining the position information of the current position.
The location information refers to location information of a current location of the terminal. Because the terminal is internally provided with a Global Positioning System (GPS) module, the terminal can acquire the current position, such as longitude and latitude, through the GPS module, and then can determine the position information corresponding to the current position according to the map information stored in the terminal. Of course, the terminal may also send the current location to the server to obtain the corresponding location information from the server, which is not limited in this embodiment of the disclosure.
A second possible implementation: a network identification of a currently accessed wireless network is determined.
It should be noted that, before the terminal determines the network identifier of the currently accessed wireless network, the terminal needs to successfully access the wireless network first. In fact, a user can select the wireless network and input the password of the wireless network on a wireless network connection interface of the terminal, then the connection operation is triggered, the terminal is connected with the wireless network according to the password input by the user, and when the password of the wireless network input by the user is correct, the terminal can be successfully accessed into the wireless network, otherwise, the terminal fails to be connected. Then, when the terminal successfully accesses the wireless network, the terminal acquires the network identifier of the wireless network again, thereby ensuring the correctness of the acquired network identifier.
In step 202, when the scene information is in the scan blacklist, broadcasting of a scan frame carrying a specified product identifier through a system wireless network module of the terminal is stopped to stop scanning connectable smart devices.
It should be noted that the scan blacklist is used to store scene information of a scene in which scanning of connectable smart devices is stopped. When the step 201 determines the scene information of the scene currently located in the first possible implementation manner, the scan blacklist is used to store the location information of the locations where the scanning of the connectable smart devices is stopped.
In the embodiment of the disclosure, when the system wireless network module of the terminal is in the on state, the scanning frame carrying the specified product identifier can be always broadcasted in the background so as to scan the connectable peripheral intelligent devices. It is contemplated that a user may not wish to connect smart devices in certain locations, such as public locations with many smart devices, such as companies, coffee shops, hotels, etc. Accordingly, location information of a specific place where the user does not wish to connect to the smart device can be set in the scan blacklist. When the position information in the scanning blacklist includes the position information of the current terminal, the system wireless network module can be triggered to stop broadcasting the scanning frame carrying the specified product identifier so as to stop scanning the connectable intelligent devices around the terminal, thereby realizing batch neglect scanning of a plurality of intelligent devices and avoiding excessive disturbance to users when the users do not want to receive the prompt message of scanning the connectable intelligent devices in certain specific scenes.
When the step 201 determines the scene information of the scene currently located in the second possible implementation manner, the scan blacklist is used to store the network identifier of the wireless network where the scan of the connectable smart device is stopped.
It should be noted that, when the system wireless network module of the terminal is in the on state, the scanning frame carrying the specified product identifier may be always broadcast in the background to scan the connectable smart devices in the periphery. Considering that a user may consider that when the terminal accesses a wireless network other than a wireless network trusted by the user, if a potential safety hazard may occur when the intelligent device is connected, the user does not want to connect the intelligent device at the moment.
Then, the network identifier of the wireless network of the intelligent device which stops scanning for connection may be set in the scan blacklist in advance, so that when the network identifier of the wireless network in the scan blacklist includes the wireless network which the terminal currently accesses, the system wireless network module of the terminal can stop scanning for the intelligent devices which can be connected around the terminal. Only when the terminal accesses the wireless network considered safe by the user, the system wireless network module of the terminal scans the connectable intelligent equipment to meet the requirements of the user. By providing the scanning blacklist, conditionally stopping or starting scanning of the connectable intelligent equipment around the terminal is realized on the basis that the system wireless network module of the terminal is not influenced to scan the wireless network, flexible management is provided for a user to scan the connectable intelligent equipment, and the problem that the user is unwilling to receive a prompt message for scanning the connectable intelligent equipment in certain specific scenes is solved.
Further, when the scene information of the current scene is not located in the scan blacklist, the system wireless network module of the terminal may be used as a discovering party to scan the intelligent device by broadcasting a scan frame carrying a specified product identifier, and then when a data packet broadcasted by at least one intelligent device is scanned, the intelligent device having the same product identifier as the specified product identifier in the broadcasted data packet is selected from the at least one intelligent device according to the specified product identifier; and determining the selected intelligent device as a target intelligent device.
And then, the terminal can acquire the device identifier of the target intelligent device, acquire the description information of the target intelligent device from the description information of each intelligent device pre-stored in the terminal according to the device identifier of the target intelligent device, and display the description information of the target intelligent device in a system prompt window to inform a user that the target intelligent device is a connectable intelligent device, so that the user is actively prompted whether to connect the target intelligent device. When the triggering operation of the user on the connection option of the system prompt window is detected, the connection with the target intelligent device can be established.
Next, the terminal may send the network identifier and the password of the currently accessed wireless network to the target intelligent device, and the target intelligent device may access the wireless network according to the network identifier and the password of the wireless network. After the target intelligent device is successfully accessed to the wireless network, the user can control the intelligent device through the intelligent home application in the terminal and the intelligent home server. For example, a user may enter an intelligent home application of a terminal to trigger a control instruction for a target intelligent device, when the terminal detects the control instruction, the control instruction is sent to an intelligent home server, and then the intelligent home server sends the control instruction to the target intelligent device, so that the target intelligent device may execute a corresponding action according to the control instruction, such as starting work. Of course, in practical applications, the user may perform other controls on the target smart device according to actual conditions, such as stopping working, which is not limited in the embodiment of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, a specified product identifier may be preset in a system wireless network module of a terminal, so that when the system wireless network module is in an on state, a scanning frame carrying the specified product identifier may be broadcasted, where the specified product identifier is used to filter scanned intelligent devices to determine a target intelligent device. Only the intelligent device carrying the same product identifier as the specified product identifier in the broadcasted data packet can be used as the target intelligent device.
Moreover, the data packet can carry the device identifier of the intelligent device, and when the device identifier of the target intelligent device is obtained, the device identifier of the target intelligent device can be obtained from the data packet broadcasted by the target intelligent device. Of course, the embodiments of the present disclosure may be obtained in other ways.
It should be noted that the scan blacklist may be set by the user, and the user may add any wireless network to the scan blacklist and store the wireless network in the scan blacklist, so that when step 202 is executed, whether to stop scanning connectable smart devices may be determined according to the network identifier of the currently accessed wireless network and the scan blacklist. The user may add any wireless network to the network blacklist before the above steps 201 to 202, and certainly, the user may also add a network identifier of any wireless network to the scan blacklist after the above steps 201 to 202, which is not limited in this embodiment of the present disclosure.
In one possible embodiment, adding a blacklist for any wireless network may be implemented as follows, steps 203-204.
In step 203, a network blacklist management interface is displayed, wherein the network blacklist management interface comprises network identifications of currently accessed wireless networks and network identifications of a plurality of currently connectable wireless networks.
It should be noted that, the user may set the scan blacklist, and when the user wishes to manage the scan blacklist, the user may first enter the wireless network setting interface of the terminal. As shown in fig. 3, the wireless network setup interface includes a network blacklist management interface and other related information. The user can open the network blacklist management interface through triggering operation at the terminal, and the terminal can display the network blacklist management interface when detecting clicking operation aiming at the network blacklist management interface.
As shown in fig. 4, the network blacklist management interface may display a network identification "Office-5G" of a currently accessed wireless network, and a plurality of wireless networks "1238 dh", "3589 fjk", "00000000", "khoi 000", etc. that are currently connectable. The text "connected" may be displayed under "Office-5G" to indicate that "Office-5G" is the currently accessed wireless network. Of course, "Office-5G" may be directly displayed on the first row without displaying the "connected" text to indicate that "Office-5G" is the currently accessed wireless network, or other text may be displayed, which is not limited to the embodiment of the present disclosure.
In addition, a text of "nearby wireless networks" may be displayed on the network blacklist management interface, and network identifiers of a plurality of currently connectable wireless networks may be displayed below the text, so as to more clearly distinguish the network identifier of the accessed wireless network from the network identifiers of the plurality of currently connectable wireless networks, facilitate the user to view, and perform subsequent operations. Of course, in practical application, the network identifiers of the plurality of currently connectable wireless networks may be displayed in other manners, such as the text of "nearby wireless networks" may not be displayed, or other texts, such as "connectable wireless networks" may be displayed below the "connectable wireless networks". The embodiments of the present disclosure are not limited thereto.
The network blacklist management interface also comprises network identifications of the wireless networks which are stored but not connected currently. For example, as shown in fig. 4, the network blacklist management interface may further display a network identifier "fandashi", "dfdodh", and the like of a wireless network that is not currently connectable. The text "stored" may be displayed below the network identifiers "fandashi" and "dfdoddh" of the wireless networks that are already stored but are not currently connectable, so as to indicate that "fandashi" and "dfdoddh" are the network identifiers of the wireless networks that are already stored but are not currently connectable, but of course, other text may be displayed at other positions, such as displaying the text "stored wireless network" first, and displaying the network identifier of the wireless network that is already stored but is not currently connectable below the "stored wireless network". The embodiments of the present disclosure are not limited thereto.
It should be noted that the stored but currently unconnected wireless network refers to a wireless network that the terminal has successfully connected to any wireless network, but the terminal cannot successfully connect to due to a problem of the wireless network or the terminal is not within its connection range. In practical application, when the terminal is successfully connected with any wireless network, the connection information of the wireless network can be stored, the network identifier of the wireless network is displayed in a network blacklist management interface, and when the wireless network is in a connectable state and the terminal does not access the wireless network currently, the terminal can automatically connect according to the stored connection information of the wireless network. The connection information of the wireless network may include a network identifier, a network password, and the like.
In addition, when a plurality of wireless networks stored in the terminal are all in a connectable state and the terminal does not access the wireless networks currently, one wireless network with the best current network condition can be automatically selected for connection according to information such as network bandwidth and signal strength of the plurality of wireless networks. And the network identifications of other stored wireless networks are displayed under the 'nearby wireless networks' in the network blacklist management interface, and of course, the network identifications can also be displayed in other modes. The embodiments of the present disclosure are not limited thereto.
In step 204, when detecting a blacklist join operation for a first target wireless network, adding a network identifier of the first target wireless network to the scan blacklist, where the first target wireless network is any wireless network displayed in the network blacklist management interface.
It should be noted that, the user may set any wireless network in the network blacklist management interface. As shown in fig. 4, when the user triggers the "add blacklist" option of the first target wireless network "1238 dh" in the network blacklist management interface, the terminal may detect a blacklist add operation for the first target wireless network, and at this time, the terminal adds the network identifier of the first target wireless network to the scan blacklist.
Further, when the operation of displaying the scanning blacklist is detected, the network identification of each wireless network in the scanning blacklist is displayed; and when detecting the operation of removing the blacklist aiming at the second target wireless network, removing the network identification of the second target wireless network from the scanning blacklist, wherein the second target wireless network is any wireless network in the scanning blacklist.
The second target wireless network may be a wireless network currently accessed by the terminal, a network identifier of a currently connectable wireless network, or a network identifier of a wireless network that is saved by the terminal but is not currently connectable. The embodiments of the present disclosure are not limited thereto.
In addition, it is contemplated that a user may be able to scan for smart devices connectable around the terminal when a second target wireless network is accessed by the terminal, with the network identification of the second target wireless network being located within the scan blacklist. Then at this point the user may change the settings for the currently accessed wireless network in scanning the blacklist.
In actual implementation, the user may click on the scan blacklist in the network blacklist management interface to enter the scan blacklist interface, as shown in fig. 5. Assume that a user wishes to scan for smart devices that are connectable around a terminal when the terminal accesses a wireless network identified by the network as "sdjlj". Then, at this time, the user needs to find the wireless network with the network identifier "sdjlj" in the scan blacklist interface, and then selects the "remove blacklist" option on the right side of the network identifier "sdjlj", at this time, the terminal may detect the blacklist removal operation for the wireless network with the network identifier "sdjlj", and then remove the network identifier "sdjlj" from the scan blacklist.
It should be noted that the operation of removing the blacklist for the second target wireless network may be performed before the above step 201 to step 202, and of course, the network identifier of any wireless network stored in the scanned blacklist may also be removed after the above step 201 to step 202, which is not limited in the embodiment of the present disclosure.
In summary, the embodiment of the present disclosure determines, by determining the scene information of the current scene, whether the scene information of the current scene is located in the scan blacklist, that is, whether the user wishes to scan the smart device in the current scene. Then, when the scene information is in the scanning blacklist, that is, when the user does not want to link the intelligent device in the current scene, the broadcasting of the scanning frame carrying the specified product identifier through the system wireless network module of the terminal can be stopped to stop scanning the connectable intelligent device, so that the scanning of a plurality of intelligent devices can be omitted, and the operation is more convenient and faster. By providing the scanning blacklist, conditionally stopping or starting scanning of the connectable intelligent equipment around the terminal is realized on the basis that the system wireless network module of the terminal is not influenced to scan the wireless network, flexible management is provided for a user to scan the connectable intelligent equipment, and the problem that the user is unwilling to receive a prompt message for scanning the connectable intelligent equipment in certain specific scenes is solved.
Fig. 6 is a schematic structural diagram of an apparatus for scanning a smart device according to an embodiment of the present disclosure. The apparatus is applied to a terminal, and referring to fig. 6, the apparatus includes a determining module 601 and a stopping module 602.
A determining module 601, configured to determine scene information of a current scene;
a stopping module 602, configured to stop broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal to stop scanning connectable smart devices when the scene information is in the scanning blacklist;
wherein the scan blacklist is used for storing scene information of a scene in which scanning of connectable smart devices is stopped.
Optionally, the determining module 601 includes:
the first determining submodule is used for determining the position information of the current position;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
Optionally, the determining module 601 includes:
the second determining submodule is used for determining the network identification of the currently accessed wireless network;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
Optionally, the apparatus further comprises:
the first display module is used for displaying a network blacklist management interface, and the network blacklist management interface comprises network identifiers of currently accessed wireless networks and network identifiers of a plurality of currently connectable wireless networks;
and the adding module is used for adding the network identifier of the first target wireless network to the scanning blacklist when the blacklist adding operation aiming at the first target wireless network is detected, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
Optionally, the network blacklist management interface further includes a network identifier of a wireless network that is saved but not currently connectable.
Optionally, the apparatus further comprises:
the second display module is used for displaying the network identifications of all wireless networks in the scanning blacklist when the scanning blacklist display operation is detected;
and the removing module is used for removing the network identifier of the second target wireless network from the scanning blacklist when detecting the blacklist removing operation aiming at the second target wireless network, wherein the second target wireless network is any wireless network in the scanning blacklist.
In summary, the embodiment of the present disclosure determines, by determining the scene information of the current scene, whether the scene information of the current scene is located in the scan blacklist, that is, whether the user wishes to scan the smart device in the current scene. Then, when the scene information is in the scan blacklist, that is, the user does not want to link the smart device in the current scene, the broadcasting of the scan frame carrying the specified product identifier through the system wireless network module of the terminal may be stopped to stop scanning the connectable smart devices. By providing the scanning blacklist, the scanning of the connectable intelligent equipment is flexibly managed for the user, so that the scanning of the connectable intelligent equipment is stopped when the scene information of the current scene is located in the scanning blacklist, the problem that the user is unwilling to receive the prompt message of scanning the connectable intelligent equipment in certain specific scenes is solved, the scanning of a plurality of intelligent equipment can be ignored, and the method is more convenient and faster.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a schematic structural diagram of an apparatus for scanning a smart device according to an embodiment of the present disclosure. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, the apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, the sensor assembly 714 may detect an open/closed state of the device 700, the relative positioning of components, such as a display and keypad of the device 700, the sensor assembly 714 may also detect a change in position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration/deceleration of the device 700, and a change in temperature of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods provided by the embodiments shown in fig. 1 or fig. 2 and described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the apparatus 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a computer, enable the computer to perform the method of scanning smart devices of fig. 1 or fig. 2 described above.
A computer program product comprising instructions which, when executed by a processor of a computer, enable the computer to perform the method of scanning smart devices of fig. 1 or 2 as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method for scanning intelligent equipment is applied to a terminal, and the method comprises the following steps:
determining scene information of a current scene;
when the scene information is located in a scanning blacklist, stopping broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal so as to stop scanning connectable intelligent equipment;
the scanning blacklist is used for storing scene information of scenes of connectable intelligent devices;
the determining the scene information of the current scene includes:
if the position information of the current position is determined;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
2. The method of claim 1, wherein the determining the scene information of the current scene further comprises:
if the network identification of the currently accessed wireless network is determined;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
3. The method of claim 2, wherein the method further comprises:
displaying a network blacklist management interface, wherein the network blacklist management interface comprises network identifications of currently accessed wireless networks and network identifications of a plurality of currently connectable wireless networks;
when detecting a blacklist joining operation for a first target wireless network, adding a network identifier of the first target wireless network to the scan blacklist, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
4. The method of claim 3, wherein the network blacklist management interface further includes a network identification of a wireless network that is saved but not currently connectable.
5. The method of claim 2, wherein the method further comprises:
when the operation of scanning blacklist display is detected, displaying the network identification of each wireless network in the scanning blacklist;
when detecting a blacklist removal operation for a second target wireless network, removing a network identifier of the second target wireless network from the scanning blacklist, wherein the second target wireless network is any wireless network in the scanning blacklist.
6. An apparatus for scanning a smart device, applied to a terminal, the apparatus comprising:
the determining module is used for determining scene information of a current scene;
the stopping module is used for stopping broadcasting a scanning frame carrying a specified product identifier through a system wireless network module of the terminal when the scene information is located in a scanning blacklist so as to stop scanning connectable intelligent equipment;
the scanning blacklist is used for storing scene information of scenes of connectable intelligent devices;
the determining module comprises:
the first determining submodule is used for determining the position information of the current position;
accordingly, the scan blacklist is used to store location information for stopping scanning locations of connectable smart devices.
7. The apparatus of claim 6, wherein the determining module comprises:
the second determining submodule is used for determining the network identification of the currently accessed wireless network;
accordingly, the scan blacklist is used to store network identifications of wireless networks that cease to scan for connectable smart devices.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the system comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a network blacklist management interface, and the network blacklist management interface comprises network identifiers of currently accessed wireless networks and network identifiers of a plurality of currently connectable wireless networks;
and the adding module is used for adding the network identifier of the first target wireless network to the scan blacklist when the blacklist adding operation aiming at the first target wireless network is detected, wherein the first target wireless network is any wireless network displayed in the network blacklist management interface.
9. The apparatus of claim 8, wherein the network blacklist management interface further comprises a network identification of a wireless network that is saved but not currently connectable.
10. The apparatus of claim 7, wherein the apparatus further comprises:
the second display module is used for displaying the network identifiers of all the wireless networks in the scanning blacklist when the scanning blacklist display operation is detected;
a removing module, configured to remove a network identifier of a second target wireless network from the scan blacklist when a blacklist removal operation for the second target wireless network is detected, where the second target wireless network is any wireless network in the scan blacklist.
11. An apparatus for scanning a smart device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any one of the methods of claims 1-5.
12. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-5.
CN201810525562.6A 2018-05-28 2018-05-28 Method and device for scanning intelligent equipment and storage medium Active CN108696914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810525562.6A CN108696914B (en) 2018-05-28 2018-05-28 Method and device for scanning intelligent equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810525562.6A CN108696914B (en) 2018-05-28 2018-05-28 Method and device for scanning intelligent equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108696914A CN108696914A (en) 2018-10-23
CN108696914B true CN108696914B (en) 2020-06-02

Family

ID=63846956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810525562.6A Active CN108696914B (en) 2018-05-28 2018-05-28 Method and device for scanning intelligent equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108696914B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418396A (en) * 2019-07-12 2019-11-05 宇龙计算机通信科技(深圳)有限公司 Control method, device, terminal and the storage medium of WIFI network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487822A (en) * 2015-12-03 2016-04-13 海信集团有限公司 Scanning control method and intelligent equipment
CN105636050A (en) * 2015-08-28 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Method and system for preventing wrong connection with WIFI network
CN105830503A (en) * 2013-12-20 2016-08-03 三星电子株式会社 Connection method for smart home device and apparatus thereof
CN106060898A (en) * 2016-07-19 2016-10-26 珠海市魅族科技有限公司 WIFI connection control method and terminal
CN106447877A (en) * 2016-11-29 2017-02-22 北京小米移动软件有限公司 Starting method and device of intelligent equipment and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105830503A (en) * 2013-12-20 2016-08-03 三星电子株式会社 Connection method for smart home device and apparatus thereof
CN105636050A (en) * 2015-08-28 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Method and system for preventing wrong connection with WIFI network
CN105487822A (en) * 2015-12-03 2016-04-13 海信集团有限公司 Scanning control method and intelligent equipment
CN106060898A (en) * 2016-07-19 2016-10-26 珠海市魅族科技有限公司 WIFI connection control method and terminal
CN106447877A (en) * 2016-11-29 2017-02-22 北京小米移动软件有限公司 Starting method and device of intelligent equipment and server

Also Published As

Publication number Publication date
CN108696914A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
EP3171620B1 (en) Method and apparatus for establishing connection to data service
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
EP3125615B1 (en) Method, apparatus and system for a smart device to access a router
CN105578569A (en) Network adjustment method and device
CN106714244B (en) Wireless access method and device of terminal and terminal
US11647425B2 (en) Methods and devices for reducing temperature for user equipment
CN104683248A (en) Method and device for switching working mode
CN107846730B (en) Call forwarding method and device
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
US11832120B2 (en) Information recording method and information recording apparatus
CN107911831B (en) Method, device, equipment and storage medium for reminding user to replace router
CN108702689B (en) Cell access method, device and storage medium
CN106535166B (en) Data service processing method and device
CN109040651B (en) Video communication method and device
CN109041145B (en) Communication method, communication device, terminal and storage medium
CN106792570B (en) Positioning method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN106506808B (en) Method and device for prompting communication message
CN110710237B (en) Method and device for determining support information
CN104780256A (en) Address book management method and device and intelligent terminal
CN108696914B (en) Method and device for scanning intelligent equipment and storage medium
US20170041377A1 (en) File transmission method and apparatus, and storage medium
CN107105005B (en) Method and device for synchronizing data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant