CN107580338A - A kind of method and device of the maximum connection number of terminals of the record AP history based on flash - Google Patents

A kind of method and device of the maximum connection number of terminals of the record AP history based on flash Download PDF

Info

Publication number
CN107580338A
CN107580338A CN201710650528.7A CN201710650528A CN107580338A CN 107580338 A CN107580338 A CN 107580338A CN 201710650528 A CN201710650528 A CN 201710650528A CN 107580338 A CN107580338 A CN 107580338A
Authority
CN
China
Prior art keywords
connection number
terminals
threshold value
value
flash
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.)
Granted
Application number
CN201710650528.7A
Other languages
Chinese (zh)
Other versions
CN107580338B (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201710650528.7A priority Critical patent/CN107580338B/en
Publication of CN107580338A publication Critical patent/CN107580338A/en
Application granted granted Critical
Publication of CN107580338B publication Critical patent/CN107580338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

The invention discloses a kind of method of the maximum connection number of terminals of record AP history based on flash, including:S200 monitors AP access terminal situation, after having new terminal to access AP, obtains AP current connection number of terminals;S300 judges whether AP current connection number of terminals is more than connection number threshold value, if so, into step S400, otherwise, into step S200;S400 by connect number threshold value be updated to former connection number threshold value and default step value and, and AP current connection number of terminals is write into flash and stored.The invention also discloses a kind of device of the maximum connection number of terminals of record AP history based on flash, including monitoring modular, acquisition module, writing module, flash memory modules and control module.By the present invention, AP maximum connection number of terminals both can be accurately recorded, can reduce again and read and write flash repeatedly, extend flash service life.

Description

A kind of method and device of the maximum connection number of terminals of the record AP history based on flash
Technical field
The present invention relates to field of storage, more particularly to a kind of record AP history maximum based on flash to connect number of terminals Method and device.
Background technology
In actual applications, the number of terminals currently connected has a significant impact to AP performances, such as when AP connections terminal is counted to During up to the upper limit, terminal will be unable to connect, so it is critically important for analysis AP produced problems to record the value.
Hardware of the Flash as store function, although after AP power-off, data will not lose in flash, read and write meeting repeatedly To flash damages (our product flash read and write the order of magnitude that number is probably ten thousand times), if reaching the flash read-write upper limits, Flash will be scrapped.
In the prior art, the maximum number of terminals of connection is recorded in flash, as long as being recorded every time before connection number of terminals ratio Maximum connection number of terminals it is big when, write operation will be triggered, therefore read-write operation can be relatively more frequent, reading and writing flash repeatedly can be right It causes damage, and have impact on flash service life.
The content of the invention
The present invention provides a kind of method and device of the maximum connection number of terminals of record AP history based on flash, to solve In the course of work of maximum connection number of terminals for certainly recording AP in the prior art, flash frequent operations are read and write, easily to flash Cause to damage, influence the technical problem of flash service life.
The invention discloses a kind of method of the maximum connection number of terminals of record AP history based on flash, including:
S200 monitors AP access terminal situation, after having new terminal to access the AP, obtains the current connection of the AP Number of terminals;
S300 judges whether the current connection number of terminals of the AP is more than connection number threshold value, if so, into step S400, it is no Then, into step S200;
S400 by the connection number threshold value be updated to former connection number threshold value and default step value and, and by the AP ought Preceding connection number of terminals write-in flash is stored.
Further, in addition to:S010 is after AP starts, the write-in connection number threshold value in flash.
Further, in addition to:
S100 reads the maximum history value of the connection number of terminals of the AP from flash, judges the connection number of terminals Maximum history value whether be more than it is described connection number threshold value, if so, then using the maximum history value of the connection number of terminals of the AP as The connection number threshold value.
Further, the step S100 includes:
S110 judges the connection number of terminals of the AP whether is stored with the flash, if into step S130, otherwise Into step S120;
It is 0 that S120, which sets the maximum history value of the connection number of terminals of the AP,;
S130 reads the maximum history value of the connection number of terminals of the AP from flash;
S140 judges whether the maximum history value of the connection number of terminals is more than the connection number threshold value, if so, entering step Rapid S150;
S150 is using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
Further, the default step value includes default first step value and default second step value, and described default the One step value is less than default second step value;The step S400 also includes:
S410 judges whether the connection number threshold value is more than default reference threshold, if so, then entering step S420, otherwise Into step S430;
S420 by the connection number threshold value be updated to former connection number threshold value and default first step value and;
S430 by the connection number threshold value be updated to former connection number threshold value and default second step value and;
S440 is stored the current connection number of terminals write-in flash of the AP.
The invention also discloses a kind of device of the maximum connection number of terminals of record AP history based on flash, including:Monitoring Module, under the control of the control module, monitoring AP access terminal situation;Acquisition module, in the control Under the control of module, when the monitoring module monitors are to after having new terminal to access the AP, the current connection for obtaining the AP is whole Hold number;Writing module, for the renewal connection number threshold value under the control of the control module and write-in AP current connection terminal Number;Flash memory modules, under the control of the control module, storage to connect number threshold value and the connection terminal of the AP Number;The control module, whether the AP obtained for judging the acquisition module current connection number of terminals is more than described The connection number threshold value of flash memory modules storage, if so, then controlling said write module will in the flash memory modules The connection number threshold value be updated to former connection number threshold value and default step value and, and by said write module by the AP's Current connection number of terminals write-in flash memory modules.
Further, said write module, it is additionally operable to after AP starts, the write-in connection number threshold in flash memory modules Value.
Further, the device of the maximum connection number of terminals of the record AP based on flash also includes:Read module, use Under the control in the control module, the maximum history value of the connection number of terminals of the AP is read from flash memory modules; The control module, is additionally operable to judge whether the maximum history value of the connection number of terminals is more than the connection number threshold value, if so, Then using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
Further, the control module, it is additionally operable to judge whether be stored with the AP's in the flash memory modules Number of terminals is connected, if so, then reading the connection number of terminals of the AP most from flash memory modules by the read module Big history value, otherwise, the then maximum history value that setting the connection terminal of the AP is are 0.
Further, the default step value includes default first step value and default second step value, and described default the One step value is less than default second step value;And:The control module, it is additionally operable to judge whether the connection number threshold value is big In default reference threshold, if so, then controlling said write module in the flash memory modules by the connection number threshold value Be updated to former connection number threshold value and the described first default step value and;Otherwise, control said write module is deposited in the flash In storage module by the connection number threshold value be updated to former connection number threshold value and default second step value and;The control mould The current connection number of terminals of the AP is write flash memory modules by block by said write module.
The present invention writes number by setting step value to reduce to flash, so as to extend flash service life, and it is logical The inventive method is crossed, number of terminals can be connected compared with the maximum of accurate recording AP.In addition, size of the present invention according to connection threshold value, There is provided the step of different length to be worth so that the maximum connection number of terminals for recording AP is more accurate.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is the embodiment of the method flow chart of the maximum connection number of terminals of record AP of the present invention based on flash;
Fig. 2 is another embodiment flow chart of method of the maximum connection number of terminals of record AP of the present invention based on flash;
Fig. 3 is another embodiment flow chart of method of the maximum connection number of terminals of record AP of the present invention based on flash;
Fig. 4 is another embodiment flow chart of method of the maximum connection number of terminals of record AP of the present invention based on flash;
Fig. 5 is the device embodiment block diagram of the maximum connection number of terminals of record AP of the present invention based on flash;
Fig. 6 is another embodiment block diagram of device of the maximum connection number of terminals of record AP of the present invention based on flash.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of method of the maximum connection number of terminals of record AP history based on flash, implement such as Fig. 1 It is shown, including:
S200 monitors AP access terminal situation, after having new terminal to access the AP, obtains the current connection of the AP Number of terminals;
S300 judges whether the current connection number of terminals of the AP is more than connection number threshold value, if so, into next step, it is no Then, return to step S200;
S400 by the connection number threshold value be updated to former connection number threshold value and default step value and, and by the AP ought Preceding connection number of terminals write-in flash is stored.
In the present embodiment, there is provided default step value, when AP current connection number of terminals is more than connection number threshold value, can incite somebody to action Connection number threshold value be updated to former connection number threshold value and default step value and, and by the current connection number of terminals write-in of the AP Flash is stored.Connection number threshold value in the present embodiment can change, and be not unalterable.Specifically, such as when Preceding connection number threshold value is 65, and default step value is 8;If the current connection number of terminals of AP is got as 66, it is clear that be more than Current connection number threshold value, therefore, connection number threshold value is updated to:65+8=73, flash threshold values are then updated in flash For 73, and record AP connection number of terminals 66.Then proceed to monitor AP access terminal number, if there is new terminal access again, The current connection number of terminals for getting the AP is 70, it is clear that current connection number of terminals 70 is less than the connection number threshold value after renewal 73, therefore, threshold value will not be updated in flash and writes AP maximum connection number of terminals 73.So just reduce to flash's Write operation, while AP maximum connection number of terminals is also obtained, the connection number threshold value after the renewal that we record can be considered as AP's Maximum connection number of terminals, more excellent, we can also take the AP of newest storage connection number of terminals as AP history most Dalian Connect number of terminals.Certainly, this AP not necessarily accurate AP of the maximum connection number of terminals of history maximum history connection terminal Number, actual AP maximum history connection number of terminals typically connect number of terminals with being connected in the AP of state-of-the-art record history maximum Between number threshold value, such as previous examples, it is between 66-73.The setting of general step-length influences whether the maximum connection of history eventually The accurate of number is held, still, we can be by reasonably setting a step-length so that can accurately record AP history most Big connection number of terminals, and can reduce the loss to flash.
Preferably, also include:S010 is after AP starts, the write-in connection number threshold value in flash.
After AP starts completely, connection number threshold value can be initially write during meeting in flash.This connection number threshold value is just Can be as the subsequently reference standard compared with currently connection number of terminals, certainly, when the current connection number of terminals of acquisition is more than When initializing the connection number threshold value of write-in, the connection number threshold value will update.
Preferably, on the basis of any of the above-described embodiment, increase step S100 becomes new embodiment, specifically, this Invention another embodiment as shown in Fig. 2 including:
S010 is after AP starts, the write-in connection number threshold value in flash;
S100 reads the maximum history value of the connection number of terminals of the AP from flash, judges the connection number of terminals Maximum history value whether be more than it is described connection number threshold value, if so, then using the maximum history value of the connection number of terminals of the AP as The connection number threshold value;
S200 monitors AP access terminal situation, after having new terminal to access the AP, obtains the current connection of the AP Number of terminals;
S300 judges whether the current connection number of terminals of the AP is more than connection number threshold value, if so, into next step, it is no Then, return to step S200;
S400 by the connection number threshold value be updated to former connection number threshold value and default step value and, and by the AP ought Preceding connection number of terminals write-in flash is stored.
Specifically, after such as AP starts, initialization write-in flash connection numbers threshold value 60, the AP is then read from flash Connection number of terminals history maximum, if the maximum value of the connection number of terminals that records before is 65, then just this is connected The maximum history value 65 of number of terminals is as connection number threshold value, that is to say, that connection number threshold value is changed to 65 by the 60 of initialization write-in .Then AP access terminal situation is monitored again, after having new terminal to access the AP, obtains the number of terminals that the AP is currently connected, Then more current connection number of terminals is with being connected the size of number threshold value, if being currently accessed number of terminals less than or equal to 65 so Continue to monitor AP terminal access situation, if being currently accessed number of terminals more than 65, for example get the current of the AP It is 66 to connect number of terminals, and the current number of terminals 66 that connects is more than connection number threshold value 65, then just connection number threshold value is updated, it is false If default step value is 10, then the connection number threshold value after renewal is 75, records AP connection number of terminals 66;Be then back to after Continuous monitoring AP access terminal situation, as long as follow-up AP access terminal number is not more than 75, need not all trigger flash again writes behaviour Make, without being recorded again in flash.
Preferably, step S100 includes in above-described embodiment:
S110 judges the connection number of terminals of the AP whether is stored with the flash, if into step S130, otherwise Into step S120;
It is 0 that S120, which sets the maximum history value of the connection number of terminals of the AP,;
S130 reads the maximum history value of the connection number of terminals of the AP from flash;
S140 judges whether the maximum history value of the connection number of terminals is more than the connection number threshold value, if so, entering step Rapid S150;
S150 is using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
In the present embodiment, if after initialization write-in flash connection number threshold values, do not read in the flash of the AP and remember The connection number of terminals of record, then the maximum history value of the connection number of terminals of the AP is just set to 0.
A kind of another embodiment of the method for the maximum connection number of terminals of record AP history based on flash of the present invention, it is above-mentioned Step value is preset described in any embodiment and includes default first step value and default second step value, default first step-length Value is less than default second step value;Idiographic flow as shown in figure 3, including:
S200 monitors AP access terminal situation, after having new terminal to access the AP, obtains the current connection of the AP Number of terminals;
S300 judges whether the current connection number of terminals of the AP is more than connection number threshold value, if so, into next step, it is no Then, return to step S200;
S410 judges whether the connection number threshold value is more than default reference threshold, if so, then entering step S420, otherwise Into step S430;
S420 by the connection number threshold value be updated to former connection number threshold value and default first step value and;
S430 by the connection number threshold value be updated to former connection number threshold value and default second step value and;
S440 is stored the current connection number of terminals write-in flash of the AP.
Specifically, such as default first step value is 5, and default second step value is 10;It is 55 to connect number threshold value, in advance If reference threshold be 70;If getting AP currently connects number of terminals as 56, it is clear that more than connection number threshold value 55, and connects number Threshold value 55 is less than default reference threshold 70, and therefore, connection number threshold value is updated to:The original connection default second steps of number threshold value 55+ Long value 10=65, that is, connect number threshold value and become 65;AP current connection number of terminals 56 is write into flash again to be stored;With Continue to monitor AP terminal situation afterwards, if there are other new terminals to access again, it is 60 to get current connection number of terminals, due to working as Preceding connection number of terminals 60 is less than connection number threshold value 65, therefore, will not trigger flash write operations, return and continue monitoring terminal situation, If the terminal that keeps accesses the AP, and it is 66 to get current connection number of terminals, it is clear that current connection number of terminals 66 is more than Number threshold value 65 is connected, therefore, connection number threshold value renewal step is stepped into again, threshold is referred to less than default due to connecting number threshold value 65 Value 70, therefore, continue to take default second step value 10, that is, the connection number threshold value after updating is 65+10=75;Then by AP's Current connection number of terminals 66 writes flash storages, then proceedes to monitor AP terminal access situation, for example monitors that AP's is current Access terminal increases 76, it can be seen that current connection number terminal 76 is more than connection number threshold value 75, therefore, connects number threshold Value needs have updated again, now, because connection number threshold value 75 is more than default reference threshold 70, therefore, the step-length now chosen It is worth for default first step value, that is, the connection number threshold value after updating is:75+5=80, then by AP current connection number of terminals 76, which also write flash, is stored.It can be seen, connect before number threshold value is 55, AP connection number of terminals be less than or Equal to 55 all without triggering write operation, when AP connection number of terminals is more than 55, write operation can be just triggered, by AP's Connection number threshold value is updated;After AP connection number threshold value is 65, only AP connection number of terminals, which is more than 65, can just trigger New write operation, AP connection number threshold value is updated;Equally, after renewal, when AP connection number of terminals is less than or equal to 75 When, all without triggering flash write operation, only when AP connection number of terminals is more than 75, renewal can be just triggered again, this When, because AP connection number threshold value 75 is more than default reference threshold 70, therefore, the step-length of selection is the default first default step Long value 5, therefore the connection number threshold value after updating is 75+5=80.By the way that there is provided a default reference threshold, number will be connected Threshold value chooses different step-lengths according to the difference of comparative result compared with default reference threshold.We are also, it is understood that more arrive Below, numeral is bigger, then may more easily go wrong, and our AP to record maximum connection number of terminals also requires more accurate, Therefore, we can equally set the step value more set to below smaller, allow the maximum connection number of terminals of history of record also to get over Close to the actual AP maximum connection number of terminals of history, so as to reduce flash write operations, flash damages and record AP are reduced Maximum connection number of terminals the degree of accuracy between reach a preferably balance.
Another embodiment of the inventive method, as shown in figure 4, including:
(1) after AP starts completely, initialization writes flash threshold values as 60;
(2) AP connection terminal maximum history values are read from flash, might as well be set to max (may be without value, if being pressed without value at 0 Reason), if more than 60, write falsh threshold values and be arranged to max, the variable is set to threshold;
(3) terminal access is waited;
(4) number of terminals of current AP connections is obtained, num might as well be set to after new terminal access AP every time;
(5) if num is more than threshold value threshold, by threshold value with being newly threshold=threshold+10, and will In num values write-in flash.For example present threshold value is that 60, num values are 61, then threshold value is updated to 70, and num values (i.e. 61) are write Enter in flash;
(6) go to step (3).
Hardware of the Flash as store function, although after AP power-off, data will not lose in flash, read and write meeting repeatedly To flash damages (our product flash read and write the order of magnitude that number is probably ten thousand times), if reaching the flash read-write upper limits, Flash will be scrapped.Read-write flash repeatedly is thus reduced to be necessary.In the present embodiment, behaviour is write by setting step-length to reduce Make, for example this write-in flash value is 60, then can just be triggered when connecting number of terminals and being more than 70 and write flash operations next time.This Sample sets the number of writing that can be reduced to flash by step-length, and then postpones the flash life-spans.
Based on identical technical concept, the invention also discloses a kind of maximum connection of record AP history based on flash is whole The device of number is held, the device can use any of the above-described embodiment of the method, specifically, as shown in figure 5, the present invention is based on flash's The device embodiment of the maximum connection number of terminals of AP is recorded, including:Monitoring modular 10, for the control in the control module 50 Under, monitor AP access terminal situation;Acquisition module 20, under the control of the control module 50, when the monitoring mould After block 10 has monitored that new terminal accesses the AP, the current connection number of terminals of the AP is obtained;Writing module 30, in institute State renewal connection number threshold value and write-in AP current connection number of terminals under the control of control module 50;Flash memory modules 40, use Under the control in the control module 50, storage connection number threshold value and the AP connection number of terminals;The control module 50, Whether the AP obtained for judging the acquisition module 20 current connection number of terminals is more than the flash memory modules 40 The connection number threshold value of storage, if so, then controlling said write module 30 in the flash memory modules 40 by the connection number Threshold value be updated to former connection number threshold value and default step value and, and by said write module 30 by the current connection of the AP Number of terminals write-in flash memory modules 40.
In said apparatus embodiment, connection number threshold value is an order of magnitude, and the connection number threshold value of renewal can be considered as record The maximum connection number of terminals of AP history, it is more excellent, can be using newest storage AP current connection number of terminals as AP history maximum Number of terminals is connected, although both of which is not the maximum connection number of terminals of AP history (the actual AP history maximum of physical record Number of terminals is connected between the AP connection number of terminals and current connection number threshold value of newest storage), but set in default step value In the case of rational, and the AP maximum connection number of terminals of history can be accurately recorded, so as to can be more Accurately the maximum connection number of terminals of record AP history, and can reduce the write operation to flash, extend flash service life.
Preferably, said write module 30, is additionally operable to after AP starts, the write-in connection number in flash memory modules 40 Threshold value.After AP starts, initialization write-in flash connection number threshold values, the connection number threshold value at this moment write is that system is set, phase When in default value, startup can all write the connection number threshold value of this acquiescence set to AP every time.
Another embodiment of apparatus of the present invention, as shown in fig. 6, on the basis of said apparatus embodiment, in addition to:Read Module 60, under the control of the control module 50, the connection number of terminals of the AP to be read from flash memory modules 40 Maximum history value;The control module 50, whether it is additionally operable to judge the maximum history value of the connection number of terminals more than described Number threshold value is connected, if so, then using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
After AP starts, initialize and write initial connection number threshold value by writing module 30 in flash memory modules 40, Then the maximum history value of the connection number of terminals of the AP, control module are read from flash memory modules 40 by read module 60 50 judge whether the maximum history value of the connection number of terminals is more than the connection number threshold value, if so, then that the connection of the AP is whole The maximum history value of number is held as the connection number threshold value.The monitoring modular 10 monitors AP access terminal situation, new when having When terminal accesses the AP, acquisition module 20 obtains the current connection number of terminals of the AP, then transfers to the control module 50 to carry out Judge, if the control module 50 judges that the current connection number of terminals of the AP is more than connection number threshold value, the control mould Block 50 control said write module 30 in flash memory modules 40 by the connection number threshold value be updated to former connection number threshold value with The sum of default step value, and the current connection number of terminals of the AP is write by flash memory modules by said write module 30 40 are stored.If the control module 50 judges that the current connection number of terminals of the AP is less than or equal to connection number threshold value, Then return, allow monitoring modular 10 to continue to monitor.
Preferably, in above-described embodiment, after AP starts and initializes write-in connection number threshold value, the control module 50 judges The connection number of terminals of the AP whether is stored with the flash memory modules 40, if so, then by the read module 60 from The maximum history value of the connection number of terminals of the AP is read in flash memory modules 40, otherwise, then sets the connection of the AP whole The maximum history value that end is is 0, and then, whether the control module 50 judges the maximum history value for connecting number of terminals again More than the connection number threshold value, if more, then need the connection number threshold value being updated, the connection of the AP is whole The maximum history value of number is held then to enter back into follow-up monitoring as the connection number threshold value and judge recording step.
Another embodiment of the present apparatus, on the basis of any of the above-described embodiment, the default step value includes default the One step value and default second step value, default first step value are less than default second step value;And control module 50 judge that the current connection number of terminals of the AP is more than after connection number threshold value, and the control module 50 also judges the connection number Whether threshold value is more than default reference threshold, if so, then will in the flash memory modules 40 by said write module 30 The connection number threshold value be updated to former connection number threshold value and the described first default step value and;Otherwise, said write mould is controlled The connection number threshold value is updated to former connection number threshold value and the default second step by block 30 in the flash memory modules 40 The sum of long value;Finally, the control module 50 is write the current connection number of terminals of the AP by said write module 30 Flash memory modules 40.
Apparatus of the present invention embodiment is corresponding with the embodiment of the method for the present invention, and the technology in the embodiment of the inventive method is thin Section can equally be well applied to apparatus of the present invention, be repeated to reduce, no longer superfluous to chat.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. method of the maximum connection number of terminals of the record AP history based on flash, it is characterised in that including:
    S200 monitors AP access terminal situation, after having new terminal to access the AP, obtains the current connection terminal of the AP Number;
    S300 judges whether the current connection number of terminals of the AP is more than connection number threshold value, if so, into next step, otherwise, Return to step S200;
    S400 by the connection number threshold value be updated to former connection number threshold value and default step value and, and currently connecting the AP Number of terminals write-in flash is met to be stored.
  2. 2. a kind of method of the maximum connection number of terminals of record AP history based on flash according to claim 1, its feature It is, in addition to:
    S010 is after AP starts, the write-in connection number threshold value in flash.
  3. 3. a kind of method of the maximum connection number of terminals of record AP history based on flash according to claim 2, its feature It is, in addition to:
    S100 reads the maximum history value of the connection number of terminals of the AP from flash, judges the maximum of the connection number of terminals Whether history value is more than the connection number threshold value, if so, then using the maximum history value of the connection number of terminals of the AP as described in Connect number threshold value.
  4. 4. a kind of method of the maximum connection number of terminals of record AP history based on flash according to claim 3, its feature It is, the step S100 includes:
    S110 judges the connection number of terminals of the AP whether is stored with the flash, if into step S130, otherwise enters Step S120;
    It is 0 that S120, which sets the maximum history value of the connection number of terminals of the AP,;
    S130 reads the maximum history value of the connection number of terminals of the AP from flash;
    S140 judges whether the maximum history value of the connection number of terminals is more than the connection number threshold value, if so, into step S150;
    S150 is using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
  5. A kind of 5. side of the maximum connection number of terminals of record AP history based on flash according to claim any one of 1-4 Method, it is characterised in that the default step value includes default first step value and default second step value, the default first step Long value is less than default second step value;The step S400 includes:
    S410 judges whether the connection number threshold value is more than default reference threshold, if so, then entering step S420, otherwise enters Step S430;
    S420 by the connection number threshold value be updated to former connection number threshold value and default first step value and;
    S430 by the connection number threshold value be updated to former connection number threshold value and default second step value and;
    S440 is stored the current connection number of terminals write-in flash of the AP.
  6. A kind of 6. device of the maximum connection number of terminals of the record AP history based on flash, it is characterised in that including:
    Monitoring modular, under the control of the control module, monitoring AP access terminal situation;
    Acquisition module, under the control of the control module, when the monitoring module monitors are to having described in new terminal accesses After AP, the current connection number of terminals of the AP is obtained;
    Writing module, for the renewal connection number threshold value under the control of the control module and write-in AP current connection terminal Number;
    Flash memory modules, under the control of the control module, storage to connect number threshold value and the connection terminal of the AP Number;
    The control module, whether the AP obtained for judging the acquisition module current connection number of terminals is more than described The connection number threshold value of flash memory modules storage, if so, then controlling said write module will in the flash memory modules The connection number threshold value be updated to former connection number threshold value and default step value and, and by said write module by the AP's Current connection number of terminals write-in flash memory modules.
  7. 7. a kind of device of the maximum connection number of terminals of record AP history based on flash according to claim 6, its feature It is,
    Said write module, it is additionally operable to after AP starts, the write-in connection number threshold value in flash memory modules.
  8. 8. a kind of device of the maximum connection number of terminals of record AP history based on flash according to claim 7, its feature It is, in addition to:
    Read module, under the control of the control module, reading the connection terminal of the AP from flash memory modules Several maximum history values;
    The control module, is additionally operable to judge whether the maximum history value of the connection number of terminals is more than the connection number threshold value, If so, then using the maximum history value of the connection number of terminals of the AP as the connection number threshold value.
  9. 9. a kind of device of the maximum connection number of terminals of record AP history based on flash according to claim 8, its feature It is, in addition to:
    The control module, it is additionally operable to judge the connection number of terminals for whether being stored with the AP in the flash memory modules, if It is then to read the maximum history value of the connection number of terminals of the AP from flash memory modules by the read module, it is no Then, then the maximum history value that setting the connection terminal of the AP is is 0.
  10. A kind of 10. dress of the maximum connection number of terminals of record AP history based on flash according to claim any one of 6-9 Put, it is characterised in that the default step value includes default first step value and default second step value, the default first step Long value is less than default second step value;And:
    The control module, it is additionally operable to judge whether the connection number threshold value is more than default reference threshold, if so, then controlling institute State writing module and the connection number threshold value is updated to former connection number threshold value and described first pre- in the flash memory modules If the sum of step value;Otherwise, said write module is controlled to be updated to the connection number threshold value in the flash memory modules Original connection number threshold value and default second step value and;The control module working as the AP by said write module Preceding connection number of terminals write-in flash memory modules.
CN201710650528.7A 2017-08-02 2017-08-02 Method and device for recording AP historical maximum connection terminal number based on flash Active CN107580338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710650528.7A CN107580338B (en) 2017-08-02 2017-08-02 Method and device for recording AP historical maximum connection terminal number based on flash

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710650528.7A CN107580338B (en) 2017-08-02 2017-08-02 Method and device for recording AP historical maximum connection terminal number based on flash

Publications (2)

Publication Number Publication Date
CN107580338A true CN107580338A (en) 2018-01-12
CN107580338B CN107580338B (en) 2021-03-02

Family

ID=61035918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710650528.7A Active CN107580338B (en) 2017-08-02 2017-08-02 Method and device for recording AP historical maximum connection terminal number based on flash

Country Status (1)

Country Link
CN (1) CN107580338B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067228A (en) * 2013-01-17 2013-04-24 中国联合网络通信集团有限公司 Access point (AP) maximum accessing user number testing method and device
CN104023357A (en) * 2014-05-06 2014-09-03 京信通信系统(中国)有限公司 Load balancing method of concentrated-type wireless local area network and access controller
CN104301927A (en) * 2014-11-10 2015-01-21 北京元心科技有限公司 Method and system for detecting WiFi hotspot access quantity
US20160157261A1 (en) * 2013-07-30 2016-06-02 Huawei Device Co., Ltd. Scheduling and Processing Method and Apparatus for WiFi Station
CN106358262A (en) * 2015-07-15 2017-01-25 中兴通讯股份有限公司 Access method and device for wireless node STAs (special temporary authority) in wireless local area network (WLAN)
CN106792986A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of radio reception device number of users management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067228A (en) * 2013-01-17 2013-04-24 中国联合网络通信集团有限公司 Access point (AP) maximum accessing user number testing method and device
US20160157261A1 (en) * 2013-07-30 2016-06-02 Huawei Device Co., Ltd. Scheduling and Processing Method and Apparatus for WiFi Station
CN104023357A (en) * 2014-05-06 2014-09-03 京信通信系统(中国)有限公司 Load balancing method of concentrated-type wireless local area network and access controller
CN104301927A (en) * 2014-11-10 2015-01-21 北京元心科技有限公司 Method and system for detecting WiFi hotspot access quantity
CN106358262A (en) * 2015-07-15 2017-01-25 中兴通讯股份有限公司 Access method and device for wireless node STAs (special temporary authority) in wireless local area network (WLAN)
CN106792986A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of radio reception device number of users management method and device

Also Published As

Publication number Publication date
CN107580338B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN109582227B (en) Solid state disk writing method and device, computer equipment and storage medium
CN101770428B (en) Method for operating non-volatile memory and data storage system using the same
US20160283711A1 (en) eMMC Monitoring Method and Apparatus
CN102629206B (en) A kind of method for updating embedded system software and system
EP2026356A2 (en) Method for creating a memory defect map and optimizing performance using the memory defect map
CN109753443A (en) A kind of data processing method, device and electronic equipment
CN110111835B (en) NVMe solid state disk IOPS test method, system and device
EP3261020A1 (en) Control method, control device and electronic device
CN106033319A (en) A method of dynamic establishment of a translation layer of a solid state drive
US20080244202A1 (en) Method combining lower-endurance/performance and higher-endurance/performance information storage to support data processing
CN116450244B (en) Chip starting method, device, computer equipment and storage medium
US20080244203A1 (en) Apparatus combining lower-endurance/performance and higher-endurance/performance information storage to support data processing
US20180356865A1 (en) Data storage device
CN112306411B (en) Data storage method and device, nonvolatile storage medium and processor
CN110781026A (en) Embedded equipment data storage and repair method and device and embedded equipment
US9786373B2 (en) EEPROM backup method and device
CN111400358A (en) Air conditioner model selection method and device, computer equipment and storage medium
US20060224842A1 (en) Information processor and program preparation method
CN107580338A (en) A kind of method and device of the maximum connection number of terminals of the record AP history based on flash
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN105095072A (en) Application testing method and device and terminal
CN106951189B (en) A kind of method of online depth erasing FLASH file
KR20190070095A (en) Memory system and operating method thereof
CN108319470A (en) Create method, apparatus, equipment and the readable storage medium storing program for executing of OS startup items
CN108509144B (en) Data saving method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20201105

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Applicant before: Phicomm (Shanghai) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231213

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right