CN107766232A - A kind of plug-in management method and device - Google Patents
A kind of plug-in management method and device Download PDFInfo
- Publication number
- CN107766232A CN107766232A CN201610712834.4A CN201610712834A CN107766232A CN 107766232 A CN107766232 A CN 107766232A CN 201610712834 A CN201610712834 A CN 201610712834A CN 107766232 A CN107766232 A CN 107766232A
- Authority
- CN
- China
- Prior art keywords
- plug
- target
- unit
- electronic equipment
- target device
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
- G06F11/3612—Software analysis for verifying properties of programs by runtime analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Stored Programmes (AREA)
Abstract
The embodiments of the invention provide a kind of plug-in management method and device, and applied to electronic equipment, the electronic equipment is provided with plug-in unit, and the plug-in unit corresponds to multiple devices, and methods described includes:The instruction of user's input is received, determines that wherein one is target device from multiple devices according to the instruction, it is target plug-in that one of them is determined from the plug-in unit;The target plug-in is called, solicited message is sent to the target device, the attribute information for treating request data is comprised at least in the solicited message, so that the target device sends corresponding data to the electronic equipment.The embodiment of the present invention can reduce the complexity of plug-in management, lift electronic equipment performance.
Description
Technical field
The present invention relates to plug-in management technical field, more particularly to a kind of plug-in management method and device.
Background technology
Plug-in unit is the program that a kind of application programming interfaces for following certain specification are write out.The use of plug-in unit is for reality
The function that existing former pure system platform does not possess, it can only be operated under the system platform of procedure stipulation, and can not be departed from specified
Platform isolated operation.Because plug-in unit needs the function library or data for calling former pure system to provide.
Specifically, plug-in unit can apply in the application programs such as software, browser.For example, phase ought be installed in a browser
After the plug-in unit of pass, browser can directly invoke plug-in unit, handle certain types of file.Such as, regarding for specific format can be shown
Frequency etc..
In some cases, multiple plug-in units can be installed in the electronic device.For example, in security protection industry, in order to watch
The monitor video of more video monitoring equipment collections, or the monitor video preserved in more storage servers, it will usually in electronics
Multiple plug-in units are installed in equipment.Wherein, the corresponding video monitoring equipment of a plug-in unit, or a corresponding storage server.This
In the case of kind, electronic equipment can be by calling different plug-in units, to obtain different video capture devices or different storages
Monitor video in server.
But existing plug-in management method, typically a plug-in unit provide an interface, a plug-in unit controls one and regarded
Frequency monitoring device or storage server.In system architecture as shown in Figure 1, plug-in unit 1 is right by interface A and video monitoring equipment 1
Should;Plug-in unit 2 is corresponding with video monitoring equipment 2 by interface B;Plug-in unit 3 is corresponding with storage server by interface C.When electronics is set
During for obtaining the monitor video in video monitoring equipment 1, by interface A plug-in unit 1 can be called to realize;When electronic equipment obtains
During monitor video in video monitoring equipment 2, by interface B plug-in unit 2 can be called to realize;When electronic equipment obtains storage clothes
Be engaged in device in monitor video when, can by interface C, call plug-in unit 3 realize.
Therefore, when having more video monitoring equipment or storage server, plug-in unit number to be mounted is needed in electronic equipment
Measure more.Also, it is necessary to call when electronic equipment obtains the monitor video in different video capture devices or storage server
Different plug-in unit is realized.This will cause plug-in management complicated, and plug-in management process takes the more resource of electronic equipment, so as to
Reduce the performance of electronic equipment.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of plug-in management method and device, to reduce the complexity of plug-in management
Degree, lift electronic equipment performance.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of plug-in management method, applied to electronic equipment, the electronics is set
Standby to be provided with plug-in unit, the plug-in unit corresponds to multiple devices, and methods described includes:
The instruction of user's input is received, determines that wherein one is target device from multiple devices according to the instruction, from
It is target plug-in that one of them is determined in the plug-in unit;
The target plug-in is called, solicited message is sent to the target device, comprises at least and treat in the solicited message
The attribute information of request data, so that the target device sends corresponding data to the electronic equipment.
Alternatively, the electronic equipment is described to call the target plug-in by each plug-in unit of interface interchange, to described
Target device, which sends solicited message, to be included:
By target plug-in described in the interface interchange, solicited message is sent to the target device.
Alternatively, the electronic equipment locally preserves the status information of each plug-in unit, and the status information includes:Do not connect
Connect, connecting or connecting, described to call the target plug-in, sending solicited message to the target device includes:
According to the status information of each plug-in unit locally preserved, judge whether the target plug-in is connecting;
When the status information of the target plug-in is connects, it is periodically detected whether the target plug-in is connecting
Connect;
When determine the target plug-in it is non- connecting or be periodically detected the target plug-in is non- connect when,
The target plug-in is called, solicited message is sent to the target device.
Alternatively, when determining the target plug-in, non-to connect or be periodically detected the target plug-in non-
During connection, the target plug-in is called, sending solicited message to the target device includes:
When determine the target plug-in it is non- connecting or be periodically detected the target plug-in is non- connect when,
Whether the state for judging the target plug-in is to have connected;
When the state of the target plug-in is has connected, the target plug-in is called, being sent to the target device please
Seek information;
When the state of the target plug-in is is not connected with, the target plug-in is called, establishes and connects with the target device
Connect, and solicited message is sent to the target device.
Alternatively, it is described when the state of the target plug-in is has connected, the target plug-in is called, to the target
Equipment, which sends solicited message, to be included:
When the state of the target plug-in is has connected, judge whether connected equipment is the target device;
If it is, calling the target plug-in, solicited message is sent to the target device;
If not, interrupting current connection, the target plug-in is called, establishes and connects with the target device, and to target
Equipment sends solicited message.
Alternatively, legitimacy verifies information is also included in the solicited message, so that the target device is according to the conjunction
Method check information, after determining the electronic equipment by legitimacy verifies, corresponding data are sent to the electronic equipment.
Alternatively, when the electronic equipment is provided with multiple plug-in units, at least one plug-in unit corresponds to multiple devices.
Second aspect, the embodiments of the invention provide a kind of plug-in management device, and applied to electronic equipment, the electronics is set
Standby to be provided with plug-in unit, the plug-in unit corresponds to multiple devices, and described device includes:
Execution module, for receiving the instruction of user's input, wherein one is determined from multiple devices according to the instruction
For target device, it is target plug-in that one of them is determined from the plug-in unit;
Processing module, for calling the target plug-in, solicited message, the solicited message are sent to the target device
In comprise at least and treat the attribute information of request data so that the target device sends corresponding data to the electronic equipment.
Alternatively, the electronic equipment passes through each plug-in unit of interface interchange, the processing module, specifically for passing through
Target plug-in described in interface interchange is stated, solicited message is sent to the target device.
Alternatively, the electronic equipment locally preserves the status information of each plug-in unit, and the status information includes:Do not connect
Connect, connecting or connecting, the processing module includes:
Judging unit, for the status information according to each plug-in unit locally preserved, judge the target plug-in whether
Connection;
Detection unit, for judging to obtain the status information of the target plug-in when the judging unit to connect
When, it is periodically detected whether the target plug-in is connecting;
Processing unit, for when the judging unit judges to obtain, the target plug-in is non-to be connected, or the detection
When unit is periodically detected that the target plug-in is non-to be connected, the target plug-in is called, is sent to the target device
Solicited message.
Alternatively, the processing unit includes:
Judgment sub-unit, for judging whether the state of the target plug-in is to have connected;
Subelement is performed, for when the judgment sub-unit judges to obtain the state of the target plug-in to have connected,
The target plug-in is called, solicited message is sent to the target device;
Subelement is handled, during for judging to obtain the state of the target plug-in when the judgment sub-unit to be not connected with,
The target plug-in is called, establishes and connects with the target device, and solicited message is sent to the target device.
Alternatively, the execution subelement, specifically for judging whether connected equipment is the target device;If
It is to call the target plug-in, solicited message is sent to the target device;If not, interrupting current connection, the mesh is called
Plug-in unit is marked, establishes and connects with the target device, and solicited message is sent to target device.
Alternatively, legitimacy verifies information is also included in the solicited message, so that the target device is according to the conjunction
Method check information, after determining the electronic equipment by legitimacy verifies, corresponding data are sent to the electronic equipment.
Alternatively, when the electronic equipment is provided with multiple plug-in units, at least one plug-in unit corresponds to multiple devices.
The embodiments of the invention provide a kind of plug-in management method and device, applied to electronic equipment, the electronic equipment
Plug-in unit is installed, the plug-in unit corresponds to multiple devices, and methods described includes:The instruction of user's input is received, according to the instruction
It is target device that wherein one is determined from multiple devices, and it is target plug-in that one of them is determined from the plug-in unit;Call institute
Target plug-in is stated, solicited message is sent to the target device, the attribute for treating request data is comprised at least in the solicited message
Information, so that the target device sends corresponding data to the electronic equipment.
In the embodiment of the present invention, in the plug-in unit of electronic equipment installation, a plug-in unit can correspond to multiple devices.Therefore, it is electric
The plug number installed in sub- equipment is less, also, electronic equipment can realize the unified management to multiple plug-in units, can reduce
The complexity of plug-in management, lift electronic equipment performance.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of plug-in unit and equipment corresponding relation schematic diagram;
Fig. 2 is a kind of flow chart of plug-in management method provided in an embodiment of the present invention;
Fig. 3 is the plug-in unit and equipment corresponding relation schematic diagram of the embodiment of the present invention;
Fig. 4 is a kind of another flow chart of plug-in management method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of plug-in management device provided in an embodiment of the present invention;
Fig. 6 is a kind of another structural representation of plug-in management device provided in an embodiment of the present invention.
Embodiment
In order to reduce the complexity of plug-in management, electronic equipment performance is lifted, the embodiments of the invention provide a kind of plug-in unit
Management method and device.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to reduce the complexity of plug-in management, electronic equipment performance is lifted, the embodiments of the invention provide a kind of plug-in unit
Management method process, as shown in Fig. 2 the process may comprise steps of:
S101, the instruction of user's input is received, determine that wherein one sets for target from multiple devices according to the instruction
Standby, it is target plug-in that one of them is determined from the plug-in unit.
Method provided in an embodiment of the present invention can apply to electronic equipment.Specifically, the electronic equipment can be desk-top
Computer, portable computer, intelligent mobile terminal etc..
Under normal circumstances, multiple plug-in units can be installed in electronic equipment.In embodiments of the present invention, in order to reduce inserter tube
The complexity of reason, lifts electronic equipment performance, and in the plug-in unit installed in electronic equipment, a plug-in unit can correspond to multiple devices.
Wherein, the said equipment can be video capture device, or storage server etc..Also, each insert can also be preserved in electronic equipment
Part identifies the corresponding relation with each device identification.
It should be noted that in the embodiment of the present invention, when installing multiple plug-in units in electronic equipment, at least one plug-in unit
Corresponding multiple devices.That is, in the multiple plug-in units installed in electronic equipment, there can be part plug-in unit to correspond to multiple devices,
The corresponding equipment of part plug-in unit;Or each plug-in unit corresponds to multiple devices, the embodiment of the present invention is not construed as limiting to this.
For example, in the embodiment of the present invention, the plug-in unit and the corresponding relation of each equipment installed in electronic equipment can be such as following tables
It is shown:
Plug-in unit identifies | Device identification |
Plug-in unit 1 | Video monitoring equipment 1 |
Plug-in unit 1 | Video monitoring equipment 2 |
Plug-in unit 2 | Storage server |
That is, 2 two plug-in units of plug-in unit 1 and plug-in unit are installed in the electronic equipment, wherein, corresponding more of plug-in unit 1 is set
It is standby, i.e. video monitoring equipment 1 and video monitoring equipment 2;The corresponding equipment of plug-in unit 2, i.e. storage server.
When electronic equipment accesses video monitoring equipment 1 or video monitoring equipment 2, it can call plug-in unit 1 to conduct interviews;
When electronic equipment accesses storage server, it can call plug-in unit 2 to access.
It should be noted that when same plug-in unit corresponds to multiple equipment, the plurality of equipment can be identical with type, can also type
It is different.Such as, in above-mentioned example, or the corresponding video monitoring equipment 1 of plug-in unit 1, plug-in unit 2 correspond to video monitoring equipment 2 and deposited
Store up server.
It is appreciated that in electronic equipment in multiple devices corresponding to each plug-in unit, the monitor video of its acquisition can be preserved.
Such as, the monitor video of its collection can be preserved in video monitoring equipment, can preserve what it was received in storage server
Monitor video.User can be as needed, and by application program or browser, selection is watched in wherein one or more equipment and protected
The monitor video deposited.
For example, user can input instruction in the electronic device, the equipment that user desires access to can be included in the instruction
Attribute information, such as device identification, keyword, reference address, and the attribute information of plug-in unit to be called, as plug-in unit identifies
Deng.In this case, after electronic equipment receives the instruction of user's input, you can according to the instruction, determine corresponding mesh
Marking device and target plug-in.
It should be noted that during user input instruction, an instruction can be inputted, including user simultaneously in the instruction thinks
The attribute information for the equipment to be accessed, and the attribute information of plug-in unit to be called;Or user can also input two instructions,
Wherein one instructs the attribute information for including the equipment that user desires access to, and another instructs the category for including plug-in unit to be called
Property information, the embodiment of the present invention to this without limit.
Such as, when user, which wants electronic equipment, calls plug-in unit 1 to access the monitor video preserved in video monitoring equipment 2, its
The identification information of plug-in unit 1 and the identification information of video monitoring equipment 2 can be included in the instruction of input, electronic equipment receives use
After the instruction of family input, you can it is video monitoring equipment 1 to determine target device, and it is plug-in unit 1 to determine target plug-in.
S102, the target plug-in is called, send solicited message to the target device, at least wrapped in the solicited message
Containing the attribute information for treating request data, so that the target device sends corresponding data to the electronic equipment.
Electronic equipment determines target device and target plug-in, and it can call the target plug-in, and being sent to target device please
Seek information.For example, when electronic equipment determines that target device is video monitoring equipment 2, when target plug-in is plug-in unit 1, it can be adjusted
Solicited message is sent with plug-in unit 1, and then to video monitoring equipment 2.
Wherein, the attribute information for treating request data can be included in above-mentioned solicited message.The attribute information can be to wait to ask
Temporal information for the monitor video asked etc..
Alternatively, in order to further reduce the complexity of plug-in management, electronic equipment performance is lifted, in the embodiment of the present invention
In, electronic equipment can pass through each plug-in unit of interface interchange.As shown in figure 3, plug-in unit 1 and plug-in unit 2 are installed in electronic equipment
When, electronic equipment can call each plug-in unit by interface A.Wherein, plug-in unit 1 and plug-in unit 2 and video monitoring equipment 1, video monitoring
The corresponding relation of equipment 2 and storage server can be as shown above.
After target device receives the solicited message of electronic equipment transmission, you can send corresponding data to electronic equipment.
Such as, when the solicited message that electronic equipment is sent includes temporal information, monitor video that target device will can be preserved locally
In, meet that the monitor video of the temporal information is sent to electronic equipment.
Alternatively, in order to ensure the safety of monitor video, may be used also in the solicited message that electronic equipment is sent to target device
With including legitimacy verifies information.Such as, local device mark, predetermined key etc. can be included.Local device mark can be IP
Address, device number etc., predetermined key can be the key that electronic equipment is consulted in advance with target device.Wherein, electronic equipment with
The process of the advance arranging key of target device, can use existing any mode, and the embodiment of the present invention is not entered to this process
Row repeats.
In this case, after target device receives the solicited message of electronic equipment transmission, it can believe according to request
Legitimacy verifies information in breath, determines whether electronic equipment can pass through legitimacy verifies.Such as, target device can be in local guarantor
Legitimacy verifies information list is deposited, after the legitimacy verifies information of electronic equipment transmission is received, it can identify that this is legal
Property check information whether be included in local legitimacy verifies information list, if it is, determining that electronic equipment can pass through
Legitimacy verifies.After only determining electronic equipment by legitimacy verifies, target device can just send corresponding to electronic equipment
Data, the electronic equipment without authority is obtained is sent the data to so as to prevent, ensure that the number preserved in target device
According to safety.
Electronic equipment receives the data of target device transmission, i.e., after monitor video, can also show the monitor video, with
Watched for user.
It should be noted that in the embodiment of the present invention, synchronization, electronic equipment can call a plug-in unit, access one
Platform equipment, and show the monitor video got.Or in order to improve Consumer's Experience, electronic equipment can also refer to according to user
Order, while multiple plug-in units are called, multiple devices are accessed, and show the monitor video got from multiple devices simultaneously.
The embodiments of the invention provide a kind of plug-in management method, and applied to electronic equipment, the electronic equipment is provided with
Plug-in unit, the plug-in unit correspond to multiple devices, and methods described includes:The instruction of user's input is received, is instructed according to described from Duo Tai
It is target device that wherein one is determined in equipment, and it is target plug-in that one of them is determined from the plug-in unit;Call the target
Plug-in unit, solicited message is sent to the target device, the attribute information for treating request data is comprised at least in the solicited message, with
The target device is set to send corresponding data to the electronic equipment.In the embodiment of the present invention, the plug-in unit of electronic equipment installation
In, a plug-in unit can correspond to multiple devices.Therefore, the plug number installed in electronic equipment is less, also, electronic equipment can
To realize the unified management to multiple plug-in units, the complexity of plug-in management can be reduced, lifts electronic equipment performance.
It is appreciated that electronic equipment calls a plug-in unit when connecting its corresponding equipment, when generally requiring certain
Between, especially network state is not so good, or when equipment initialization.If in a plug-in unit connection device procedures are called, then
Secondary calling plug-in unit, may result in some conflicts or abnormal.Such as, cause browser collapse etc., cause Consumer's Experience poor.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 4, a kind of inserter tube provided in an embodiment of the present invention
Procedure is managed, may comprise steps of:
S201, the instruction of user's input is received, determine that wherein one sets for target from multiple devices according to the instruction
Standby, it is target plug-in that one of them is determined from the plug-in unit.
Step S201 and the step S101 in previous embodiment are essentially identical, and the present embodiment is to this process without repeating.
S202, according to the status information of each plug-in unit locally preserved, judge whether the target plug-in is connecting.
In embodiments of the present invention, electronic equipment can locally preserve the status information of each plug-in unit, and the status information can
With including:It is not connected with, is connecting or connecting.Not connected as electronic equipment current never call plug-in unit is built with any appliance
Vertical connection;Connecting and currently just calling the plug-in unit to establish connection with a certain equipment as electronic equipment, connection does not complete also;
Connection is that electronic equipment has called the plug-in unit to establish connection with certain equipment.By the status information of each plug-in unit, can identify each
The current use state of plug-in unit.
In embodiments of the present invention, in order to avoid carrying out equipment connection procedure in invocation target plug-in unit, mesh is called again
Plug-in unit is marked, causes some conflicts or abnormal, electronic equipment is it is determined that after target plug-in, it can be determined that whether target plug-in is connecting
Connect.Specifically, electronic equipment can search state letter corresponding to target plug-in in the status information of each plug-in unit locally preserved
Breath, and the status information according to corresponding to target plug-in, determine whether target plug-in is connecting.
When target plug-in connects, electronic equipment can not invocation target plug-in unit again, but be periodically detected mesh
Mark plug-in unit whether connecting, so as to ensure when target plug-in is non- connect when, recall target plug-in.
S203, whether the state for judging the target plug-in is to have connected.
When determining that target plug-in is non-to be connected, showing can be with invocation target plug-in unit.In this case, target plug-in
State may still have two kinds, that is, connected or be not connected with.Electronic equipment can determine whether target plug-in is to have connected
Connect, connected with determining the need for establishing with target device.Such as, it can judge that target is inserted according to the status information of target plug-in
Whether part is to have connected.
S204, judge whether connected equipment is the target device.
When electronic equipment determines the state of target plug-in to have connected, it can determine whether connected equipment
Whether it is target device, to further determine that to before target device transmission solicited message, if need to establish with target device
Connection.
In embodiments of the present invention, it is to have connected for status information when electronic equipment preserves the status information of each plug-in unit
Plug-in unit, the mark of the equipment connected by the plug-in unit can be preserved simultaneously.In this case, when electronic equipment determines mesh
Mark plug-in unit is when having connected, and can judge whether connected equipment is target device further according to the information locally preserved.
S205, the target plug-in is called, send solicited message to the target device, at least wrapped in the solicited message
Containing the attribute information for treating request data, so that the target device sends corresponding data to the electronic equipment.
When electronic equipment determine connected for target device when, it can perform this step, directly to target device
Send solicited message.
Step S205 and the step S102 in previous embodiment are essentially identical, and the present embodiment is to this process without repeating.
S206, interrupt current connection.
When electronic equipment determine that invocation target plug-in unit connected be not target device when, it, which can be interrupted, currently connects
Connect, to establish the connection with target device, and then solicited message can be sent to target device.
S207, establish and connect with the target device.
When the status information of target plug-in is not connected, or what is connected is not target device, and electronic equipment interrupts current
After connection, it can establish and connect with target device.It is possible to further perform step S205, request letter is sent to target device
Breath.
In the present embodiment, electronic equipment invocation target plug-in unit is sent to target device before solicited message, it can be determined that mesh
The use state of plug-in unit is marked, only when target plug-in is non-to be connected, ability invocation target plug-in unit, so as to avoid equipment connection
During, invocation target plug-in unit, causes some conflicts or abnormal again.
And it is possible to determine whether that target plug-in to be not connected with or having connected, can be set when it is not connected with target
It is standby to establish connection;Or when its connected and by the target plug-in connect be not target device when, current connection can be interrupted,
And establish and connect with target device, solicited message is sent to target device exactly so as to ensure that.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides corresponding device embodiment.
Fig. 5 is a kind of plug-in management device provided in an embodiment of the present invention, applied to electronic equipment, the electronic equipment peace
Equipped with plug-in unit, the plug-in unit corresponds to multiple devices, and described device includes:
Execution module 510, for receiving the instruction of user's input, wherein one is determined from multiple devices according to the instruction
Platform is target device, and it is target plug-in that one of them is determined from the plug-in unit;
Processing module 520, for calling the target plug-in, solicited message, the request are sent to the target device
The attribute information for treating request data is comprised at least in information, so that the target device sends corresponding number to the electronic equipment
According to.
The embodiments of the invention provide a kind of plug-in management device, in the plug-in unit of electronic equipment installation, plug-in unit can be with
Corresponding multiple devices.Therefore, the plug number installed in electronic equipment is less, also, electronic equipment can be realized and inserted to multiple
The unified management of part, the complexity of plug-in management can be reduced, lift electronic equipment performance.
As a kind of implementation of the embodiment of the present invention, the electronic equipment passes through each plug-in unit of interface interchange, institute
Processing module 520 is stated, specifically for by target plug-in described in the interface interchange, request letter is sent to the target device
Breath.
As a kind of implementation of the embodiment of the present invention, the electronic equipment locally preserves the state letter of each plug-in unit
Breath, the status information include:It is not connected with, is connecting or connecting;As shown in fig. 6, one kind provided in an embodiment of the present invention
Plug-in management device, processing module 520 include:
Judging unit 521, for the status information according to each plug-in unit locally preserved, judge the target plug-in whether just
Connecting;
Detection unit 522, for judging to obtain the status information of the target plug-in when the judging unit to connect
When connecing, it is periodically detected whether the target plug-in is connecting;
Processing unit 523, for when the judging unit judges to obtain, the target plug-in is non-to be connected, or the inspection
When surveying unit and being periodically detected that the target plug-in is non-to be connected, the target plug-in is called, is sent out to the target device
Send solicited message.
As a kind of implementation of the embodiment of the present invention, the processing unit 523 includes:
Judgment sub-unit 5231, for judging whether the state of the target plug-in is to have connected;
Subelement 5232 is performed, for judging to obtain the state of the target plug-in when the judgment sub-unit to have connected
When, the target plug-in is called, solicited message is sent to the target device;
Subelement 5233 is handled, the state for judging to obtain the target plug-in when the judgment sub-unit is not connected
When, the target plug-in is called, establishes and connects with the target device, and solicited message is sent to the target device.
As a kind of implementation of the embodiment of the present invention, the execution subelement 5232, specifically for judging to be connected
Equipment whether be the target device;If it is, calling the target plug-in, solicited message is sent to the target device;
If not, interrupting current connection, the target plug-in is called, establishes and connects with the target device, and is sent to target device
Solicited message.
As a kind of implementation of the embodiment of the present invention, also include legitimacy verifies information in the solicited message, with
Make the target device according to the legitimacy verifies information, after determining the electronic equipment by legitimacy verifies, to described
Electronic equipment sends corresponding data.
As a kind of implementation of the embodiment of the present invention, when the electronic equipment is provided with multiple plug-in units, at least
One plug-in unit corresponds to multiple devices.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (14)
1. a kind of plug-in management method, it is characterised in that applied to electronic equipment, the electronic equipment is provided with plug-in unit, described
Plug-in unit corresponds to multiple devices, and methods described includes:
The instruction of user's input is received, from multiple devices determines that wherein one is target device according to the instruction, from described
It is target plug-in that one of them is determined in plug-in unit;
The target plug-in is called, solicited message is sent to the target device, is comprised at least in the solicited message and wait to ask
The attribute information of data, so that the target device sends corresponding data to the electronic equipment.
2. according to the method for claim 1, it is characterised in that the electronic equipment by each plug-in unit of interface interchange,
Described to call the target plug-in, sending solicited message to the target device includes:
By target plug-in described in the interface interchange, solicited message is sent to the target device.
3. according to the method for claim 1, it is characterised in that the electronic equipment locally preserves the state letter of each plug-in unit
Breath, the status information include:It is not connected with, is connecting or connecting, it is described to call the target plug-in, set to the target
Preparation send solicited message to include:
According to the status information of each plug-in unit locally preserved, judge whether the target plug-in is connecting;
When the status information of the target plug-in is connects, it is periodically detected whether the target plug-in is connecting;
When determine the target plug-in it is non- connecting or be periodically detected the target plug-in is non- connect when, call
The target plug-in, solicited message is sent to the target device.
4. according to the method for claim 3, it is characterised in that when determining, the target plug-in is non-to be connected or the cycle
Property when detecting that the target plug-in is non-and connecting, call the target plug-in, solicited message sent to the target device
Including:
When determine the target plug-in it is non- connecting or be periodically detected the target plug-in is non- connect when, judge
Whether the state of the target plug-in is to have connected;
When the state of the target plug-in is has connected, the target plug-in is called, request letter is sent to the target device
Breath;
When the state of the target plug-in is is not connected with, the target plug-in is called, establishes and connects with the target device, and
Solicited message is sent to the target device.
5. according to the method for claim 4, it is characterised in that it is described when the state of the target plug-in is has connected,
The target plug-in is called, sending solicited message to the target device includes:
When the state of the target plug-in is has connected, judge whether connected equipment is the target device;
If it is, calling the target plug-in, solicited message is sent to the target device;
If not, interrupting current connection, the target plug-in is called, establishes and connects with the target device, and to target device
Send solicited message.
6. according to the method described in claim any one of 1-5, it is characterised in that also include legitimacy school in the solicited message
Information is tested, so that the target device determines that the electronic equipment passes through legitimacy verifies according to the legitimacy verifies information
Afterwards, corresponding data are sent to the electronic equipment.
7. according to the method described in claim any one of 1-5, it is characterised in that when the electronic equipment is provided with multiple plug-in units
When, at least one plug-in unit corresponds to multiple devices.
8. a kind of plug-in management device, it is characterised in that applied to electronic equipment, the electronic equipment is provided with plug-in unit, described
Plug-in unit corresponds to multiple devices, and described device includes:
Execution module, for receiving the instruction of user's input, determine that wherein one is mesh from multiple devices according to the instruction
Marking device, it is target plug-in that one of them is determined from the plug-in unit;
Processing module, for calling the target plug-in, solicited message is sent to the target device, in the solicited message extremely
It is few to include the attribute information for treating request data, so that the target device sends corresponding data to the electronic equipment.
9. device according to claim 8, it is characterised in that the electronic equipment by each plug-in unit of interface interchange,
The processing module, specifically for by target plug-in described in the interface interchange, solicited message is sent to the target device.
10. device according to claim 8, it is characterised in that the electronic equipment locally preserves the state of each plug-in unit
Information, the status information include:It is not connected with, connecting or connecting, the processing module includes:
Judging unit, for the status information according to each plug-in unit locally preserved, judge whether the target plug-in is connecting;
Detection unit, for when the judging unit judges to obtain the status information of the target plug-in to connect, week
Phase property detects whether the target plug-in is connecting;
Processing unit, for when the judging unit judges to obtain, the target plug-in is non-to be connected, or the detection unit
When being periodically detected that the target plug-in is non-to be connected, the target plug-in is called, sends and asks to the target device
Information.
11. device according to claim 10, it is characterised in that the processing unit includes:
Judgment sub-unit, for judging whether the state of the target plug-in is to have connected;
Subelement is performed, for when the judgment sub-unit judges to obtain the state of the target plug-in to have connected, calling
The target plug-in, solicited message is sent to the target device;
Subelement is handled, for when the judgment sub-unit judges to obtain the state of the target plug-in to be not connected with, calling
The target plug-in, establish and connect with the target device, and solicited message is sent to the target device.
12. device according to claim 11, it is characterised in that the execution subelement, specifically for judging to be connected
Equipment whether be the target device;If it is, calling the target plug-in, solicited message is sent to the target device;
If not, interrupting current connection, the target plug-in is called, establishes and connects with the target device, and is sent to target device
Solicited message.
13. according to the device described in claim any one of 8-12, it is characterised in that also include legitimacy in the solicited message
Check information, so that the target device determines that the electronic equipment passes through legitimacy school according to the legitimacy verifies information
After testing, corresponding data are sent to the electronic equipment.
14. according to the device described in claim any one of 8-12, it is characterised in that when the electronic equipment is provided with multiple insert
During part, at least one plug-in unit corresponds to multiple devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610712834.4A CN107766232B (en) | 2016-08-23 | 2016-08-23 | Plug-in management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610712834.4A CN107766232B (en) | 2016-08-23 | 2016-08-23 | Plug-in management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107766232A true CN107766232A (en) | 2018-03-06 |
CN107766232B CN107766232B (en) | 2020-12-25 |
Family
ID=61264751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610712834.4A Active CN107766232B (en) | 2016-08-23 | 2016-08-23 | Plug-in management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766232B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113348725A (en) * | 2019-05-16 | 2021-09-03 | 深圳市欢太科技有限公司 | Device operation method, device, gateway, electronic device and computer readable medium |
CN114268653A (en) * | 2021-12-22 | 2022-04-01 | 中国建设银行股份有限公司 | Equipment calling method, device, equipment, medium and product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7546610B2 (en) * | 2003-07-16 | 2009-06-09 | International Business Machines Corporation | Method for managing multi-tier application complexes |
CN101997909A (en) * | 2009-08-24 | 2011-03-30 | 三星电子株式会社 | Method for providing control widget and device using the same |
CN104038536A (en) * | 2014-05-23 | 2014-09-10 | 小米科技有限责任公司 | Plug-in communication method and device |
CN104951322A (en) * | 2014-03-27 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Plug-in management method, device and system |
-
2016
- 2016-08-23 CN CN201610712834.4A patent/CN107766232B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7546610B2 (en) * | 2003-07-16 | 2009-06-09 | International Business Machines Corporation | Method for managing multi-tier application complexes |
CN101997909A (en) * | 2009-08-24 | 2011-03-30 | 三星电子株式会社 | Method for providing control widget and device using the same |
CN104951322A (en) * | 2014-03-27 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Plug-in management method, device and system |
CN104038536A (en) * | 2014-05-23 | 2014-09-10 | 小米科技有限责任公司 | Plug-in communication method and device |
Non-Patent Citations (1)
Title |
---|
JACKEN_YANG: "监控服务器Cacti之三 插件安装", 《51CTO博客:HTTPS://BLOG.51CTO.COM/LINUXNOTE/1635805》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113348725A (en) * | 2019-05-16 | 2021-09-03 | 深圳市欢太科技有限公司 | Device operation method, device, gateway, electronic device and computer readable medium |
CN114268653A (en) * | 2021-12-22 | 2022-04-01 | 中国建设银行股份有限公司 | Equipment calling method, device, equipment, medium and product |
CN114268653B (en) * | 2021-12-22 | 2024-04-09 | 中国建设银行股份有限公司 | Equipment calling method, device, equipment, medium and product |
Also Published As
Publication number | Publication date |
---|---|
CN107766232B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104794374B (en) | A kind of application rights management method and apparatus for Android system | |
CN104834602B (en) | A kind of program dissemination method, device and program delivery system | |
CN102739663A (en) | Detection method and scanning engine of web pages | |
CN110149298B (en) | Hijacking detection method and device | |
CN103618945A (en) | Remote maintenance method and equipment for terminal | |
CN106656985B (en) | Backup account login method, device and system | |
CN107888589A (en) | A kind of method and its system for calling trusted application | |
WO2014194704A1 (en) | A grouping processing method and system | |
CN109308239A (en) | Method and apparatus for output information | |
CN106488394A (en) | A kind of method and device of equipment connection | |
EP2937781A1 (en) | Method and apparatus for controlling invoking of hardware instruction | |
CN106095413A (en) | The collocation method of a kind of bluetooth driver and device | |
CN107274222A (en) | Advertisement placement method and device | |
CN108521425A (en) | A kind of industry control protocol filtering method and board | |
CN107766232A (en) | A kind of plug-in management method and device | |
CN107707571A (en) | A kind of method and apparatus for managing network external connection | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN104021324A (en) | Method and device for writing safety verification | |
CN113132522A (en) | Test method, device, server and medium | |
CN109981573B (en) | Security event response method and device | |
CN107682228A (en) | A kind of method for monitoring state and its device of OpenStack clusters | |
CN111324364A (en) | Method, device, equipment and storage medium for equipment management | |
US7778660B2 (en) | Mobile communications terminal, information transmitting system and information receiving method | |
CN110677353B (en) | Data access method and system | |
CN105024974A (en) | IPTV message processing method and apparatus |
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 |