CN109361757A - A kind of data transmission method, device and computer readable storage medium - Google Patents
A kind of data transmission method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN109361757A CN109361757A CN201811331571.8A CN201811331571A CN109361757A CN 109361757 A CN109361757 A CN 109361757A CN 201811331571 A CN201811331571 A CN 201811331571A CN 109361757 A CN109361757 A CN 109361757A
- Authority
- CN
- China
- Prior art keywords
- background service
- data transmission
- browser
- transmission method
- transformation task
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Abstract
The present embodiments relate to field of communication technology, a kind of data transmission method, device and computer readable storage medium are disclosed.In some embodiments of the invention, data transmission method is applied to background service, comprising: determines the transformation task that browser is sent;Wherein, browser determines transformation task;According to the preset rules in registration table, transformation task is transmitted to background service;Execute transformation task;Wherein, background service is independently of browser.In the realization, background service enables background service to continue to execute transformation task after browser closing independently of browser.Also, since background service is independently of browser, when configuring the background service, the plug-in protocol supported without considering browser reduces the maintenance of background service.
Description
Technical field
The present embodiments relate to field of communication technology, in particular to a kind of data transmission method, device and computer can
Read storage medium.
Background technique
Due to variety of problems existing for client/server (Client/Server, C/S) structure, people are original at it
On the basis of propose a kind of application system structure browser/server (Browser/Server) structure with three tiers model.
B/S structure is the rise along with internet, a kind of improvement to C/S structure.B/S the biggest advantage is to can it is in office where
Fang Jinhang is operable without any special software of installation, can use as long as having the computer that can be surfed the Internet, and client zero is pacified
Dress, zero dimension shield.The extension of system is very easy to.
However, it is found by the inventors that at least there are the following problems in the prior art: currently, terminal is frequently with browser/service
The method of device (Browser/Server, B/S) mode carries out file transmission.The plug-in unit of traditional browser needs to meet orientation and draws
Stream, and support the requirement of different platform different browsers kernel.And plug-in unit needs to pass through system manager during installation
Or the authorization of protection capacity of safety protection software can just install, if it is browser chrome, it would be desirable to be able to access chrome's
Official's certification and automatic starting.Current plug-in unit has the following problems:
1. browser plug-in is directed to entire browser, after browser is closed, plug-in unit can not work on.
2. browser plug-in needs to be compatible with different kernel and platform.The plug-in protocol supported due to different browser is not
Equally, therefore, plug-in unit needs to be compatible with different kernel and platform, and maintenance is larger.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of data transmission method, device and computer-readable storage medium
Matter enables background service to continue to execute transformation task after browser closing, reduces the maintenance of background service.
In order to solve the above technical problems, embodiments of the present invention provide a kind of data transmission method, it is applied to backstage
Service, comprising the following steps: determine the transformation task that browser is sent;Wherein, browser determines transformation task;According to registration table
In preset rules, transformation task is transmitted to background service;Execute transformation task;Wherein, background service is independently of browser.
Embodiments of the present invention additionally provide a kind of data transmission method, are applied to browser, comprising the following steps: really
Determine transformation task;According to the preset rules in registration table, transformation task is transmitted to background service;Wherein, background service determines
And transformation task is executed, background service is independently of browser.
Embodiments of the present invention additionally provide a kind of data transmission device, comprising: determining module and execution module;It determines
Module and execution module coupling, the data transmission method applied to background service referred to for executing above embodiment.
Embodiments of the present invention additionally provide a kind of data transmission device, comprising: determining module and transmission module;It determines
Module and transmission module coupling, the data transmission method applied to browser referred to for executing above embodiment.
Embodiments of the present invention additionally provide a kind of data transmission device, comprising: at least one processor;And with
The memory of at least one processor communication connection;And the communication component with browser communication connection, communication component are being handled
Data are sended and received under the control of device;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt
At least one processor executes so that at least one processor be able to carry out that above embodiment refers to be applied to background service
Data transmission method.
Embodiments of the present invention additionally provide a kind of data transmission device, comprising: at least one processor;And with
The memory of at least one processor communication connection;And the communication component with background service communication connection, communication component are being located
It manages and sends and receivees data under the control of device;Wherein, memory is stored with the instruction that can be executed by least one processor, instruction
Executed by least one processor so that at least one processor be able to carry out that above embodiment refers to be applied to browser
Data transmission method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The data transmission method applied to background service that above embodiment refers to is realized when machine program is executed by processor.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The data transmission method applied to browser that above embodiment refers to is realized when machine program is executed by processor.
Embodiment of the present invention in terms of existing technologies, hold in an asynchronous manner independently of browser by background service
Row transformation task rests on current interface without user and waits end of transmission.Relative to browser plug-in, since background service is only
Browser is stood on, background service can continue to execute transformation task after browser closing, will not interrupt normal business behaviour
Make.Also, since background service and browser are independent, when configuring background service, the plug-in protocol supported without considering browser,
Reduce the maintenance of background service.
In addition, the information for the page that transformation task is accessed by browser according to transmission instruction, needs, and be previously written clear
Look at device front end webpage code in custom protocol beginning order determine;Wherein, the life started with custom protocol
Enable the information for carrying transmission instruction and the page.In the realization, transmission instruction and needs are accessed by custom protocol
The information of the page is transmitted to background service, realizes the information exchange between browser and background service.
In addition, background service is started by the system of the data transmission device of installation background service, wherein data transmission device
System determine browser starting after, start background service.In the realization, taken by the system control backstage of data transmission device
Business starting, triggers manually without user, realizes automatically waking up for background service, simplify the operation of user, improve user
Experience.
In addition, before determining the transformation task that browser is sent, data transmission method further include: detect background service
Information;Wherein, the information of background service includes the system parameter message of background service and/or the authority information of background service;Root
According to the information of background service, determine that background service meets preset service condition.In the realization, to the system environments of background service
Information is detected, and is executed transformation task after the system environments of background service meets preset service condition, is avoided executing
After transformation task, since version and/or rights concerns cause transmission to fail.
In addition, transmission instruction is uploading instructions, it include the data for needing to upload and target position in uploading instructions;Execute biography
Defeated task, specifically includes: according to the information of webpage, determining the corresponding server of webpage;According to uploading instructions, by need to upload
Data are uploaded to the target position in the corresponding server of webpage;Alternatively, transmission instruction is download instruction, include in download instruction
The data for needing to download and storage position;Transformation task is executed, specifically includes: according to the information of webpage, determining that webpage is corresponding
Server;According to download instruction, the data for needing to download are obtained from the corresponding server of webpage, and store to storage position.
In addition, server is communicated with background service according to the agreement made an appointment.
In addition, during executing transformation task, data transmission method further include: display upload task or downloading task
Progress.In the realization, background service provides visualization window, and the performance of transformation task is grasped convenient for user, is improved
User experience.
In addition, before or after determining the transformation task that browser is sent, data transmission method further include: by phased manner
Detect background service whether normal operation;After determining that testing result instruction background service does not operate normally, background service is restarted.
In the realization, background service is voluntarily restarted when not operating normally, improves the continuous service ability of background service.
In addition, after executing transformation task, data transmission method further include: record transformation task.
In addition, determining transformation task, specifically include: according to transmission instruction, the information for the page for needing to access, and in advance
The order started with custom protocol in the code of the front end webpage of browser is written, determines transformation task;Wherein, to make by oneself
The order of adopted agreement beginning is for carrying the information of transmission instruction and the page.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of the data transmission method of first embodiment of the invention;
Fig. 2 is the interaction schematic diagram of the browser of second embodiment of the present invention, background service and server;
Fig. 3 is the flow chart of the data transmission method of second embodiment of the present invention;
Fig. 4 is the flow chart of the data transmission method of third embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the data transmission device of the 4th embodiment of the invention;
Fig. 6 is the overall architecture schematic diagram of the data transmission device of the 4th embodiment of the invention;
Fig. 7 is the structural schematic diagram of the data transmission device of the 5th embodiment of the invention;
Fig. 8 is the structural schematic diagram of the data transmission device of sixth embodiment of the invention;
Fig. 9 is the structural schematic diagram of the data transmission device of the 7th embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of data transmission methods, are applied to background service, as shown in Figure 1, should
Data transmission method the following steps are included:
Step 101: determining the transformation task that browser is sent.
Specifically, after determining transformation task, according to the preset rules in registration table, transformation task is transmitted for browser
To background service.Wherein, background service is independently of browser, i.e., background service by installation background service data transmission device
System starting, rather than background service is started by browser.The system of data transmission device is after determining browser starting, after starting
Platform service, rather than user triggers manually.
It should be noted that the browser referred in present embodiment, can be the browser as independent utility, it can also
To be using the browser being embedded in.
It should be noted that it will be understood by those skilled in the art that can according to need setting registration table in practical application
In preset rules, which makes browser after determining transformation task, transformation task is passed to background service.
It is noted that the starting of the system control background service by data transmission device, is triggered manually without user,
Automatically waking up for background service is realized, the operation of user is simplified, improves user experience.
In the specific implementation, the information for the page that transformation task is accessed by browser according to transmission instruction, needs, and in advance
The order with custom protocol beginning being written in the code of the front end webpage of browser determines;Wherein, it is opened with custom protocol
The order of head is for carrying the information of transmission instruction and the page.
It should be noted that it will be understood by those skilled in the art that can according to need and write to make by oneself in practical application
The order of adopted agreement beginning, so as to which the information of transmission instruction and the page, this reality can be carried with the order that custom protocol starts
Mode is applied not limit in the form of the specific code of the order of custom protocol beginning.
It is noted that the life started with custom protocol is written in the information for carrying transmission instruction and the page by browser
In order, transformation task is generated, background service is transmitted to, realizes the information exchange between browser and background service.
In the specific implementation, detection backstage takes before background service after start-up, determines the transformation task that browser is sent
The information of business;Wherein, the information of background service includes the system parameter message of background service and/or the permission letter of background service
Breath;According to the information of background service, determine that background service meets preset service condition.
It should be noted that after the system parameter message of background service may include the version information of background service, installation
Version information, transmission control protocol (the Transmission Control of the system of the data transmission device of platform service
Protocol, TCP) port information, User Datagram Protocol (User Datagram Protocol, UDP) port information, browsing
The information such as the version information of device, present embodiment do not limit the tool of the information of the system of the data transmission device of installation background service
Hold in vivo.
It should be noted that the information of background service may include expire-services time and the background service of background service
Authority information etc., present embodiment do not limit the particular content of the information of background service.
It should be noted that it will be understood by those skilled in the art that preset service condition can be the version of background service
This is latest edition, background service authenticates any one successfully, in the not yet due and other conditions of service of background service or is appointed
Meaning combines, and in practical application, can according to need the service condition of setting background service.
The process of installation background service and background service detection own system environment is illustrated below.Browser
When user first switches on the webpage embedded with plug-in unit engine function, meeting automatically scanning and the backstage for prompting user's downloading latest edition
Service.User double-clicks installation kit, and after mounting during platform service, background service is registered customized in the registration table of system
Agreement (url protocol), and call parameters are designed in advance, so that browser when needing to carry out data transmission, can be adjusted
With the background service.Specifically, browser, when webpage is loaded into, whether scanning current system has installed background service, if
Background service is not installed, then prompts user to download background service, and provide download address.After background service is installed, backstage
Service detects the system environments of background service, and detection variable can be set to the version of the version information of background service, system
This information, the version information of browser, TCP port information, udp port information, expire-services time and authentication process.Backstage takes
Business determines whether the system environments of itself meets preset service condition, and judging result is transmitted to browser or is directly passed through
Pallet prompt user, browser determine background service installed and judging result instruction background service system environments meet it is pre-
If service condition after, by pallet prompt user's plug-in unit be installed.
Step 102: executing transformation task.
In the specific implementation, the interaction schematic diagram of browser, background service and server is as shown in Figure 2.User and browser
Between carry out service interaction, browser as a result, determine transformation task, and transformation task is sent according to interacting with customer service
To background service.Background service executes transformation task after through authentication.During executing transformation task, background service can
It directly to be communicated with server, can also be communicated by relay device with server, upload or downloading data.Its
In, between background service and relay device, pass through proprietary protocol, such as dynamic trunking protocol between server and relay device
(Dynamic Trunk Protocol, DTP) is communicated.
In the specific implementation, user opens relevant business webpage in a browser, upload button is clicked, webpage pops up file
Browsing selection window, user select the data for needing to upload, such as local a certain file or folder, determine the target position uploaded
It sets.The road sign position of data and determining upload that browser is uploaded according to the needs that user selects, determines uploading instructions, according to
The information of the page that uploading instructions, needs access, and be previously written browser front end webpage code in customized
The order of agreement beginning, determines transformation task, and transformation task is sent to background service.Background service is receiving transformation task
Afterwards, the information and uploading instructions of the webpage in transformation task are determined, includes the data for needing to upload and target position in uploading instructions
It sets.Background service determines the corresponding server of webpage according to the information of webpage;According to uploading instructions, the data that needs are uploaded
It is uploaded to the target position in the corresponding server of webpage.After background service is completed to upload, server copies the data of upload
Shellfish refreshes browser page to specified target position.
In the specific implementation, user opens relevant business webpage in a browser, the data for needing to download, such as file are clicked
Or file, webpage pop up file browser window, user's selection needs storage position.The needs that browser is selected according to user
The data of downloading and storage position, determine download instruction, according to download instruction, the information for the page for needing to access, and in advance
The order started with custom protocol in the code of the front end webpage of browser is written, transformation task is determined, by transformation task
It is sent to background service.Background service determines the information and download instruction of the webpage in transformation task after receiving transformation task,
It include the data for needing to download and storage position in download instruction.Background service determines that webpage is corresponding according to the information of webpage
Server;According to download instruction, the data for needing to download are obtained from the corresponding server of webpage, and store to storage position.
It should be noted that it will be understood by those skilled in the art that can according to need setting backstage in practical application and take
Agreement between business and server, communicates background service according to the agreement made an appointment with server, to improve backstage
Transmission speed between service versus server.For example, background service and server can be based on the agreements that UDP is transformed
It is communicated.
It should be noted that it will be understood by those skilled in the art that background service can execute transmission in practical application
During task, the progress of upload task or downloading task is shown.For example, background service can be anti-by progress bar and dynamic
The rate curve for presenting transmission process feeds back current task state.
It is noted that browser provides visualization window, the performance of transformation task is grasped convenient for user, is improved
User experience.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the data transmission method provided in present embodiment, background service independently of browser, with
Asynchronous mode executes transformation task, rests on current interface without user and waits end of transmission.Relative to browser plug-in, by
In background service independently of browser, background service can continue to execute transformation task, will not interrupt just after browser closing
Normal business operation.Also, since background service and browser are independent, when configuring background service, without considering that browser is supported
Plug-in protocol, reduce the maintenance of background service.In addition to this, by the system control background service of data transmission device
Starting, triggers manually without user, realizes automatically waking up for background service, simplify the operation of user, improve user's body
It tests.
Second embodiment of the present invention is related to a kind of data transmission method, base of the present embodiment in first embodiment
It is further improved on plinth, specific improvements are as follows: after step 102, increase other correlation steps.
Specifically, as shown in figure 3, in the present embodiment, include step 201 to step 203, wherein step 201 and
Step 202 respectively in first embodiment step 101 and step 102 it is roughly the same, details are not described herein again.It is main below to be situated between
Continue difference:
Execute step 201 and step 202.
Step 203: record transformation task.
Specifically, background service after completing transformation task, saves the relevant information of transformation task, historic transmission is updated
Record.
It is noted that background service records the transformation task of execution, checks down in the later period and record convenient for user
Record uploads record, improves user experience.
In the specific implementation, background service detects itself whether normal operation by phased manner, after determining testing result instruction
After platform service does not operate normally, background service is restarted.
It is noted that background service is voluntarily restarted when not operating normally, the continuous service of background service is improved
Ability.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the data transmission method provided in present embodiment, background service independently of browser, with
Asynchronous mode executes transformation task, rests on current interface without user and waits end of transmission.Relative to browser plug-in, by
In background service independently of browser, background service can continue to execute transformation task, will not interrupt just after browser closing
Normal business operation.Also, since background service and browser are independent, when configuring background service, without considering that browser is supported
Plug-in protocol, reduce the maintenance of background service.In addition to this, background service records the transformation task of execution,
Download History is checked the later period convenient for user or uploads record, improves user experience.Background service when not operating normally voluntarily
Restart, improves the continuous service ability of background service.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of data transmission method, is applied to browser.As shown in figure 4, the number
According to transmission method the following steps are included:
Step 301: determining transformation task.
Specifically, the information for the page that browser is accessed according to transmission instruction, needs, and it is previously written browser
The order started with custom protocol in the code of front end webpage, determines transformation task;Wherein, with custom protocol beginning
Order is for carrying the information of transmission instruction and the page.
It should be noted that it will be understood by those skilled in the art that can according to need and write to make by oneself in practical application
The order of adopted agreement beginning, so as to which the information of transmission instruction and the page, this reality can be carried with the order that custom protocol starts
Mode is applied not limit in the form of the specific code of the order of custom protocol beginning.
It is noted that the life started with custom protocol is written in the information for carrying transmission instruction and the page by browser
In order, transformation task is generated, background service is transmitted to, realizes the information exchange between browser and background service.
Step 302: according to the preset rules in registration table, transformation task being transmitted to background service.
Wherein, background service is determining and executes transformation task, and background service is independently of browser.
It should be noted that it will be understood by those skilled in the art that can according to need setting registration table in practical application
In preset rules, which makes browser after determining transformation task, transformation task is passed to background service.
It should be noted that it will be understood by those skilled in the art that in present embodiment, browser determine transformation task,
The process for transmitting transformation task and background service execution transformation task can be with reference in first embodiment and second embodiment
Associated description, details are not described herein again.
Compared with prior art, the data transmission method provided in present embodiment, browser need to upload or download number
According to when, generate transformation task, and according to the preset rules in registration table, transformation task be transmitted to background service.Background service
Independently of browser, transformation task is executed in an asynchronous manner, is rested on current interface without user and is waited end of transmission.Even if
Browser is closed, and background service can continue to execute transformation task, will not interrupt normal business operation.Also, due to backstage
Service is independent with browser, and when configuring background service, the plug-in protocol supported without considering browser reduces background service
Maintenance.In addition to this, it by the starting of the system control background service of data transmission device, triggers, realizes manually without user
Automatically waking up for background service, simplifies the operation of user, improves user experience.
4th embodiment of the invention is related to a kind of data transmission device, as shown in figure 5, comprising determining that 401 He of module
Execution module 402;Determining module 401 and execution module 402 couple, and are applied to backstage for execute that above embodiment refers to
The data transmission method of service.
In the specific implementation, the background service of the system (such as operating system Windows of terminal) of data transmission device executes
The data transmission method that first embodiment or second embodiment refer to.The background service is passed by the data of installation background service
The system of defeated device starts, wherein the system of data transmission device starts background service after determining browser starting.
In the specific implementation, as shown in fig. 6, determining module 401 includes browser communication submodule and plug-in unit engine submodule,
Execution module 402 includes plug-in unit agent sub-module, and background service further includes that process guards module, starts browser communication every time
During module, system meeting detection procedure guards module and plug-in unit engine submodule whether in running background, if not opening
It is dynamic, then start finger daemon module and plug-in unit engine submodule.System starts browser communication after receiving custom protocol
Module.Browser is sent to browser communication submodule after determining transformation task, by transformation task, and browser communicates submodule
After the parameter for the transformation task that parsing browser is sent, plug-in unit engine submodule is passed to by way of shared drive.It inserts
Part engine submodule is used to receive and handle the service order of browser, i.e. transformation task, while being worked as by user interface feedback
Preceding task status and rate.Plug-in unit agent sub-module is the corresponding data analysis layer of user interface, is mainly responsible for the biography of data
Interaction defeated and between server.Process guards module for periodically detecting plug-in unit engine submodule and plug-in unit agent sub-module
Process whether normal operation, be otherwise restarted automatically the process of plug-in unit engine submodule and plug-in unit agent sub-module.Background service
It can also include transport protocol module, plug-in unit agent sub-module is carried out according to the agreement and server that set in transport protocol module
Communication accelerates data transmission.
It is not difficult to find that present embodiment is Installation practice corresponding with first embodiment and second embodiment,
Present embodiment can work in coordination implementation with first embodiment and second embodiment.First embodiment and the second embodiment party
The relevant technical details mentioned in formula are still effective in the present embodiment, and in order to reduce repetition, which is not described herein again.Accordingly
Ground, the relevant technical details mentioned in present embodiment are also applicable in first embodiment and second embodiment.
5th embodiment of the invention is related to a kind of data transmission device, as shown in fig. 7, comprises: 501 He of determining module
Transmission module 502;Determining module 501 and transmission module 502 couple, and are applied to browsing for execute that above embodiment refers to
The data transmission method of device.
It is not difficult to find that present embodiment is Installation practice corresponding with third embodiment, present embodiment can be with
Third embodiment is worked in coordination implementation.The relevant technical details mentioned in third embodiment still have in the present embodiment
Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In third embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one
A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists
The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment
The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment
Member.
Sixth embodiment of the invention is related to a kind of data transmission device, as shown in Figure 8, comprising: at least one processing
Device 601;And the memory 602 with the communication connection of at least one processor 601;And the communication with browser communication connection
Component 603, communication component 603 send and receive data under the control of processor 601;Wherein, be stored with can quilt for memory 602
The instruction that at least one processor 601 executes, instruction is executed by least one processor 601, so that at least one processor 601
It is able to carry out the data transmission method that above-mentioned first embodiment or second embodiment refer to.
7th embodiment of the invention is related to a kind of data transmission device, as shown in Figure 9, comprising: at least one processing
Device 701;And the memory 702 with the communication connection of at least one processor 701;And it is logical with background service communication connection
Believe that component 703, communication component 703 send and receive data under the control of processor 701;Wherein, be stored with can for memory 702
The instruction executed by least one processor 701, instruction is executed by least one processor 701, so that at least one processor
701 are able to carry out the data transmission method that above-mentioned third embodiment refers to.
In sixth embodiment and the 7th embodiment, comprising: one or more processors and memory, Fig. 8 and Fig. 9
In take a processor as an example.Processor, memory can be connected by bus or other modes, to pass through in Fig. 8 and Fig. 9
For bus connection.Memory can be used for storing non-volatile software as a kind of non-volatile computer readable storage medium storing program for executing
Program, non-volatile computer executable program and module.Processor is stored in memory non-volatile by running
Software program, instruction and module realize that above-mentioned data pass thereby executing the various function application and data processing of equipment
Transmission method.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, extremely
Application program required for a few function;It storage data area can the Save option list etc..In addition, memory may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other non-volatile solid state memory parts.In some embodiments, it includes remotely located relative to processor that memory is optional
Memory, these remote memories can pass through network connection to external equipment.The example of above-mentioned network includes but is not limited to
Internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module stores in memory, when being executed by one or more processor, executes above-mentioned
Data transmission method in any means embodiment.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
8th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates
Realize that the data applied to background service of first embodiment or second embodiment are transmitted when machine program is executed by processor
Method.
9th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates
The data transmission method applied to browser of third embodiment is realized when machine program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (17)
1. a kind of data transmission method, which is characterized in that be applied to background service, comprising:
Determine the transformation task that browser is sent;Wherein, the browser determines transformation task;According to the default rule in registration table
Then, the transformation task is transmitted to the background service;
Execute the transformation task;
Wherein, the background service is independently of the browser.
2. data transmission method according to claim 1, which is characterized in that the transformation task is by browser according to transmission
Instruction, the information of the page for needing to access, and be previously written the browser front end webpage code in customized
The order of agreement beginning determines;Wherein, the order with custom protocol beginning for carry transmission instruction with it is described
The information of the page.
3. data transmission method according to claim 1, which is characterized in that the background service is taken by installing the backstage
The system of the data transmission device of business starts, wherein the system of the data transmission device after determining the browser starting,
Start the background service.
4. data transmission method according to claim 1, which is characterized in that appoint in the transmission that the determining browser is sent
Before business, the data transmission method further include:
Detect the information of the background service;Wherein, the information of the background service includes the system parameter of the background service
The authority information of information and/or the background service;
According to the information of the background service, determine that the background service meets preset service condition.
5. data transmission method according to claim 2, which is characterized in that the transmission instruction is uploading instructions, described
It include the data for needing to upload and target position in uploading instructions;It is described to execute the transformation task, it specifically includes: according to described
The information of webpage determines the corresponding server of the webpage;According to the uploading instructions, the data for needing to upload are uploaded
To the target position in the corresponding server of the webpage;Alternatively,
The transmission instruction is download instruction, includes the data for needing to download and storage position in the download instruction;It is described to hold
The row transformation task, specifically includes: according to the information of the webpage, determining the corresponding server of the webpage;According to described
Download instruction obtains the data for needing to download from the corresponding server of the webpage, and stores to the storage position.
6. data transmission method according to claim 5, which is characterized in that the server and the background service according to
The agreement made an appointment is communicated.
7. data transmission method according to claim 5, which is characterized in that during executing the transformation task,
The data transmission method further include:
Show the progress of the upload task or the downloading task.
8. data transmission method according to any one of claim 1 to 7, which is characterized in that in the determining browser
Before or after the transformation task of transmission, the data transmission method further include:
The background service is detected by phased manner whether normal operation;
After determining that the testing result indicates that the background service does not operate normally, the background service is restarted.
9. data transmission method according to any one of claim 1 to 7, which is characterized in that execute the biography described
After defeated task, the data transmission method further include:
Record the transformation task.
10. a kind of data transmission method, which is characterized in that be applied to browser, comprising:
Determine transformation task;
According to the preset rules in registration table, the transformation task is transmitted to background service;Wherein, the background service determines
And the transformation task is executed, the background service is independently of the browser.
11. data transmission method according to claim 10, which is characterized in that the determining transformation task specifically includes:
According to transmission instruction, the information for the page for needing to access, and it is previously written the code of the front end webpage of the browser
In with custom protocol start order, determine the transformation task;
Wherein, the order with custom protocol beginning is for carrying the information of the transmission instruction and the page.
12. a kind of data transmission device characterized by comprising determining module and execution module;The determining module and described
Execution module coupling, for data transmission method described in any one of perform claim requirement 1 to 9.
13. a kind of data transmission device characterized by comprising determining module and transmission module;The determining module and described
Transmission module coupling, for data transmission method described in perform claim requirement 10 or 11.
14. a kind of data transmission device characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;And
With the communication component of browser communication connection, the communication component sends and receivees under the control of the processor
Data;
Wherein, the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least
One processor executes, so that at least one described processor is able to carry out data as claimed in any one of claims 1-9 wherein
Transmission method.
15. a kind of data transmission device characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;And
With the communication component of background service communication connection, the communication component is received and is sent out under the control of the processor
Send data;
Wherein, the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least
One processor executes, so that at least one described processor is able to carry out such as the described in any item data of claim 10 or 11
Transmission method.
16. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
Reason device realizes data transmission method described in any one of claims 1 to 9 when executing.
17. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
It manages when device executes and realizes data transmission method described in claim 10 or 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811331571.8A CN109361757B (en) | 2018-11-09 | 2018-11-09 | Data transmission method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811331571.8A CN109361757B (en) | 2018-11-09 | 2018-11-09 | Data transmission method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109361757A true CN109361757A (en) | 2019-02-19 |
CN109361757B CN109361757B (en) | 2022-02-25 |
Family
ID=65344641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811331571.8A Active CN109361757B (en) | 2018-11-09 | 2018-11-09 | Data transmission method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361757B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463398A (en) * | 2019-09-09 | 2021-03-09 | 杭州海康机器人技术有限公司 | File transmission method and device, terminal equipment and storage medium |
CN113901356A (en) * | 2021-09-28 | 2022-01-07 | 北京五八信息技术有限公司 | Information processing method and device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674703A (en) * | 2005-05-17 | 2005-09-28 | 北京立通无限科技有限公司 | Method for downloading Email appendage at mobile pone terminal |
US20070033588A1 (en) * | 2005-08-02 | 2007-02-08 | Landsman Richard A | Generic download and upload functionality in a client/server web application architecture |
CN101170507A (en) * | 2007-11-14 | 2008-04-30 | 中兴通讯股份有限公司 | Asynchronous concurrent processing method |
US20120078875A1 (en) * | 2010-09-27 | 2012-03-29 | Michael Price | Web browser contacts plug-in |
CN102932390A (en) * | 2011-08-11 | 2013-02-13 | 阿里巴巴集团控股有限公司 | Network request processing method and system, and network service providing device |
CN102938120A (en) * | 2011-08-15 | 2013-02-20 | 徐雷 | IP multimedia subsystem (IMS) trade payment system |
CN103067423A (en) * | 2011-10-20 | 2013-04-24 | 腾讯科技(深圳)有限公司 | Browser kernel adaption method and browser |
CN103607422A (en) * | 2013-10-18 | 2014-02-26 | 北京奇虎科技有限公司 | Processing method of cloud service information, browser and system |
CN104065678A (en) * | 2013-03-21 | 2014-09-24 | 中国科学院声学研究所 | Dual-mode data reception and access method based on embedded browser |
CN104079649A (en) * | 2014-06-27 | 2014-10-01 | 北京奇虎科技有限公司 | Method for performing downloading in browser and browser |
CN105204861A (en) * | 2015-09-29 | 2015-12-30 | 上海二三四五网络科技有限公司 | Registry re-directing method and device |
CN108199925A (en) * | 2018-01-30 | 2018-06-22 | 网宿科技股份有限公司 | A kind of data transmission method for uplink, method of reseptance and device |
CN108270803A (en) * | 2016-12-30 | 2018-07-10 | 艾迪普(北京)文化科技股份有限公司 | Network file and the method and system of desktop application transmission are realized by web technologies |
-
2018
- 2018-11-09 CN CN201811331571.8A patent/CN109361757B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674703A (en) * | 2005-05-17 | 2005-09-28 | 北京立通无限科技有限公司 | Method for downloading Email appendage at mobile pone terminal |
US20140082058A1 (en) * | 2005-08-02 | 2014-03-20 | Aol Inc. | Generic download and upload functionality in a client/server web application architecture |
US20070033588A1 (en) * | 2005-08-02 | 2007-02-08 | Landsman Richard A | Generic download and upload functionality in a client/server web application architecture |
US20150237112A1 (en) * | 2005-08-02 | 2015-08-20 | Aol Inc. | Generic download and upload functionality in a client/server web application architecture |
CN101170507A (en) * | 2007-11-14 | 2008-04-30 | 中兴通讯股份有限公司 | Asynchronous concurrent processing method |
US20120078875A1 (en) * | 2010-09-27 | 2012-03-29 | Michael Price | Web browser contacts plug-in |
CN102932390A (en) * | 2011-08-11 | 2013-02-13 | 阿里巴巴集团控股有限公司 | Network request processing method and system, and network service providing device |
CN102938120A (en) * | 2011-08-15 | 2013-02-20 | 徐雷 | IP multimedia subsystem (IMS) trade payment system |
CN103067423A (en) * | 2011-10-20 | 2013-04-24 | 腾讯科技(深圳)有限公司 | Browser kernel adaption method and browser |
CN104065678A (en) * | 2013-03-21 | 2014-09-24 | 中国科学院声学研究所 | Dual-mode data reception and access method based on embedded browser |
CN103607422A (en) * | 2013-10-18 | 2014-02-26 | 北京奇虎科技有限公司 | Processing method of cloud service information, browser and system |
CN104079649A (en) * | 2014-06-27 | 2014-10-01 | 北京奇虎科技有限公司 | Method for performing downloading in browser and browser |
CN105204861A (en) * | 2015-09-29 | 2015-12-30 | 上海二三四五网络科技有限公司 | Registry re-directing method and device |
CN108270803A (en) * | 2016-12-30 | 2018-07-10 | 艾迪普(北京)文化科技股份有限公司 | Network file and the method and system of desktop application transmission are realized by web technologies |
CN108199925A (en) * | 2018-01-30 | 2018-06-22 | 网宿科技股份有限公司 | A kind of data transmission method for uplink, method of reseptance and device |
Non-Patent Citations (6)
Title |
---|
HELLODARRY: "从根源上解决Win10修改默认应用打开方式——注册表", 《HTTPS://WWW.JIANSHU.COM/P/7B5A7B304C2C?ISAPPINSTALLED=0》 * |
MOSHIUR MOSHI: "MapBeing: An architecture for manipulating and publishing vector data in web based Geographic Information System", 《IEEE》 * |
文志华等: "多方位WEB网站安全防御系统研究", 《网络安全技术与应用》 * |
明天还有我: "浏览器图片\文件上传到服务器 ajaxfileupload.js使用实例", 《HTTPS://BLOG.CSDN.NET/MINGTIANHAIYOUWO/ARTICLE/DETAILS/50887210》 * |
汤发全: "基于物联网的多功能激光加工控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
陆坤: "基于JAVA Web的大型主机资源管理平台", 《实验室科学》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463398A (en) * | 2019-09-09 | 2021-03-09 | 杭州海康机器人技术有限公司 | File transmission method and device, terminal equipment and storage medium |
CN113901356A (en) * | 2021-09-28 | 2022-01-07 | 北京五八信息技术有限公司 | Information processing method and device |
CN113901356B (en) * | 2021-09-28 | 2022-08-09 | 北京五八信息技术有限公司 | Information processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109361757B (en) | 2022-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8762540B2 (en) | Managing multiple remote computing sessions displayed on a client device | |
US8972884B2 (en) | Presenting information pertaining to a plurality of tabs in an instant messaging application | |
US7519816B2 (en) | Portable computing environment solution | |
US9762566B2 (en) | Reducing authentication confidence over time based on user history | |
JP5534520B2 (en) | System and method for browser-based access to smart cards | |
EP2284701B1 (en) | Transparently stateful execution of stateless applications | |
CN102096625B (en) | Monitor and track application service condition | |
CN103685528B (en) | Information displaying method and device | |
US20070016958A1 (en) | Allowing any computer users access to use only a selection of the available applications | |
CN102347941B (en) | A kind of safety applications control method based on open platform | |
CN103634301B (en) | The method of the private data of user's storage in client and access server thereof | |
CN106899544B (en) | Container login method, device and system based on Docker | |
KR20170048441A (en) | Method and apparatus for managing background application | |
EP2798560A1 (en) | Methods and apparatus to facilitate single sign-on services | |
WO2019100897A1 (en) | Application program starting method and starting apparatus, and computer readable storage medium | |
TW201349133A (en) | Cloud control the access control management system and the authentication method | |
CN109361757A (en) | A kind of data transmission method, device and computer readable storage medium | |
CN109962911A (en) | A kind of method and electronic equipment obtaining user information by small routine | |
WO2012032873A1 (en) | Shared file management system, control method of same, and program | |
CN109327468A (en) | A kind of offline reminding method, device, equipment and storage medium | |
CN101984585A (en) | Centralized management method for server | |
JP4293169B2 (en) | Network equipment control system | |
CN107193562A (en) | A kind of image processing method and device | |
CN106406674A (en) | Mobile terminal application starting method and device | |
JP4591740B2 (en) | Software license management method |
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 |