CN111836339A - Network equipment - Google Patents

Network equipment Download PDF

Info

Publication number
CN111836339A
CN111836339A CN201910299556.8A CN201910299556A CN111836339A CN 111836339 A CN111836339 A CN 111836339A CN 201910299556 A CN201910299556 A CN 201910299556A CN 111836339 A CN111836339 A CN 111836339A
Authority
CN
China
Prior art keywords
mode
wifi information
network
wifi
network equipment
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
CN201910299556.8A
Other languages
Chinese (zh)
Other versions
CN111836339B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910299556.8A priority Critical patent/CN111836339B/en
Publication of CN111836339A publication Critical patent/CN111836339A/en
Application granted granted Critical
Publication of CN111836339B publication Critical patent/CN111836339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

An embodiment of the present application provides a network device, including: the system comprises a processor, a memory and a wireless communication module; the wireless communication module: for wireless communication; a memory: the target working mode is used for storing the target working mode of the network equipment, wherein the target working mode is the working mode when the network equipment is started last time; a processor: the device is used for acquiring a target working mode in the memory when the network equipment is started; determining configuration parameters of a target working mode; and performing network connection through the wireless communication module according to the configuration parameters of the target working mode. In the network equipment of the embodiment of the application, the working mode of the network equipment is not required to be set through keys, so that the safety and the convenience of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode when the network equipment is started last time, the required working mode can be directly entered, and the time consumed by mode switching is reduced.

Description

