CN110308922A - Data transmission method, device, equipment and storage medium - Google Patents
Data transmission method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110308922A CN110308922A CN201910570509.2A CN201910570509A CN110308922A CN 110308922 A CN110308922 A CN 110308922A CN 201910570509 A CN201910570509 A CN 201910570509A CN 110308922 A CN110308922 A CN 110308922A
- Authority
- CN
- China
- Prior art keywords
- parameter
- repaired
- involved
- list
- patch
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of data transmission method, device, equipment and storage medium.It include: to generate the corresponding ad hoc approach of parameter type list involved in method to be repaired when carrying out pitching pile to original installation kit, ad hoc approach is used for the corresponding patch method Transfer Parameters of method to be repaired.The original installation kit after pitching pile is sent to terminal device.And then hot remediation efficiency can be improved, and the execution speed of application can be improved.
Description
Technical field
The invention relates to field of computer technology more particularly to a kind of data transmission method, device, equipment and deposit
Storage media.
Background technique
Patch (patch) is answered in hot repair, refers to some codes for repairing software vulnerability, is a kind of quick, low cost reparation
The mode of product software version defect.Hot-fixing has the advantage that 1, can quickly repair, and avoids Bug bring on line
Traffic lost is preferably minimized loss.2, the turnover rate for guaranteeing client carries out edition upgrading installation without user.3, good
User experience, unaware is repaired abnormal.It saves user and downloads installation cost.
Pitching pile scheme is a kind of hot-fixing of light weight, i.e., is inserted into and sentences in each method in the class of original installation kit
Disconnected logic executes the logic in patch when there is patch load, when no patch, former logic is executed, to reach reparation problem
Target.Wherein, in the hot-fixing, it is related to parameter involved in the method to be repaired in original installation kit passing to this
The corresponding patch method of method to be repaired.In the prior art, it needs to establish array, if parameter to be passed is fundamental type, need
It is converted into corresponding packaging group, and parameter to be passed is written in array.Terminal device needs logarithm when carrying out hot repair again
Group is parsed, and to obtain parameter to be passed, and parameter to be passed is passed to patch method, multiple to complete hot repair.
The prior art is related to the foundation of array, type conversion and parsing, and then causes hot remediation efficiency lower.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method, device, equipment and storage medium.So as to improve hot repair
Multiple efficiency.
In a first aspect, the application provides a kind of data transmission method, comprising: raw when carrying out pitching pile to original installation kit
At the corresponding ad hoc approach of parameter type list involved in method to be repaired, ad hoc approach is used for corresponding to method to be repaired
Patch method Transfer Parameters, the parameter are parameter involved in the method to be repaired, and the parameter type list includes described
The type of parameter involved in method to be repaired.The original installation kit after pitching pile is sent to terminal device.
It follows that the application is not related to the foundation of array, type conversion and parsing, (process is related to many execution and refers to
Enable), but the parameter type list corresponding ad hoc approach that method to be repaired is related to directly is generated during pitching pile, the certain party
Method is for directly passing to patch method for the parameter, so that terminal device was without executing multiple instructions, and then can be with
Hot remediation efficiency is improved, and the execution speed of application can be improved.
Optionally, before generating the corresponding ad hoc approach of parameter type list involved in method to be repaired, further includes: root
According to the frequency of use of parameters list of types, the list of top n parameter type is obtained, N is the integer more than or equal to 1.In preceding N
Parameter type list involved in method to be repaired is determined in a parameter type list.
On the one hand, when the parameter type list frequency of use that method to be repaired is related to is higher, i.e. the parameter type list
Belong to above-mentioned top n parameter type list, the network equipment is that the parameter type list generates ad hoc approach, is based on this, terminal is set
It is standby that parameter can be directly acquired by the ad hoc approach, and then service packs is executed, so as to improve hot remediation efficiency.Another party
Face, when the parameter type list frequency of use that method to be repaired is related to is lower, i.e. the parameter type list is not belonging to above-mentioned preceding N
A parameter type list, at this moment the network equipment needs to establish array, if parameter involved in method to be repaired is fundamental type,
It needs to be converted into corresponding packaging group, and parameter involved in method to be repaired is written in array.Terminal device into
When row hot repair is multiple, needs to parse array, to obtain parameter involved in method to be repaired, and these parameters be passed to
Patch method, it is multiple to complete hot repair.And then realize the multiple flexibility of hot repair.
Optionally, the sequence according to frequency of use from high to low obtains the list of top n parameter type, comprising: according to using
The sequence of frequency from high to low periodically obtains the list of top n parameter type.
Optionally, method further include: send service packs to terminal device, service packs includes patch method, so that terminal is set
It is standby according to ad hoc approach to patch method Transfer Parameters, and execute patch method.So that terminal device is excessive without executing
Instruction, and then hot remediation efficiency can be improved, and the execution speed of application can be improved.
Optionally, parameter type list include at least one of the following: integer, long, short, single-precision floating point type,
Double-precision floating point type, character type, byte type, Boolean type, object type.
Data transmission method and data transmission device, equipment, storage medium and the calculating of terminal equipment side is provided below
Machine program product, content and effect can refer to above method part, repeat no more to this.
Second aspect, the application provide a kind of data transmission method, comprising: original installation kit are received, wherein original installation
Packet includes the corresponding ad hoc approach of parameter type list involved in method to be repaired, and ad hoc approach is used for method pair to be repaired
The patch method Transfer Parameters answered, the parameter are parameter involved in the method to be repaired, the parameter type list packet
Include the type of parameter involved in the method to be repaired.
Optionally, parameter type list involved in method to be repaired is the frequency of use according to parameters list of types
At least one of acquired top n parameter type list, N are the integer more than or equal to 1.
Optionally, data transmission method further include: receive service packs, service packs includes patch method.According to ad hoc approach
To patch method Transfer Parameters.Execute patch method.
The third aspect, the application provide a kind of data transmission device, comprising:
Generation module, for generating parameter type involved in method to be repaired when carrying out pitching pile to original installation kit
The corresponding ad hoc approach of list, ad hoc approach are used for the corresponding patch method Transfer Parameters of method to be repaired, and the parameter is
Parameter involved in the method to be repaired, the parameter type list include the class of parameter involved in the method to be repaired
Type.
First sending module, for sending the original installation kit after pitching pile to terminal device.
Fourth aspect, the application provide a kind of data transmission device, comprising:
First receiving module, for receiving original installation kit, wherein original installation kit includes involved in method to be repaired
The corresponding ad hoc approach of parameter type list, ad hoc approach are used for the corresponding patch method Transfer Parameters of method to be repaired, institute
Stating parameter is parameter involved in the method to be repaired, and the parameter type list includes involved in the method to be repaired
The type of parameter.
5th aspect, the application provide a kind of network equipment, comprising: memory and processor.
Memory is for storing computer instruction.Processor is realized above-mentioned for the computer instruction of run memory storage
Data transmission method performed by network equipment side.
6th aspect, the application provide a kind of terminal device, comprising: memory and processor.
Memory is for storing computer instruction.Processor is realized above-mentioned for the computer instruction of run memory storage
Data transmission method performed by terminal equipment side.
7th aspect, the application provide a kind of storage medium, comprising: readable storage medium storing program for executing and computer instruction, computer
Instruction is stored in readable storage medium storing program for executing.Computer instruction is for realizing above-mentioned data transmission method.
Eighth aspect, the application provide a kind of computer program product, comprising: executable instruction, described instruction is for real
Existing above-mentioned data transmission method.
The embodiment of the present application provides a kind of data transmission method, device, equipment and storage medium.Since the application does not relate to
And foundation, type conversion and the parsing of array, but the parameter type that method to be repaired is related to directly is generated during pitching pile
The corresponding ad hoc approach of list, the ad hoc approach are used to that the parameter that method to be repaired is related to directly to be passed to patch method, from
And make terminal device without executing multiple instructions, and then hot remediation efficiency can be improved, and the execution of application can be improved
Speed.Further, the network equipment can obtain top n parameter type column according to the frequency of use of parameters list of types
Table, N are the integer more than or equal to 1.The column of parameter type involved in method to be repaired are determined in top n parameter type list
Table.Based on this, when the parameter type list frequency of use that method to be repaired is related to is higher, i.e. the parameter type list belongs to
State top n parameter type list, the network equipment is that the parameter type list generates ad hoc approach, is based on this, and terminal device can be with
Parameter is directly acquired by the ad hoc approach, and then executes service packs, so as to improve hot remediation efficiency.When method to be repaired
When the parameter type list frequency of use being related to is lower, i.e. the parameter type list is not belonging to above-mentioned top n parameter type list,
At this moment the network equipment needs to establish array, if parameter involved in method to be repaired is fundamental type, needs to be converted into
Corresponding packaging group, and parameter involved in method to be repaired is written in array.Terminal device is needed when carrying out hot repair again
Array is parsed, to obtain parameter involved in method to be repaired, and these parameters are passed into patch method, to complete
Hot repair is multiple.And then realize the multiple flexibility of hot repair.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen
Some embodiments please for those of ordinary skill in the art without any creative labor, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the application scenarios schematic diagram that one embodiment of the application provides;
Fig. 2 is the interaction diagrams for the data transmission method that one embodiment of the application provides;
Fig. 3 is the interaction diagrams for the data transmission method that another embodiment of the application provides;
Fig. 4 is the interaction diagrams for the data transmission method that the application another embodiment provides;
Fig. 5 is a kind of schematic diagram for data transmission device that one embodiment of the application provides;
Fig. 6 is a kind of schematic diagram for data transmission device that another embodiment of the application provides;
Fig. 7 is the schematic diagram for the network equipment that one embodiment of the application provides;
Fig. 8 is the schematic diagram for the terminal device that one embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
All other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
As described above, in the prior art, needing to establish array, need to establish array, if parameter to be passed is fundamental type,
It needs to be converted into corresponding packaging group, and parameter to be passed is written in array.Terminal device is needed when carrying out hot repair again
Array is parsed, to obtain parameter to be passed, and parameter to be passed is passed into patch method, it is multiple to complete hot repair.Due to existing
There is technology to be related to the foundation of array, type conversion and parsing, and then causes hot remediation efficiency lower.
In order to solve the above-mentioned technical problem, the application provides a kind of data transmission method, device, equipment and storage medium.
Illustratively, Fig. 1 is the application scenarios schematic diagram that one embodiment of the application provides, as shown in Figure 1, when certain application
When (Application, APP) needs hot repair multiple, developer can execute pitching pile process on the network equipment 11, i.e., original
It is inserted into decision logic in each method in the class of installation kit, when there is patch load, the logic in patch is executed, when no patch
When, former logic is executed, to reach the target of reparation problem.And when generating service packs, to original installation kit and new installation kit
In class of the same name in each method compare, when send out existing method modify when, such benefit is generated in service packs
Class D.After the network equipment 11 generates service packs, which can be uploaded to cloud server 12, for terminal device
13, which download service packs from cloud server 12, just completes hot repair process after terminal device has loaded the service packs.
It should be noted that the application scenarios of technical scheme can be above-mentioned application scenarios, but it is not limited to this.
Fig. 2 is the interaction diagrams for the data transmission method that one embodiment of the application provides, the execution master that this method is related to
Body can be some or all of of the above-mentioned network equipment, and, some or all of, network equipment of above-mentioned terminal device
It can be computer, digital broadcast terminal, mobile phone, messaging devices, game console, tablet device, Medical Devices,
Body-building equipment, personal digital assistant etc..The part of the network equipment can be processor or chip in the network equipment etc..Eventually
End equipment can be communicated through wireless access network (Radio Access Network, RAN) at least one core net.Terminal
Equipment can be mobile terminal, such as mobile phone (or be " honeycomb " phone) and the computer with mobile terminal, for example, can
To be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they are exchanged with wireless access network
Voice and/or data.Terminal device is referred to as subscriber unit (Subscriber Unit), subscriber station (Subscriber
Station), movement station (Mobile Station), mobile station (Mobile Station), distant station (Remote
Station), access point (Access Point), remote terminal (Remote Terminal), access terminal (Access
Terminal), user terminal (User Terminal), user agent (User Agent) or user equipment (User
Equipment), it is not limited thereto.
Illustratively, data transmission method is illustrated using the network equipment and terminal device as executing subject below.Such as
Shown in Fig. 2, this method be may include steps of:
Step S201: the network equipment generates parameter involved in method to be repaired when carrying out pitching pile to original installation kit
The corresponding ad hoc approach of list of types, ad hoc approach are used for the corresponding patch method Transfer Parameters of method to be repaired, the parameter
For parameter involved in method to be repaired, the parameter type list includes the class of parameter involved in the method to be repaired
Type.
Step S202: the network equipment sends the original installation kit after pitching pile to terminal device.
When carrying out pitching pile to original installation kit, can be inserted into a segment type in each method is the network equipment
The logic of ChangeQuickRedirect static variable, insertion process are fully transparent to business development.Based on this, terminal
Equipment reads the class to be replaced from service packs and the method specifically replaced is realized, create when loading service packs
ClassLoader loads patch dex.When changeQuickRedirect is not null, may go to
AccessDispatch achievees the purpose that hot repair is multiple to replace logic old before.
Include data structure: class in the code of usual original installation kit and service packs, and in class includes field, method
Deng.In hot-fixing, it is related to parameter involved in the method to be repaired in original installation kit passing to this to be repaired
The corresponding patch method of method.In this application, when carrying out pitching pile to original installation kit, the network equipment generates method to be repaired
The corresponding ad hoc approach of related parameter type list, wherein the ad hoc approach is one section of code in original installation kit.
Parameter type list involved in method to be repaired may include one or more parameter type, the parameter type
List may include at least one of following: integer (int), long (long), short (short), single-precision floating point type
(float), double-precision floating point type (double), character type (char), byte type (byte), Boolean type (boolean), object type
(Ljava/lang/Object)。
If method to be repaired is related to multiple parameters list of types, each parameter type in the multiple parameter type list
List corresponds to an ad hoc approach, alternatively, the multiple parameter type list corresponds to an ad hoc approach, alternatively, the multiple
An ad hoc approach is partially corresponded in parameter type list, the application is without limitation.
As described above, ad hoc approach is used to transmit corresponding parameter to the corresponding patch method of the method to be repaired.Example
Such as: method to be repaired is: public void foo (int input), includes a parameter type in parameter type list,
The parameter type is integer (int), is based on this, the ad hoc approach (i.e. following pitching pile code) that the network equipment generates are as follows:
Invoke-interface/range { v2 ... p1 },
Lcom/baidu/titan/sdk/runtime/Interceptable;→invokeI(Iljava/lang/
object;I)Lcom/baidu/titan/sdk/runtime/InterceptResult
Wherein invokeI is the corresponding ad hoc approach of int type, and the network equipment only need to be by the int class in method to be repaired
The parameter of type remains untouched in incoming invokeI method.
It should be noted that the network equipment sends the original installation kit after pitching pile to terminal device, including to be repaired
The corresponding ad hoc approach of parameter type list involved in method.
Optionally, Fig. 3 is the interaction diagrams for the data transmission method that another embodiment of the application provides, as shown in figure 3,
After step S202, the data transmission method further include:
Step S203: the network equipment sends service packs to terminal device, which includes the corresponding benefit of method to be repaired
Fourth method.
Step S204: terminal device is according to the ad hoc approach to the patch method Transfer Parameters.
Step S205: terminal device executes the patch method.
Illustratively, these data packets first can be transmitted to cloud when transmitting installation kit and service packs by the network equipment
Server is held, then terminal device can download these data packets from cloud server.
Alternatively,
Installation kit and service packs can be transmitted using end-to-end (D2D) mode between the network equipment and terminal device.
After terminal device gets service packs, terminal device can obtain the certain party from original installation kit
Method, and by the ad hoc approach directly to patch method Transfer Parameters, last terminal device can be obtained by the ad hoc approach
Parameters are got, and execute the service packs.
To sum up, the application provides a kind of data transmission method, comprising: the network equipment is carrying out pitching pile to original installation kit
When, the corresponding ad hoc approach of parameter type list involved in method to be repaired is generated, the network equipment sends to terminal device and passes through
Original installation kit after crossing pitching pile.It follows that the application is not related to the foundation of array, type conversion and parsing (process
It is related to many to execute instruction), but the parameter that method to be repaired is related to directly is passed to by patch method, nothing by ad hoc approach
Multiple instructions need to be executed, so as to improve hot remediation efficiency, and the execution speed of application can be improved.
Fig. 4 is the interaction diagrams for the data transmission method that the application another embodiment provides, the execution that this method is related to
Main body can be some or all of of the above-mentioned network equipment, and, above-mentioned terminal device it is some or all of, which sets
Standby to can be computer, digital broadcast terminal, mobile phone, messaging devices, game console, tablet device, medical treatment sets
It is standby, body-building equipment, personal digital assistant etc..The part of the network equipment can be processor or chip in the network equipment
Deng.Terminal device can be communicated through wireless RAN at least one core net.Terminal device can be mobile terminal, such as move
Mobile phone (or be " honeycomb " phone) and computer with mobile terminal, for example, it may be portable, pocket, hand-held
Formula, built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.Terminal device
It is referred to as subscriber unit, subscriber station, movement station, mobile station, distant station, access point, remote terminal, access terminal, user
Terminal, user agent or user equipment, are not limited thereto.
Illustratively, data transmission method is illustrated using the network equipment and terminal device as executing subject below.Such as
Shown in Fig. 4, before above-mentioned steps S201, the data transmission method further includes following steps:
Step S401: the network equipment obtains top n parameter type column according to the frequency of use of parameters list of types
Table, N are the integer more than or equal to 1.
Step S402: the network equipment determines parameter type involved in method to be repaired in top n parameter type list
List.
Illustratively, the network equipment can be according to the frequency of use sequence from high to low of parameters list of types, week
Obtain to phase property top n parameter type list.Such as: within first period, the frequency of use highest of network equipment selection
The first two parameter type list respectively include: integer, character type.Within second period, the use of network equipment selection
The highest the first two parameter type list of frequency respectively include: integer, long.
In this application, the network equipment can scan the parameter type list in original installation kit, to determine parameters
The frequency of use of list of types, when the parameter type list involved in the method to be repaired belongs to top n parameter type list, net
Network equipment just generates the corresponding ad hoc approach of parameter type list.On the contrary, working as the column of parameter type involved in method to be repaired
When table is not belonging to top n parameter type list, i.e., the frequency of use of parameter type list involved in method to be repaired is lower, this
When the network equipment need to establish array, if parameter involved in method to be repaired is fundamental type, need to be converted into pair
The packaging group answered, and parameter involved in method to be repaired is written in array.Terminal device carry out hot repair it is multiple when, need pair
Array is parsed, and to obtain parameter involved in method to be repaired, and these parameters is passed to patch method, to complete heat
It repairs.
For example, method to be repaired is: public void foo (double input), the parameter class of the double type
The frequency of use of type is lower, then the pitching pile code of the parameter generated includes:
Firstly, passing through following code establishing array:
New-array v3, v3, [Ljava/lang/object];
Secondly, needing the type of the parameter being converted to packaging if the parameter that method to be repaired is related to is fundamental type
Class:
Invoke-static{p0},Ljava/lang/Double;→value0f(D)Ljava/lang/Double;
Further, the parameter for being related to method to be repaired is needed to be passed in array:
move-result-object v2;
Finally, calling pitching pile code:
To sum up, the application provides a kind of data transmission method, on the one hand, when the parameter type list that method to be repaired is related to
When frequency of use is higher, i.e., the parameter type list belongs to above-mentioned top n parameter type list, and the network equipment is the parameter type
List generates ad hoc approach, is based on this, and terminal device can directly acquire parameter by the ad hoc approach, and then execute patch
Packet, so as to improve hot remediation efficiency.On the other hand, the parameter type list frequency of use being related to when method to be repaired is lower
When, i.e. the parameter type list is not belonging to above-mentioned top n parameter type list, and at this moment the network equipment needs to establish array, if
Parameter involved in method to be repaired is fundamental type, needs to be converted into corresponding packaging group, and by method institute to be repaired
In the parameter write-in array being related to.Terminal device needs to parse array, to obtain compound to be repaired when carrying out hot repair again
Parameter involved in method, and these parameters are passed into patch method, it is multiple to complete hot repair.And then realize multiple flexible of hot repair
Property.
Fig. 5 is a kind of schematic diagram for data transmission device that one embodiment of the application provides, and wherein the device can be
The some or all of of the network equipment is stated, which can be computer, digital broadcast terminal, and mobile phone, message are received
Send out equipment, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..As shown in figure 5, the device
Include:
Generation module 501, for generating parameter class involved in method to be repaired when carrying out pitching pile to original installation kit
The corresponding ad hoc approach of type list, ad hoc approach are used for the corresponding patch method Transfer Parameters of method to be repaired, the parameter
For parameter involved in the method to be repaired, the parameter type list includes parameter involved in the method to be repaired
Type.
First sending module 502, for sending the original installation kit after pitching pile to terminal device.
Optionally, data transmission device further include:
Module 503 is obtained, for the frequency of use according to parameters list of types, obtains the list of top n parameter type,
N is the integer more than or equal to 1.
Determining module 504, for determining the column of parameter type involved in method to be repaired in top n parameter type list
Table.
Optionally, module 503 is obtained to be specifically used for: according to the sequence of frequency of use from high to low, N before periodically obtaining
A parameter type list.
Optionally, the parameter type list includes at least one of the following: integer, long, short, single-precision floating point
Type, double-precision floating point type, character type, byte type, Boolean type, object type.
Optionally, data transmission device further include:
Second sending module 505, for sending service packs to terminal device, service packs includes patch method, so that terminal
Equipment transmits parameter type list involved in method to be repaired to patch method according to ad hoc approach, and executes patch method.
Data transmission device provided by the present application can be used for executing the embodiment of the method that above-mentioned network equipment side executes, in
Hold and effect can refer to embodiment of the method part, the application repeats no more this.
Fig. 6 is a kind of schematic diagram for data transmission device that another embodiment of the application provides, and wherein the device can be
Above-mentioned terminal device it is some or all of, which can be communicated through wireless RAN at least one core net.Eventually
End equipment can be mobile terminal, such as mobile phone (or be " honeycomb " phone) and the computer with mobile terminal, for example,
Can be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they and wireless access network hand over
Change voice and/or data.Terminal device is referred to as subscriber unit, subscriber station, movement station, mobile station, distant station, access
Point, remote terminal, access terminal, user terminal, user agent or user equipment, are not limited thereto.As shown in fig. 6, the dress
It sets and includes:
First receiving module 601, for receiving original installation kit, wherein original installation kit includes involved by method to be repaired
The corresponding ad hoc approach of parameter type list, ad hoc approach is used for the corresponding patch method Transfer Parameters of method to be repaired,
The parameter is parameter involved in the method to be repaired, and the parameter type list includes involved by the method to be repaired
Parameter type.
Optionally, parameter type list involved in method to be repaired is the frequency of use according to parameters list of types
At least one of acquired top n parameter type list, N are the integer more than or equal to 1.
Optionally, the parameter type list includes at least one of the following: integer, long, short, single-precision floating point
Type, double-precision floating point type, character type, byte type, Boolean type, object type.
Optionally, the data transmission device further include:
Second receiving module 602, for receiving service packs, service packs includes patch method.
Transfer module 603, for according to ad hoc approach to patch method Transfer Parameters.
Execution module 604, for executing patch method.
Data transmission device provided by the present application can be used for executing the embodiment of the method that above-mentioned terminal equipment side executes, in
Hold and effect can refer to embodiment of the method part, the application repeats no more this.
Fig. 7 is the schematic diagram for the network equipment that one embodiment of the application provides, as shown in fig. 7, the network equipment includes: to deposit
Reservoir 701, processor 702 and transceiver 703, wherein the transceiver 703 is for the data between the network equipment and other equipment
Transmission.Memory 701 is for storing computer instruction.Processor 702 is used for computer instructions, to realize above-mentioned network
The embodiment of the method that equipment side executes, content and effect can refer to above method embodiment part, repeat no more to this.
Fig. 8 is the schematic diagram for the terminal device that one embodiment of the application provides, as shown in figure 8, the terminal device includes: to deposit
Reservoir 801, processor 802 and transceiver 803, wherein the transceiver 803 is for the data between the network equipment and other equipment
Transmission.Memory 801 is for storing computer instruction.Processor 802 is used for computer instructions, to realize above-mentioned terminal
The embodiment of the method that equipment side executes, content and effect can refer to above method embodiment part, repeat no more to this.
The application also provides a kind of storage medium, comprising: readable storage medium storing program for executing and computer instruction, the computer instruction
It is stored in the readable storage medium storing program for executing;The computer instruction passes for realizing the data that aforementioned either method embodiment provides
Transmission method.
The embodiment of the present application also provides a kind of program product, which includes computer instruction (i.e. computer journey
Sequence), which is stored in readable storage medium storing program for executing.At least one processor of the network equipment can be from readable storage medium
Matter reads the computer instruction, at least one processor executes the computer instruction, to realize above-mentioned data transmission method.
Above-mentioned interpreting equipment in the specific implementation, it should be understood that processor can be central processing unit (English:
Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific
Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to
Any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware processor
Execute completion, or in processor hardware and software module combination execute completion.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes: read-only memory (English
Text: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, solid state hard disk, tape (English: magnetic
Tape), floppy disk (English: floppy disk), CD (English: optical disc) and any combination thereof.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent
Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (16)
1. a kind of data transmission method characterized by comprising
When carrying out pitching pile to original installation kit, the corresponding certain party of parameter type list involved in method to be repaired is generated
Method, the ad hoc approach are used for patch method Transfer Parameters corresponding to the method to be repaired, and the parameter is described to be repaired
Parameter involved in compound method, the parameter type list include the type of parameter involved in the method to be repaired;
The original installation kit after pitching pile is sent to terminal device.
2. the method according to claim 1, wherein further include:
Service packs is sent to terminal device, the service packs includes the patch method, so that the terminal device is according to
Ad hoc approach transmits the parameter to the patch method, and executes the patch method.
3. method according to claim 1 or 2, which is characterized in that described to generate parameter class involved in method to be repaired
Before the corresponding ad hoc approach of type list, further includes:
According to the frequency of use of parameters list of types, the list of top n parameter type is obtained, N is whole more than or equal to 1
Number;
Parameter type list involved in the method to be repaired is determined in the top n parameter type list.
4. a kind of data transmission method characterized by comprising
Original installation kit is received, wherein the original installation kit includes that parameter type list involved in method to be repaired is corresponding
Ad hoc approach, the ad hoc approach are used for patch method Transfer Parameters corresponding to the method to be repaired, and the parameter is institute
Parameter involved in method to be repaired is stated, the parameter type list includes the class of parameter involved in the method to be repaired
Type.
5. according to the method described in claim 4, it is characterized by further comprising:
Service packs is received, the service packs includes the patch method;
The parameter is transmitted to the patch method according to the ad hoc approach;
Execute the patch method.
6. method according to claim 4 or 5, which is characterized in that the column of parameter type involved in the method to be repaired
Table is at least one of top n parameter type list according to acquired in the frequency of use of parameters list of types, and N is big
In or equal to 1 integer.
7. a kind of data transmission device characterized by comprising
Generation module, for generating parameter type list involved in method to be repaired when carrying out pitching pile to original installation kit
Corresponding ad hoc approach, the ad hoc approach are used for patch method Transfer Parameters corresponding to the method to be repaired, the ginseng
Number is parameter involved in the method to be repaired, and the parameter type list includes parameter involved in the method to be repaired
Type;
First sending module, for sending the original installation kit after pitching pile to terminal device.
8. device according to claim 7, which is characterized in that further include:
Second sending module, for sending service packs to terminal device, the service packs includes the patch method, so that described
Terminal device transmits the parameter to the patch method according to the ad hoc approach, and executes the patch method.
9. device according to claim 7 or 8, which is characterized in that further include:
Obtain module, for the frequency of use according to parameters list of types, obtain the list of top n parameter type, N be greater than
Or the integer equal to 1;
Determining module, for determining parameter type involved in the method to be repaired in the top n parameter type list
List.
10. a kind of data transmission device characterized by comprising
First receiving module, for receiving original installation kit, wherein the original installation kit includes involved in method to be repaired
The corresponding ad hoc approach of parameter type list, the ad hoc approach are used for patch method transmitting corresponding to the method to be repaired
Parameter, the parameter are parameter involved in the method to be repaired, and the parameter type list includes the method to be repaired
The type of related parameter.
11. device according to claim 10, which is characterized in that further include:
Second receiving module, for receiving service packs, the service packs includes the patch method;
Transfer module, for transmitting the parameter to the patch method according to the ad hoc approach;
Execution module, for executing the patch method.
12. device described in 0 or 11 according to claim 1, which is characterized in that parameter type involved in the method to be repaired
List is at least one of top n parameter type list according to acquired in the frequency of use of parameters list of types, and N is
Integer more than or equal to 1.
13. a kind of network equipment characterized by comprising memory and processor;
The memory is for storing computer instruction;The processor is used to run the computer of the memory storage
The described in any item data transmission methods of claims 1 to 3 are realized in instruction.
14. a kind of terminal device characterized by comprising memory and processor;
The memory is for storing computer instruction;The processor is used to run the computer of the memory storage
The described in any item data transmission methods of claim 4 to 6 are realized in instruction.
15. a kind of storage medium characterized by comprising readable storage medium storing program for executing and computer instruction, the computer instruction are deposited
Storage is in the readable storage medium storing program for executing;The computer instruction is for realizing the described in any item data transmission of claims 1 to 3
Method.
16. a kind of storage medium characterized by comprising readable storage medium storing program for executing and computer instruction, the computer instruction are deposited
Storage is in the readable storage medium storing program for executing;The computer instruction is for realizing the described in any item data transmission of claim 4 to 6
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570509.2A CN110308922B (en) | 2019-06-27 | 2019-06-27 | Data transmission method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570509.2A CN110308922B (en) | 2019-06-27 | 2019-06-27 | Data transmission method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110308922A true CN110308922A (en) | 2019-10-08 |
CN110308922B CN110308922B (en) | 2023-04-18 |
Family
ID=68076886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910570509.2A Active CN110308922B (en) | 2019-06-27 | 2019-06-27 | Data transmission method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110308922B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140149974A1 (en) * | 2012-11-26 | 2014-05-29 | International Business Machines Corporation | Optimized Installation of Received Patches for Application Programs Already Running on Computer Systems |
CN105446712A (en) * | 2014-08-08 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Defect mending method and device for application program |
CN106502725A (en) * | 2016-09-30 | 2017-03-15 | 歌尔科技有限公司 | The upgrade method of application program, equipment and electronic equipment |
CN107908402A (en) * | 2017-08-15 | 2018-04-13 | 口碑(上海)信息技术有限公司 | The hot restorative procedure of Java server-sides and system |
CN108762800A (en) * | 2018-05-23 | 2018-11-06 | 北京五八信息技术有限公司 | The dynamic updating method and device of application program |
CN109308256A (en) * | 2018-07-24 | 2019-02-05 | 中国建设银行股份有限公司 | A kind of java dynamically analyzing of program method, equipment and storage medium |
WO2019071609A1 (en) * | 2017-10-09 | 2019-04-18 | 华为技术有限公司 | Method and terminal device for loading application and upgrading application |
CN109683915A (en) * | 2018-12-03 | 2019-04-26 | 深圳市广和通无线股份有限公司 | Parameter amending method, device, computer equipment and storage medium |
CN109828772A (en) * | 2019-02-19 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | Hot update method, operating system, terminal device and storage medium |
-
2019
- 2019-06-27 CN CN201910570509.2A patent/CN110308922B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140149974A1 (en) * | 2012-11-26 | 2014-05-29 | International Business Machines Corporation | Optimized Installation of Received Patches for Application Programs Already Running on Computer Systems |
CN105446712A (en) * | 2014-08-08 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Defect mending method and device for application program |
CN106502725A (en) * | 2016-09-30 | 2017-03-15 | 歌尔科技有限公司 | The upgrade method of application program, equipment and electronic equipment |
CN107908402A (en) * | 2017-08-15 | 2018-04-13 | 口碑(上海)信息技术有限公司 | The hot restorative procedure of Java server-sides and system |
WO2019071609A1 (en) * | 2017-10-09 | 2019-04-18 | 华为技术有限公司 | Method and terminal device for loading application and upgrading application |
CN108762800A (en) * | 2018-05-23 | 2018-11-06 | 北京五八信息技术有限公司 | The dynamic updating method and device of application program |
CN109308256A (en) * | 2018-07-24 | 2019-02-05 | 中国建设银行股份有限公司 | A kind of java dynamically analyzing of program method, equipment and storage medium |
CN109683915A (en) * | 2018-12-03 | 2019-04-26 | 深圳市广和通无线股份有限公司 | Parameter amending method, device, computer equipment and storage medium |
CN109828772A (en) * | 2019-02-19 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | Hot update method, operating system, terminal device and storage medium |
Non-Patent Citations (2)
Title |
---|
KIM D 等: "Automatic patch generation learned from human-written patches" * |
赵家祝: "Android移动应用热更新方案的研究与实现" * |
Also Published As
Publication number | Publication date |
---|---|
CN110308922B (en) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101836188B (en) | Server-based code compilation | |
CN102023867B (en) | A kind of terminal secondary development device and secondary developing platform construction method | |
WO2014111987A1 (en) | Protocol translation in smart grid communications | |
CN102714886A (en) | Hierarchical routing and interface selection for multi-processor multimode network devices | |
CN104133765B (en) | The test case sending method of network activity and test case server | |
CN104246734A (en) | Extensible WSE HUB to support a multi-hop tree of USB HUBs or peripherals over a wireless link | |
US10708378B2 (en) | Data processing method and apparatus, server, and controller | |
CN106713469B (en) | Dynamic loading method, device and system for distributed container | |
CN103747436A (en) | Application program downloading method and device | |
CN110875850A (en) | Firmware upgrading method and system, readable storage medium and terminal equipment | |
CN110083466B (en) | Data transmission method and device for small program | |
CN102201931B (en) | Device management method and system and related apparatus | |
CN102831000A (en) | System upgrading method and system | |
CN110022323A (en) | A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux | |
CN110308922A (en) | Data transmission method, device, equipment and storage medium | |
CN111200653B (en) | Multi-platform communication method, multi-platform communication device and intermediate server | |
KR102163930B1 (en) | Distributed compile system implementing blockchain rewards | |
CN103379145A (en) | Information processing method, apparatus and system | |
US20230259930A1 (en) | Cross-chain transaction processing method and apparatus, electronic device, and storage medium | |
CN110381150B (en) | Data processing method and device on block chain, electronic equipment and storage medium | |
CN107944861A (en) | A kind of cash register system based on block chain technology | |
CN103646015A (en) | Method and system for sending, receiving and transmitting XML message | |
CN105429981A (en) | Game voice transmission method, terminal, voice service module and game system | |
CN102662652A (en) | Method and equipment used for customizing personalized application | |
US12002043B2 (en) | Method for enabling efficient evaluation of transactions in a distributed ledger network |
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 |