CN108334361A - The method and device of control operation - Google Patents

The method and device of control operation Download PDF

Info

Publication number
CN108334361A
CN108334361A CN201710579359.2A CN201710579359A CN108334361A CN 108334361 A CN108334361 A CN 108334361A CN 201710579359 A CN201710579359 A CN 201710579359A CN 108334361 A CN108334361 A CN 108334361A
Authority
CN
China
Prior art keywords
control
call request
local
request
http
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.)
Withdrawn
Application number
CN201710579359.2A
Other languages
Chinese (zh)
Inventor
吕翊
韩国权
马东红
杜胜
马壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SMARTDOT TECHNOLOGIES Co Ltd
Original Assignee
SMARTDOT TECHNOLOGIES Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SMARTDOT TECHNOLOGIES Co Ltd filed Critical SMARTDOT TECHNOLOGIES Co Ltd
Priority to CN201710579359.2A priority Critical patent/CN108334361A/en
Publication of CN108334361A publication Critical patent/CN108334361A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The present invention relates to a kind of method and devices of control operation.Wherein the method includes:After detecting control recalls information, control call request is sent by http agreements;The control receives the control call request;The control calls required local resource according to the control call request.It uses http protocol edits local control service request, calls local control.The shortcomings of because using the http agreements consistent with browser, therefore being directly transmitted from browser, receive control call request, not depend on browser plug-in, being broken traditional control sandbox container mechanism, avoid plug-in unit poor compatibility.Run more stable and compatible strong, the different types of browser such as support IE, FireFox, Chrome, Edge.After adopting this method, control is installed to local as stand-alone service, is similar to local client service, directly by HTTP service request call local resource, and simple installation.

Description