Network equipment
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a network device.
Background
With the development of internet technology, more and more electronic devices are given a function for networking use. For example, an intelligent camera, an intelligent lock, an intelligent refrigerator, an intelligent lamp and the like can all realize online control through a connection network.
In the related art, the specific process of connecting each network device to a router device is as follows: the working mode of the network equipment is set to be in a Soft AP (Access Point) mode through the physical keys, and a user accesses the network equipment through a smart phone or a notebook computer and the like to manually configure WIFI (Wireless-Fidelity) information including a WIFI name and a WIFI password of the router. The working mode of the network equipment is set to be the WIFI mode through the physical keys, and the obtained WIFI information is used for connecting the router so as to achieve network access.
But the working mode of the network equipment is adjusted through the physical keys, and if the installation position of the network equipment is not easy to contact, the key operation of a user is inconvenient and unsafe.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network device, so as to implement convenient and safe adjustment of a network device operating mode. The specific technical scheme is as follows:
an embodiment of the present application provides a network device, including: the system comprises a processor, a memory and a wireless communication module;
the wireless communication module: for wireless communication;
the memory: the target working mode is used for storing the target working mode of the network equipment, wherein the target working mode is the working mode when the network equipment is started last time;
the processor: the network equipment is used for acquiring a target working mode in the memory when the network equipment is started; determining configuration parameters of the target working mode; and performing network connection through the wireless communication module according to the configuration parameters of the target working mode.
Optionally, the processor is further configured to: and after the network equipment is successfully started, updating the target working mode in the memory to be the current working mode of the network equipment.
Optionally, the processor is further configured to: and when the target working mode is not stored in the memory, the working mode of the network equipment is configured to be a software wireless network base station Soft AP mode.
Optionally, the memory is further configured to store a WIFI information list, where the WIFI information list includes WIFI information items, and the WIFI information items include access point names and access point passwords of the router devices;
when the target working mode is the WIFI mode, the performing network connection through the wireless communication module according to the configuration parameters of the target working mode includes: starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; according to the WIFI information list in the memory, traversing and trying to connect the router equipment by using the wireless communication module; and if the traversal attempt to connect the router equipment fails within the preset waiting time, starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode.
Optionally, the attempting, by using the wireless communication module, to connect to the router device according to the WIFI information list in the memory includes:
in the WIFI information list, according to the time of the last successful connection, selecting a WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items;
according to the access point name and the access point password of the currently selected WIFI information item, the wireless communication module is used for trying to connect the router equipment;
and when the WIFI information item selected currently is not connected to the router equipment, selecting the WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items, and continuing trying to connect until the network equipment is successfully connected to the router equipment or the unselected WIFI information item does not exist in the WIFI information list.
Optionally, the failure of the currently selected WIFI information item to connect to the router device includes:
according to the currently selected WIFI information item, within preset connection time, the wireless communication module cannot be connected to the router equipment; or
And according to the currently selected WIFI information item, the times of trying to connect the router equipment by the wireless communication module exceed a preset time threshold value.
Optionally, the attempting, by using the wireless communication module, to connect the router device according to the access point name and the access point password of the currently selected WIFI information item includes:
sending an access request by using the wireless communication module according to the access point name and the access point password of the currently selected WIFI information item; and if the WIFI information item is not connected to the router equipment within the preset single waiting time, sending an access request again according to the access point name and the access point password of the currently selected WIFI information item until the WIFI information item is connected to the router equipment or the connection times reach a preset time threshold value.
Optionally, the processor is further configured to: and determining the single waiting time based on the preset waiting time, the preset time threshold and the number of WIFI information items in the WIFI information list.
Optionally, the processor is further configured to: acquiring operating environment parameters of the network equipment; and determining the preset waiting time according to the operating environment parameters.
Optionally, when the target mode is a Soft AP mode, the network connection is performed through the wireless communication module according to the configuration parameters of the target operating mode, including: starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode; establishing communication connection with a user terminal by utilizing the wireless communication module;
the processor is further configured to: acquiring WIFI information sent by the user terminal, wherein the WIFI information comprises an access point name and an access point password; starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; and according to the WIFI information sent by the user terminal, trying to connect router equipment by using the wireless communication module.
An embodiment of the present application provides a network device, including: the system comprises a processor, a memory and a wireless communication module; the wireless communication module: for wireless communication; a memory: the target working mode is used for storing the target working mode of the network equipment, wherein the target working mode is the working mode when the network equipment is started last time; a processor: the device is used for acquiring a target working mode in the memory when the network equipment is started; determining configuration parameters of a target working mode; and performing network connection through the wireless communication module according to the configuration parameters of the target working mode. The working mode of the network equipment is not required to be set through keys, and the convenience of operation is improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode when the network equipment is started last time, the required working mode can be directly entered, and the time consumed by mode switching is reduced. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method for determining an operating mode of a network device according to an embodiment of the present application;
fig. 2 is a second flowchart illustrating a method for determining an operating mode of a network device according to an embodiment of the present application;
fig. 3 is a third flowchart illustrating a method for determining an operating mode of a network device according to an embodiment of the present application;
fig. 4 is a fourth flowchart illustrating a method for determining an operating mode of a network device according to an embodiment of the present application;
fig. 5 is a schematic diagram of an apparatus for determining an operating mode of a network device according to an embodiment of the present application;
fig. 6 is a first schematic diagram of a network device according to an embodiment of the present application;
fig. 7 is a second schematic diagram of a network device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Soft AP: a software wireless network base station is a technology which enables network equipment to realize functions such as AP routing and the like through a software method.
In the related art, the specific process of connecting each network device to a router device is as follows: when the network equipment is started, firstly setting the network equipment to be in a WIFI mode, inquiring connectable hotspots, and entering a Station (identity) mode if the connectable hotspots exist; if no connectable hotspot exists, the Soft AP mode is started, and the user configures WIFI information manually through a smart phone or a notebook computer and the like.
However, by the method, the network device needs to enter the WIFI mode first when being started every time, and the Soft AP mode is entered only after the WIFI mode is unsuccessfully connected. This greatly increases the amount of time a user must wait to enter Soft AP mode.
In view of this, an embodiment of the present application provides a method for determining an operating mode of a network device, and referring to fig. 1, the method includes:
s101, when the network equipment is started, the working mode of the network equipment before power failure or restarting is obtained.
The method for determining the working mode of the network equipment in the embodiment of the application is applied to the network equipment, so that the method can be specifically realized through the network equipment. When the network equipment is started, the network equipment acquires the working mode of the network equipment before the last power failure or restart.
Optionally, the method for determining the working mode of the network device according to the embodiment of the present application further includes: and recording the working mode of the network equipment. In the process of the network device operating, the network device may record the operating mode of the network device, for example, after the network device switches the operating mode each time, the network device updates the operating mode of the network device, or the network device may periodically update the operating mode of the network device according to a preset frequency. The working modes of the network equipment can comprise a WIFI mode and a Soft AP mode. The WIFI mode is used for connecting devices such as a router and the like to realize network access; the Soft AP mode is used for connecting devices such as a smart phone or a notebook computer and the like, and the WIFI information is allocated. The WIFI information is a certificate of a connection router in a WIFI mode of the network device, and can include an identifier and a connection password of the router, the WIFI mode in the embodiment of the application is a Station mode in the WIFI mode, namely, the network device accesses the router by using the Station mode.
Optionally, the method for determining the working mode of the network device according to the embodiment of the present application further includes: after the network equipment is powered on for the first time or the factory configuration is recovered, when the network equipment is started, the working mode of the network equipment is configured to be a Soft AP mode.
After the network equipment is started for the first time or is restored to factory configuration, the network equipment does not contain WIFI information, and therefore after the network equipment is powered on for the first time or is restored to factory configuration, when the network equipment is started, the working mode of the network equipment is configured to a Soft AP mode, and a user can conveniently input WIFI information.
S102, configuring the working mode of the network equipment into the working mode before the power failure or the restart.
The network device sets the operation mode before the last power failure or restart as the operation mode of the network device.
And S103, performing network connection through the network equipment according to the working mode before the power failure or the restart.
And performing network connection by using the working mode before power failure or restarting through the network equipment.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, and the convenience and the safety of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode saved during the last power failure or restarting, the required working mode can be directly entered, and the time consumed by mode switching is reduced.
Optionally, referring to fig. 2, when the operation mode before the power failure or the restart is the WIFI mode, the configuring the operation mode of the network device to the operation mode before the power failure or the restart includes:
configuring the operating mode of the network device to the WIFI mode;
the network connection through the network device according to the working mode before the power failure or the restart includes:
and S1031, traversing and trying to connect the router device by utilizing the network device according to a prestored WIFI information list.
The network equipment records WIFI information of the routing equipment connected with the network equipment in a WIFI information list, and the WIFI information comprises a WIFI name and a password of the router. If the working mode of the network equipment before the last power failure or restart is the WIFI mode, the network equipment is possibly connected with the router, and therefore, according to the prestored WIFI information list, all WIFI information in the WIFI information list is traversed in sequence, and the router equipment is tried to be connected.
The network device attempts to connect the router device through the network device according to the pre-stored WIFI information. Optionally, in the process of attempting to connect the router device, the network device triggers the indicator light to flash red, and may also play a preset prompt sound, for example, "in network connection. If the router device is successfully connected, the network device triggers the indicator light blue light to be on for a long time, and meanwhile, preset prompting sound such as 'network connection is successful' can be played.
Optionally, the traversing, trying and connecting the router device by using the network device according to the pre-stored WIFI information list includes:
and step A, selecting one piece of WIFI information from a prestored WIFI information list.
The WIFI information list stores WIFI information, which may be input by the user terminal. When the network equipment working mode is the Soft AP mode, the user terminal accesses the network equipment and establishes communication, a user completes the setting of WIFI information in the network equipment through the user terminal, and the network equipment stores the WIFI information in a WIFI information list. The WIFI information list can comprise a plurality of pieces of WIFI information, and the network equipment selects one piece of WIFI information from the WIFI information list according to a preset selection rule. The preset selection rule can be set according to actual conditions, for example, the WIFI information is selected in sequence according to the storage time of the WIFI information, the WIFI information can be selected in sequence according to the connection success times of the WIFI information, or one piece of WIFI information can be selected randomly.
And step B, according to the currently selected WIFI information, the network equipment is used for trying to connect the router equipment.
The network device tries to connect the router device according to the currently selected WIFI information, for example, the network device sends connection request information according to the currently selected WIFI information.
And C, if the currently selected WIFI information cannot be connected to the router equipment within the preset waiting time, selecting one WIFI information from the unselected WIFI information in the WIFI information list.
In a preset waiting time, for example, in the preset waiting time after the network device sends the connection request information, if the network device fails to be successfully connected to the router device according to the currently selected WIFI information, one piece of WIFI information is selected from the WIFI information that has not been selected in the WIFI information list. If the router equipment is successfully connected according to the currently selected WIFI information within the preset waiting time, the communication connection is proved to be successful, the communication connection is completed, and the subsequent connection step is not executed.
And D, repeatedly executing the steps B to C until the network equipment is successfully connected with the router equipment or the WIFI information which is not selected does not exist in the WIFI information list.
And C, repeatedly executing the steps B to C until the network equipment is successfully connected with the router equipment or all the WIFI information in the WIFI information list is selected to be used for trying to connect the router equipment.
In order to prevent the time for waiting for connection from being too long, optionally, the method for determining the operation mode of the network device according to the embodiment of the present application further includes:
step one, acquiring a preset connection time threshold.
The preset connection time threshold may be set according to actual conditions, and is set to 1 minute, 3 minutes, 4.5 minutes, 30 minutes, or the like.
And step two, determining preset waiting time according to a preset connection time threshold value and the number of the WIFI information in the WIFI information list.
For example, the preset waiting time corresponding to each piece of WIFI information is equal, and the preset waiting time is the preset connection time threshold value ÷ the number of pieces of WIFI information.
Optionally, the traversing, trying and connecting the router device by using the network device according to the pre-stored WIFI information list includes:
and step A, selecting one piece of WIFI information from the unselected WIFI information in the prestored WIFI information list.
And step B, according to the currently selected WIFI information, the network equipment is used for trying to connect the router equipment.
And C, if the connection to the router equipment is not achieved according to the currently selected WIFI information within the preset waiting time, retrying the connection to the router equipment according to the currently selected WIFI information.
And D, repeatedly executing the step C until the network equipment is successfully connected with the router equipment or the number of times that the currently selected WIFI information tries to connect the router equipment reaches a preset number threshold.
In order to reduce the situation of connection failure caused by network fluctuation in a short time, packet loss of a single connection request and the like, after one connection failure, the router device is tried to be connected for multiple times according to the currently selected WIFI information until the connection times of the current WIFI information reach a preset time threshold or the router device is successfully connected.
And E, repeatedly executing the steps A to D until the network equipment is successfully connected with the router equipment or the WIFI information which is not selected does not exist in the WIFI information list.
In order to prevent the time for waiting for connection from being too long, optionally, the method for determining the operation mode of the network device according to the embodiment of the present application further includes: acquiring the preset connection time threshold and the preset times threshold; and determining the preset waiting time according to the preset connection time threshold, the preset times threshold and the number of the WIFI information in the WIFI information list.
For example, the preset waiting time and the preset number threshold corresponding to each piece of WIFI information are both equal, and the preset waiting time is the preset connection time threshold divided by the preset number threshold divided by the number of pieces of WIFI information.
Optionally, the method for determining the working mode of the network device according to the embodiment of the present application further includes:
step one, obtaining the operating environment parameters of the network equipment.
The operating environment parameters may include the current time, the operating scenario of the network device (indoor operation or outdoor operation), and the like.
And step two, determining the preset connection time threshold according to the operating environment parameters.
Different connection time thresholds may be set in advance for each operating environment parameter. For example: when the operation scene of the network equipment is indoor, presetting a connection time threshold value as y; when the method is used outdoors, because the use environment is more complicated, the preset connection time threshold can be expanded by w times, namely the preset connection time threshold is y multiplied by w. The preset connection time threshold value can also be adjusted according to different times. For example: when the frequency is between 7:00 and 23:00, the frequency is considered to be in high-frequency use time, and the preset connection time threshold value is y; in other time periods, the preset connection time threshold may be expanded by w times when the low-frequency usage time is considered, that is, the preset connection time threshold is y × w.
S1032, if the traversal attempt to connect the router device fails within the preset connection time threshold, configuring the operating mode of the network device to a Soft AP mode.
The preset connection time threshold may be set according to actual conditions, for example, set to 1 minute, 3 minutes, or 5 minutes. Optionally, when the maximum number of the saved WIFI information is n (n is a positive integer), the number of connection attempts of each WIFI information is m (m is a positive integer), and when the connection attempt waiting time is t, the preset connection time threshold is y ═ n × m × t.
If the number x of WIFI information stored in the device is less than n, and the preset connection time threshold value is unchanged, and the connection trying waiting time is unchanged, the connection trying time of each WIFI information is m ═ y/t)/x. The preset connection time threshold value is unchanged, the connection attempt times of each WIFI information are increased, the situation that the WIFI mode connection of the network equipment fails due to short-time fluctuation of the network (such as router restarting and the like) can be reduced, and invalid network switching can be reduced.
Different preset connection time thresholds can be set according to different application scenes. For example: when the device is used indoors, the preset connection time threshold is y; when the method is used outdoors, the preset connection time threshold can be expanded by w times (w is a positive integer) because the use environment is more complicated. The preset connection time threshold value can be automatically adjusted according to different time. For example: when the frequency is between 7:00 and 23:00, the frequency is considered to be in high-frequency use time, and the preset connection time threshold value is y; in other time periods, the preset connection time threshold may be expanded by w times, considering the low frequency usage time. The user can also turn on or off the network mode switching function through a preset command.
If the connection of the router device is still unsuccessful after the preset connection time threshold is exceeded, the network device switches the WIFI mode of the network device to the Soft AP mode, and updates the working mode of the network device to the Soft AP mode, and meanwhile, for the convenience of the user to know the working mode of the network device, optionally, the method for determining the working mode of the network device in the embodiment of the present application further includes: and when the network equipment is in the Soft AP mode, performing network configuration prompt. The network device may prompt the network configuration through an indicator light or a sound generator, for example, the network device may trigger a blue light of the indicator light to flash, and may play a preset prompt sound, for example, "turn on the network configuration".
Optionally, referring to fig. 3, when the operation mode before the power failure or the restart is a Soft AP mode, the configuring the operation mode of the network device to the operation mode before the power failure or the restart includes:
configuring the working mode of the network equipment to be the Soft AP mode;
the network connection through the network device according to the working mode before the power failure or the restart includes:
and S1033, establishing a communication connection with the user terminal by using the network equipment, and acquiring the WIFI information sent by the user terminal.
After the network device enters the Soft AP mode, the network device may trigger the indicator light blue light to blink, and may play a preset prompt sound, for example, "turn on network configuration".
The user uses an application program of a smart phone or a notebook computer to directly connect with the Soft AP, and then sends WIFI information needing to be connected to the network equipment.
S1034, setting the operating mode of the network device to the WIFI mode.
After the network equipment receives the WIFI information, the mode of the network equipment is switched to the WIFI mode from the Soft AP mode, and meanwhile, the working mode of the network equipment can be updated.
S1035, attempting to connect the router device with the network device according to the WIFI information sent by the user terminal.
And under the WIFI mode, establishing communication connection between the network equipment and the router equipment according to the WIFI information sent by the user terminal.
In the embodiment of the application, the WIFI mode and the Soft AP mode of the network equipment can be automatically switched according to the network condition without restarting the equipment, the operation of restarting the equipment when the network is switched is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
Optionally, the method for determining the working mode of the network device according to the embodiment of the present application further includes: in the operation process of the network equipment, when a configuration instruction is received, the operation mode of the network equipment is set to the Soft AP mode. The configuration instruction is used for starting a Soft AP mode of the network equipment. In the running process of the network equipment, if the network equipment receives a configuration instruction, the network equipment is forced to be switched from the WIFI mode to the Soft AP mode. In the running process of the network equipment, the WIFI mode and the Soft AP mode of the network equipment can be switched according to the configuration instruction without restarting the equipment, so that the operation of restarting the equipment when switching the network is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
The method for determining the operating mode of the network device according to the embodiment of the present application may also be as shown in fig. 4. After the network equipment is powered on, whether the working mode of the network equipment before power failure or restarting is the Soft AP mode or not is judged, if so, the Soft AP mode of the network equipment is started, and meanwhile, the blue light can be triggered to flicker. After the Soft AP mode is started, the smart phone is connected through the Soft AP network and receives WIFI information sent by the smart phone. And saving the received WIFI information, and starting a WIFI mode. And if the working mode of the network equipment before power failure or restarting is not the Soft AP mode last time, starting the WIFI mode of the network equipment.
After the WIFI mode is started, the stored WIFI information is used for trying to connect a wireless network of the router device, whether connection is successful is judged, if connection is failed, whether connection time exceeds a preset connection time threshold value is judged, and if the connection time exceeds the preset connection time threshold value, the step of starting the Soft AP mode of the network device is returned to continue execution. And if the preset connection time threshold is not exceeded, continuing to attempt to connect the wireless network.
If the wireless network is successfully connected, the blue lamp can be triggered to be normally on. And in the process of connecting the wireless network, if the wireless network is disconnected due to network fluctuation and other reasons, returning to the step of starting the WIFI mode of the network equipment for continuous execution. After the management platform is accessed, if new WIFI information sent by the platform is received, the new WIFI information is stored, and the step of starting the WIFI mode of the network equipment is returned to continue execution. After the management platform is accessed, if a configuration instruction sent by the platform is received, the step of starting the Soft AP mode of the network equipment is returned to continue to be executed.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, and the convenience and the safety of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode saved during the last power failure or restarting, the required working mode can be directly entered, and the time consumed by mode switching is reduced. The WIFI mode and the Soft AP mode of the network equipment can be automatically switched according to the network condition without restarting the equipment, the operation of restarting the equipment when the network is switched is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
An embodiment of the present application further provides a device for determining an operating mode of a network device, referring to fig. 5, where the device includes:
a working mode obtaining module 501, configured to obtain, when a network device is started, a working mode of the network device before a power failure or a restart;
a working mode configuration module 502 configured to configure the working mode of the network device to the working mode before the power failure or the restart;
the wireless network connection module 503 is configured to perform network connection through the network device according to the operation mode before the power failure or the restart.
Optionally, the apparatus for determining the operating mode of the network device according to the embodiment of the present application further includes:
and the first configuration module is set to configure the working mode of the network equipment into a Soft AP mode when the network equipment is started after the network equipment is powered on for the first time or the factory configuration is recovered.
Optionally, when the working mode before the power failure or the restart is the WIFI mode, the working mode configuration module 502 is configured to configure the working mode of the network device to the WIFI mode;
the wireless network connection module 503 includes:
the first communication connection submodule is set to traverse and attempt to connect the router equipment by utilizing the network equipment according to a prestored WIFI information list;
and the first mode conversion sub-module is set to switch the working mode of the network equipment from the WIFI mode to the Soft AP mode if the traversal attempt to connect the router equipment fails within a preset connection time threshold value.
Optionally, when the working mode before the power failure or the restart is a Soft AP mode, the working mode configuring module 502 is configured to configure the working mode of the network device to the Soft AP mode;
the wireless network connection module 503 includes:
the terminal connection submodule is set to establish communication connection with a user terminal by utilizing the network equipment and acquire WIFI information sent by the user terminal;
the second mode conversion submodule is set to set the working mode of the network equipment to be a WIFI mode;
and the second communication connection sub-module is set to try to connect the router equipment by using the network equipment according to the WIFI information sent by the user terminal.
Optionally, the first communication connection sub-module includes:
the first information selecting unit is set to select one WIFI information from a prestored WIFI information list;
the first router connection unit is set to try to connect the router equipment by utilizing the network equipment according to the currently selected WIFI information;
the connection failure processing unit is set to select one WIFI information from the unselected WIFI information in the WIFI information list if the current selected WIFI information cannot be connected to the router equipment within the preset waiting time;
and the first repeated calling unit is set to return to the first router connecting unit to continue executing until the network equipment is successfully connected with the router equipment or no unselected WIFI information exists in the WIFI information list.
Optionally, the apparatus for determining the operating mode of the network device according to the embodiment of the present application further includes:
a first threshold acquisition module configured to acquire the preset connection time threshold;
and the first time calculation module is set to determine the preset waiting time according to the preset connection time threshold and the number of the WIFI information in the WIFI information list.
Optionally, the first communication connection sub-module includes:
the second information selection unit is set to select one piece of WIFI information from the unselected WIFI information in the prestored WIFI information list;
the second router connection unit is set to try to connect the router equipment by utilizing the network equipment according to the currently selected WIFI information;
the third router connection unit is set to try to connect the router equipment again according to the currently selected WIFI information if the WIFI information is not connected to the router equipment within the preset waiting time;
the second repeated calling unit is set to return to the third router connecting unit to continue execution until the network equipment is successfully connected with the router equipment or the number of times of trying to connect the router equipment by the currently selected WIFI information reaches a preset number threshold;
and the third re-calling unit is set to return to the second information selection unit to continue execution until the network equipment is successfully connected with the router equipment or no unselected WIFI information exists in the WIFI information list.
Optionally, the apparatus for determining the operating mode of the network device according to the embodiment of the present application further includes:
a second threshold acquisition module configured to acquire the preset connection time threshold and the preset number threshold;
and the second time calculation module is set to determine the preset waiting time according to the preset connection time threshold, the preset times threshold and the number of the WIFI information in the WIFI information list.
Optionally, the apparatus for determining the operating mode of the network device according to the embodiment of the present application further includes:
an environment parameter obtaining module configured to obtain an operating environment parameter of the network device;
a time threshold determination module configured to determine the preset connection time threshold according to the operating environment parameter.
Optionally, the apparatus for determining the operating mode of the network device according to the embodiment of the present application further includes:
and the network configuration prompting module is set to prompt network configuration when the network equipment is in the Soft AP mode.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, and the convenience and the safety of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode saved during the last power failure or restarting, the required working mode can be directly entered, and the time consumed by mode switching is reduced. The WIFI mode and the Soft AP mode of the network equipment can be automatically switched according to the network condition without restarting the equipment, the operation of restarting the equipment when the network is switched is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
An embodiment of the present application further provides a device for determining a working mode of a network device, including:
the device comprises a storage module, a WIFI mode connection processing module, a Soft AP configuration module, a network device WIFI mode and Soft AP mode switching module and a network connection state query module.
The storage module is used for storing WIFI information and simultaneously can also store data required by the operation of each module. And the WIFI mode connection processing module is used for executing the related program of the WIFI mode when the network equipment is in the WIFI mode. The Soft AP configuration module is used for acquiring WIFI information sent by devices such as a smart phone when the network device is in a Soft AP mode. And the network connection state query module is used for querying the working mode of the network equipment before power failure or restarting.
The network equipment WIFI mode and Soft AP mode switching module is used for setting the working mode of the network equipment to be a WIFI mode or a Soft AP mode. After the network equipment is powered on for the first time or the factory configuration is restored, configuring the working mode of the network equipment into a Soft AP mode; when the working mode of the network equipment before the last power failure or restart is the Soft AP mode, configuring the working mode of the network equipment into the Soft AP mode; when the working mode of the network equipment before the last power failure or restart is the WIFI mode, configuring the working mode of the network equipment into the WIFI mode; and when the configuration information is received, configuring the working mode of the network equipment into a Soft AP mode.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, and the convenience and the safety of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode saved during the last power failure or restarting, the required working mode can be directly entered, and the time consumed by mode switching is reduced. The WIFI mode and the Soft AP mode of the network equipment can be automatically switched according to the network condition without restarting the equipment, the operation of restarting the equipment when the network is switched is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
An embodiment of the present application further provides a network device, see fig. 6, including: a processor 601, a memory 602 and a wireless communication module 603;
the wireless communication module 603: for wireless communication;
the above memory 602: the target working mode is used for storing the target working mode of the network equipment, wherein the target working mode is the working mode when the network equipment is started last time;
the processor 601: the system comprises a memory, a target working mode acquisition module, a target storage module and a target storage module, wherein the memory is used for storing a target working mode; determining the configuration parameters of the target working mode; and performing network connection through the wireless communication module according to the configuration parameters of the target working mode.
The wireless communication module 603 can execute the WIFI function and the Soft AP function under the control of the processor 601. At the time of the network device startup, for example, at the time of starting the network function of the network device, the processor 601 obtains the target operating mode from the memory 602, where the target operating mode is the operating mode when the network device was started last time, that is, the operating mode before the network device was powered down, shut down, or restarted last time. The processor 601 starts a target operation mode of the network device, and performs network connection through the wireless communication module 602 after starting the target operation mode. Optionally, the processor 601 is further configured to update the target operating mode in the memory 602 to the current operating mode of the network device after the network device is successfully started. In one possible embodiment, the processor 601 is configured to update the target operation mode in the memory 602 after each switching of the operation mode by the network device. The working modes of the network device may include a WIFI mode (the WIFI mode in this embodiment is specifically a Station mode) and a Soft AP mode. The WIFI mode is used for connecting devices such as a router and the like to realize network access; the Soft AP mode is used for connecting devices such as a smart phone or a notebook computer and the like, and configuration of WIFI information is achieved.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, and the convenience and the safety of operation are improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode when the network equipment is started last time, the required working mode can be directly entered, and the time consumed by mode switching is reduced.
Optionally, the processor 601 is further configured to: when the target operation mode is not stored in the memory 602, the operation mode of the network device is configured to be Soft AP mode.
After the network device is started for the first time or the network device is restored to factory configuration, at this time, the network device does not contain WIFI information, and the memory 602 does not store the target operating mode. Therefore, after the network equipment is powered on for the first time or the factory configuration is restored, when the network equipment is started, the working mode of the network equipment is configured to be the Soft AP mode, and therefore a user can conveniently input WIFI information.
Optionally, the memory 602 is further configured to store a WIFI information list, where the WIFI information list includes WIFI information items, and the WIFI information items include access point names and access point passwords of the router devices;
when the target operating mode is the WIFI mode, the performing network connection through the wireless communication module 603 according to the configuration parameters of the target operating mode includes: starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; according to the WIFI information list in the memory 602, the wireless communication module 603 is used to traverse and try to connect the router device; and if the traversal attempt to connect the router equipment fails within the preset waiting time, starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode.
The processor 601 records WIFI information of a routing device connected to the network device to a WIFI information list and stores the WIFI information in the memory 602, where the WIFI information includes an access point name and a password of the router. If the target operating mode is stored in the memory 602, it indicates that the network device may have already connected to the router, and therefore, according to the pre-stored WIFI information list, each piece of WIFI information in the WIFI information list is sequentially traversed, and a connection to the router device is attempted. The preset connection time threshold may be set according to actual conditions, and is set to 1 minute, 3 minutes, 4.5 minutes, 30 minutes, or the like.
And according to the pre-stored WIFI information, attempting to connect the router equipment through the network equipment. Optionally, the network device in the embodiment of the present application further includes: the connection hint module, the processor 601 is further configured to: in attempting to connect to the router device, the connection prompting module is triggered to operate. Specifically, the connection prompting module may include an indicator light and a sound generator, and in the process of attempting to connect the router device, the processor 601 triggers the indicator light to flash red light and triggers the sound generator to play a preset prompting sound, for example, "in network connection". If the router device is successfully connected, the processor 601 may trigger the indicator light blue light to be on for a long time, and may also play a preset prompt sound, such as "network connection is successful" or the like.
Optionally, the attempting to connect the router device by using the wireless communication module 603 according to the WIFI information list in the memory 602 includes:
step one, in the WIFI information list, according to the time of the last successful connection, selecting a WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items.
The WIFI information list stores WIFI information, which may be input by the user terminal. When the network device operating mode is the Soft AP mode, the user terminal accesses the network device and establishes communication, the user completes configuration of WIFI information in the network device through the user terminal, and the processor 601 stores the WIFI information in the WIFI information list. The WIFI information list may include a plurality of WIFI information items, and the processor 601 may select, according to a last successful connection time of each WIFI information item, a WIFI information item whose last successful connection time is closest to a current time in the WIFI information list. Certainly, the processor 601 may also select, according to the storage time of the WIFI information, a WIFI information item whose storage time is closest to the current time from the unselected WIFI information items; or selecting a WIFI information item according to the connection success times of the WIFI information, or randomly selecting one WIFI information item and the like.
And step two, according to the access point name and the access point password of the currently selected WIFI information item, the wireless communication module 603 is used for trying to connect the router equipment.
The processor 601 sends an access request through the wireless communication module 603 according to the currently selected WIFI information item to attempt to connect to the router device.
And step three, when the WIFI information item selected currently is not connected to the router equipment, selecting the WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items, and continuing to try to connect until the network equipment is successfully connected to the router equipment or the unselected WIFI information item does not exist in the WIFI information list.
Within the preset waiting time after the access request is sent, if the network device is not successfully connected to the router device according to the currently selected WIFI information, the processor 601 selects one WIFI information from the non-selected WIFI information in the WIFI information list, so as to obtain a new currently selected WIFI information. If the router equipment is successfully connected according to the currently selected WIFI information within the preset waiting time, the communication connection is proved to be successful, the connection is completed, and the subsequent connection step is not executed. And if the WIFI information list does not have unselected WIFI information items, which indicates that all the WIFI information items are failed to connect, starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode.
In order to reduce the situation of connection failure of the available routing device due to network fluctuation in a short time, optionally, the above-mentioned WIFI information item selected currently fails to connect to the router device, including:
according to the currently selected WIFI information item, within a preset connection time, the wireless communication module 603 cannot be connected to the router device; or
According to the currently selected WIFI information item, the number of times that the wireless communication module 603 attempts to connect to the router device exceeds a preset number threshold.
The preset connection time is the upper limit time for connection of one WIFI information item, and can be preset and calculated. Optionally, the processor 601 is further configured to: acquiring the preset connection time threshold; and determining the preset waiting time according to the preset connection time threshold and the number of the WIFI information in the WIFI information list. For example, the preset waiting time corresponding to each piece of WIFI information is equal, and the preset waiting time is the preset connection time threshold value ÷ the number of pieces of WIFI information.
Optionally, the attempting to connect the router device by using the wireless communication module 603 according to the access point name and the access point password of the currently selected WIFI information item includes:
sending an access request by using the wireless communication module 603 according to the access point name and the access point password of the currently selected WIFI information item; and if the WIFI information item is not connected to the router equipment within the preset single waiting time, sending an access request again according to the access point name and the access point password of the currently selected WIFI information item until the WIFI information item is connected to the router equipment or the connection times reach a preset time threshold value.
The processor 601 attempts to connect to the routing device through a single waiting time and a preset number threshold, so that the situation of router connection failure caused by loss of a single access request can be reduced.
The preset single waiting time can be preset in advance or can be calculated. Optionally, the processor 601 is further configured to: and determining the single waiting time based on the preset waiting time, the preset time threshold and the number of the WIFI information items in the WIFI information list. For example, the preset single wait time is the preset wait time ÷ the preset number of times threshold.
In order to reduce the situation of connection failure caused by network fluctuation in a short time, packet loss in a single connection request and the like, after one connection failure, the processor 601 tries to connect the router device for multiple times according to the currently selected WIFI information until the connection times of the currently selected WIFI information reach a preset time threshold or the router device is successfully connected. The preset number threshold may be set according to actual conditions, for example, 2 times, 3 times, 4 times, or the like. If the router equipment is successfully connected to the router equipment according to the currently selected WIFI information within the preset time threshold, the communication connection is proved to be successful, and the connection is completed and is not executed.
Optionally, the processor 601 is further configured to: acquiring the operating environment parameters of the network equipment; and determining the preset waiting time according to the operating environment parameters.
The operating environment parameters may include the current time, the operating scenario of the network device (indoor operation or outdoor operation), and the like. Different connection time thresholds may be set in advance for each operating environment parameter. For example: when the operation scene of the network equipment is indoor, presetting a connection time threshold value as y; when the method is used outdoors, because the use environment is more complicated, the preset connection time threshold can be expanded by w times, namely the preset connection time threshold is y multiplied by w. The preset connection time threshold value can also be adjusted according to different times. For example: when the frequency is between 7:00 and 23:00, the frequency is considered to be in high-frequency use time, and the preset connection time threshold value is y; in other time periods, the preset connection time threshold may be expanded by w times when the low-frequency usage time is considered, that is, the preset connection time threshold is y × w.
Optionally, the network device further includes: configuring a prompt module;
the processor 601 is further configured to: when the network equipment is in a Soft AP mode, sending trigger information to the configuration prompt module;
the configuration prompt module is configured to: and after receiving the trigger information, carrying out network configuration prompt.
Specifically, referring to fig. 7, the configuration prompting module includes an indicator light and a sound generator, and the processor 601 may prompt the network configuration through the indicator light or the sound generator, for example, the processor 601 may trigger the indicator light to flash in a blue light, and may also trigger the sound generator to play a preset prompting sound, for example, "turn on the network configuration," or the like.
Optionally, when the target mode is a Soft AP mode, the performing network connection through the wireless communication module according to the configuration parameters of the target operating mode includes: starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode; establishing a communication connection with a user terminal by using the wireless communication module 603;
the processor 601 is further configured to: acquiring WIFI information sent by the user terminal, wherein the WIFI information comprises an access point name and an access point password; starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; and according to the WIFI information sent by the user terminal, trying to connect the router equipment by using the wireless communication module.
After the network equipment enters the Soft AP mode, a user can directly connect with the Soft AP by using an application program of a smart phone or a notebook computer, and then WIFI information needing to be connected is sent to the network equipment. After acquiring the WIFI information, the processor 601 switches the network device from the Soft AP mode to the WIFI mode. In the WIFI mode, the processor 601 attempts to establish a communication connection with the router device through the wireless communication module 603 according to WIFI information sent by the user terminal.
In the embodiment of the application, the WIFI mode and the Soft AP mode of the network equipment can be automatically switched according to the network condition without restarting the equipment, the operation of restarting the equipment when the network is switched is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
Optionally, the processor 601 is further configured to: and when the AP mode configuration instruction is received, setting the operation mode of the network equipment to a Soft AP mode. The AP mode configuration instruction is used for starting a Soft AP mode of the network equipment. During the operation of the network device, if the processor 601 receives the configuration instruction, the network device is switched from the WIFI mode to the SoftAP mode. In the running process of the network equipment, the WIFI mode and the Soft AP mode of the network equipment can be switched according to the configuration instruction without restarting the equipment, so that the operation of restarting the equipment when switching the network is avoided, the usability of a user is improved, and the restarting frequency of the equipment is reduced.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor. The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the following steps:
when the network equipment is started, acquiring the working mode of the network equipment before power failure or restarting;
configuring the working mode of the network equipment into the working mode before the power failure or the restart;
and performing network connection through the network equipment according to the working mode before the power failure or the restart.
In the embodiment of the application, the working mode of the network equipment is not required to be set through keys, so that the convenience of operation is improved. When the network equipment is started, the working mode of the network equipment is set according to the working mode saved during the last power failure or restarting, the required working mode can be directly entered, and the time consumed by mode switching is reduced.
Optionally, when executed by a processor, the computer program may further implement the method for determining the operation mode of any network device.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment is mainly described as different from the other embodiments, and related parts may be referred to the part description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A network device, characterized in that the network device comprises: the system comprises a processor, a memory and a wireless communication module;
the wireless communication module: for wireless communication;
the memory: the target working mode is used for storing the target working mode of the network equipment, wherein the target working mode is the working mode when the network equipment is started last time;
the processor: the network equipment is used for acquiring a target working mode in the memory when the network equipment is started; determining configuration parameters of the target working mode; and performing network connection through the wireless communication module according to the configuration parameters of the target working mode.
2. The network device of claim 1, wherein the processor is further configured to: and after the network equipment is successfully started, updating the target working mode in the memory to be the current working mode of the network equipment.
3. The network device of claim 2, wherein the processor is further configured to: configuring the operating mode of the network device to a software wireless network base station SoftAP mode when a target operating mode is not stored in the memory.
4. The network device of claim 1, wherein the memory is further configured to store a WIFI information list, the WIFI information list including WIFI information items, the WIFI information items including access point names and access point passwords for router devices;
when the target working mode is the WIFI mode, the performing network connection through the wireless communication module according to the configuration parameters of the target working mode includes: starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; according to the WIFI information list in the memory, traversing and trying to connect the router equipment by using the wireless communication module; and if the traversal attempt to connect the router equipment fails within the preset waiting time, starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode.
5. The network device of claim 4, wherein traversing the attempt to connect to a router device using the wireless communication module according to the WIFI information list in the memory comprises:
in the WIFI information list, according to the time of the last successful connection, selecting a WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items;
according to the access point name and the access point password of the currently selected WIFI information item, the wireless communication module is used for trying to connect the router equipment;
and when the WIFI information item selected currently is not connected to the router equipment, selecting the WIFI information item with the last successful connection time closest to the current time from the unselected WIFI information items, and continuing trying to connect until the network equipment is successfully connected to the router equipment or the unselected WIFI information item does not exist in the WIFI information list.
6. The network device of claim 5, wherein the failure to connect to a router device according to the currently selected WIFI information item comprises:
according to the currently selected WIFI information item, within preset connection time, the wireless communication module cannot be connected to the router equipment; or
And according to the currently selected WIFI information item, the times of trying to connect the router equipment by the wireless communication module exceed a preset time threshold value.
7. The network device of claim 5, wherein the attempting to connect to the router device using the wireless communication module according to the access point name and the access point password of the currently selected WIFI information item comprises:
sending an access request by using the wireless communication module according to the access point name and the access point password of the currently selected WIFI information item; and if the WIFI information item is not connected to the router equipment within the preset single waiting time, sending an access request again according to the access point name and the access point password of the currently selected WIFI information item until the WIFI information item is connected to the router equipment or the connection times reach a preset time threshold value.
8. The network device of claim 7, wherein the processor is further configured to: and determining the single waiting time based on the preset waiting time, the preset time threshold and the number of WIFI information items in the WIFI information list.
9. The network device of claim 4, wherein the processor is further configured to: acquiring operating environment parameters of the network equipment; and determining the preset waiting time according to the operating environment parameters.
10. The network device according to claim 1, wherein when the target mode is a SoftAP mode, the performing network connection through the wireless communication module according to the configuration parameters of the target operating mode includes: starting the Soft AP mode of the network equipment according to the configuration parameters of the Soft AP mode; establishing communication connection with a user terminal by utilizing the wireless communication module;
the processor is further configured to: acquiring WIFI information sent by the user terminal, wherein the WIFI information comprises an access point name and an access point password; starting the WIFI mode of the network equipment according to the configuration parameters of the WIFI mode; and according to the WIFI information sent by the user terminal, trying to connect router equipment by using the wireless communication module.
CN201910299556.8A 2019-04-15 2019-04-15 Network equipment Active CN111836339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299556.8A CN111836339B (en) 2019-04-15 2019-04-15 Network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299556.8A CN111836339B (en) 2019-04-15 2019-04-15 Network equipment

Publications (2)

Publication Number Publication Date
CN111836339A true CN111836339A (en) 2020-10-27
CN111836339B CN111836339B (en) 2023-04-07

Family

ID=72914662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299556.8A Active CN111836339B (en) 2019-04-15 2019-04-15 Network equipment

Country Status (1)

Country Link
CN (1) CN111836339B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835631A (en) * 2021-03-29 2021-05-25 聚好看科技股份有限公司 Method for starting homepage application and display device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN103441917A (en) * 2013-08-27 2013-12-11 上海汉枫电子科技有限公司 Intelligent network access method based on embedded type Wi-Fi module of internet of things
CN103945499A (en) * 2014-04-17 2014-07-23 美的集团股份有限公司 Switching method and device of working modes of WIFI module
CN104105227A (en) * 2014-04-17 2014-10-15 美的集团股份有限公司 A WIFI module work method and device based on different application scenarios
CN104469981A (en) * 2014-11-21 2015-03-25 广东瑞德智能科技股份有限公司 Method and system for connecting intelligent household appliance into router
CN105262652A (en) * 2015-09-09 2016-01-20 九阳股份有限公司 Network configuration method for network household appliance
CN106027294A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Firmware loading method and system for terminal network access
CN106162804A (en) * 2016-06-24 2016-11-23 上海连尚网络科技有限公司 For providing the method and apparatus of the access information of wireless access focus
CN106255176A (en) * 2016-08-04 2016-12-21 深圳键桥通讯技术股份有限公司 The method that smart machine is accessed wireless network
CN106453529A (en) * 2016-09-28 2017-02-22 浙江大学 Hen house Internet of Things sensor node data collecting, monitoring and controlling device based on WIFI
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN107276866A (en) * 2017-07-28 2017-10-20 美的智慧家居科技有限公司 Home appliance match somebody with somebody network method, device and home appliance
CN108012580A (en) * 2015-06-16 2018-05-08 飞利浦照明控股有限公司 Electronic network device
CN108834196A (en) * 2018-05-31 2018-11-16 连尚(新昌)网络科技有限公司 A kind of sending, receiving method and equipment of the access information of wireless access point
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN103441917A (en) * 2013-08-27 2013-12-11 上海汉枫电子科技有限公司 Intelligent network access method based on embedded type Wi-Fi module of internet of things
CN103945499A (en) * 2014-04-17 2014-07-23 美的集团股份有限公司 Switching method and device of working modes of WIFI module
CN104105227A (en) * 2014-04-17 2014-10-15 美的集团股份有限公司 A WIFI module work method and device based on different application scenarios
CN104469981A (en) * 2014-11-21 2015-03-25 广东瑞德智能科技股份有限公司 Method and system for connecting intelligent household appliance into router
CN108012580A (en) * 2015-06-16 2018-05-08 飞利浦照明控股有限公司 Electronic network device
CN105262652A (en) * 2015-09-09 2016-01-20 九阳股份有限公司 Network configuration method for network household appliance
CN106027294A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Firmware loading method and system for terminal network access
CN106162804A (en) * 2016-06-24 2016-11-23 上海连尚网络科技有限公司 For providing the method and apparatus of the access information of wireless access focus
CN106255176A (en) * 2016-08-04 2016-12-21 深圳键桥通讯技术股份有限公司 The method that smart machine is accessed wireless network
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN106453529A (en) * 2016-09-28 2017-02-22 浙江大学 Hen house Internet of Things sensor node data collecting, monitoring and controlling device based on WIFI
CN107276866A (en) * 2017-07-28 2017-10-20 美的智慧家居科技有限公司 Home appliance match somebody with somebody network method, device and home appliance
CN108834196A (en) * 2018-05-31 2018-11-16 连尚(新昌)网络科技有限公司 A kind of sending, receiving method and equipment of the access information of wireless access point
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835631A (en) * 2021-03-29 2021-05-25 聚好看科技股份有限公司 Method for starting homepage application and display device

Also Published As

Publication number Publication date
CN111836339B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
JP6207734B2 (en) Intelligent device scene mode customization method and apparatus
US7729282B2 (en) Home network system and its configuration system
US20190246346A1 (en) Method of connecting to network for home appliance, home appliance, and method of connecting to network for home appliance system
CN109996314A (en) A kind of methods, devices and systems to distribution net equipment access network hotspot equipment
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
CN105577493A (en) Control method and device of smart home devices and system
WO2009003385A1 (en) Methods, apparatus and systems for updating equipment
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
CN105373089A (en) Home control gateway and gateway online method thereof
CN111107605A (en) Network distribution method of household electrical appliance and household electrical appliance
CN111836339B (en) Network equipment
CN104883719A (en) Method, apparatus and system of accessing to wireless local area network by wireless input device
CN114641974A (en) Resource subscription method, device and storage medium
CN114697150A (en) Command issuing method and device, storage medium and electronic device
EP4138342A1 (en) Home appliance, networking method therefor, control terminal, and computer storage medium
CN113132958B (en) Fusion networking method, device, system and computer readable storage medium
CN115220360A (en) Household appliance pairing method and device, server and storage medium
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
CN107105329A (en) A kind of intelligent television WI FI connection methods, device and intelligent television
CN109714785B (en) Network access method, device, network equipment and storage medium
CN114137842A (en) Scene configuration method and device, electronic equipment and storage medium
CN114009143A (en) Configuration method and device of Internet of things equipment and storage medium
CN113747415B (en) Connection method and device of wireless access point, storage medium and electronic device
EP3896916B1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium

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