CN110572861B - Information processing method, information processing device, storage medium and server - Google Patents
Information processing method, information processing device, storage medium and server Download PDFInfo
- Publication number
- CN110572861B CN110572861B CN201810569658.2A CN201810569658A CN110572861B CN 110572861 B CN110572861 B CN 110572861B CN 201810569658 A CN201810569658 A CN 201810569658A CN 110572861 B CN110572861 B CN 110572861B
- Authority
- CN
- China
- Prior art keywords
- wireless hotspot
- wireless
- list
- information
- memory space
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Abstract
The invention discloses an information processing method, which comprises the following steps: acquiring information of a wireless hotspot; when the acquired wireless hotspot is determined not to belong to the wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value or not after the acquired information of the wireless hotspot is added into the wireless hotspot list; after the acquired information of the wireless hot spot is determined to be added into the wireless hot spot list, when the memory space occupied by the wireless hot spot list does not exceed a space threshold, the acquired information of the wireless hot spot is added into the wireless hot spot list; after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list. The invention also discloses an information processing device, a storage medium and a server.
Description
Technical Field
The present invention relates to wireless communication technologies, and in particular, to an information processing method, an information processing apparatus, a computer-readable storage medium, and a server.
Background
The WIreless Fidelity (WIFI) module of the intelligent household appliance may preset and store information of a plurality of WIreless hotspots, so that the intelligent household appliance is automatically connected to a corresponding WIreless hotspot when switching network environments, and network connection is achieved. The preset information of the wireless hotspots is generally stored in a WIFI module of the intelligent household appliance, and as the use time increases, part of the preset wireless hotspots may not be used any more, and the stored information of the wireless hotspots needs to be deleted on the basis of being close to the habit of the user as much as possible.
Disclosure of Invention
In order to solve the existing technical problems, embodiments of the present invention provide an information processing method, an information processing apparatus, a computer-readable storage medium, and a server.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which comprises the following steps:
acquiring information of a wireless hotspot;
when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
In the foregoing solution, the predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold after adding the acquired information of the wireless hotspot to the wireless hotspot list includes:
determining a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
In the foregoing solution, the deleting the information of the wireless hotspot included in at least one of the wireless hotspot lists includes:
deleting the information of the wireless hotspot contained in at least one wireless hotspot list until the memory space occupied by the wireless hotspot list does not exceed a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list.
In the above scheme, the method further comprises: determining a wireless hotspot currently connected as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
determining the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the target wireless hotspot.
In the foregoing solution, the determining the ranking score of the target wireless hotspot includes:
determining the memory space occupied by the information of the target wireless hotspot, and the discovery time and connection time of the target wireless hotspot;
and determining the ranking score of the target wireless hotspot according to the memory space occupied by the information of the target wireless hotspot, the discovery time and the connection time of the target wireless hotspot.
In the above scheme, the method further comprises: after at least one wireless hotspot is scanned, when the scanned at least one wireless hotspot is determined to be included in the wireless hotspot list, determining a third timestamp of the scanned at least one wireless hotspot, and updating the discovery time in the information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
determining a ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the scanned at least one wireless hotspot.
An embodiment of the present invention further provides an information processing apparatus, where the apparatus includes: the device comprises an acquisition module and a processing module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the information of the wireless hotspot;
the processing module is configured to predict whether a memory space occupied by the wireless hotspot list exceeds a space threshold after adding the acquired information of the wireless hotspot to the wireless hotspot list when determining that the acquired wireless hotspot does not belong to the wireless hotspot list;
after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
In the above solution, the processing module is specifically configured to determine a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
In the above scheme, the processing module is further configured to determine a wireless hotspot currently connected to as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
determining the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the target wireless hotspot.
In the foregoing solution, the processing module is further configured to determine, after scanning at least one wireless hotspot, a third timestamp of the scanned at least one wireless hotspot when it is determined that the scanned at least one wireless hotspot is included in the wireless hotspot list, and update discovery time in information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
determining a ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the scanned at least one wireless hotspot.
An embodiment of the present invention further provides an information processing apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is configured to execute the steps of any one of the information processing methods described above when running the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the information processing methods described above.
The information processing method, the information processing device, the computer readable storage medium and the server provided by the embodiment of the invention are used for acquiring the information of the wireless hotspot; when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list; after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list; after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting scores of the wireless hotspots contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list. In the scheme of the embodiment of the invention, under the condition that the storage space of the WIFI module is limited, part of information of the wireless hotspots is deleted according to the sorting scores of the wireless hotspots, new information of the wireless hotspots is added, and the management of the information of the wireless hotspots is realized on the basis of being close to the habit of a user as much as possible.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of another information processing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a first method for updating a wireless hotspot list according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a second method for updating a wireless hotspot list according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a WIFI module of an intelligent household appliance according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a first information processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second information processing apparatus according to an embodiment of the present invention.
Detailed Description
In various embodiments of the present invention, information of a wireless hotspot is obtained; when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list; after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list; after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
The present invention will be described in further detail with reference to examples.
Fig. 1 is a schematic flowchart of a first information processing method according to an embodiment of the present invention; the method can be applied to an intelligent household appliance, as shown in fig. 1, and comprises the following steps:
here, the user can input the information of the wireless hotspot to the intelligent household appliance through the human-computer interaction interface of the intelligent household appliance, and the intelligent household appliance can acquire the information of the wireless hotspot; alternatively, the first and second electrodes may be,
the intelligent household appliance equipment can also be connected with a mobile terminal (such as a mobile phone, a tablet personal computer and the like) through short-distance communication technologies such as a Bluetooth technology, the mobile terminal sends the information of the wireless hotspot to the intelligent household appliance equipment, and the intelligent household appliance equipment can acquire the information of the wireless hotspot.
The information of the wireless hotspot comprises: a name of a wireless hotspot, a Media Access Control (MAC) address, a password for connecting the wireless hotspot, and the like; the MAC address may serve as a unique identification for the wireless hotspot.
Here, the intelligent home appliance includes: household appliances with WIFI modules, such as intelligent refrigerators, intelligent electric cookers and the like.
here, the wireless hotspot list includes: information of each wireless hotspot contained in the intelligent household appliance equipment;
specifically, before determining that the obtained wireless hotspot does not belong to the wireless hotspot list, the method includes:
determining the MAC address of the wireless hotspot according to the acquired information of the wireless hotspot;
inquiring the wireless hotspot list according to the determined MAC address, and judging whether the MAC address is contained in the wireless hotspot list;
and when the MAC address is determined not to be contained in the wireless hotspot list, determining that the acquired wireless hotspot does not belong to the wireless hotspot list.
Specifically, the predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold after adding the acquired information of the wireless hotspot into the wireless hotspot list includes:
determining a memory space required by the acquired information of the wireless hotspot;
determining a memory space occupied by a current wireless hotspot list, determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value;
determining that the sum does not exceed the space threshold, and determining that the memory space of the wireless hotspot list does not exceed the space threshold after the acquired information of the wireless hotspot is added into the wireless hotspot list;
and if the sum is determined to exceed the space threshold, determining that the memory space of the wireless hotspot list exceeds the space threshold after the acquired information of the wireless hotspot is added into the wireless hotspot list.
Here, the determining a memory space required for the acquired information of the wireless hotspot includes: and determining the name and MAC address of the wireless hotspot and the memory space required by the password connected with the wireless hotspot.
The space threshold is the maximum occupied memory space of the wireless hotspot list pre-distributed in the WIFI module when a generator of the intelligent household electrical appliance is manufactured.
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
Here, the ranking score = S/(C × D), where S denotes a memory space occupied by information of a wireless hotspot, C denotes a connection time to connect to the wireless hotspot, and D denotes a discovery time to scan to the wireless hotspot.
It should be noted that manufacturers of intelligent household electrical appliances can allocate a fixed memory space for each wireless hotspot during production and manufacturing, so that the memory space occupied by information of different wireless hotspots is a fixed value; fixed memory space may not be allocated, and the required memory space for the information of each wireless hotspot is also different according to the name, the MAC address and the length of the byte of the password.
Here, the ranking score characterizes the extent to which wireless hotspots need to be retained. When the memory space occupied by the information of each wireless hotspot is not fixed, the larger the memory space occupied by the information of the wireless hotspot is, the larger the sorting fraction is, and the lower the degree to be reserved is; the closer the connection time and/or discovery time is to the current time, the lower the ranking score, the higher the degree to which it needs to be retained.
Here, the wireless hotspots are sorted in the order of the sorting scores from low to high according to the sorting scores of the wireless hotspots. Under the condition of limited storage space, when adding new information of the wireless hotspot, deleting the information of the wireless hotspot with the largest ranking score and contained in the wireless hotspot list.
Specifically, the deleting information of the wireless hotspot included in at least one wireless hotspot list includes:
deleting the information of at least one wireless hotspot in the wireless hotspot list until the memory space occupied by the wireless hotspot list does not exceed a space threshold after the acquired information of the wireless hotspot is added into the wireless hotspot list.
In this embodiment, the method further includes: updating a wireless hotspot list; the updating of the wireless hotspot list comprises the following two cases: after the intelligent household appliance is connected with any one wireless hotspot, updating a wireless hotspot list; and after the intelligent household appliance scans at least one wireless hotspot, updating the wireless hotspot list.
Specifically, after the intelligent household electrical appliance device is connected to any one wireless hotspot, the wireless hotspot list is updated, which includes:
determining a wireless hotspot currently connected as a target wireless hotspot;
determining a first time stamp of the target wireless hotspot scanned this time and a second time stamp of the target wireless hotspot connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
determining the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the target wireless hotspot.
Here, the determining the ranking score of the target wireless hotspot comprises:
determining the memory space occupied by the information of the target wireless hotspot, and the discovery time and connection time of the target wireless hotspot;
and determining the ranking score of the target wireless hotspot according to the memory space occupied by the information of the target wireless hotspot, the discovery time and the connection time of the target wireless hotspot.
Specifically, after the intelligent household electrical appliance scans at least one wireless hotspot, the method for updating the wireless hotspot list comprises the following steps:
after the intelligent household appliance device scans at least one wireless hotspot, when the scanned at least one wireless hotspot is determined to be contained in the wireless hotspot list, determining a third timestamp of the scanned at least one wireless hotspot, and updating the discovery time in the information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
determining a ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the scanned at least one wireless hotspot.
Here, the determining the ranking score of the scanned at least one wireless hotspot comprises:
determining the memory space occupied by the scanned information of the at least one wireless hotspot, and the discovery time and the connection time of the scanned at least one wireless hotspot;
and determining the ranking score of the scanned at least one wireless hotspot according to the memory space occupied by the information of the scanned at least one wireless hotspot, the discovery time and the connection time of the scanned at least one wireless hotspot.
FIG. 2 is a flow chart illustrating another information processing method according to an embodiment of the present invention; as shown in fig. 2, the method includes:
and step 204, adding the acquired information of the wireless hotspot to a wireless hotspot list, and ending the operation.
Specifically, the wireless hotspot is added to the tail of the wireless hotspot list, and the connection time and the discovery time of the wireless hotspot are set to initial values (for example, the initial values are 1), where the initial values have no practical significance, and when the intelligent household appliance scans the wireless hotspot or connects to the wireless hotspot, the connection time and the discovery time in the information of the wireless hotspot are updated correspondingly.
here, the wireless hotspots in the wireless hotspot list are sorted in the order of the sorting scores from small to large, and here, the last item in the wireless hotspot list is deleted, that is, the wireless hotspot with the highest sorting score in the wireless hotspot list is deleted.
Fig. 3 is a flowchart illustrating a first method for updating a wireless hotspot list according to an embodiment of the present invention; as shown in fig. 3, the method for updating a wireless hotspot list includes:
the intelligent household appliance determines a first time stamp of a wireless hotspot connected at this time and a second time stamp of the wireless hotspot connected at this time, and correspondingly updates the discovery time and the connection time of the wireless hotspot currently connected in the wireless hotspot list according to the first time stamp and the second time stamp;
here, the intelligent household appliance updates the ranking score of the currently connected wireless hotspot according to the updated information of the currently connected wireless hotspot.
And 305, updating the sequence of the wireless hotspot list.
Here, the intelligent household electrical appliance adjusts the ranking of the wireless hotspot list according to the updated ranking score of the wireless hotspot currently connected.
Fig. 4 is a flowchart illustrating a second method for updating a wireless hotspot list according to an embodiment of the present invention; as shown in fig. 4, the method for updating a wireless hotspot list includes:
here, the intelligent home appliance updates the ranking score of the scanned at least one wireless hotspot according to the updated discovery time in the information of the scanned at least one wireless hotspot.
Here, the intelligent home appliance adjusts the ranking of the wireless hotspot list according to the updated ranking score of the scanned at least one wireless hotspot.
Fig. 5 is a schematic structural diagram of a WIFI module of an intelligent household appliance according to an embodiment of the present invention; as shown in fig. 5, the WIFI module may include: the device comprises an adding unit, a connecting monitoring unit, an obtaining monitoring unit, a calculating unit and an updating unit; wherein, the first and the second end of the pipe are connected with each other,
the adding unit is used for receiving the information of the wireless hot spot input by the user and adding the received information of the wireless hot spot into the wireless hot spot list;
the connection monitoring unit is used for acquiring the information of the currently connected wireless hotspot and updating the corresponding information in the wireless hotspot list when the wireless hotspot is successfully connected; here, the updated corresponding information in the wireless hotspot list may include: connection time and discovery time;
the acquisition monitoring unit is used for scanning wireless hotspots in a wireless data transmission range and updating corresponding information in a wireless hotspot list after the wireless hotspots are scanned; here, the updated corresponding information in the wireless hotspot list may include: the time of discovery;
the computing unit is used for computing the ranking score of each wireless hotspot in the wireless hotspot list;
and the updating unit is used for sequencing the wireless hotspot list from low to high according to the calculation result of the calculating unit.
FIG. 6 is a schematic structural diagram of a first information processing apparatus according to an embodiment of the present invention; as shown in fig. 6, the apparatus includes: the device comprises an acquisition module and a processing module; wherein, the first and the second end of the pipe are connected with each other,
the acquisition module is used for acquiring the information of the wireless hotspot;
the processing module is configured to predict whether a memory space occupied by the wireless hotspot list exceeds a space threshold after the acquired information of the wireless hotspot is added to the wireless hotspot list when the acquired wireless hotspot does not belong to the wireless hotspot list;
after the acquired information of the wireless hot spot is determined to be added into the wireless hot spot list, when the memory space occupied by the wireless hot spot list does not exceed a space threshold, the acquired information of the wireless hot spot is added into the wireless hot spot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
Specifically, the processing module is specifically configured to determine a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
Specifically, the processing module is further configured to determine a memory space occupied by information of each wireless hotspot included in the wireless hotspot list, discovery time and connection time of each wireless hotspot;
determining the ranking score of each wireless hotspot according to the memory space occupied by the information of each wireless hotspot, the discovery time and the connection time of each wireless hotspot;
and sequencing the wireless hotspots according to the sequencing scores of the wireless hotspots.
Specifically, the processing module is specifically configured to delete information of a wireless hotspot included in at least one wireless hotspot list until it is determined that a memory space occupied by the wireless hotspot list does not exceed a space threshold after the acquired information of the wireless hotspot is added to the wireless hotspot list.
Specifically, the processing module is further configured to determine a wireless hotspot currently connected to as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
updating the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ranking of the wireless hotspot list according to the updated ranking score of the target wireless hotspot.
Specifically, the processing module is further configured to determine, after scanning at least one wireless hotspot, a third timestamp of the scanned at least one wireless hotspot when it is determined that the scanned at least one wireless hotspot is included in the wireless hotspot list, and update discovery time in information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
updating the ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the updated ordering score of the scanned at least one wireless hotspot.
In order to implement the method according to the embodiment of the present invention, an information processing apparatus is provided in an intelligent home appliance, and specifically, as shown in fig. 7, the apparatus 70 includes:
a processor 701 and a memory 702 for storing a computer program operable on the processor; wherein the content of the first and second substances,
the processor 701 is configured to, when running the computer program, perform:
acquiring information of a wireless hotspot;
when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting scores of the wireless hotspots contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
In an embodiment, the processor 701 is configured to execute, when running the computer program, the following steps:
determining a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
In an embodiment, the processor 701 is configured to execute, when running the computer program, the following steps:
determining the memory space occupied by the information of each wireless hotspot contained in the wireless hotspot list, and the discovery time and connection time of each wireless hotspot;
determining the ranking score of each wireless hotspot according to the memory space occupied by the information of each wireless hotspot, the discovery time and the connection time of each wireless hotspot;
and sequencing the wireless hotspots according to the sequencing scores of the wireless hotspots.
In an embodiment, the processor 701 is configured to execute, when running the computer program, the following steps:
deleting the information of the wireless hot spot contained in at least one wireless hot spot list until the memory space occupied by the wireless hot spot list does not exceed a space threshold after the acquired information of the wireless hot spot is added into the wireless hot spot list.
In an embodiment, the processor 701 is configured to execute, when running the computer program, the following steps:
determining a wireless hotspot currently connected as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
updating the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ranking of the wireless hotspot list according to the updated ranking score of the target wireless hotspot.
In an embodiment, the processor 701 is configured to execute, when running the computer program, the following steps:
after at least one wireless hotspot is scanned, when the scanned at least one wireless hotspot is determined to be included in the wireless hotspot list, determining a third timestamp of the scanned at least one wireless hotspot, and updating the discovery time in the information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
updating the ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the updated ordering score of the scanned at least one wireless hotspot.
It should be noted that: the information processing apparatus and the information processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Of course, in practical applications, as shown in fig. 7, the apparatus 70 may further include: at least one network interface 703. The various components in information handling device 70 are coupled together by a bus system 704. It is understood that the bus system 704 is used to enable communications among the components. The bus system 704 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 7 as the bus system 704. The number of the processors 704 may be at least one. The network interface 703 is used for communication between the information processing apparatus 70 and other devices in a wired or wireless manner. Memory 702 in embodiments of the present invention is used to store various types of data in support of the operation of device 70.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the information processing apparatus 70 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable Logic Devices (PLDs), complex Programmable Logic Devices (CPLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Specifically, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs:
acquiring information of a wireless hotspot;
when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, the information of the wireless hotspots contained in at least one wireless hotspot list is deleted according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and the acquired information of the wireless hotspots is added into the wireless hotspot list.
In one embodiment, the computer program, when executed by a processor, performs:
determining a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
In one embodiment, the computer program, when executed by the processor, performs:
determining the memory space occupied by the information of each wireless hotspot contained in the wireless hotspot list, and the discovery time and connection time of each wireless hotspot;
determining the ranking score of each wireless hotspot according to the memory space occupied by the information of each wireless hotspot, the discovery time and the connection time of each wireless hotspot;
and sequencing the wireless hotspots according to the sequencing scores of the wireless hotspots.
In one embodiment, the computer program, when executed by the processor, performs:
deleting the information of the wireless hotspot contained in at least one wireless hotspot list until the memory space occupied by the wireless hotspot list does not exceed a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list.
In one embodiment, the computer program, when executed by the processor, performs:
determining a wireless hotspot currently connected as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
updating the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ranking of the wireless hotspot list according to the updated ranking score of the target wireless hotspot.
In one embodiment, the computer program, when executed by the processor, performs:
after at least one wireless hotspot is scanned, when the scanned at least one wireless hotspot is determined to be included in the wireless hotspot list, determining a third timestamp of the scanned at least one wireless hotspot, and updating the discovery time in the information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
updating the ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ranking of the wireless hotspot list according to the updated ranking score of the scanned at least one wireless hotspot.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.
Claims (12)
1. An information processing method, characterized in that the method comprises:
acquiring information of a wireless hotspot;
when the acquired wireless hotspot is determined not to belong to a wireless hotspot list, predicting whether the memory space occupied by the wireless hotspot list exceeds a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspot is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list does not exceed a space threshold, the acquired information of the wireless hotspot is added into the wireless hotspot list;
after the acquired information of the wireless hotspots is determined to be added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, deleting the information of the wireless hotspots contained in at least one wireless hotspot list according to the sorting fraction of each wireless hotspot contained in the wireless hotspot list, and adding the acquired information of the wireless hotspots into the wireless hotspot list;
the sorting fraction of each wireless hotspot is determined according to the memory space occupied by the information of each wireless hotspot, the discovery time and the connection time of each wireless hotspot; when the information of the wireless hotspot contained in at least one wireless hotspot list is deleted, the information of the wireless hotspot contained in the wireless hotspot list with the largest ranking score is deleted firstly; the larger the memory space occupied by the information of the wireless hotspot is, the larger the ranking score is; the closer the connection time to connect to the wireless hotspot and/or the discovery time to scan to the wireless hotspot is to the current time, the lower the ranking score.
2. The method of claim 1, wherein predicting whether a memory space occupied by the wireless hotspot list exceeds a space threshold after adding the acquired information of the wireless hotspot to the wireless hotspot list comprises:
determining a memory space required by the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
3. The method according to claim 1, wherein the deleting information of the wireless hotspot included in at least one of the wireless hotspot lists comprises:
deleting the information of the wireless hotspot contained in at least one wireless hotspot list until the memory space occupied by the wireless hotspot list does not exceed a space threshold value after the acquired information of the wireless hotspot is added into the wireless hotspot list.
4. The method of claim 1, further comprising: determining a wireless hotspot currently connected as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
determining the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the target wireless hotspot.
5. The method of claim 4, wherein determining the rank score for the target wireless hotspot comprises:
determining the memory space occupied by the information of the target wireless hotspot, and the discovery time and connection time of the target wireless hotspot;
and determining the ranking score of the target wireless hotspot according to the memory space occupied by the information of the target wireless hotspot, the discovery time and the connection time of the target wireless hotspot.
6. The method of claim 1, further comprising: after at least one wireless hotspot is scanned, when the scanned at least one wireless hotspot is determined to be included in the wireless hotspot list, determining a third timestamp of the scanned at least one wireless hotspot, and updating the discovery time in the information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
determining a ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the scanned at least one wireless hotspot.
7. An information processing apparatus characterized in that the apparatus comprises: the device comprises an acquisition module and a processing module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the information of the wireless hotspot;
the processing module is configured to predict whether a memory space occupied by the wireless hotspot list exceeds a space threshold after the acquired information of the wireless hotspot is added to the wireless hotspot list when the acquired wireless hotspot does not belong to the wireless hotspot list;
after the acquired information of the wireless hot spot is determined to be added into the wireless hot spot list, when the memory space occupied by the wireless hot spot list does not exceed a space threshold, the acquired information of the wireless hot spot is added into the wireless hot spot list;
after the acquired information of the wireless hotspots is added into the wireless hotspot list, when the memory space occupied by the wireless hotspot list exceeds a space threshold, deleting the information of the wireless hotspots contained in at least one wireless hotspot list according to the sorting scores of the wireless hotspots contained in the wireless hotspot list, and adding the acquired information of the wireless hotspots into the wireless hotspot list;
the sorting fraction of each wireless hotspot is determined according to the memory space occupied by the information of each wireless hotspot, the discovery time and the connection time of each wireless hotspot; when the information of the wireless hotspot contained in at least one wireless hotspot list is deleted, the information of the wireless hotspot contained in the wireless hotspot list with the largest ranking score is deleted firstly; the larger the memory space occupied by the information of the wireless hotspot is, the larger the ranking score is; the closer the connection time to connect to the wireless hotspot and/or the discovery time to scan to the wireless hotspot is to the current time, the lower the ranking score.
8. The apparatus according to claim 7, wherein the processing module is specifically configured to determine a memory space required for the acquired information of the wireless hotspot;
and determining the sum of the memory space occupied by the current wireless hotspot list and the memory space required by the information of the wireless hotspot, and judging whether the sum exceeds a space threshold value.
9. The apparatus of claim 7, wherein the processing module is further configured to determine a wireless hotspot currently being connected as a target wireless hotspot;
determining a first time stamp of the scanned target wireless hotspot and a second time stamp of the target wireless hotspot when the target wireless hotspot is connected, and updating discovery time and connection time in the information of the corresponding target wireless hotspot in the wireless hotspot list according to the first time stamp and the second time stamp;
determining the ranking score of the target wireless hotspot according to the updated information of the target wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the target wireless hotspot.
10. The apparatus according to claim 7, wherein the processing module is further configured to determine a third timestamp of the scanned at least one wireless hotspot when it is determined that the scanned at least one wireless hotspot is included in the wireless hotspot list after the at least one wireless hotspot is scanned, and update discovery time in information of the scanned at least one wireless hotspot corresponding to the wireless hotspot list according to the third timestamp;
determining a ranking score of the scanned at least one wireless hotspot according to the updated information of the scanned at least one wireless hotspot;
and adjusting the ordering of the wireless hotspot list according to the determined ordering score of the scanned at least one wireless hotspot.
11. An information processing apparatus, characterized in that the apparatus comprises: a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 6 when running the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569658.2A CN110572861B (en) | 2018-06-05 | 2018-06-05 | Information processing method, information processing device, storage medium and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569658.2A CN110572861B (en) | 2018-06-05 | 2018-06-05 | Information processing method, information processing device, storage medium and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572861A CN110572861A (en) | 2019-12-13 |
CN110572861B true CN110572861B (en) | 2023-03-28 |
Family
ID=68772631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810569658.2A Active CN110572861B (en) | 2018-06-05 | 2018-06-05 | Information processing method, information processing device, storage medium and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572861B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483668A (en) * | 2009-02-10 | 2009-07-15 | 成都市华为赛门铁克科技有限公司 | Network storage and access method, device and system for hot spot data |
CN102821113A (en) * | 2011-06-07 | 2012-12-12 | 阿里巴巴集团控股有限公司 | Cache method and system |
CN106550423A (en) * | 2016-11-04 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of access point management method and terminal |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI327036B (en) * | 2006-10-05 | 2010-07-01 | Ind Tech Res Inst | Load balancing apparatus and method in wireless network hotspots |
CN103020146A (en) * | 2012-11-22 | 2013-04-03 | 华为技术有限公司 | Data processing method and equipment |
WO2015089831A1 (en) * | 2013-12-20 | 2015-06-25 | 华为终端有限公司 | Wireless access method and relevant device and system |
CN104394540B (en) * | 2014-10-30 | 2018-06-01 | 北京百卓网络技术有限公司 | User's area-of-interest acquisition methods based on WIFI hot spot |
CN104536909B (en) * | 2014-12-09 | 2018-01-23 | 华为技术有限公司 | A kind of memory management method, memory management unit and storage device |
CN104582000A (en) * | 2014-12-31 | 2015-04-29 | 广东欧珀移动通信有限公司 | Method and mobile terminal for wireless hotspot treatment |
CN105354093A (en) * | 2015-12-09 | 2016-02-24 | 广东欧珀移动通信有限公司 | Memory management method and mobile terminal |
-
2018
- 2018-06-05 CN CN201810569658.2A patent/CN110572861B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483668A (en) * | 2009-02-10 | 2009-07-15 | 成都市华为赛门铁克科技有限公司 | Network storage and access method, device and system for hot spot data |
CN102821113A (en) * | 2011-06-07 | 2012-12-12 | 阿里巴巴集团控股有限公司 | Cache method and system |
CN106550423A (en) * | 2016-11-04 | 2017-03-29 | 广东欧珀移动通信有限公司 | A kind of access point management method and terminal |
Non-Patent Citations (1)
Title |
---|
一种全局统一的层次化网格资源模型;杨广文等;《计算机研究与发展》;20031230(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110572861A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109041140B (en) | Method for rapidly switching wireless network, intelligent hardware and terminal equipment | |
CN111510909B (en) | Communication module configuration processing method and device, computer equipment and storage medium | |
CN112074011B (en) | Network registration method, device, computer equipment and storage medium | |
US20180262284A1 (en) | Method, apparatus and terminal device for sending broadcast | |
CN103297468A (en) | Operation method for group resources and group server | |
CN110267314B (en) | Method and device for switching network slices | |
CN105306383A (en) | Message push method, terminal and push server | |
CN106909081B (en) | Household electrical appliance and expansion platform based on same | |
CN106851758B (en) | Communication network switching method and terminal equipment | |
CN109725543B (en) | Equipment control code configuration method and device, cloud server and network system | |
CN104486816A (en) | Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points | |
CN112714426A (en) | Intelligent upgrading method and device for Bluetooth equipment, electronic equipment and medium | |
CN113766477A (en) | Device connection method, device, electronic device and computer readable medium | |
CN111581502A (en) | Information notification method and device | |
CN113038440A (en) | Communication channel switching method and device, computer equipment and readable storage medium | |
CN112511393A (en) | Equipment linkage control method and device and storage medium | |
CN112423368A (en) | Gateway, intelligent device, mobile terminal, network access method and network access auxiliary method and system | |
CN110461023B (en) | Cell residence method and device for voice service, storage medium and main base station | |
CN105050123A (en) | Load control method for wireless network and terminal | |
CN110572861B (en) | Information processing method, information processing device, storage medium and server | |
CN106162775B (en) | Method and device for accessing wireless network | |
CN111970749A (en) | Network connection method and device, intelligent household equipment and intelligent household system | |
CN112433480B (en) | Intelligent household system and control method and device thereof | |
CN107222847B (en) | Data transmission method, device and terminal | |
WO2015117447A1 (en) | Methods and apparatus for dialing and disabling dialing |
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 |