CN109714785A - A kind of method for network access, device, the network equipment and storage medium - Google Patents
A kind of method for network access, device, the network equipment and storage medium Download PDFInfo
- Publication number
- CN109714785A CN109714785A CN201910142857.XA CN201910142857A CN109714785A CN 109714785 A CN109714785 A CN 109714785A CN 201910142857 A CN201910142857 A CN 201910142857A CN 109714785 A CN109714785 A CN 109714785A
- Authority
- CN
- China
- Prior art keywords
- network
- power
- network equipment
- smart machine
- network access
- 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
Links
Landscapes
- Power Sources (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application involves network communication technology field more particularly to a kind of method for network access, device, the network equipment and storage mediums, are easy to implement the network insertion of the batch network equipment, time saving and energy saving.Above-mentioned method for network access is included in after the network equipment powers on, and according to the power-off number of the network equipment after the powering on of record, judges whether power-off number of the network equipment in nearest preset duration reaches preset times;If reaching preset times, the network access facility of the network equipment is opened.
Description
Technical field
This application involves network communication technology fields, set in particular to a kind of method for network access, device, network
Standby and storage medium.
Background technique
With the development of technology of Internet of things, more and more smart machines come into being, as intelligent air condition, Intelligent lamp,
Intelligent refrigerator etc..Currently, smart machine networking mainly by access based on Wireless Fidelity (Wireless Fidelity,
WiFi) the WLAN of agreement.For smart machine, generally requiring access access point (Access Point, AP) can just be connect
Enter WLAN.
The scheme of the smart machine access network provided in the related technology mainly has: first, pairing can be added on AP
The key of function needs to press the pairing mode of key starting AP when user needs smart machine accessing the AP, thus
The smart machine is accessed into the AP.Second, it is real using the barcode scanning function of intelligent terminal (mobile phone, plate, TV box, computer etc.)
Smart machine is now accessed into the intelligent terminal.Specifically, using the two dimensional code on intelligent terminal scanning smart machine, two dimension is obtained
The media access control address (Media Access Control Address, MAC) carried in code, and be written to the white name of AP
In single-row table, once smart machine can be allowed to access network in this way, AP monitors the smart machine in white list.
However, the scheme of either above-mentioned any access network, is required to that every smart machine and AP is manually operated, takes
When it is laborious.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide a kind of method for network access, device, the network equipment and deposits
Storage media can be realized the network insertion of the batch network equipment, time saving and energy saving.
Mainly include the following aspects:
In a first aspect, providing a kind of method for network access, which comprises
On network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge that the network is set
Whether the standby power-off number in nearest preset duration reaches preset times;
If reaching preset times, the network access facility of the network equipment is opened.
Second aspect, provides a kind of network access device, and described device includes:
Judgment module, according to the power-off number of the network equipment after the powering on of record, is sentenced after electricity on network devices
Whether power-off number of the network equipment in nearest preset duration that break reaches preset times;
AM access module, if opening the network access facility of the network equipment for reaching preset times.
The third aspect provides a kind of network equipment, which includes processor, memory and bus, described to deposit
Reservoir is stored with the executable machine readable instructions of the processor, when network equipment operation, the processor and institute
It states by bus communication between memory, following processing is executed when the machine readable instructions are executed by processor:
On network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge that the network is set
Whether the standby power-off number in nearest preset duration reaches preset times;
If reaching preset times, the network access facility of the network equipment is opened.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored on the computer readable storage medium
Calculation machine program, the step of method for network access as described in relation to the first aspect is executed when which is run by processor.
It using the above scheme, can be on network devices after electricity, according to the power-off time of the network equipment after the powering on of record
Number, judges whether power-off number of the network equipment in nearest preset duration reaches preset times, and judging to reach
When preset times, the network access facility of the network equipment is opened, that is, the network equipment can be real in the embodiment of the present application
The timing node that existing network access facility is opened is that the power-off number of network equipment record reaches preset times, in this way, symbol
It closes and states the network equipment of timing node and have access to consolidated network, consequently facilitating realizing that the network of the batch network equipment connects
Enter, it is time saving and energy saving.
In the embodiment of the present application, which can be AP, can also be smart machine.It in specific application, can be with
The judgement of number consistency is only carried out to AP, and the judgement of number consistency can also be only carried out to smart machine, it can also be both right
AP carries out the judgement of number consistency to smart machine again.Wherein, determining that the power-off number of AP and smart machine meets
When preset times (that is, AP and smart machine, which execute power operation, has synchronism), it can synchronize and open AP and smart machine
Network access facility, and then smart machine can be accessed into AP automatically, it is easy to implement the network insertion of the batch network equipment, it is time saving
It is laborsaving.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow chart of method for network access provided by the embodiment of the present application;
Fig. 2 shows the flow charts of another kind method for network access provided by the embodiment of the present application;
Fig. 3 shows a kind of structural schematic diagram of network access device provided by the embodiment of the present application;
Fig. 4 shows a kind of structural schematic diagram of the network equipment provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real
The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings
The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application
Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work
There are other embodiments, shall fall in the protection scope of this application.
In view of in the related technology whether based on key mode realize network insertion scheme, or be based on barcode scanning mode
The scheme for realizing network insertion, is required to that every smart machine is manually operated, time-consuming and laborious.Based on this, the embodiment of the present application is mentioned
A kind of method for network access has been supplied, it is time saving and energy saving to realize the network insertion of batch smart machine.
As shown in Figure 1, being a kind of flow chart for the method for network access that embodiment provides of the application.Above-mentioned network access side
The executing subject of method can be access point (Access Point, AP), can also be smart machine.Above-mentioned method for network access tool
Body is achieved by the steps of:
S101, on network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge the net
Whether power-off number of the network equipment in nearest preset duration reaches preset times.
Here, it is contemplated that is provided in the related technology realizes the scheme of network insertion whether based on key mode, still
The scheme that network insertion is realized based on barcode scanning mode is required to grasp every network equipment (i.e. AP or smart machine) manually
Make, and the former not only needs that every network equipment is manually operated, these network equipments also need setting button or other modes
(such as voice) is controlled to trigger network insertion, and for some concealed equipment, it may be difficult in terms of product structure convenient
It designs key and causes the realization difficulty of the program larger, likewise, the latter is also required to that every network equipment is manually operated, and also
It needs to install additional application (Application, APP) and goes barcode scanning, increase the cost of user's study and lead to making for user
It is poor with Experience Degree.As it can be seen that above two network of relation access scheme is not for the network insertion for realizing the batch network equipment
Just.Precisely in order to solving the above problems, method for network access provided by the embodiments of the present application is just sought to a kind of based on short
The mode of Shi Shang electricity come control currently meet power-off number all-network equipment can opening network access function, facilitate batch
The network of the network equipment is added, and can also further realize all smart machine energy for executing power-off and meeting above-mentioned power-off number
The synchronous AP for executing power-off and meeting above-mentioned power-off number of enough accesses, that is, batch smart machine is facilitated to access AP, time saving province
Power reduces the learning cost of user, improves the usage experience of user.
It is worth noting that, in the executing subject using AP as method for network access, network is set in the embodiment of the present application
Standby to can be AP, in the executing subject using smart machine as method for network access, the network equipment then can be smart machine.
In addition, method for network access provided by the embodiments of the present application can be applied in various application scenarios, in this way, being answered based on different
Different smart machines can be corresponded to scene, such as this application scenarios of smart home, above-mentioned smart machine can be intelligence
Energy refrigerator, smart television etc..
Related power-off number can be based on non-volatile memory medium record in the embodiment of the present application, that is, in net
When network equipment is AP, it is intelligence in the network equipment that the power-off number of the AP, which can be by the non-volatile memory medium record of AP,
When energy equipment, the power-off number of the smart machine be can be by the non-volatile memory medium record of smart machine.
Above-mentioned non-volatile memory medium can be to be realized using nonvolatile storage technologies, which can close
It closes computer or emergentness, accidentality are shut down computer when ensures that data will not lose.The embodiment of the present application is exactly benefit
The record of power-off number is realized with the above-mentioned characteristic of non-volatile memory medium.
Wherein, above-mentioned non-volatile memory medium can be flash memory (flash memory), can also be non-volatile interior
(NVDIMM) is deposited, can also be memristor (RRAM), can also be other storage mediums with automatic cut-off protection shield.It considers
Flash, which not only has Electrical Erasable, may be programmed the performance of (EEPROM), will not also power off and lose data while can fast fast reading
Evidence of fetching therefore, can be using flash as non-volatile memory medium in the embodiment of the present application.
It is worth noting that, in the embodiment of the present application related power-off number not only can based on non-volatile memory medium come
Record, is also based on other way to realize, is not particularly limited herein.
In the embodiment of the present application, before the network access facility of opening network equipment, the embodiment of the present application can first really
Determine whether power-off number of the network equipment in nearest preset duration reaches preset times.
Wherein, when the network equipment is AP, in order to determine whether the power-off number of AP reaches preset times, the application is implemented
Example can be powered off in AP, and when powering on again, the power-off number read from the non-volatile memory medium fixing address of AP is
It is no to reach this Rule of judgment of preset times to determine.
Similarly, when the network equipment is smart machine, in order to determine whether the power-off number of smart machine reaches default time
Number, can determine, herein no longer according to whether the power-off number of above-mentioned determining AP reaches the concrete methods of realizing of preset times
It repeats.
It is worth noting that preset times can be once, it is also possible to repeatedly, comparatively, preset times setting
Bigger, a possibility that two networks in parallel framework generate interconnection, is also lower, and two networks described here can be
Any undesirable network for generating interconnection.For example, user A is corresponding with AP and three intelligence for user A and user B
Energy equipment, user B are corresponding with AP and two smart machine, it is contemplated that wireless penetrability needs exist for considering how really
Corresponding three smart machines of warranty family A cannot be easily added in the AP of user B.Based on above-mentioned discussion, the application is implemented
Preset times in example can be repeatedly, to meet the needs of complex application context.
If S102, reaching preset times, the network access facility of the network equipment is opened.
Here it is possible to carry out the judgement of number consistency, to AP only AP access function can be executed when determination is consistent
The opening operation of energy can also only carry out the judgement of number consistency to smart machine, can execute and be somebody's turn to do when determination is consistent
The opening operation of smart machine network access facility can also not only carry out the judgement of number consistency to AP but also to smart machine,
AP opening operation synchronous with smart machine network access facility can be executed when determination is consistent.Next to above-mentioned
Three kinds of situations are illustrated respectively.
In a first aspect, the network access facility of AP can be opened when the power-off number for determining AP meets preset times, this
When, the AP can be added in the smart machine for being set as automatic networked mode, so that the network for realizing batch smart machine connects
Enter.
Second aspect can open the net of smart machine when the power-off number for determining smart machine meets preset times
Network access function, at this point, the AP for being set as automatic networked mode can be accessed by the smart machine, to realize batch intelligence
The network insertion of energy equipment.
The third aspect, when determining that the power-off number of AP and smart machine meet preset times (that is, AP and intelligence are set
The standby power operation that executes has synchronism), that is, judging that power-off number of the AP in nearest preset duration reach default time
When number, the network access facility of AP can be opened, at this point, reaching preset times for the power-off number in nearest preset duration
Smart machine for, network access facility will be opened with the unlatching of the network access facility of AP.In this way, for all full
It, can be to synchronous AP for power-off number in the above-mentioned nearest preset duration of foot reaches the smart machine of preset times condition
Send network insertion request, and service set (Service Set Identifier, the SSID) information returned based on the AP
And corresponding encrypted message accesses above-mentioned AP, it is seen then that method for network access provided by the embodiments of the present application not only facilitates batch intelligence
Energy equipment accesses AP, additionally it is possible to ensure that the AP accessed is the AP to match with smart machine, avoid interconnecting existing resource wave
The problems such as taking.Therefore, in specific application, the embodiment of the present application can be by AP and the synchronous execution power operation of smart machine.
Method for network access provided by the embodiments of the present application can be based on depositing in the volatile storage medium in the network equipment
The power-off number of storage and the comparison result of preset times realize the judgement of number consistency, as shown in Fig. 2, being the embodiment of the present application
A kind of flow chart of the judgment method provided.
When the network equipment is in power-up state, S201 is executed, that is, the non-volatile memories for reading the network equipment are situated between
The power-off number stored in matter;
S202, judge whether the power-off number read reaches preset times;
If not reaching, S203 is executed;And after the network equipment powers off and powers on again, S201 is returned;If reaching,
Then execute S204.
S203, the power-off number of reading is carried out plus 1 processing after, will treated power-off number be written to it is described it is non-easily
In the property lost storage medium;
S204, the network access facility for opening the network equipment.
Here, when the network equipment is AP, the power-off time stored in the non-volatile memory medium of AP can be read first
Number, then judges whether the power-off number read reaches preset times, and is judging that the power-off number read do not reach pre-
If carrying out after adding 1 processing when number to the power-off number of reading, by treated, power-off number is written to non-volatile memories Jie
In matter, and after AP is powered off and is powered on again, power-off number currently stored in the non-volatile memory medium of AP is read, and
Judge read power-off number whether reach preset times, likewise, judge read power-off number do not reach default
When number, which can be carried out plus 1 is handled, until the network for opening AP adds when the power-off number of reading reaches preset times
Enter function.Wherein, the power-off number stored in non-volatile memory medium can be reset once by every preset duration in terms of ensuring
Under the premise of number accuracy, the simultaneously operating of AP and smart machine is further ensured that.
Similarly, when the network equipment is smart machine, the network access facility of itself can be also opened according to the method described above,
Details are not described herein.
In specific application, it is synchronize powered off and powered on for the ease of control AP with smart machine, it can be by AP and intelligence
Energy equipment connects on a power socket, in this way, can repeatedly be powered on and finally be powered on to realize and criticize in short-term by controlling power socket
The automatic networking for measuring smart machine, avoids time-consuming and laborious brought by related key networking mode and barcode scanning networking mode ask
Topic, convenient for users to use, practicability is more preferably.
Method for the ease of further understanding AP provided by the embodiments of the present application access network synchronous with smart machine, connects
Get off a specific example is combined to be illustrated.
By taking the intelligent networking in the full room of hard-cover real estate as an example, in the feelings that the AP and smart machine for ensuring full room can be powered on normally
Under condition, if preset times are 2 times, AP can be performed the following operations in specific application:
1, at this moment the 1st time master switch for opening complete room, can read the non-volatile of AP that is, AP is in power-up state
The power-off number stored in storage medium, it is assumed that the power-off number stored here is 0 (can correspond to power-up initializing), in this way,
It can determine that the power-off number of reading does not reach 2.At this moment, before AP the 1st time power-off, can to the power-off number of reading into
Row plus 1 processing after, will treated power-off number namely 1 write-in into the non-volatile memory medium.Wherein, the above-mentioned 1st
Secondary power-off can be in t0 duration (such as 1 second) completion.
2, full room master switch is opened the 2nd time, that is, AP can be read again after AP the 1st time power-off and powering on for the 2nd time
Non-volatile memory medium in the power-off number that stores, here, the power-off number of reading is 1, which is still not up to 2.At this moment,
Before AP the 2nd time power-off, the power-off number that can be read carry out plus 1 processing after, treated power-off number namely 2 will write
Enter into the non-volatile memory medium.Wherein, above-mentioned 2nd power-off can be within t0~t1 (such as t1=5 seconds) time
It completes.
3, full room master switch is opened the 3rd time, that is, AP can be read again after AP the 2nd time power-off and powering on for the 3rd time
Non-volatile memory medium in the power-off number that stores, here, the power-off number of reading is 2, which reaches 2, at this point, AP
Network access facility can be opened.
In view of relevant operation of the smart machine before accessing AP be it is synchronous with AP, that is, related smart machine
It can perform the following operations in specific application:
1, at this moment the 1st time master switch for opening complete room, can read intelligence and set that is, smart machine is in power-up state
The power-off number stored in standby non-volatile memory medium, it is assumed that the power-off number stored here (can be corresponded to and be powered on just for 0
Beginningization), in this way, can determine that the power-off number of reading does not reach 2.It at this moment, can be with before smart machine the 1st time power-off
To the power-off number of reading carry out plus 1 processing after, will treated power-off number namely 1 write-in to the non-volatile memories
In medium.Wherein, above-mentioned 1st power-off can be in t0 duration (such as 1 second) completion.
2, full room master switch is opened the 2nd time, that is, after smart machine the 1st time power-off and powering on for the 2nd time, it can be again
The power-off number stored in the non-volatile memory medium of smart machine is read, here, the power-off number of reading is 1, and the value is still
Not up to 2.At this moment, before smart machine the 2nd time power-off, the power-off number that can be read is carried out after adding 1 processing, after processing
Power-off number namely 2 write-in into the non-volatile memory medium.Wherein, above-mentioned 2nd power-off can be in t0~t1
Being completed in (such as the t1=5 seconds) time.
3, full room master switch is opened the 3rd time, that is, after smart machine the 2nd time power-off and powering on for the 3rd time, it can be again
The power-off number stored in the non-volatile memory medium of smart machine is read, here, the power-off number of reading is 2, which arrives
Up to 2, at this point, the network access facility of smart machine can be opened.
In this way, waiting full intelligence all within doors in t2 (such as t2=2 minutes) time after executing No. the 3rd master switch of unlatching
The request of opening of device screening, AP starts enabled screening request, in this way, the smart machine in full room will be certainly after a while
In the dynamic AP network for being added to this room.
It is worth noting that the opening operation and shutoff operation of above-mentioned full room master switch can use above-mentioned power socket to unite
One control.
In the application, before the network access facility of opening network equipment, either AP is as the network equipment or intelligence
Energy equipment is as the network equipment, and the operation executed is the judgement of number consistency, that is, in the power-off number for determining equipment
It, just can be with opening network access function when reaching preset times.However, after the network access facility of opening network equipment,
In view of AP is used as equipment, smart machine is networked to networked devices, subsequent operation is not identical.Next respectively
AP is specifically described as the network equipment and smart machine as the network equipment.
For AP is as the network equipment, in the embodiment of the present application, after opening the network access facility of AP, AP can
Constantly to detect radio open message, for the wireless smart devices of all application networkings for meeting agreement, can ring immediately
Its wireless screening request is answered, and returns to SSID information and corresponding encrypted message to corresponding smart machine, so that intelligence is set
Standby can establish with AP is connected to the network.
In specific application, in order to which at least two networks further ensured that under parallel framework will not generate interconnection, this Shen
Please the method for network access that provides of embodiment can star the timer of AP, and when the timing of the timer in the AP of starting
Between reach preset time threshold (such as 5 minutes) after, the network access facility of the AP is closed, with refusal except having accessed the AP's
Other smart machines outside smart machine access the AP.
Here, method for network access provided by the embodiments of the present application can execute more wheels, when any wheel method executes, if fixed
When device timing reach preset time threshold, then the network insertion that AP no longer responds other smart machines for not accessing AP is asked
It asks, under the premise of interconnection will not be generated between network by ensuring, to reduce the resource response of AP, meanwhile, it is executed in the above method
It, can be based on the related related information that the smart machine for not accessing AP records targetedly to these smart machines when next round
It networks, applicability is preferable.
For smart machine is as the network equipment, in the embodiment of the present application, connect in the network for opening smart machine
After entering function, smart machine can send network insertion request to AP, and can return receiving AP response to network access request
When the SSID information returned and corresponding encrypted message, AP is accessed according to SSID information and corresponding encrypted message.
In specific application, in order to which at least two networks further ensured that under parallel framework will not generate interconnection, this Shen
Please the method for network access that provides of embodiment can star the timer of smart machine, and determine in the smart machine of starting
When device timing reach preset time threshold after, the network access facility of the smart machine is closed, to be no longer attempt to connect
Enter AP.
For smart machine, whether can also be reached by power-off number of the network equipment in nearest preset duration
Preset times add 1 time to determine whether the network access facility for directly closing smart machine, in this way, the embodiment of the present application is not only just
In the network insertion for realizing batch smart machine, it is also convenient for realizing that the network of batch smart machine exits.
Next it is still specifically described by taking the intelligent networking in the full room of hard-cover real estate as an example, in the AP and intelligence for ensuring full room
In the case that equipment can be powered on normally, it will again be assumed that preset times are 2 times, then smart machine can execute logout behaviour according to step
Make:
1, at this moment the 1st time master switch for opening complete room, can read intelligence and set that is, smart machine is in power-up state
The power-off number stored in standby non-volatile memory medium, it is assumed that the power-off number stored here (can be corresponded to and be powered on just for 0
Beginningization), in this way, can determine that the power-off number of reading does not reach 3.It at this moment, can be with before smart machine the 1st time power-off
To the power-off number of reading carry out plus 1 processing after, will treated power-off number namely 1 write-in to the non-volatile memories
In medium.Wherein, above-mentioned 1st power-off can be in t0 duration (such as 1 second) completion.
2, full room master switch is opened the 2nd time, that is, after smart machine the 1st time power-off and powering on for the 2nd time, it can be again
The power-off number stored in the non-volatile memory medium of smart machine is read, here, the power-off number of reading is 1, and the value is still
Not up to 3.At this moment, before smart machine the 2nd time power-off, the power-off number that can be read is carried out after adding 1 processing, after processing
Power-off number namely 2 write-in into the non-volatile memory medium.Wherein, above-mentioned 2nd power-off can be in t0~t1
Being completed in (such as the t1=5 seconds) time.
3, full room master switch is opened the 3rd time, that is, after smart machine the 2nd time power-off and powering on for the 3rd time, it can be again
The power-off number stored in the non-volatile memory medium of smart machine is read, here, the power-off number of reading is 2, and the value is still
Not up to 3.At this moment, before smart machine the 3rd time power-off, the power-off number that can be read is carried out after adding 1 processing, after processing
Power-off number namely 3 write-in into the non-volatile memory medium.Wherein, above-mentioned 3rd power-off can be in t0~t1
Being completed in (such as the t1=5 seconds) time.
4, the 4th opens full room master switch, that is, after smart machine the 3rd time power-off and the 4th power on, it can be again
The power-off number stored in the non-volatile memory medium of smart machine is read, here, the power-off number of reading is 3, which reaches
To 3.
In this way, waiting full intelligence all within doors in t2 (such as t2=2 minutes) time after executing unlatching the 4th master switch
Equipment can execute logout operation, and then equipment may be at factory state.As it can be seen that the embodiment of the present application is easy to implement batch intelligence
The logout of energy equipment, practicability is more preferably.
Based on the same inventive concept, the embodiment of the present application provides a kind of network insertion dress corresponding with method for network access
It sets, since the principle that the device in the embodiment of the present application solves the problems, such as is similar to the above-mentioned method for network access of the embodiment of the present application,
Therefore the implementation of device may refer to the implementation of method, and overlaps will not be repeated.
As shown in figure 3, the structural schematic diagram of network access device provided by a kind of embodiment of the application, comprising:
Judgment module 301, after electricity on network devices, according to the power-off time of the network equipment after the powering on of record
Number, judges whether power-off number of the network equipment in nearest preset duration reaches preset times;
AM access module 302, if opening the network access facility of the network equipment for reaching preset times.
In one embodiment, above-mentioned judgment module 301, is specifically used for:
The power-off number stored in the non-volatile memory medium of the network equipment is read, and judges to read described disconnected
Whether electric number reaches preset times;Wherein, the every preset duration of power-off number stored in the non-volatile memory medium is clear
Zero is primary;
If not reaching, after carrying out adding 1 processing to the power-off number of reading, by treated, power-off number is written to described
In non-volatile memory medium, and after the network equipment powers off and powers on again, the reading network equipment is returned
Non-volatile memory medium in store power-off number the step of;
The AM access module 302, if the network for opening the network equipment connects specifically for reaching preset times
Enter function.
In another embodiment, the network equipment is access point AP;Above-mentioned AM access module 302, is specifically used for:
After the network access facility for opening the network equipment, the network insertion request that smart machine is sent is received;
Service set SSID information and corresponding encrypted message are sent to the smart machine, so that the smart machine
It establishes and is connected to the network with the AP.
In some embodiments, above-mentioned AM access module 302, is specifically used for:
After the network access facility for opening the network equipment, start the timer of the AP;
After the timing of the timer of the AP of starting reaches preset time threshold, the network for closing the AP is connect
Enter function.
In yet another embodiment, the network equipment is smart machine;Above-mentioned AM access module 302, is specifically used for:
After the network access facility for opening the network equipment, network insertion request is sent to AP;
When receiving the AP and responding the SSID information and corresponding encrypted message that network insertion request returns, root
The AP is accessed according to the SSID information and corresponding encrypted message.
In some embodiments, above-mentioned AM access module 302, is specifically used for:
After the network access facility for opening the network equipment, start the timer of the smart machine;
If the timing of the timer reaches preset time threshold before being successfully accessed the AP, then institute is closed
State the network access facility of smart machine.
In another embodiment, above-mentioned AM access module 302 is specifically used for:
After the network access facility for opening the network equipment, if before being successfully accessed the AP, in the intelligence
When energy equipment is in power-up state, determine that power-off number of the smart machine in nearest preset duration reaches preset times and add
1 time, then close the network access facility of the smart machine.
As shown in figure 4, for the structural schematic diagram of the network equipment provided by a kind of embodiment of the application, the network equipment packet
Include: processor 401, memory 402 and bus 403, memory 402 are stored with the executable machine readable instructions of processor 401,
When AP operation, communicated between processor 401 and memory 402 by bus 403, machine readable instructions are held by processor 401
Following processing is executed when row:
On network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge that the network is set
Whether the standby power-off number in nearest preset duration reaches preset times;
If reaching preset times, the network access facility of the network equipment is opened.
In one embodiment, in the processing that above-mentioned processor 401 executes, the judgement network equipment is nearest
Whether the power-off number in preset duration reaches preset times, if reaching preset times, opens the network of the network equipment
Access function, comprising:
The power-off number stored in the non-volatile memory medium of the network equipment is read, and judges to read described disconnected
Whether electric number reaches preset times;Wherein, the every preset duration of power-off number stored in the non-volatile memory medium is clear
Zero is primary;
If not reaching, after carrying out adding 1 processing to the power-off number of reading, by treated, power-off number is written to described
In non-volatile memory medium, and after the network equipment powers off and powers on again, the reading network equipment is returned
Non-volatile memory medium in store power-off number the step of;
If reaching, the network access facility of the network equipment is opened.
In some embodiments, the network equipment is access point AP;The network insertion for opening the network equipment
After function, the processing of the above-mentioned execution of processor 401 further include:
Receive the network insertion request that smart machine is sent;
Service set SSID information and corresponding encrypted message are sent to the smart machine, so that the smart machine
It establishes and is connected to the network with the AP.
In another embodiment, after the network access facility for opening the network equipment, above-mentioned processor
401 processing executed further include:
Start the timer of the AP;
After the timing of the timer of the AP of starting reaches preset time threshold, the network for closing the AP is connect
Enter function.
In some embodiments, the network equipment is smart machine;The network insertion for opening the network equipment
After function, the processing of the above-mentioned execution of processor 401 further include:
Network insertion request is sent to AP;
When receiving the AP and responding the SSID information and corresponding encrypted message that network insertion request returns, root
The AP is accessed according to the SSID information and corresponding encrypted message.
In yet another embodiment, after the network access facility for opening the network equipment, above-mentioned processor
401 processing executed further include:
Start the timer of the smart machine;
If the timing of the timer reaches preset time threshold before being successfully accessed the AP, then institute is closed
State the network access facility of smart machine.
In another embodiment, after the network access facility for opening the network equipment, above-mentioned processor
401 processing executed further include:
If, when the smart machine is in power-up state, determining the smart machine before being successfully accessed the AP
Power-off number in nearest preset duration reaches preset times and adds 1 time, then closes the network access facility of the smart machine.
The embodiment of the present application also provides a kind of computer readable storage medium, stored on the computer readable storage medium
There is computer program, the step of which executes above-mentioned method for network access when being run by processor.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium
Computer program when being run, above-mentioned method for network access is able to carry out, so that the method for solving access network at present needs
Every equipment, time-consuming and laborious problem is manually operated, and then reaches the network insertion for realizing the batch network equipment, it is time saving and energy saving
Effect.
The computer program product of method for network access provided by the embodiment of the present application, including storing program code
Computer readable storage medium, the instruction that program code includes can be used for executing the method in previous methods embodiment, specific real
Now reference can be made to embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
If function is realized in the form of SFU software functional unit and when sold or used as an independent product, can store
In a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing
Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer
Software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal meter
Calculation machine, server or network equipment etc.) execute each embodiment method of the application all or part of the steps.And it is above-mentioned
Storage medium includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with
Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover
Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.
Claims (10)
1. a kind of method for network access, which is characterized in that the described method includes:
On network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge that the network equipment exists
Whether the power-off number in nearest preset duration reaches preset times;
If reaching preset times, the network access facility of the network equipment is opened.
2. the method according to claim 1, wherein the judgement network equipment is in nearest preset duration
Power-off number whether reach preset times, if reaching preset times, open the network access facility of the network equipment, wrap
It includes:
The power-off number stored in the non-volatile memory medium of the network equipment is read, and judges the power-off read time
Whether number reaches preset times;Wherein, the every preset duration of the power-off number stored in the non-volatile memory medium resets one
It is secondary;
If not reaching, after carrying out adding 1 processing to the power-off number of reading, by treated, power-off number is written to described non-easy
In the property lost storage medium, and after the network equipment powers off and powers on again, the non-of the reading network equipment is returned
The step of power-off number stored in volatile storage medium;
If reaching, the network access facility of the network equipment is opened.
3. method according to claim 1 or 2, which is characterized in that the network equipment is access point AP;The unlatching institute
After the network access facility for stating the network equipment, further includes:
Receive the network insertion request that smart machine is sent;
Service set SSID information and corresponding encrypted message are sent to the smart machine, so that the smart machine and institute
It states AP and establishes network connection.
4. according to the method described in claim 3, it is characterized in that, the network access facility for opening the network equipment it
Afterwards, further includes:
Start the timer of the AP;
After the timing of the timer of the AP of starting reaches preset time threshold, the network insertion function of the AP is closed
Energy.
5. method according to claim 1 or 2, which is characterized in that the network equipment is smart machine;The unlatching institute
After the network access facility for stating the network equipment, further includes:
Network insertion request is sent to AP;
When receiving the AP and responding the SSID information and corresponding encrypted message that network insertion request returns, according to institute
It states SSID information and corresponding encrypted message accesses the AP.
6. according to the method described in claim 5, it is characterized in that, the network access facility for opening the network equipment it
Afterwards, further includes:
Start the timer of the smart machine;
If the timing of the timer reaches preset time threshold before being successfully accessed the AP, then the intelligence is closed
The network access facility of energy equipment.
7. according to the method described in claim 5, it is characterized in that, the network access facility for opening the network equipment it
Afterwards, further includes:
If, when the smart machine is in power-up state, determining the smart machine most before being successfully accessed the AP
Power-off number in nearly preset duration reaches preset times and adds 1 time, then closes the network access facility of the smart machine.
8. a kind of network access device, which is characterized in that described device includes:
Judgment module, according to the power-off number of the network equipment after the powering on of record, judges institute after electricity on network devices
State whether power-off number of the network equipment in nearest preset duration reaches preset times;
AM access module, if opening the network access facility of the network equipment for reaching preset times.
9. a kind of network equipment, which is characterized in that the network equipment includes processor, memory and bus, and the memory is deposited
The executable machine readable instructions of the processor are contained, when network equipment operation, the processor and the storage
Following processing is executed by bus communication between device, when the machine readable instructions are executed by processor:
On network devices after electricity, according to the power-off number of the network equipment after the powering on of record, judge that the network equipment exists
Whether the power-off number in nearest preset duration reaches preset times;
If reaching preset times, the network access facility of the network equipment is opened.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium
Sequence, the step of method for network access as described in claim 1~7 is any is executed when which is run by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910142857.XA CN109714785B (en) | 2019-02-26 | 2019-02-26 | Network access method, device, network equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910142857.XA CN109714785B (en) | 2019-02-26 | 2019-02-26 | Network access method, device, network equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109714785A true CN109714785A (en) | 2019-05-03 |
CN109714785B CN109714785B (en) | 2022-02-11 |
Family
ID=66265040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910142857.XA Active CN109714785B (en) | 2019-02-26 | 2019-02-26 | Network access method, device, network equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109714785B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114466375A (en) * | 2020-11-09 | 2022-05-10 | 深圳Tcl新技术有限公司 | WiFi device network distribution method and system, WiFi device and storage medium |
CN114698002A (en) * | 2020-12-30 | 2022-07-01 | 深圳Tcl新技术有限公司 | Network distribution method and device for terminal equipment, terminal equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007214703A (en) * | 2006-02-07 | 2007-08-23 | Ntt Docomo Inc | Mobile station, radio access network apparatus, and resource request method |
CN101321086A (en) * | 2007-06-08 | 2008-12-10 | 华为技术有限公司 | Connecting equipment management method and connecting equipment, management equipment and communication system |
CN105338527A (en) * | 2014-08-06 | 2016-02-17 | 深圳中电国际信息科技有限公司 | Network access configuration method and system for Internet of Things module |
CN106982449A (en) * | 2017-03-06 | 2017-07-25 | 深圳市高斯贝尔家居智能电子有限公司 | A kind of network collocating method of video camera |
EP3373568A2 (en) * | 2000-05-23 | 2018-09-12 | IoT IP GmbH | Programmable communicator |
-
2019
- 2019-02-26 CN CN201910142857.XA patent/CN109714785B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3373568A2 (en) * | 2000-05-23 | 2018-09-12 | IoT IP GmbH | Programmable communicator |
JP2007214703A (en) * | 2006-02-07 | 2007-08-23 | Ntt Docomo Inc | Mobile station, radio access network apparatus, and resource request method |
CN101321086A (en) * | 2007-06-08 | 2008-12-10 | 华为技术有限公司 | Connecting equipment management method and connecting equipment, management equipment and communication system |
CN105338527A (en) * | 2014-08-06 | 2016-02-17 | 深圳中电国际信息科技有限公司 | Network access configuration method and system for Internet of Things module |
CN106982449A (en) * | 2017-03-06 | 2017-07-25 | 深圳市高斯贝尔家居智能电子有限公司 | A kind of network collocating method of video camera |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114466375A (en) * | 2020-11-09 | 2022-05-10 | 深圳Tcl新技术有限公司 | WiFi device network distribution method and system, WiFi device and storage medium |
CN114466375B (en) * | 2020-11-09 | 2024-01-19 | 深圳Tcl新技术有限公司 | WiFi equipment network distribution method and system, wiFi equipment and storage medium |
CN114698002A (en) * | 2020-12-30 | 2022-07-01 | 深圳Tcl新技术有限公司 | Network distribution method and device for terminal equipment, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109714785B (en) | 2022-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112738805B (en) | Device control method and apparatus, storage medium, and electronic device | |
CN101951400B (en) | Software installation and upgrading method of application terminal in home network and system thereof | |
CN102685210B (en) | Wireless routing equipment, mobile terminal, management system and method | |
CN105139877A (en) | Method for connecting multimedia play devices, main device, control terminal and system | |
CN110247829A (en) | Appliances equipment control method, device, electronic equipment and storage medium | |
CN104753697A (en) | Method, equipment and system for controlling provisioning of network equipment | |
CN107342933A (en) | A kind of activation of smart machine and binding method and device | |
CN110430280A (en) | Account automatic logging method and system, storage medium and cloud desktop server | |
CN105338550A (en) | Method and device for managing connection of wireless network | |
CN110417871A (en) | A kind of smart machine upgrade method | |
CN112689316B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN109714785A (en) | A kind of method for network access, device, the network equipment and storage medium | |
CN108601061A (en) | Network access method, home equipment control method, device, system, terminal and medium | |
CN104144490A (en) | Method, terminal, network server and system for opening account of user card | |
CN109195157A (en) | application management method, device and terminal | |
CN104076696B (en) | Control terminal and applied program processing method, household appliance and its control system | |
CN102918512A (en) | Information appliance data connection system, authentication device, client appliance, information appliance data connection method and storage medium | |
CN108199877B (en) | Electronic equipment and authentication method and firmware upgrading method thereof | |
CN109868611B (en) | Washing machine control method and washing machine | |
CN102333283B (en) | Method for updating and authenticating Qualcomm chat (Qchat) mobile terminal as well as mobile terminal | |
CN114221829A (en) | Edge side intelligent home management method and system | |
CN105874430A (en) | Distribution mechanism for router applications | |
CN108282784A (en) | Wireless network access method, MiFi terminals, mobile terminal and storage medium | |
CN113132333B (en) | Networking login method, household appliance equipment, household appliance system and storage medium | |
CN105262850B (en) | Network communication method, address converter and server |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230616 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |