CN114189424A - Intelligent device control method, device, electronic device, medium, and program product - Google Patents
Intelligent device control method, device, electronic device, medium, and program product Download PDFInfo
- Publication number
- CN114189424A CN114189424A CN202111530645.2A CN202111530645A CN114189424A CN 114189424 A CN114189424 A CN 114189424A CN 202111530645 A CN202111530645 A CN 202111530645A CN 114189424 A CN114189424 A CN 114189424A
- Authority
- CN
- China
- Prior art keywords
- router
- information
- network
- type
- control operation
- 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
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000001514 detection method Methods 0.000 claims description 44
- 230000002159 abnormal effect Effects 0.000 claims description 29
- 238000011217 control strategy Methods 0.000 claims description 27
- 238000012423 maintenance Methods 0.000 claims description 27
- 238000013507 mapping Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000000523 sample Substances 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000000586 desensitisation Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to an intelligent device control method, an intelligent device control device, an electronic device, a medium and a program product, which are applied to the technical field of intelligent devices, wherein the method comprises the following steps: acquiring a network request state of a target application in intelligent equipment; responding to the abnormity of the target application network request, detecting the network connection of the intelligent equipment, and determining the type of the network fault; logging in a management page of a router connected with the intelligent equipment to acquire information of the router; and executing corresponding control operation on the router according to the network fault type and the information of the router. The method and the device can improve the network availability of the intelligent device.
Description
Technical Field
The present application relates to the field of smart device technologies, and in particular, to a method and an apparatus for controlling a smart device, an electronic device, a medium, and a program product.
Background
The router is a device for connecting each local area network and each wide area network in the internet, and is widely applied to various industries at present. After the intelligent device is connected with the wireless router, a user can access the Internet through the intelligent device. If the configuration of the router is wrong or the router has a bug, the user cannot access the Internet. Therefore, the network availability of the smart device is low.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present application provides an intelligent device control method, apparatus, electronic device, medium, and program product.
According to a first aspect of the present application, there is provided an intelligent device control method, including:
acquiring a network request state of a target application in intelligent equipment;
responding to the target application network request abnormity, detecting the network connection of the intelligent equipment, and determining the type of network fault;
logging in a management page of a router connected with the intelligent equipment to acquire information of the router;
and executing corresponding control operation on the router according to the network fault type and the information of the router.
Optionally, the executing, according to the network fault type and the information of the router, a corresponding control operation on the router includes:
according to the network fault type, performing corresponding detection on the router to obtain a detection result;
and executing corresponding control operation on the router according to the detection result and the information of the router.
Optionally, the executing, according to the detection result and the information of the router, a corresponding control operation on the router includes:
determining the abnormal type of the router according to the detection result;
and executing corresponding control operation on the router according to the abnormal type and the information of the router.
Optionally, the executing, according to the exception type and the information of the router, a corresponding control operation on the router includes:
if the abnormal type belongs to a preset type, controlling the router according to the preset type and a control strategy corresponding to the information of the router;
if the abnormal type does not belong to the preset type, resetting the router, and configuring the router according to the configuration information of the router; or restarting the router.
Optionally, after performing corresponding control operation on the router, the method further includes:
acquiring the current network request state of the target application, and sending the relevant information of the router to a server of a maintenance worker under the condition that the current network request state is normal so as to establish a mapping relation between the router model, the detection result and the control strategy in the server; and
under the condition that the current network request state is abnormal, switching to a target available network, and sending the relevant information of the router to the server so that the maintenance personnel can determine a target control strategy according to the relevant information;
acquiring the target control strategy from the server, and controlling the router according to the target control strategy so as to ensure that the network state of the router is normal;
wherein the related information comprises: the type of the router, configuration information of the router, the network request state, the detection result, a control operation performed on the router, and the current network request state.
Optionally, logging in a management page of the router includes:
displaying a login page in response to a start operation for a maintenance function of the router;
if account information input by a user on the login page is received, logging in a management page of the router based on the account information input by the user;
and if the account information input by the user is not received, attempting login is carried out through one or more candidate account information corresponding to the router, and if the login is successful, the login is carried out on the management page of the router.
Optionally, the method for obtaining information of one or more candidate accounts corresponding to the router includes:
acquiring a mapping relation between the router model and the account information from a server;
determining one or more candidate models corresponding to the router according to the physical address of the router;
and determining account information corresponding to the one or more candidate models as one or more candidate account information corresponding to the router.
According to a second aspect of the present application, there is provided a smart device control apparatus including:
the network state acquisition module is used for acquiring the network request state of the target application in the intelligent equipment;
the network fault type determining module is used for responding to the abnormity of the target application network request, detecting the network connection of the intelligent equipment and determining the type of the network fault;
the router information acquisition module is used for logging in a management page of a router connected with the intelligent equipment and acquiring information of the router;
and the control operation module is used for executing corresponding control operation on the router according to the network fault type and the information of the router.
Optionally, the control operation module is specifically configured to perform corresponding detection on the router according to the network fault type, so as to obtain a detection result; and executing corresponding control operation on the router according to the detection result and the information of the router.
Optionally, the control operation module is specifically configured to implement, according to the detection result and the information of the router, a corresponding control operation on the router by:
determining the abnormal type of the router according to the detection result;
and executing corresponding control operation on the router according to the abnormal type and the information of the router.
Optionally, the control operation module is specifically configured to implement, according to the exception type and the information of the router, a corresponding control operation on the router by:
if the abnormal type belongs to a preset type, controlling the router according to the preset type and a control strategy corresponding to the information of the router;
if the abnormal type does not belong to the preset type, resetting the router, and configuring the router according to the configuration information of the router; or restarting the router.
Optionally, the intelligent device control apparatus further includes:
the first sending module is used for obtaining the current network request state of the target application, and sending the relevant information of the router to a server of maintenance personnel under the condition that the current network request state is normal so as to establish a mapping relation between the router model, the detection result and the control strategy in the server; and
the second sending module is used for switching to a target available network and sending the relevant information of the router to the server under the condition that the current network request state is abnormal, so that the maintenance personnel can determine a target control strategy according to the relevant information;
the control operation module is further configured to obtain the target control policy from the server, and control the router according to the target control policy, so that the network state of the router is normal;
wherein the related information comprises: the type of the router, configuration information of the router, the network request state, the detection result, a control operation performed on the router, and the current network request state.
Optionally, the router information obtaining module is specifically configured to log in a management page of the router by:
displaying a login page in response to a start operation for a maintenance function of the router;
if account information input by a user on the login page is received, logging in a management page of the router based on the account information input by the user;
and if the account information input by the user is not received, attempting login is carried out through one or more candidate account information corresponding to the router, and if the login is successful, the login is carried out on the management page of the router.
Optionally, the router information obtaining module is specifically configured to obtain one or more candidate account information corresponding to the router through the following steps:
acquiring a mapping relation between the router model and the account information from a server;
determining one or more candidate models corresponding to the router according to the physical address of the router;
and determining account information corresponding to the one or more candidate models as one or more candidate account information corresponding to the router.
According to a third aspect of the present application, there is provided an electronic device comprising: a processor for executing a computer program stored in a memory, the computer program, when executed by the processor, implementing the method of the first aspect.
According to a fourth aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect.
According to a fifth aspect of the present application, there is provided a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
after detecting the network request is abnormal, the intelligent device can log in a management page of the router to acquire the information of the router. And executing corresponding control operation on the router according to the network fault type and the information of the router. Therefore, in the case of a network fault, the intelligent device can automatically perform control operation corresponding to the type of the network fault and the information of the router on the router so as to solve the network fault, thereby improving the network availability of the intelligent device.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram showing a system architecture of an exemplary application environment to which the smart device control method of the embodiment of the present application can be applied;
fig. 2 is a flowchart of a control method of an intelligent device in an embodiment of the present application;
FIG. 3A is a flowchart of a method for registering a router in an embodiment of the present application;
fig. 3B is another flowchart of a control method of an intelligent device in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an intelligent device control apparatus in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order that the above-mentioned objects, features and advantages of the present application may be more clearly understood, the solution of the present application will be further described below. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein; it is to be understood that the embodiments described in this specification are only some embodiments of the present application and not all embodiments.
Fig. 1 is a schematic diagram showing a system architecture of an exemplary application environment to which the smart device control method of the embodiment of the present application can be applied. As shown in fig. 1, system architecture 100 may include a smart device 101 and a router 102. Smart devices 101 include, but are not limited to, smart phones, tablets, smart speakers, smart desk lamps, smart televisions, and the like.
The intelligent device control method provided by the embodiment of the application may be executed by the intelligent device 101, and accordingly, the intelligent device control apparatus may be disposed in the intelligent device 101. For example, the smart device 101 may log in a management page of the router, and view information of the router, for example, view model, configuration information, and the like of the router, in case of detecting a network failure. Further, according to the network fault type and the information of the router, a corresponding control operation may be performed on the router to solve the network problem and improve the network availability of the intelligent device 101.
Referring to fig. 2, fig. 2 is a flowchart of a method for controlling an intelligent device in an embodiment of the present application, and the method may include the following steps:
step S210, obtaining a network request state of the target application in the intelligent device.
The target application is any application installed in the intelligent device, and when the user uses the target application, the intelligent device can acquire the network request state of the target application.
Step S220, responding to the abnormity of the target application network request, detecting the network connection of the intelligent equipment, and determining the network fault type.
Under the condition that no network fault occurs, the target application can acquire the request data; when a network failure occurs, the target application may acquire the request data for a long time or may not acquire the request data. And the intelligent equipment responds to the network request abnormity, detects the network connection of the intelligent equipment and determines the network fault type. The network fault type includes high network request delay, network request failure, etc.
And step S230, logging in a management page of the router connected with the intelligent device to acquire information of the router.
In the embodiment of the application, the user can monitor the router through the intelligent device, so that the router is maintained. Specifically, after detecting a network failure (for example, the intelligent device cannot be networked), the intelligent device may log in a management page of the router to obtain information of the router. For example, product information of the router, configuration information of relevant configuration made by the user to the router, and the like can be acquired.
And step S240, executing corresponding control operation on the router according to the network fault type and the information of the router.
It will be appreciated that different control operations may be performed on the router for different types of failures to address different types of network failures. For example, for some types of failures, the network failure can be solved by resetting the router; for other types of network failures, a restart operation may be required for the router to resolve the network failure.
In addition, since routers manufactured by different manufacturers are different, even for the same network fault type, the control operation modes corresponding to the routers of different models may be different. Alternatively, the control operations performed on the router may be different for different configuration information. Therefore, the network fault type and the information of the router can be comprehensively considered, so that the corresponding control operation is accurately executed on the router, and the network fault is further solved more quickly.
According to the intelligent device control method, after the intelligent device detects the network fault, the intelligent device can log in a management page of the router to acquire the information of the router. And executing corresponding control operation on the router according to the network fault type and the information of the router. It can be seen that, in the case of a network failure, the intelligent device can automatically perform a control operation corresponding to the type of the network failure and the information of the router on the router to solve the network failure, thereby improving the network availability of the intelligent device.
Referring to fig. 3A, fig. 3A is a flowchart of a method for logging in a router in an embodiment of the present application, which may include the following steps:
step S302, in response to the start operation for the maintenance function of the router, displays a login page.
In the embodiment of the application, a switch button with a router maintenance function can be provided, and a user can turn on or off the button according to actual requirements. The button may be turned on if the user wants to implement maintenance of the router through the smart device. The intelligent device responds to the opening operation of the user, and can display a login page for prompting the user to input account information. After the user logs in, the maintenance of the router is realized.
In step S304, it is determined whether account information input by the user is received.
The user can manually input account information on the login page, and if the account information input by the user on the login page is received, the step S306 is executed; if the account information input by the user is not received, step S308 is executed.
And step S306, logging in a management page of the router based on the account information input by the user.
Step S308, attempting login is carried out through one or more candidate account information corresponding to the router, and if the login is successful, the management page of the router is logged in.
Because account information used by routers of different models is usually different, a server can collect account information of routers of different models in advance and establish a mapping relation between router models and account information. The intelligent device can obtain the mapping relation between the router model and the account information from the server.
Since the physical addresses corresponding to the routers manufactured by each manufacturer are different, the manufacturer corresponding to the router can be determined according to the physical addresses of the routers. And the model of the router produced by each manufacturer is determined, so that one or more candidate models corresponding to the router can be determined, wherein the candidate models are the models of all routers produced by the manufacturer corresponding to the router. And determining account information corresponding to the one or more candidate models as one or more candidate account information corresponding to the router. And attempting login is carried out through one or more candidate account information, if the login is successful, the login is carried out on a management page of the router, and the candidate account information which is successfully logged in is the default account information of the router. If all the candidate account information fails to be logged in, the default account information is modified by the user, and the process is ended.
In the embodiment of the application, after logging in the management page of the router, login account information (account information manually input by a user or default account information) of the router may be stored, so that the router can be logged in according to the login account information when logging in next time. The way the login management page is stored, i.e. manual login or automatic login, may also be stored, so that a reference may be provided for the next login.
Referring to fig. 3B, fig. 3B is a flowchart of another method for controlling an intelligent device in the embodiment of the present application, which may include the following steps:
step S310, acquiring the network request state of the target application in the intelligent device.
Step S312, responding to the abnormity of the target application network request, detecting the network connection of the intelligent device, and determining the network fault type.
And step S314, logging in a management page of the router connected with the intelligent device to acquire the information of the router.
Steps S310 to S314 are the same as steps S210 to S230 in the embodiment of fig. 2, and specific reference may be made to the description in the embodiment of fig. 2, which is not repeated herein.
And step S316, according to the network fault type, executing corresponding detection on the router to obtain a detection result.
In the embodiment of the application, the router can be correspondingly detected according to the network fault type. In general, the types of network failures are different, and the detection modes used may also be different. Of course, the same detection method may be used for some different types of network failures. For example, if the traffic network requests continuously fail, traceroute probes (traceroute, for identifying a network path from one device to another) and ping probes (for determining whether a local host can successfully exchange packets with another host) may be initiated to detect the connectivity of the network. If the service network request time is long (e.g. 1 hour) and the delay is high, traceroute probe and ping probe can be initiated to detect the bandwidth of the router.
Step S318, according to the detection result and the information of the router, corresponding control operation is executed to the router.
The intelligent device may locally store a mapping relationship between the detection result obtained from the server and a control policy, where the control policy is used to instruct a user how to perform a control operation on the router. Thus, according to the detection result and the mapping relation, the corresponding control strategy can be determined, and the router is controlled according to the control strategy. In special cases, for some new network failures, if the detection result is not in the mapping relationship, the attempt can also be made by restarting or resetting the router.
It should be noted that the mapping relationship may be established in advance by a maintenance person and stored in the server. The mapping relationship may be updated continuously, for example, in the case of a new network failure, after the maintenance personnel determines the corresponding control policy, the maintenance personnel may add the corresponding detection result and the control policy to the mapping relationship.
In the embodiment of the present application, in addition to directly executing a corresponding control operation on the router according to the detection result, the abnormal type of the router may also be determined according to the detection result. For example, if connectivity to a router is cut off, i.e., the network does not have access to the user, it indicates that the router has a failure, which is a serious problem. If the single-hop delay from the intelligent device to the router is low and the delay from the router to the next hop is high, the fact that the exit bandwidth of the router has a problem is indicated, and bandwidth limitation is possibly performed on the router, and the like.
After the exception type is determined, corresponding operation control can be executed on the router according to the exception type and the information of the router. In an optional implementation manner, if the exception type belongs to the preset type, the router is controlled according to the preset type and a control policy corresponding to the information of the router. The preset type, the information of the router and the mapping relation of the control strategy can be preset by maintenance personnel according to experience and uploaded to the server. For example, if there is a problem with router egress bandwidth, the corresponding control policy may be: adjusting the bandwidth of the router to a preset bandwidth threshold value, and the like. The intelligent device can obtain the mapping relation between the preset type and the control strategy from the server, and can directly control the router according to the corresponding control strategy in the mapping relation under the condition that the preset type comprises the abnormal type.
If the abnormal type does not belong to the preset type, resetting the router, and configuring the router according to the configuration information of the router acquired from the management page of the router before resetting; alternatively, the router may be restarted.
Step S320, obtain the current network request status of the target application.
Step S322, under the condition that the current network request state of the router is normal, the relevant information of the router is sent to the server of the maintenance personnel, so as to establish the mapping relation between the router model, the detection result and the control strategy in the server.
It is understood that, by means of step S316, the network failure may or may not be resolved, and therefore, the network state of the router, that is, the current network state after the corresponding control operation is performed on the router, may be obtained again, and the relevant information of the router is sent to the server of the maintenance staff. Before sending information about the router to the server, information desensitization, such as removing sensitive information such as physical addresses, IP (internet protocol) addresses, etc., may be performed. The related information includes: the model of the router, the network request state, the detection result, the control operation performed on the router, and the current network state. When the network request state is abnormal, the related information of the router may further include log information of the router, and the like.
Under the condition of solving the network fault, namely the current network state is not abnormal, the server can establish the mapping relation between the router model, the detection result and the control strategy; or, a mapping relation between the router model, the detection result, the abnormal type and the control policy, etc. may also be established. Therefore, different intelligent devices respectively send the mapping relation to the server, the server can acquire information of more routers, and maintenance personnel can provide more network fault reason information according to the information of the more routers.
And step S324, under the condition that the current network request state of the router is abnormal, switching to a target available network, and sending the relevant information of the router to the server, so that maintenance personnel can determine a target control strategy according to the relevant information.
In the case of an unresolved network failure, that is, an abnormality exists in the current network state, similarly, a handover to a target available network (for example, a mobile network or the like) may be performed first, and then the relevant information of the router may be sent to the server. The maintenance personnel can obtain the relevant information of the router from the server, analyze the network fault and provide a target control strategy in a manual mode, wherein the target control strategy is a control strategy capable of solving the network fault.
Step S326, obtaining the target control policy from the server, and controlling the router according to the target control policy, so that the network state of the router is normal.
According to the intelligent device control method, when the user starts the maintenance function of the router through the intelligent device, the login page is displayed. The user can manually input account information to perform manual login, under the condition that the user does not input the account information, the intelligent device can use a candidate account corresponding to the router to perform attempted login according to the model of the router and the mapping relation of the account information acquired from the server, and if the login fails, the process is ended; if the login is successful, the intelligent device can check the information of the router, and can also perform corresponding detection and control operations on the router to solve the network failure, so that the network availability of the intelligent device is improved. The intelligent device can also send the relevant information of the router to the server, so that the network fault can be further solved by maintenance personnel under the condition that the network fault cannot be solved through the control operation of the intelligent device. Under the condition that the network fault is solved through the control operation of the intelligent equipment, the server acquires the relevant information of the router sent by each intelligent equipment, so that maintenance personnel can provide more network fault reason information according to the relevant information of a plurality of routers.
Corresponding to the above method embodiment, an embodiment of the present application further provides an intelligent device control apparatus, and referring to fig. 4, the intelligent device control apparatus 400 includes:
a network status obtaining module 410, configured to obtain a network request status of a target application in an intelligent device;
a network fault type determining module 420, configured to detect a network connection of the intelligent device in response to an abnormality of the target application network request, and determine a network fault type;
the router information obtaining module 430 is configured to log in a management page of a router connected to the intelligent device, and obtain information of the router;
and a control operation module 440, configured to perform a corresponding control operation on the router according to the network failure type and the information of the router.
Optionally, the control operation module 440 is specifically configured to perform corresponding detection on the router according to the network fault type, so as to obtain a detection result; and executing corresponding control operation on the router according to the detection result and the information of the router.
Optionally, the control operation module 440 is specifically configured to implement, according to the detection result and the information of the router, a corresponding control operation on the router by:
determining the abnormal type of the router according to the detection result;
and executing corresponding control operation on the router according to the abnormal type and the information of the router.
Optionally, the control operation module 440 is specifically configured to implement, according to the abnormal type and the information of the router, a corresponding control operation on the router by the following steps:
if the abnormal type belongs to the preset type, controlling the router according to the preset type and a control strategy corresponding to the information of the router;
if the abnormal type does not belong to the preset type, resetting the router, and configuring the router according to the configuration information of the router; or restarting the router.
Optionally, the intelligent device control apparatus 400 further includes:
the first sending module is used for obtaining the current network request state of the target application, and sending the relevant information of the router to a server of a maintainer under the condition that the current network request state is normal so as to establish the mapping relation between the router model, the detection result and the control strategy in the server; and
the second sending module is used for switching to a target available network under the condition that the current network request state is abnormal, and sending the relevant information of the router to the server so that maintenance personnel can determine a target control strategy according to the relevant information;
the control operation module 440 is further configured to obtain a target control policy from the server, and control the router according to the target control policy, so that the network state of the router is normal;
wherein the related information comprises: the type of the router, configuration information of the router, a network request state, a detection result, a control operation performed on the router, and a current network request state.
Optionally, the router information obtaining module 430 is specifically configured to implement the management page of the login router by the following steps:
displaying a login page in response to a start operation for a maintenance function of the router;
if account information input by a user on a login page is received, logging in a management page of the router based on the account information input by the user;
and if the account information input by the user is not received, attempting login is carried out through one or more candidate account information corresponding to the router, and if the login is successful, the login is carried out on a management page of the router.
Optionally, the router information obtaining module 430 is specifically configured to obtain one or more candidate account information corresponding to the router through the following steps:
acquiring a mapping relation between the router model and the account information from a server;
determining one or more candidate models corresponding to the router according to the physical address of the router;
and determining account information corresponding to the one or more candidate models as one or more candidate account information corresponding to the router.
The details of each module or unit in the above device have been described in detail in the corresponding method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present application, there is also provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the smart device control method described above in this example embodiment.
Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application. It should be noted that the electronic device 500 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
As shown in fig. 5, the electronic apparatus 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The central processing unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a Local Area Network (LAN) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the central processing unit 501, performs various functions defined in the apparatus of the present application.
In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for controlling an intelligent device is implemented.
It should be noted that the computer readable storage medium shown in the present application can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, radio frequency, etc., or any suitable combination of the foregoing.
In an embodiment of the present application, a computer program product is further provided, and when the computer program product runs on a computer, the computer is enabled to execute the intelligent device control method.
It is noted that, in this document, 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.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. An intelligent device control method, characterized in that the method comprises:
acquiring a network request state of a target application in intelligent equipment;
responding to the target application network request abnormity, detecting the network connection of the intelligent equipment, and determining the type of network fault;
logging in a management page of a router connected with the intelligent equipment to acquire information of the router;
and executing corresponding control operation on the router according to the network fault type and the information of the router.
2. The method according to claim 1, wherein said performing corresponding control operations on the router according to the network failure type and the information of the router comprises:
according to the network fault type, performing corresponding detection on the router to obtain a detection result;
and executing corresponding control operation on the router according to the detection result and the information of the router.
3. The method according to claim 2, wherein the performing, according to the detection result and the information of the router, a corresponding control operation on the router comprises:
determining the abnormal type of the router according to the detection result;
and executing corresponding control operation on the router according to the abnormal type and the information of the router.
4. The method according to claim 3, wherein said performing corresponding control operations on the router according to the exception type and the information of the router comprises:
if the abnormal type belongs to a preset type, controlling the router according to the preset type and a control strategy corresponding to the information of the router;
if the abnormal type does not belong to the preset type, resetting the router, and configuring the router according to the configuration information of the router; or restarting the router.
5. The method of claim 1, wherein after performing the corresponding control operation on the router, the method further comprises:
acquiring the current network request state of the target application, and sending the relevant information of the router to a server of a maintenance worker under the condition that the current network request state is normal so as to establish a mapping relation between the router model, the detection result and the control strategy in the server; and
under the condition that the current network request state is abnormal, switching to a target available network, and sending the relevant information of the router to the server so that the maintenance personnel can determine a target control strategy according to the relevant information;
acquiring the target control strategy from the server, and controlling the router according to the target control strategy so as to ensure that the network state of the router is normal;
wherein the related information comprises: the type of the router, configuration information of the router, the network request state, the detection result, a control operation performed on the router, and the current network request state.
6. The method of claim 1, wherein logging into the management page of the router comprises:
displaying a login page in response to a start operation for a maintenance function of the router;
if account information input by a user on the login page is received, logging in a management page of the router based on the account information input by the user;
and if the account information input by the user is not received, attempting login is carried out through one or more candidate account information corresponding to the router, and if the login is successful, the login is carried out on the management page of the router.
7. The method according to claim 6, wherein the method for obtaining information of one or more candidate account numbers corresponding to the router comprises:
acquiring a mapping relation between the router model and the account information from a server;
determining one or more candidate models corresponding to the router according to the physical address of the router;
and determining account information corresponding to the one or more candidate models as one or more candidate account information corresponding to the router.
8. An intelligent device control apparatus, the apparatus comprising:
the network state acquisition module is used for acquiring the network request state of the target application in the intelligent equipment;
the network fault type determining module is used for responding to the abnormity of the target application network request, detecting the network connection of the intelligent equipment and determining the type of the network fault;
the router information acquisition module is used for logging in a management page of a router connected with the intelligent equipment and acquiring information of the router;
and the control operation module is used for executing corresponding control operation on the router according to the network fault type and the information of the router.
9. An electronic device, comprising: a processor for executing a computer program stored in a memory, the computer program, when executed by the processor, implementing the steps of the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
11. A computer program product, characterized in that it causes a computer to carry out the steps of the method according to any one of claims 1 to 7, when said computer program product is run on the computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111530645.2A CN114189424B (en) | 2021-12-14 | 2021-12-14 | Intelligent device control method, intelligent device control device, electronic device, medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111530645.2A CN114189424B (en) | 2021-12-14 | 2021-12-14 | Intelligent device control method, intelligent device control device, electronic device, medium and program product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114189424A true CN114189424A (en) | 2022-03-15 |
CN114189424B CN114189424B (en) | 2024-04-30 |
Family
ID=80605047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111530645.2A Active CN114189424B (en) | 2021-12-14 | 2021-12-14 | Intelligent device control method, intelligent device control device, electronic device, medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114189424B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122279A (en) * | 1995-10-02 | 2000-09-19 | Virata Limited | Asynchronous transfer mode switch |
US20030110409A1 (en) * | 2001-12-07 | 2003-06-12 | Alan Gale | Method and apparatus for network fault correction via adaptive fault router |
US7111206B1 (en) * | 2001-09-19 | 2006-09-19 | Juniper Networks, Inc. | Diagnosis of network fault conditions |
US20110047413A1 (en) * | 2009-08-20 | 2011-02-24 | Mcgill Robert E | Methods and devices for detecting service failures and maintaining computing services using a resilient intelligent client computer |
CN107070739A (en) * | 2017-02-24 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of router operation troubles intelligent detecting method and system |
CN107241228A (en) * | 2017-06-30 | 2017-10-10 | 北京小米移动软件有限公司 | Determination method, device and the equipment of network failure |
CN111901208A (en) * | 2020-06-17 | 2020-11-06 | 深圳市欧瑞博科技股份有限公司 | Intelligent equipment control method and device, intelligent control panel and storage medium |
CN112272118A (en) * | 2020-11-13 | 2021-01-26 | Oppo广东移动通信有限公司 | Network repairing method, device, storage medium and electronic equipment |
WO2021017364A1 (en) * | 2019-07-26 | 2021-02-04 | 京信通信系统(中国)有限公司 | Network failure diagnosis method and apparatus, network device, and storage medium |
US20210103507A1 (en) * | 2019-10-03 | 2021-04-08 | Cisco Technology, Inc. | Highly-available distributed network address translation (nat) architecture with failover solutions |
CN113096659A (en) * | 2021-03-31 | 2021-07-09 | 百度在线网络技术(北京)有限公司 | Router control method, device, equipment and storage medium |
CN113225744A (en) * | 2021-05-08 | 2021-08-06 | 深圳市欧瑞博科技股份有限公司 | Intelligent device ad hoc network method, intelligent networking system and storage medium |
-
2021
- 2021-12-14 CN CN202111530645.2A patent/CN114189424B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122279A (en) * | 1995-10-02 | 2000-09-19 | Virata Limited | Asynchronous transfer mode switch |
US7111206B1 (en) * | 2001-09-19 | 2006-09-19 | Juniper Networks, Inc. | Diagnosis of network fault conditions |
US20030110409A1 (en) * | 2001-12-07 | 2003-06-12 | Alan Gale | Method and apparatus for network fault correction via adaptive fault router |
US20110047413A1 (en) * | 2009-08-20 | 2011-02-24 | Mcgill Robert E | Methods and devices for detecting service failures and maintaining computing services using a resilient intelligent client computer |
CN107070739A (en) * | 2017-02-24 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of router operation troubles intelligent detecting method and system |
CN107241228A (en) * | 2017-06-30 | 2017-10-10 | 北京小米移动软件有限公司 | Determination method, device and the equipment of network failure |
WO2021017364A1 (en) * | 2019-07-26 | 2021-02-04 | 京信通信系统(中国)有限公司 | Network failure diagnosis method and apparatus, network device, and storage medium |
US20210103507A1 (en) * | 2019-10-03 | 2021-04-08 | Cisco Technology, Inc. | Highly-available distributed network address translation (nat) architecture with failover solutions |
CN111901208A (en) * | 2020-06-17 | 2020-11-06 | 深圳市欧瑞博科技股份有限公司 | Intelligent equipment control method and device, intelligent control panel and storage medium |
CN112272118A (en) * | 2020-11-13 | 2021-01-26 | Oppo广东移动通信有限公司 | Network repairing method, device, storage medium and electronic equipment |
CN113096659A (en) * | 2021-03-31 | 2021-07-09 | 百度在线网络技术(北京)有限公司 | Router control method, device, equipment and storage medium |
CN113225744A (en) * | 2021-05-08 | 2021-08-06 | 深圳市欧瑞博科技股份有限公司 | Intelligent device ad hoc network method, intelligent networking system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114189424B (en) | 2024-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10491671B2 (en) | Method and apparatus for switching between servers in server cluster | |
EP3048759B1 (en) | Fault diagnosis method, device and system | |
CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
CN110752954A (en) | Networking fault detection method and related device for household electrical appliance | |
CN103377094A (en) | Abnormity monitoring method and abnormity monitoring device | |
CN109981747B (en) | Device control method, device, electronic device and storage medium | |
CN110971689B (en) | System installation method, device, system, equipment and storage medium | |
CN110838953A (en) | Test method, test system, electronic equipment and storage medium | |
EP3865998A1 (en) | Cluster management method, apparatus and system | |
CN115061885A (en) | Complete machine aging automatic test method and device, electronic equipment and storage medium | |
US20170280410A1 (en) | Method, device and system for implementing information self-registration, and computer storage medium | |
CN105630647A (en) | Equipment detection method and detection equipment | |
JP2007183837A (en) | Environment-setting program, environment-setting system, and environment-setting method | |
CN102571438A (en) | Remote monitoring system and automatic network diagnosis method thereof | |
CN106604316A (en) | Wireless access equipment fault positioning method, device and system | |
CN106411643B (en) | BMC detection method and device | |
CN114189424B (en) | Intelligent device control method, intelligent device control device, electronic device, medium and program product | |
CN116844087A (en) | Monitoring method and device of operating system and BMC | |
CN112583617A (en) | Fault determination method, server, control terminal and storage medium | |
CN110474821B (en) | Node fault detection method and device | |
CN110351729B (en) | Method, system, terminal and storage medium for automatically matching authentication parameters | |
CN110011817B (en) | Network element upgrading method and device and computer readable storage medium | |
JP5268820B2 (en) | Rewriting method for monitoring device program | |
CN111400094A (en) | Method, device, equipment and medium for restoring factory settings of server system | |
CN111930399A (en) | Operating system repair method, device, system and computer readable 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 |