The method and device of control operation
Technical field
The present invention relates to the method and devices that field of computer technology more particularly to a kind of control are run.
Background technology
Under normal circumstances, control realizes cross-platform and browser-cross and this using Microsoft Silverlight plug-in units Ground resource interaction.But due to NPAPI (Netscape Plugin Application Programming Interface, Netscape Plug-in applications programming interface) there is performances not to support, the problems such as collapsing, new version Google Chrome, Mozilla and The Edge browsers of Microsoft have recanted the support to NPAPI, lead to Microsoft Silverlight (Microsoft's silver Light) plug-in unit can not use, also affect the calling of other many controls.
Invention content
Based on this, it is necessary in view of the above-mentioned problems, provide a kind of method that can freely call the control of control to call and Device.
A kind of method for control operation that purpose provides to realize the present invention, which is characterized in that including:
After detecting control recalls information, control call request is sent by http agreements;
The control receives the control call request;
The control calls required local resource according to the control call request.
The method of the control operation of one of embodiment further includes step of the installation control to local.
The method of the control operation of one of embodiment, the control recalls information during browser execution by examining What is measured needs to run the information of control miscellaneous function.
One of embodiment control operation method, the control according to the control call request call needed for Local resource includes:
The control obtains required local resource and action refers to according to control call request described in http protocol analysis It enables;
The local resource needed for calling, and execute the action command.
The method of the control operation of one of embodiment, it is further comprising the steps of:
Pass through http agreement return action results.
The method of the control operation of one of embodiment, the control run monitoring programme, wait waiting after installation is complete Receive the control call request.
The method of the control operation of one of embodiment, it is further comprising the steps of:
Detect whether the control needs to update;
If so, downloading new version control, and install;
If it is not, then running presently described control.
A kind of device of control operation based on same inventive concept, including:
Request sending module, for after detecting control recalls information, control call request to be sent by http agreements;
Request receiving module, for receiving the control call request;
Resource transfer module, for calling required local resource according to the control call request.
One of embodiment control operation device, further include operation monitoring module, for etc. the control to be received Part call request.
The device of the control operation of one of embodiment, further includes control update module, is for detecting the control It is no to need to update, and new version control is downloaded when needing update, and install.
Beneficial effects of the present invention include:A kind of method of control operation provided by the invention, uses http agreements to compile Local control service request is collected, local control is called.Because use the http agreement consistent with browser, therefore can be from clear Device of looking at directly transmits, receives control call request, does not depend on browser plug-in, breaks traditional control sandbox container mechanism, keeps away The shortcomings of having exempted from plug-in unit poor compatibility.Run more stable and compatible strong, the differences such as support IE, FireFox, Chrome, Edge The browser of type.After adopting this method, control is installed to local as stand-alone service, is similar to local client service, directly Connected HTTP service request call local resource, and simple installation.
Description of the drawings
Fig. 1 is a kind of flow chart of a specific embodiment of the method for control operation of the present invention;
Fig. 2 is a kind of implementation procedure display diagram of a specific embodiment of the method for control operation of the present invention;
Fig. 3 is a kind of structural schematic diagram of a specific embodiment of the device of control operation of the present invention;
Fig. 4 is a kind of structural schematic diagram of the another specific embodiment of the device of control operation of the present invention;
Fig. 5 is a kind of structural schematic diagram of the still another embodiment of the device of control operation of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with attached drawing to the present invention's The specific implementation mode of the method and device of control operation illustrates.It should be appreciated that specific embodiment described herein is only Only to explain the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the method for the control operation of one embodiment of the invention includes the following steps:
After detecting control recalls information, control call request is sent by http agreements by S100.
It should be noted that the method for the control operation of the present invention is mainly used for solving to be installed to local control and exist Web terminal needs plug-in unit to coordinate when calling, and will appear incompatible between plug-in unit and all types of browsers, or even browser is caused to collapse Routed problem.The method that the present invention uses is exactly not carry out compatible browser using plug-in unit, this is being installed to using plug-in unit calling The control on ground, and directly communicated with browser end using http agreements identical with browser, call control.
Wherein, the control recalls information is detected during browser execution to need to run control miscellaneous function Information.Such as paying the bill, interface starts, the reading of special format document can become control recalls information.In actual use process In, after detecting the control recalls information, then need to start corresponding control.At this point, calling demand http agreements by practical Standard compliation is that control call request is sent through browser.It referring specifically to Fig. 2, is shown as in actual moving process, browser fortune During row, it is found that control calls demand, then serviced by http agreement requests.As shown in Fig. 2, the present embodiment method was run Three parts involved in journey, respectively browser end (browser 01), the control service (control of local runtime of local runtime 02) and native operating sys-tern 03 part service.In step S100, the incipient stage finds that control calls demand in browser end, and adopts Service request is sent with http agreements, to call, activate locally-installed control.Specifically, control call request can be used GET in http, POST, the orders such as PUT, DELETE (look into, change, increasing, deleting) are realized.
Certainly, the method for the control operation of this method will first be installed before the use in computer end or intelligent operation end It needs that the control called may be needed.
S200, control receive control call request.
S300, control call required local resource according to control call request.
After control receives control call request, parses control and call required local resource and specific instruction, then Specific action is completed using local resource cooperation native operating sys-tern.
The local resource includes local program, file and equipment etc..
The method of the control operation of the embodiment of the present invention, uses http protocol edits local control service request, calls Local control.Because using the http agreement consistent with browser, therefore it can be directly transmitted from browser, receive control tune Not the shortcomings of with request, not depending on browser plug-in, breaking traditional control sandbox container mechanism, avoid plug-in unit poor compatibility. Run more stable and compatible strong, the different types of browser such as support IE, FireFox, Chrome, Edge.Using this method Afterwards, control is installed to local as stand-alone service, is similar to local client service, directly passes through HTTP service request call sheet Ground resource, and simple installation.
Certainly, further include step of the installation control to local before use using the method for doing invention.Control meeting after installation Associated program monitoring service is provided, monitoring programme is run, waits control call request to be received, ensures system normal use.
Specifically, step S300, control according to control call request call needed for local resource, divide following steps into Row:
First, control obtains required local resource and action command according to http protocol analysis control call requests.
It will be understood by those skilled in the art that containing certain tune after detecting control recalls information, in recalls information With demand, file, data, or modification data, file etc. are such as read, control tune is write according to http agreements according to specific requirements With request, request instruction can include specific demand information, including required local resource and action command etc..This step is Details included in control call request are interpreted first, to be subsequently further processed.
After the parsing for completing control call instruction, according to parsing as a result, local resource needed for calling, and execute dynamic It instructs, this step can be realized by native operating sys-tern.
Correspondingly, after the calling for completing local resource, in method of the invention, it can also pass through http agreement return actions As a result, being finally completed the calling of control.
As shown in Fig. 2, in another inventive embodiments, also wrapped after receiving the control call request in step S200 Include following steps:
Whether S201, detection control need to update.In this step, it is found that control needs after calling, connect control service Device, checks whether there is the update of version, is on the one hand conducive to provide more good service using new version, on the other hand can avoid low Versioning service end is stopped using to bring inconvenience to user.
If so, executing step S202, then new version control is downloaded, and install.May be provided at new version control, installation is complete After automatically continue operating procedure S300.
If it is not, then running current control, and continue to execute step S300.
It should be noted that in other embodiments, prompt user after finding new version, which can also be arranged, more preferable version This, whether inquiry user updates.And it is subsequently downloaded according to the selection of user and updates new version or be continuing with The legacy version of installation continues offer service.
And should be noted and be used as a kind of embodiment, control can be complete under V6 platforms in method of the invention At, and design the completely compatible V5 controls of control interface, smooth upgrade.Integrated and occupation mode is backward compatible, passes through switch parameter Automatic decision installs new edition and early version plug-in unit.
Based on same inventive concept, a kind of device of control operation is also provided.The principle solved the problems, such as due to this device with A kind of method of aforementioned control operation is similar, and therefore, the implementation of the device can be realized according to the specific steps of preceding method, weight Multiple place repeats no more.
As shown in figure 3, the device of the control operation of a specific example includes request sending module 100, request receiving module 200 and resource transfer module 300.Wherein, the request sending module 100, for after detecting control recalls information, passing through Http agreements send control call request;The request receiving module 200, for receiving control call request;The resource tune With module 300, it is used to call required local resource according to control call request.
The device of the control operation of the embodiment of the present invention calls this using http protocol edits local control service request Ground control.Because using the http agreement consistent with browser, therefore it can be directly transmitted from browser, receive control calling Request, the shortcomings of not depending on browser plug-in, break traditional control sandbox container mechanism, avoid plug-in unit poor compatibility.Fortune Row is more stable, and compatibility is strong, supports the different types of browsers such as IE, FireFox, Chrome, Edge.Using this method Afterwards, control is installed to local as stand-alone service, is similar to local client service, directly passes through HTTP service request call sheet Ground resource, and simple installation.
As shown in figure 4, the device of the control operation of one of embodiment, further includes operation monitoring module 010, for etc. Control call request to be received.After control is installed to local, the operation monitoring module starts work, provides associated program prison Control service, ensures system normal use.
As shown in figure 5, further include control update module in another embodiment, for detecting whether control needs to update, And new version control is downloaded when needing update, and install.Then continue to turn to execute the resource transfer module after installing successfully, if Control need not update, and also continue to the function of executing the resource transfer module, complete the calling of control.
It should be noted that in embodiment shown in fig. 5, control update module 030 is arranged after request receiving module, In other embodiments, the module arranged side by side with all modules shown in Fig. 1 is may be set to be, the inspection of control version is individually carried out It surveys.It can such as be arranged and periodically carry out version updating detection, ensure that control timely updates.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of method of control operation, which is characterized in that including:
After detecting control recalls information, control call request is sent by http agreements;
The control receives the control call request;
The control calls required local resource according to the control call request.
2. the method for control operation according to claim 1, which is characterized in that further include installing the control to local Step.
3. the method for control operation according to claim 1, which is characterized in that the control recalls information is transported for browser The detected information for needing to run control miscellaneous function during row.
4. the method for control operation according to claim 1, which is characterized in that the control is asked according to control calling Ask call needed for local resource include:
The control obtains required local resource and action command according to control call request described in http protocol analysis;
The local resource needed for calling, and execute the action command.
5. the method for control operation according to claim 4, which is characterized in that further comprising the steps of:
Pass through http agreement return action results.
6. the method for control according to claim 2 operation, which is characterized in that the control is after installation is complete, operation prison Program is controlled, the control call request to be received is waited.
7. the method for control operation according to claim 1, which is characterized in that further comprising the steps of:
Detect whether the control needs to update;
If so, downloading new version control, and install;
If it is not, then running presently described control.
8. a kind of device of control operation, which is characterized in that including:
Request sending module, for after detecting control recalls information, control call request to be sent by http agreements;
Request receiving module, for receiving the control call request;
Resource transfer module, for calling required local resource according to the control call request.
9. the device of control operation according to claim 8, which is characterized in that further include operation monitoring module, for etc. The control call request to be received.
10. the device of control operation according to claim 8, which is characterized in that further include control update module, for examining It surveys whether the control needs to update, and downloads new version control when needing update, and install.
CN201710579359.2A 2017-07-17 2017-07-17 The method and device of control operation Withdrawn CN108334361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710579359.2A CN108334361A (en) 2017-07-17 2017-07-17 The method and device of control operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710579359.2A CN108334361A (en) 2017-07-17 2017-07-17 The method and device of control operation

Publications (1)

Publication Number Publication Date
CN108334361A true CN108334361A (en) 2018-07-27

Family

ID=62923010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710579359.2A Withdrawn CN108334361A (en) 2017-07-17 2017-07-17 The method and device of control operation

Country Status (1)

Country Link
CN (1) CN108334361A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
US20110258432A1 (en) * 2010-04-15 2011-10-20 Microsoft Corporation Method and system for reliable protocol tunneling over http
CN105302564A (en) * 2015-11-09 2016-02-03 中国人民解放军91655部队 Online office software service control and implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
US20110258432A1 (en) * 2010-04-15 2011-10-20 Microsoft Corporation Method and system for reliable protocol tunneling over http
CN105302564A (en) * 2015-11-09 2016-02-03 中国人民解放军91655部队 Online office software service control and implementation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment
CN115291968B (en) * 2022-08-01 2024-02-23 国投智能科技有限公司 Service processing method, system and computer equipment

Similar Documents

Publication Publication Date Title
US9971333B2 (en) Programming auxiliary system of programmable controller and method thereof
US20120210317A1 (en) Method and apparatus for updating data card
JP5542796B2 (en) Method and apparatus for managing mobile device software
EP2806357A1 (en) Method and communication device for updating a web application
EP2328088A1 (en) Home network system, gateway device, and firmware update method
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN106502717B (en) Application program running method and device
CN105159718B (en) Firmware upgrade method and device
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN108255708B (en) Method, device, storage medium and equipment for accessing production file in test environment
JP4700700B2 (en) Active X control installation method
CN104216719A (en) Method and device for updating android system
CN106775876B (en) Method for quickly starting application by android system
CN105653335A (en) Plug-in procedure control method and device
CN107577510A (en) One kind quickly pre-installs method and system automatically without hardware driving under disk ring border
CN104699499A (en) Heterogeneous terminal software upgrading method
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN108334361A (en) The method and device of control operation
CN102866905A (en) Third-party application program upgrading processing method and device and intelligent television
CN108989428B (en) Bluetooth terminal upgrading method, server, computer readable storage medium and system
CN106033364B (en) Web application program upgrading method and system
US20060015867A1 (en) Business productivity pack
CN105827467B (en) A kind of registration center's upgrade method, relevant device and system
CN114237724A (en) Dynamic loading method for driver

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180727