CN110806882B - Method and system for monitoring installation of plug-in - Google Patents
Method and system for monitoring installation of plug-in Download PDFInfo
- Publication number
- CN110806882B CN110806882B CN201911088193.XA CN201911088193A CN110806882B CN 110806882 B CN110806882 B CN 110806882B CN 201911088193 A CN201911088193 A CN 201911088193A CN 110806882 B CN110806882 B CN 110806882B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- kitchen
- plug
- identifier
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Alarm Systems (AREA)
Abstract
The disclosure relates to a method and a system for monitoring the installation of a plug-in, wherein the method comprises monitoring equipment and an AP; the monitoring equipment acquires a monitoring plug-in list; the monitoring equipment matches the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, if the matching is unsuccessful, the current system is judged to not install the kitchen monitoring plug-in, and a request message is sent to the AP; the AP returns a kitchen monitoring plug-in installation package to the monitoring equipment according to the request message; the monitoring equipment calls a loading thread and runs an executable file in the kitchen monitoring plug-in installation package; the monitoring equipment reads an operation identifier returned when the loading thread operates an executable file in the kitchen monitoring plug-in installation package; the monitoring equipment detects whether the returned operation identifier is a preset operation success identifier, and if the returned operation identifier is the preset operation success identifier, a response message is sent to the AP, wherein the response message carries the operation success identifier and the MAC address of the monitoring equipment. The invention improves the convenience of the installation of the monitoring plug-in.
Description
Technical Field
The disclosure relates to the technical field of software, and in particular relates to a method and a system for monitoring installation of a plug-in.
Background
The construction of the bright kitchen range is carried out, the public is guided to actively participate in food production and processing supervision, and consumers can see clearly and eat the kitchen range safely. The monitoring equipment is placed in the kitchen and monitors the condition of the kitchen at any time.
However, the existing monitoring device has two problems, one is that the monitoring device cannot identify whether the kitchen monitoring plug-in is installed or not, the self-checking function is lacking, if the monitoring device is inspected manually, the time and the labor are wasted, the other is that the monitoring device cannot return the operation identification of the kitchen monitoring plug-in installation package, and whether the kitchen monitoring plug-in installation package is installed successfully or not cannot be known, so that the installation efficiency of the kitchen monitoring plug-in is affected, and therefore, the convenience of the kitchen monitoring plug-in installation is urgently needed to be improved.
Disclosure of Invention
In view of this, the disclosure provides a method and a system for monitoring plug-in installation, which aim to solve the problem that monitoring equipment cannot identify whether a kitchen monitoring plug-in is installed or not and that monitoring equipment cannot return to an operation identifier of a kitchen monitoring plug-in installation package, so as to improve convenience of kitchen monitoring plug-in installation.
According to an aspect of the present disclosure, there is provided a method of monitoring a plug-in installation, the method comprising monitoring a device, an AP:
the monitoring equipment acquires a monitoring plug-in list, wherein the monitoring plug-in list comprises names of installed monitoring plug-ins;
the monitoring equipment matches the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, if the matching is successful, the current system is judged to be installed with the kitchen monitoring plug-in, if the matching is unsuccessful, the current system is judged to be not installed with the kitchen monitoring plug-in, and a request message is sent to the AP;
the AP returns the kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
the monitoring equipment receives the kitchen monitoring plug-in installation package and obtains a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the monitoring equipment converts the loading thread from the ready state to an operating state, and loads and operates an executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the monitoring equipment reads an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
and the monitoring equipment detects whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, the kitchen monitoring plug-in installation package is judged to be successful in operation, a response message is sent to the AP, and the response message carries the operation success identifier and the MAC address of the monitoring equipment.
According to another aspect of the present disclosure, there is provided a monitoring plug-in installation system, the system including a monitoring device including an acquisition module, a determination module, a receiving module, a calling module, a reading module, a detection module, and an AP including a return module;
the system comprises monitoring equipment and an AP, wherein the monitoring equipment comprises an acquisition module, a judging module, a receiving module, a calling module, a reading module and a detecting module, and the AP comprises a return module;
the acquisition module is used for acquiring a monitoring plugin list, and the monitoring plugin list comprises names of installed monitoring plugins;
the judging module is used for matching the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, judging that the kitchen monitoring plug-in is installed in the current system if the matching is successful, judging that the kitchen monitoring plug-in is not installed in the current system if the matching is unsuccessful, and sending a request message to the AP;
the return module is used for returning the kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
the receiving module is used for receiving the kitchen monitoring plug-in installation package and acquiring a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the calling module is used for converting the loading thread from the ready state to the running state, and then loading and running the executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the reading module is used for reading an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
the detection module is used for detecting whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, judging that the kitchen monitoring plug-in installation package is successful in operation, and sending a response message to the AP, wherein the response message carries the operation success identifier and the MAC address of the monitoring equipment.
According to the method and the system for installing the monitoring plug-in, the name of the installed monitoring plug-in is matched with the name of the preset kitchen monitoring plug-in through the monitoring equipment, if the matching is successful, the current system is judged to be provided with the kitchen monitoring plug-in, if the matching is unsuccessful, the current system is judged to be not provided with the kitchen monitoring plug-in, the problem that whether the monitoring equipment cannot identify the kitchen monitoring plug-in is installed or not can be solved, the operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package is read through the monitoring equipment, the problem that the monitoring equipment cannot return the operation identifier of the kitchen monitoring plug-in installation package can be solved, and therefore the convenience of kitchen monitoring plug-in installation is improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
FIG. 1 illustrates a flow chart of a method of monitoring plug-in installation in accordance with an embodiment of the present disclosure.
Fig. 2 shows a block diagram of a monitoring plug-in mounting system according to an embodiment of the present disclosure.
Detailed Description
FIG. 1 illustrates a flow chart of a method of monitoring plug-in installation in accordance with an embodiment of the present disclosure. The method comprises monitoring equipment and a wireless Access Point (AP), and the method for monitoring the installation of the plug-in can be used for kitchen monitoring. As shown in fig. 1, the method for monitoring the installation of the plug-in may include:
step S1, the monitoring equipment acquires a monitoring plug-in list, wherein the monitoring plug-in list comprises names of installed monitoring plug-ins;
step S2, the monitoring equipment matches the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, if the matching is successful, the current system is judged to have installed the kitchen monitoring plug-in, if the matching is unsuccessful, the current system is judged to not have installed the kitchen monitoring plug-in, and a request message is sent to the AP;
the request message is used for enabling the AP to send a kitchen monitoring plug-in installation package to the monitoring equipment.
The monitoring device matches the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, and the function of the monitoring device is to identify whether the kitchen monitoring plug-in is installed or not.
Step S3, the AP returns the kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
step S4, the monitoring equipment receives the kitchen monitoring plug-in installation package and obtains a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the method includes the steps that an internal thread pool is obtained, in the thread pool, the process name and the current state of a thread are obtained, whether the process name of the thread is the process name of a running kitchen monitoring plug-in installation package or not is judged, and meanwhile whether the current state of the thread is in a ready state or not is judged;
if the process name of the thread is the process name for running the kitchen monitoring plug-in installation package and the current state of the thread is in a ready state, identifying the thread as a loading thread for running the kitchen monitoring plug-in installation package and in the ready state;
and if the process name of the thread is the process name for running the kitchen monitoring plug-in installation package and the thread is not in the ready state, converting the current state of the thread into the ready state, and identifying the thread as a loading thread for running the kitchen monitoring plug-in installation package and in the ready state.
Before the monitoring equipment leaves the factory, a process name of a thread is created as a process name for running the kitchen monitoring plug-in installation package. After the monitoring equipment is started, starting a thread with a process name of a process name for running the kitchen monitoring plug-in installation package.
Step S5, the monitoring equipment converts the loading thread from the ready state to the running state, and loads and runs the executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the loading thread is converted from the ready state to the running state, so that the loading thread is not in the running state at any time, and the CPU is not occupied for a long time, the load of the CPU can be reduced, and the system runs smoothly.
Step S6, the monitoring equipment reads an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
the step S6 is specifically:
and reading a running identifier returned when the loading thread runs the executable file in the kitchen monitoring plug-in installation package by using a built-in monitor, and unlocking the monitor after waiting for a preset time if the monitor cannot read the returned running identifier because the monitor is locked due to excessive reading, and re-reading the returned running identifier by the monitor until the returned running identifier is read.
In order to prevent the process of the system from being influenced by excessive reading times, when the reading times are excessive, the monitor is locked, and after waiting for a preset time, the monitor is unlocked, so that the monitor can continuously read the running identifier returned when the loading thread runs the executable file in the kitchen monitoring plug-in installation package.
Step S7, the monitoring equipment detects whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, the kitchen monitoring plug-in installation package is judged to be successful in operation, a response message is sent to the AP, and the response message carries the operation success identifier and the MAC address of the monitoring equipment.
Wherein the successful run identifier is user defined or system default, optionally, the successful run identifier is defined as Success identification.
In the embodiment, on one hand, the name of the installed monitoring plug-in is matched with the name of the preset kitchen monitoring plug-in through monitoring equipment, if the matching is successful, the kitchen monitoring plug-in is judged to be installed in the current system, and if the matching is unsuccessful, the kitchen monitoring plug-in is judged not to be installed in the current system, so that the problem that whether the kitchen monitoring plug-in is installed or not can be solved by the monitoring equipment; on the other hand, the monitoring equipment reads the running identifier returned when the loading thread runs the executable file in the kitchen monitoring plug-in installation package, so that the problem that the monitoring equipment cannot return the running identifier of the kitchen monitoring plug-in installation package can be solved, and the convenience of kitchen monitoring plug-in installation is improved.
In one possible implementation, before the monitoring device obtains the monitoring plug-in list, the method includes:
the AP broadcasts a first request to the monitoring equipment of an access network, wherein the first request carries a detection identifier, and the detection identifier is used for indicating the monitoring equipment to detect whether a binding identifier is stored in a cache;
after receiving a first request sent by an AP, the monitoring equipment detects whether the binding identifier is stored in a local cache according to the detection identifier, and if the binding identifier is not stored in the local cache, a response result is returned to the AP, wherein the response result carries an unbound identifier and an MAC address of the monitoring equipment;
and when the AP receives a response result returned by the monitoring equipment, recording and storing the MAC address of the monitoring equipment under the catalog corresponding to the unbundled identification.
The detection identifier is a self-defined identifier, for example: defined as the Detection ID.
The unbound identifier is a custom identifier, for example: defined as the ubound field.
The binding identifier is a custom identifier, for example: defined as the Bind field.
After receiving a first request sent by an AP, the monitoring device detects whether the Bind field is stored in a local buffer according to the Detection ID, and if the Bind field is not stored in the local buffer, returns a response result to the AP, where the response result carries a ubound field and a MAC address of the monitoring device.
In one possible implementation manner, the method further includes a display device, when the AP receives a response result returned by the monitoring device, after recording and storing the MAC address of the monitoring device under the directory corresponding to the unbundled identifier, before the monitoring device obtains the monitoring plug-in list, the method further includes:
the display equipment sends an access request to the AP, wherein the access request carries an access identifier and an access password, and the access identifier is used for reminding the AP to access the display equipment to a network;
the display equipment sends a second request to the AP, wherein the second request carries an unbound identifier, and the MAC address of the display equipment;
after the AP identifies the unbound identification in the second request, the MAC address of the monitoring equipment is obtained under the directory corresponding to the unbound identification, and the MAC address of the monitoring equipment is sent to the display equipment;
the display equipment receives the MAC address of the monitoring equipment and displays the MAC address of the monitoring equipment and a binding button corresponding to the MAC address of the monitoring equipment;
the display device detects whether the determination operation of the binding button is received, and generates the association information of the monitoring device and the display device after the determination operation of the binding button is received;
the display device sends the association information to the AP, wherein the association information comprises the MAC address of the monitoring device and the MAC address of the display device bound by the MAC address of the monitoring device;
the AP receives and stores the association information and sends the binding identifier to the monitoring equipment;
the monitoring device receives and stores the binding identifier to complete binding with the display device. In a possible implementation manner, after the kitchen monitoring plug-in installation package is determined to run successfully if the kitchen monitoring plug-in installation package is matched, a response message is sent to the AP, and the response message carries the running success identifier and the MAC address of the monitoring device, the method further includes:
the monitoring equipment acquires a video image, and the first kitchen monitoring plug-in or the second kitchen monitoring plug-in is adopted to monitor the video image;
the first kitchen monitoring plug-in is used for identifying kitchen wastes, the second kitchen monitoring plug-in is used for identifying and protecting animals, and the first kitchen monitoring plug-in and the second kitchen monitoring plug-in are different;
the monitoring device uploads first kitchen monitoring information to the AP if kitchen waste is identified in the video image through the first kitchen monitoring plug-in, wherein the first kitchen monitoring information comprises a first identification and a video image of the identified kitchen waste, and uploads second kitchen monitoring information to the AP if a protected animal is identified in the video image through the second kitchen monitoring plug-in, and the second kitchen monitoring information comprises a second identification and a video image of the identified protected animal.
The monitoring device acquires a video image, and monitors the video image by adopting the first kitchen monitoring plug-in or the second kitchen monitoring plug-in, specifically:
the monitoring equipment acquires a video image, monitors the video image by adopting a first kitchen monitoring plug-in, reads the current time, and displays a switching icon for switching the first kitchen monitoring plug-in into a second kitchen monitoring plug-in if the current time is at night;
detecting whether a clicking operation of the switching icon is received or not;
if the clicking operation of the switching icon is received, switching the first kitchen monitoring plug-in into a second kitchen monitoring plug-in;
and starting an infrared night vision high-definition camera, and monitoring the video image by adopting the second kitchen monitoring plug-in.
The first kitchen monitoring plug-in and the second kitchen monitoring plug-in are simply and flexibly switched, and the first kitchen monitoring plug-in can be switched into the second kitchen monitoring plug-in through clicking operation, so that the operation of a user is easy.
The AP acquires the source codes for identifying the opening of the kitchen waste, and packages the source codes for identifying the opening of the kitchen waste into a first kitchen monitoring plug-in.
And acquiring the open source codes of the video image recognition protective animals, and packaging the open source codes of the video image recognition protective animals into a second kitchen monitoring plug-in.
The protection animals are preset by a user, for example, pictures of some protection animals are uploaded in advance to serve as samples, and whether the protection animals exist in the video image can be identified through picture identification later, so that evidence for cooking the protection animals can be found.
In one possible implementation, after the monitoring device uploads first kitchen monitoring information to the AP if kitchen waste is identified in the video image by the first kitchen monitoring plug-in, the first kitchen monitoring information including a first identification and a video image identifying kitchen waste, and uploads second kitchen monitoring information to the AP if a protected animal is identified in the video image by the second kitchen monitoring plug-in, the second kitchen monitoring information including a second identification and a video image identifying protected animal, the method further includes:
the AP receives the first kitchen monitoring information and the second kitchen monitoring information and sends the first kitchen monitoring information and the second kitchen monitoring information to the display equipment bound with the MAC address of the monitoring equipment;
when the display equipment receives the first kitchen monitoring information, creating a catalog corresponding to the first identifier, storing the first kitchen monitoring information under the catalog corresponding to the first identifier, when the display equipment receives the second kitchen monitoring information, creating a catalog corresponding to the second identifier, and storing the second kitchen monitoring information under the catalog corresponding to the second identifier. In this way, the display device can store the first kitchen monitoring information and the second kitchen monitoring information respectively, and the user can check conveniently later.
The first identifier and the second identifier are different, for example, the first identifier is set as a11, and the second identifier is set as C11.
Fig. 2 shows a block diagram of a monitoring plug-in mounting system according to an embodiment of the present disclosure. The system is applied to kitchen monitoring, as shown in fig. 2, and comprises: the monitoring device comprises an acquisition module, a judging module, a receiving module, a calling module, a reading module and a detecting module, wherein the AP comprises a return module;
the system comprises monitoring equipment and an AP, wherein the monitoring equipment comprises an acquisition module, a judging module, a receiving module, a calling module, a reading module and a detecting module, and the AP comprises a return module;
the acquisition module is used for acquiring a monitoring plugin list, and the monitoring plugin list comprises names of installed monitoring plugins;
the judging module is used for matching the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, judging that the kitchen monitoring plug-in is installed in the current system if the matching is successful, judging that the kitchen monitoring plug-in is not installed in the current system if the matching is unsuccessful, and sending a request message to the AP;
the return module is used for returning the kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
the receiving module is used for receiving the kitchen monitoring plug-in installation package and acquiring a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the calling module is used for converting the loading thread from the ready state to the running state, and then loading and running the executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the reading module is used for reading an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
the detection module is used for detecting whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, judging that the kitchen monitoring plug-in installation package is successful in operation, and sending a response message to the AP, wherein the response message carries the operation success identifier and the MAC address of the monitoring equipment.
In one possible implementation manner, the AP includes a broadcasting module and a recording module, and the monitoring device includes a response module:
the broadcasting module is used for broadcasting a first request to the monitoring equipment of the access network, wherein the first request carries a detection identifier, and the detection identifier is used for indicating whether the monitoring equipment detects whether a binding identifier is stored in a cache or not;
the response module is configured to detect whether the binding identifier is stored in the local cache according to the detection identifier after receiving the first request sent by the AP, and if the binding identifier is not stored in the local cache, return a response result to the AP, where the response result carries an unbound identifier and an MAC address of the monitoring device;
and the recording module is used for recording and storing the MAC address of the monitoring equipment under the catalog corresponding to the unbinding identification when receiving the response result returned by the monitoring equipment.
In a possible implementation manner, the system further comprises a display device, the display device comprises a transceiver module and an association module, the AP comprises a storage module and an identification module, and the monitoring device comprises a binding module;
the receiving and transmitting module is used for sending an access request to the AP, wherein the access request carries an access identifier and an access password, and the access identifier is used for reminding the AP to access the display equipment to a network;
the transceiver module is further configured to send a second request to the AP, where the second request carries an unbound identifier, and the MAC address of the display device;
the identification module is used for acquiring the MAC address of the monitoring equipment under the directory corresponding to the unbound identification after identifying the unbound identification in the second request, and sending the MAC address of the monitoring equipment to the display equipment;
the receiving and transmitting module is used for receiving the MAC address of the monitoring equipment and displaying the MAC address of the monitoring equipment and a binding button corresponding to the MAC address of the monitoring equipment;
the association module is used for detecting whether the determination operation of the binding button is received or not, and generating association information of the monitoring equipment and the display equipment after the determination operation of the binding button is received;
the transceiver module is further configured to send the association information to the AP, where the association information includes a MAC address of the monitoring device and a MAC address of the display device to which the MAC address of the monitoring device is bound;
the storage module is used for receiving and storing the association information by the AP and sending the binding identifier to the monitoring equipment;
and the binding module is used for receiving and storing the binding identifier by the monitoring equipment so as to finish the binding with the display equipment.
In one possible implementation manner, the monitoring device includes a monitoring module and an uploading module:
the monitoring module is used for acquiring video images and monitoring the video images by adopting the first kitchen monitoring plug-in or the second kitchen monitoring plug-in;
the first kitchen monitoring plug-in is used for identifying kitchen wastes, the second kitchen monitoring plug-in is used for identifying and protecting animals, and the first kitchen monitoring plug-in and the second kitchen monitoring plug-in are different;
the uploading module is configured to upload first kitchen monitoring information to the AP if the monitoring device identifies kitchen waste in the video image through the first kitchen monitoring plug-in, where the first kitchen monitoring information includes a first identifier and a video image identifying kitchen waste, and upload second kitchen monitoring information to the AP if the monitoring device identifies a protected animal in the video image through the second kitchen monitoring plug-in, where the second kitchen monitoring information includes a second identifier and a video image identifying the protected animal.
In one possible implementation manner, the AP includes a kitchen monitoring information processing module, and the display device includes a creating module:
the kitchen monitoring information processing module is used for receiving the first kitchen monitoring information and the second kitchen monitoring information by the AP and sending the first kitchen monitoring information and the second kitchen monitoring information to the display equipment bound by the MAC address of the monitoring equipment;
the creating module is configured to create a directory corresponding to the first identifier when the display device receives the first kitchen monitoring information, store the first kitchen monitoring information under the directory corresponding to the first identifier, and create a directory corresponding to the second identifier when the display device receives the second kitchen monitoring information, and store the second kitchen monitoring information under the directory corresponding to the second identifier.
The above description of embodiments is only for aiding in the understanding of the method of the present invention and its core ideas; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (6)
1. A method for monitoring the installation of a plug-in, which is characterized in that the method comprises the steps of monitoring equipment and an AP:
the monitoring equipment acquires a monitoring plug-in list, wherein the monitoring plug-in list comprises names of installed monitoring plug-ins;
the monitoring equipment matches the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, if the matching is successful, the current system is judged to be installed with the kitchen monitoring plug-in, if the matching is unsuccessful, the current system is judged to be not installed with the kitchen monitoring plug-in, and a request message is sent to the AP;
the AP returns a kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
the monitoring equipment receives the kitchen monitoring plug-in installation package and obtains a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the monitoring equipment converts the loading thread from the ready state to an operating state, and loads and operates an executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the monitoring equipment reads an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
the monitoring equipment detects whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, the kitchen monitoring plug-in installation package is judged to be successful in operation, a response message is sent to the AP, and the response message carries the operation success identifier and the MAC address of the monitoring equipment;
the monitoring equipment acquires a video image, and the first kitchen monitoring plug-in or the second kitchen monitoring plug-in is adopted to monitor the video image;
the first kitchen monitoring plug-in is used for identifying kitchen wastes, the second kitchen monitoring plug-in is used for identifying and protecting animals, and the first kitchen monitoring plug-in and the second kitchen monitoring plug-in are different;
the monitoring equipment uploads first kitchen monitoring information to the AP if kitchen waste is identified in the video image through the first kitchen monitoring plug-in, wherein the first kitchen monitoring information comprises a first identification and a video image of the identified kitchen waste, and uploads second kitchen monitoring information to the AP if a protected animal is identified in the video image through the second kitchen monitoring plug-in, and the second kitchen monitoring information comprises a second identification and a video image of the identified protected animal;
the AP receives the first kitchen monitoring information and the second kitchen monitoring information and sends the first kitchen monitoring information and the second kitchen monitoring information to a display device bound with an MAC address of the monitoring device;
creating a catalog corresponding to the first identifier when the display equipment receives the first kitchen monitoring information, storing the first kitchen monitoring information under the catalog corresponding to the first identifier, creating a catalog corresponding to the second identifier when the display equipment receives the second kitchen monitoring information, and storing the second kitchen monitoring information under the catalog corresponding to the second identifier;
the AP acquires source codes for identifying the opening of kitchen wastes, packages the source codes for identifying the opening of the kitchen wastes into the first kitchen monitoring plug-in, acquires source codes for identifying and protecting animals by video images, packages the source codes for identifying and protecting the animals by the video images into the second kitchen monitoring plug-in.
2. The method of claim 1, wherein prior to the monitoring device obtaining a list of monitoring plug-ins, the method comprises:
the AP broadcasts a first request to the monitoring equipment of an access network, wherein the first request carries a detection identifier, and the detection identifier is used for indicating the monitoring equipment to detect whether a binding identifier is stored in a cache;
after receiving a first request sent by an AP, the monitoring equipment detects whether the binding identifier is stored in a local cache according to the detection identifier, and if the binding identifier is not stored in the local cache, a response result is returned to the AP, wherein the response result carries an unbound identifier and an MAC address of the monitoring equipment;
and when the AP receives a response result returned by the monitoring equipment, recording and storing the MAC address of the monitoring equipment under the catalog corresponding to the unbundled identification.
3. The method of claim 2, further comprising a display device, when the AP receives a response result returned by the monitoring device, after recording and storing the MAC address of the monitoring device under the directory corresponding to the unbundled identifier, before the monitoring device obtains the monitoring plug-in list, the method further comprising:
the display equipment sends an access request to the AP, wherein the access request carries an access identifier and an access password, and the access identifier is used for reminding the AP to access the display equipment to a network;
the display equipment sends a second request to the AP, wherein the second request carries an unbound identifier, and the MAC address of the display equipment;
after the AP identifies the unbound identification in the second request, the MAC address of the monitoring equipment is obtained under the directory corresponding to the unbound identification, and the MAC address of the monitoring equipment is sent to the display equipment;
the display equipment receives the MAC address of the monitoring equipment and displays the MAC address of the monitoring equipment and a binding button corresponding to the MAC address of the monitoring equipment;
the display device detects whether the determination operation of the binding button is received, and generates the association information of the monitoring device and the display device after the determination operation of the binding button is received;
the display device sends the association information to the AP, wherein the association information comprises the MAC address of the monitoring device and the MAC address of the display device bound by the MAC address of the monitoring device;
the AP receives and stores the association information and sends the binding identifier to the monitoring equipment;
the monitoring device receives and stores the binding identifier to complete binding with the display device.
4. The monitoring plug-in installation system is characterized by comprising monitoring equipment and an AP, wherein the monitoring equipment comprises an acquisition module, a judgment module, a receiving module, a calling module, a reading module and a detection module, and the AP comprises a return module;
the acquisition module is used for acquiring a monitoring plugin list, and the monitoring plugin list comprises names of installed monitoring plugins;
the judging module is used for matching the name of the installed monitoring plug-in with the name of a preset kitchen monitoring plug-in, judging that the kitchen monitoring plug-in is installed in the current system if the matching is successful, judging that the kitchen monitoring plug-in is not installed in the current system if the matching is unsuccessful, and sending a request message to the AP;
the return module is used for returning a kitchen monitoring plug-in installation package to the monitoring equipment according to the request message, wherein the kitchen monitoring plug-in installation package is an installation package corresponding to the kitchen monitoring plug-in, and the kitchen monitoring plug-in comprises a first kitchen monitoring plug-in and a second kitchen monitoring plug-in;
the receiving module is used for receiving the kitchen monitoring plug-in installation package and acquiring a loading thread which is used for running the kitchen monitoring plug-in installation package and is in a ready state;
the calling module is used for converting the loading thread from the ready state to the running state, and then loading and running the executable file in the kitchen monitoring plug-in installation package by using the loading thread;
the reading module is used for reading an operation identifier returned when the loading thread operates the executable file in the kitchen monitoring plug-in installation package;
the detection module is used for detecting whether the returned operation identifier is a preset operation success identifier, if the returned operation identifier is the preset operation success identifier, judging that the kitchen monitoring plug-in installation package is successful in operation, and sending a response message to the AP, wherein the response message carries the operation success identifier and the MAC address of the monitoring equipment;
the monitoring equipment acquires a video image, and the first kitchen monitoring plug-in or the second kitchen monitoring plug-in is adopted to monitor the video image;
the first kitchen monitoring plug-in is used for identifying kitchen wastes, the second kitchen monitoring plug-in is used for identifying and protecting animals, and the first kitchen monitoring plug-in and the second kitchen monitoring plug-in are different;
the monitoring equipment uploads first kitchen monitoring information to the AP if kitchen waste is identified in the video image through the first kitchen monitoring plug-in, wherein the first kitchen monitoring information comprises a first identification and a video image of the identified kitchen waste, and uploads second kitchen monitoring information to the AP if a protected animal is identified in the video image through the second kitchen monitoring plug-in, and the second kitchen monitoring information comprises a second identification and a video image of the identified protected animal;
the AP comprises a kitchen monitoring information processing module, and the display equipment comprises a creation module:
the kitchen monitoring information processing module is used for receiving the first kitchen monitoring information and the second kitchen monitoring information by the AP and sending the first kitchen monitoring information and the second kitchen monitoring information to the display equipment bound by the MAC address of the monitoring equipment;
the creating module is configured to create a directory corresponding to the first identifier when the display device receives the first kitchen monitoring information, store the first kitchen monitoring information under the directory corresponding to the first identifier, and create a directory corresponding to the second identifier when the display device receives the second kitchen monitoring information, and store the second kitchen monitoring information under the directory corresponding to the second identifier;
the AP acquires source codes for identifying the opening of kitchen wastes, packages the source codes for identifying the opening of the kitchen wastes into the first kitchen monitoring plug-in, acquires source codes for identifying and protecting animals by video images, packages the source codes for identifying and protecting the animals by the video images into the second kitchen monitoring plug-in.
5. The system of claim 4, wherein the AP comprises a broadcast module, a recording module, and the monitoring device comprises a response module:
the broadcasting module is used for broadcasting a first request to the monitoring equipment of the access network, wherein the first request carries a detection identifier, and the detection identifier is used for indicating whether the monitoring equipment detects whether a binding identifier is stored in a cache or not;
the response module is configured to detect whether the binding identifier is stored in the local cache according to the detection identifier after receiving the first request sent by the AP, and if the binding identifier is not stored in the local cache, return a response result to the AP, where the response result carries an unbound identifier and an MAC address of the monitoring device;
and the recording module is used for recording and storing the MAC address of the monitoring equipment under the catalog corresponding to the unbinding identification when receiving the response result returned by the monitoring equipment.
6. The system of claim 5, further comprising a display device, the display device comprising a transceiver module, an association module, the AP comprising a storage module, an identification module, the monitoring device comprising a binding module;
the receiving and transmitting module is used for sending an access request to the AP, wherein the access request carries an access identifier and an access password, and the access identifier is used for reminding the AP to access the display equipment to a network;
the transceiver module is further configured to send a second request to the AP, where the second request carries an unbound identifier, and the MAC address of the display device;
the identification module is used for acquiring the MAC address of the monitoring equipment under the directory corresponding to the unbound identification after identifying the unbound identification in the second request, and sending the MAC address of the monitoring equipment to the display equipment;
the receiving and transmitting module is used for receiving the MAC address of the monitoring equipment and displaying the MAC address of the monitoring equipment and a binding button corresponding to the MAC address of the monitoring equipment;
the association module is used for detecting whether the determination operation of the binding button is received or not, and generating association information of the monitoring equipment and the display equipment after the determination operation of the binding button is received;
the transceiver module is further configured to send the association information to the AP, where the association information includes a MAC address of the monitoring device and a MAC address of the display device to which the MAC address of the monitoring device is bound;
the storage module is used for receiving and storing the association information by the AP and sending the binding identifier to the monitoring equipment;
and the binding module is used for receiving and storing the binding identifier by the monitoring equipment so as to finish the binding with the display equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911088193.XA CN110806882B (en) | 2019-11-08 | 2019-11-08 | Method and system for monitoring installation of plug-in |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911088193.XA CN110806882B (en) | 2019-11-08 | 2019-11-08 | Method and system for monitoring installation of plug-in |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110806882A CN110806882A (en) | 2020-02-18 |
CN110806882B true CN110806882B (en) | 2023-05-26 |
Family
ID=69501724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911088193.XA Active CN110806882B (en) | 2019-11-08 | 2019-11-08 | Method and system for monitoring installation of plug-in |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110806882B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202013100297U1 (en) * | 2013-01-22 | 2013-03-11 | Unger Kabel-Konfektionstechnik GmbH & Co. KG | Device connection system for kitchen appliances |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7810089B2 (en) * | 2004-12-30 | 2010-10-05 | Citrix Systems, Inc. | Systems and methods for automatic installation and execution of a client-side acceleration program |
DE202007012642U1 (en) * | 2007-08-30 | 2008-06-19 | Mayr + Hönes GmbH | Line connection element |
CN105094890B (en) * | 2012-03-29 | 2018-12-07 | 北京奇虎科技有限公司 | A kind of application plug loading method and device |
CN103577227B (en) * | 2013-10-25 | 2017-01-18 | 北京奇虎科技有限公司 | Method for loading plug-ins, browser and server |
CN103645923B (en) * | 2013-12-26 | 2017-08-01 | 浙江宇天科技股份有限公司 | A kind of plug-in unit installation method and system |
CN106933636B (en) * | 2017-03-16 | 2020-08-18 | 北京奇虎科技有限公司 | Method and device for starting plug-in service and terminal equipment |
-
2019
- 2019-11-08 CN CN201911088193.XA patent/CN110806882B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202013100297U1 (en) * | 2013-01-22 | 2013-03-11 | Unger Kabel-Konfektionstechnik GmbH & Co. KG | Device connection system for kitchen appliances |
Also Published As
Publication number | Publication date |
---|---|
CN110806882A (en) | 2020-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106934330B (en) | Logistics information acquisition method, platform and system and image acquisition equipment | |
EP2020803A1 (en) | Method to access multimedia contents associated to a geographical area | |
US10021355B2 (en) | Method and device for processing request | |
US11919388B2 (en) | Vehicle remote start prevention alert | |
CN106231595B (en) | Wireless hotspot selection method and system | |
JP2007328626A (en) | Building confirmation system | |
JP2009002914A (en) | Facility disaster monitoring device and facility disaster monitoring method | |
CN104335570A (en) | Information processing device, system, and storage medium | |
CN110929287A (en) | Picture processing method and device | |
CN102984690A (en) | Method for delaying data sending of mobile phone | |
US9003097B2 (en) | Information transfer apparatus, information transfer system and information transfer method | |
CN110806882B (en) | Method and system for monitoring installation of plug-in | |
CN112333410B (en) | Intelligent doorbell, control method thereof and computer readable storage medium | |
US8502874B2 (en) | Image recording apparatus and control method | |
CN1181675C (en) | Video recording and playback | |
KR102238322B1 (en) | Apparatus and method for monitering pet | |
KR20110126831A (en) | Method and apparatus for providing web camera service in portable terminal | |
JP2015035673A (en) | Video interphone apparatus | |
JP2002165211A (en) | Security monitoring system using telecommunication network, program for making computer perform basic function of security monitoring system and recording medium storing the program | |
CN114579394A (en) | Log viewing method, log generating method and device and electronic equipment | |
US9479881B2 (en) | Wireless communication apparatus, wireless communication system, and data processing method | |
JP2005167382A (en) | Remote camera monitoring system and remote camera monitoring method | |
JP4240218B2 (en) | Monitoring system, monitoring notification device, and communication method in monitoring system | |
KR101075549B1 (en) | Security system and method to verify security system | |
KR20200127544A (en) | Apparatus and method for monitering pet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230427 Address after: 250000 room 2201a, zone B1, building 1, Shuntai Plaza, 2000 Shunhua Road, Jinan area, China (Shandong) pilot Free Trade Zone, Jinan City, Shandong Province Applicant after: Shandong Dechang Electronic Technology Co.,Ltd. Address before: 518000 room 1705, Xinghe century building, 3069 CaiTian Road, Futian District, Shenzhen, Guangdong Province Applicant before: Li Jianmeng |
|
GR01 | Patent grant | ||
GR01 | Patent grant |