CN108241500A - A kind of restorative procedure of hardware component, device, system and storage medium - Google Patents

A kind of restorative procedure of hardware component, device, system and storage medium Download PDF

Info

Publication number
CN108241500A
CN108241500A CN201810034876.6A CN201810034876A CN108241500A CN 108241500 A CN108241500 A CN 108241500A CN 201810034876 A CN201810034876 A CN 201810034876A CN 108241500 A CN108241500 A CN 108241500A
Authority
CN
China
Prior art keywords
sdk
hardware component
service packs
agent application
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810034876.6A
Other languages
Chinese (zh)
Other versions
CN108241500B (en
Inventor
晋中望
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810034876.6A priority Critical patent/CN108241500B/en
Publication of CN108241500A publication Critical patent/CN108241500A/en
Application granted granted Critical
Publication of CN108241500B publication Critical patent/CN108241500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a kind of restorative procedure of hardware component, device, system and storage medium, the embodiment of the present invention is by obtaining the critical path of hardware component and loading Software Development Kit SDK in equipment;The corresponding agent application class of the hardware component is created according to the critical path and the SDK;When the service packs about the hardware component for receiving server transmission, the agent application class is called;Based on the agent application class, the SDK is updated using the service packs, to be repaired to the hardware component.Since the agent application class is integrated with the critical path of hardware component and the function of SDK etc. in the program, therefore, the agent application class can be passed through, the hardware component of equipment is repaired according to the service packs received, without upgrading by installation kit to SDK, reliability and convenience that equipment repairs hardware component are improved.

Description

A kind of restorative procedure of hardware component, device, system and storage medium
Technical field
The present invention relates to information technology fields, and in particular to a kind of restorative procedure of hardware component, device, system and storage Medium.
Background technology
With the development of information technology, the use of various kinds of equipment is more and more universal, and since the hardware component of equipment is (i.e. hard The application of software layer in part) iteration is often not as good as pure software using frequent, therefore, the hardware component of equipment new version each time Publication, is required for by very rigorous test, and be handed down to equipment and repaired, the defects of to solve the hardware component of equipment (i.e. bug) avoids hardware from serious problems occur, is even destroyed.
In the prior art, in the recovery scenario for occurring bug for the hardware component of equipment, for example, the hardware component worked as When bug occurs in Software Development Kit (Software Development Kit, SDK), application provider needs to issue bug Hardware vendor, and linked up and changed with hardware vendor, changed in hardware vendor and test completion, and generate new version After SDK, the solution of over the air (Over-the-Air Technology, OTA) upgrading is generally based on to equipment It is repaired, in the OTA upgrading schemes, when the SDK that the hardware component of equipment has new version is issued, server background passes through length Link channel issues the SDK installation kits (Android Package, APK) of latest edition to equipment, and equipment receives new version After SDK installation kits, can solar obligation be carried out according to the SDK installation kits of new version, and pass through the SDK coverings of the new version after installation The SDK of current version is repaired with the hardware component to equipment.
Due to after application provider need to link up with hardware vendor and complete test, server being needed to issue in the program SDK installation kits need to consume the larger floating resources of equipment at this time to equipment, the SDK versions of equipment mandatory upgrade application so that The probability that SDK installation kits are downloaded or installation is lost is very big, and equipment may be caused not updated in time by OTA to new version, The bug of hardware component can not be repaired and can not be used, therefore the reparation of hardware component is very inconvenient;Also, equipment needs weight New installation SDK, can cause equipment to generate extremely serious influence in use, reduce equipment repaired it is reliable Property.
Invention content
The embodiment of the present invention provide a kind of restorative procedure of hardware component, device, system and and storage medium, it is intended to improve The reliability and convenience that equipment repairs hardware component.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
A kind of restorative procedure of hardware component, including:
Obtain the critical path of hardware component and loading Software Development Kit SDK in equipment;
The corresponding agent application class of the hardware component is created according to the critical path and the SDK;
When the service packs about the hardware component for receiving server transmission, the agent application class is called;
Based on the agent application class, the SDK is updated using the service packs, with to the hardware component into Row is repaired.
A kind of prosthetic device of hardware component, including:
Acquiring unit, for obtaining the critical path of hardware component and loading Software Development Kit SDK in equipment;
Creating unit, for creating the corresponding agent application of the hardware component according to the critical path and the SDK Class;
Call unit, for when the service packs about the hardware component for receiving server transmission, described in calling Agent application class;
Unit is repaired, for being based on the agent application class, the SDK is updated using the service packs, with right The hardware component is repaired.
A kind of repair system of hardware component, the repair system of the hardware component includes server and equipment, described to set The standby prosthetic device for including above-mentioned hardware component, wherein,
The server, for receiving the SDK revisions of the hardware component about equipment of client upload and obtaining Take the corresponding SDK current versions of hardware component of the equipment;It is closed according to the SDK revisions and the generation of SDK current versions In the service packs of the hardware component of the equipment;The service packs is sent to the equipment..
A kind of storage medium, the storage medium are stored with a plurality of instruction, and described instruction is loaded suitable for processor, with Perform the step in the restorative procedure of above-mentioned hardware component.
The embodiment of the present invention is by obtaining the critical path of hardware component and loading Software Development Kit in equipment SDK;Then, the corresponding agent application class of hardware component is created according to critical path and SDK;When the pass for receiving server transmission When the service packs of hardware component, agent application class is called;Based on agent application class, SDK is updated using service packs, with Hardware component is repaired.Since the agent application class is integrated with the critical path of hardware component and SDK functions in the program Deng, therefore, the hardware component of equipment can be repaired according to the service packs received by the agent application, without SDK is upgraded by installation kit, improves reliability and convenience that equipment repairs hardware component.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of the repair system of hardware component provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the restorative procedure of hardware component provided in an embodiment of the present invention;
Fig. 3 is another flow diagram of the restorative procedure of hardware component provided in an embodiment of the present invention;
Fig. 4 is another flow diagram of the restorative procedure of hardware component provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the prosthetic device of hardware component provided in an embodiment of the present invention;
Fig. 6 is another structure diagram of the prosthetic device of hardware component provided in an embodiment of the present invention;
Fig. 7 is another structure diagram of the prosthetic device of hardware component provided in an embodiment of the present invention;
Fig. 8 is another structure diagram of the prosthetic device of hardware component provided in an embodiment of the present invention;
Fig. 9 is the structure diagram of equipment provided in an embodiment of the present invention;
Figure 10 is the structure diagram of server provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
In the following description, specific embodiments of the present invention will be with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structured form Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in a manner of known to the tester of this field.The data structure that the data are maintained For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step as described below and behaviour Also it may be implemented in hardware.
The embodiment of the present invention provides a kind of restorative procedure of hardware component, device, system and storage medium.
Referring to Fig. 1, the schematic diagram of a scenario of the repair system of hardware component that Fig. 1 is provided by the embodiment of the present invention, it should The repair system of hardware component can include the prosthetic device of hardware component, and the prosthetic device of the hardware component can specifically integrate Robot, computer and TV etc. have storage element and microprocessor is installed and with operational capability equipment in, mainly For obtaining the critical path of hardware component and loading Software Development Kit SDK in equipment, wherein, which can To be the application (i.e. Application) in equipment on the software layer of hardware, the critical path of hardware component can include equipment The calling path of the SDK of middle key scenes, for example, equipment connection network, the low battery of equipment, device voice volume become larger or can become The calling path of the SDK of the scenes such as small.Then, the corresponding agent application class of hardware component is created according to critical path and SDK, i.e., The critical path of hardware component is migrated to agent application class and that the function of SDK is integrated in agent application class is medium.When hard There is bug when the situation of needs reparation in part component, and server will generate the service packs about hardware component, and by the patch Packet is sent to equipment;When the service packs about hardware component for receiving server transmission, equipment calls agent application class;Base In agent application class, SDK is updated using service packs, to be repaired to hardware component;Etc..
For example, by taking the prosthetic device of hardware component is integrated in robot as an example, which can include speaker and show Show device etc., SDK is provided in the hardware component of the robot, wherein, robot can obtain itself hardware component (i.e. robot Application on the software layer of middle hardware) critical path and loading Software Development Kit SDK, wherein, critical path can be with It is the scenes such as volume adjustment path of speaker in robot connection network control path, robot electric quantity adjusting path, robot SDK calling path.Then, robot creates the corresponding agent application class of hardware component according to critical path and SDK so that The critical path of hardware component and the function of SDK are integrated in the agent application class.When bug occurs in the hardware component of robot When, if robot receives the service packs about hardware component of server transmission, call agent application class;It should based on agency With class, SDK is updated using service packs, to be repaired to hardware component.
In addition, the repair system of hardware component can also include server, which can include database, the data Library can be used for the status information of storage device and the SDK of different editions etc., which is mainly used for, and receiving device reports Status information, and the status information is monitored, the status information of equipment can be stored at this time to database, wherein, The status information can include the current SDK version numbers of device identification, device version number, equipment, equipment networking state and set The information such as standby memory operating status.When the hardware component for monitoring equipment has abnormal, the hardware group about equipment is exported The abnormal prompt information of part, the SDK revisions that reception client is uploaded based on abnormal prompt information are (it is understood that clothes Business device can also be the SDK revisions for receiving client active upload), which can be that developer is used to compile The client of SDK codes, can be according to SDK code building SDK revisions.Then, in the status information of server slave device The current SDK version numbers of equipment are obtained, SDK current versions corresponding with the SDK versions are obtained from the database of storage SDK. Secondly, server obtains the service packs of the hardware component about equipment according to SDK current versions and SDK revisions, for example, clothes Business device can be by difference algorithm (i.e. diff algorithms) acquisition SDK current versions execution (i.e. dex files) and The execution of SDK more new versions, by the execution program of the execution of SDK current versions and SDK revisions File is compared, and obtains the difference between the execution of SDK current versions and the execution of SDK revisions The offset information of different information and the different information in the execution of SDK current versions, according to different information and partially Information generation service packs is moved, service packs is finally sent to equipment.
It should be noted that the schematic diagram of a scenario of the repair system of hardware component shown in FIG. 1 is only an example, this The repair system and scene of the hardware component of inventive embodiments description are to more clearly illustrate the embodiment of the present invention Technical solution does not form the restriction for technical solution provided in an embodiment of the present invention, those of ordinary skill in the art it is found that With the differentiation of the repair system of hardware component and the appearance of new business scene, technical solution provided in an embodiment of the present invention for It is the technical issues of similar, equally applicable.
It is described in detail separately below.
In the present embodiment, the angle of the prosthetic device from hardware component is described, the reparation dress of the hardware component Robot, computer and TV etc. can be specifically integrated in by, which putting, has storage element and is equipped with microprocessor and has operation energy In the equipment of power.
A kind of restorative procedure of hardware component, including:Obtain the critical path of hardware component and loading software in equipment Development kit SDK;The corresponding agent application class of hardware component is created according to critical path and SDK;It is sent out when receiving server During the service packs about hardware component sent, agent application class is called;Based on agent application class, SDK is carried out using service packs Update, to be repaired to hardware component.
Referring to Fig. 2, Fig. 2 is the flow diagram of the restorative procedure for the hardware component that one embodiment of the invention provides.It should The restorative procedure of hardware component can include:
In step S101, the critical path of hardware component and loading Software Development Kit SDK in equipment are obtained.
Can be to hardware group when the prosthetic device of hardware component repairs hardware component in the embodiment of the present invention Part carries out hot repair and answers, and the hot repair is multiple to carry out emergency repair in user's unaware hardware component using patch, for example, can be with It is some code building service packs by repairing hardware component loophole, it, should according to the reparation that service packs carries out hardware component Hot repair is the repair mode that a kind of quick and low cost repairs hardware component bug again.At this point, without re-downloading a new peace Dress packet, but a service packs is directly downloaded, there is the class of bug by service packs to replace some, due to downloading service packs Process user is usually imperceptible, therefore the bug of hardware component can be directly repaired in user's unaware.
Hardware component will be carried out to be described in detail for hot repair is multiple by the prosthetic device of hardware component below.
Wherein, hardware component can be the application of hardware, i.e., the application in equipment on the software layer of hardware is (i.e. Application);The critical path of hardware component can include the calling path of the SDK of key scenes in equipment, for example, setting Standby connection network, the low battery of equipment, device voice volume become larger or can become smaller etc. the calling path of the SDK of scenes.Hardware component Prosthetic device before agent application is created, need obtain equipment in hardware component critical path and loading SDK, it is right SDK performs the operations such as initialization.
In step s 102, the corresponding agent application class of hardware component is created according to critical path and SDK.
The prosthetic device of hardware component, can be according to the key after the critical path and loading SDK for obtaining hardware component Path and SDK create the corresponding agent application class (i.e. Application proxy class) of hardware component, i.e., by the key of hardware component It is medium that Path Migration to agent application class and by the interface of SDK and function etc. is integrated in agent application class.Wherein, the agency Using class can include example, the example can be device systems be apply each process creation application example, Ke Yitong The example is crossed to carry out the operations such as data transfer, data sharing and data buffer storage.
After obtained agent application class is created, the prosthetic device of hardware component can be acted on behalf of at runtime with dynamic load should Sequence of operations, the agent application class such as it can be initialized with class and to SDK and be updated by agent application class and may be used also To realize that the institute of hardware component is functional.
In some embodiments, the prosthetic device of hardware component creates hardware component according to critical path and SDK and corresponds to Agent application class the step of after, the restorative procedure of hardware component can also include:
When the electricity of equipment is less than default power threshold, calls agent application class and called by agent application class Electricity in the critical path of hardware component adjusts path;Release default memory in path is adjusted by electricity.
Specifically, due to being integrated with the critical path of hardware component and the function of SDK etc. in agent application class, when When the electricity of equipment is less than default power threshold, illustrate the low battery of equipment, the prosthetic device of hardware component is for electricity at this time Too low information is measured, the operating status of equipment is dispatched accordingly.
For example, in order to extend the usage time of equipment, the prosthetic device of hardware component can call agent application class, pass through Agent application class calls the electricity in the critical path of hardware component to adjust path, and the pre- of path release device is adjusted by electricity If memory, to reduce the consumption of equipment electricity in the unit interval.
It should be noted that path can also be adjusted by electricity turn the volume of sound equipment in equipment or pass hull closure down Display of display screen etc., to achieve the purpose that reduce the consumption of equipment electricity in the unit interval.Wherein, power threshold and pre- is preset If memory can flexibly be set according to actual conditions, particular content is not construed as limiting here.
It is understood that agent application class is may call upon to perform other functions, for example, when equipment needs to connect During network, the network connection path in the critical path of hardware component can be called by agent application class, and pass through the network Connection path performs networking operation;When equipment needs to tune up the volume of equipment, can hardware be called by agent application class Volume adjustment path in the critical path of component, and pass through the volume adjustment path and tune up the volume of equipment, etc..
In step s 103, when the service packs about hardware component for receiving server transmission, agent application is called Class.
The prosthetic device of hardware component can actively send service packs to server to obtain request, then receive server The service packs about hardware component of request transmission is obtained based on service packs, to be repaiied according to service packs to hardware component It is multiple.Certainly, the prosthetic device of hardware component can also be the passive service packs about hardware component for receiving server and sending, with Just hardware component is repaired according to service packs, server can be filled every reparation of the preset time to hardware component at this time It puts and sends service packs or send the service packs to the prosthetic device of hardware component after generation service packs every time.
Server to the prosthetic device of hardware component before service packs is sent, and optionally, server is received in client The SDK revisions of the hardware component about equipment passed and the corresponding SDK current versions of hardware component for obtaining equipment; According to the service packs of SDK revisions and the generation of SDK current versions about the hardware component of equipment;Then the service packs is sent To the prosthetic device of hardware component.
Wherein, which can be the client that developer is used to compile SDK codes, which can be according to volume The SDK code building SDK revisions translated.
Optionally, the step of SDK revisions of the hardware component about equipment that server reception client uploads, can To include:The status information that server receiving device reports, and the status information is monitored;When the hardware for monitoring equipment When component has abnormal, the abnormal prompt information of the hardware component about equipment is exported, client is received and is believed based on abnormal prompt Cease the SDK revisions uploaded.Certainly, client can also be the SDK revisions uploaded according to actual needs to server.
Wherein, which can include device identification, device version number, equipment current SDK version numbers, equipment The information such as the memory operating status of networking state, the hardware component states of equipment and equipment.
Optionally, server, which obtains the step of hardware component corresponding SDK current versions of equipment, to include:Server In the status information that slave device reports or with obtaining device identification in the interactive information of equipment, equipment is obtained according to device identification The current SDK version numbers of hardware component from the database of storage SDK versions, obtain SDK corresponding with the SDK version numbers and work as Preceding version.
Optionally, server is according to the patch of SDK revisions and the generation of SDK current versions about the hardware component of equipment The step of packet, can include:Server obtains the execution of SDK current versions and the execution program text of SDK revisions The execution of SDK current versions and the execution of SDK revisions are compared, it is current to obtain SDK by part Different information and the different information between the execution of version and the execution of SDK revisions exist Offset information in the execution of SDK current versions;Then according to different information and offset information generation about equipment Hardware component service packs.
Wherein, execution is that (the English full name of dex is dex:Dalvik VM executes, i.e. Android Dalvik performs program) file, which contains all operational orders that hardware component uses and runtime data etc., In program compilation process, Java source files are first compiled into class files, then by dx tools by multiple class files It is integrated into one or more dex files, such file structure enables each class shared data, and it is empty to substantially reduce storage Between, improve operational efficiency.
Optionally, service packs is sent to the step of prosthetic device of hardware component by server to include:Server from In the status information that equipment reports or with obtaining device identification in the interactive information of equipment, wherein, which is hardware The device identification of equipment, can be sent to hardware component according to device identification by service packs at this time where the prosthetic device of component Service packs (will be sent to equipment) by prosthetic device according to device identification.
Either, server is obtained in the status information that slave device reports or with obtaining equipment mark in the interactive information of equipment Know, according to the current SDK version numbers of the hardware component of device identification acquisition equipment, then, from the number of storage all devices mark (above equipment mark is contained in target device and identifies) is identified using the target device of the SDK version numbers according to being obtained in library, finally Service packs is sent to target device corresponding with target device mark (above equipment is contained in target device).
Wherein, target device mark can include one or more device identifications, and target device can include one or more A equipment.Device identification can be for the label of designation equipment uniqueness, for example, can be the character string structure of 16 by length Into so that server can issue service packs, so that equipment is according to service packs pair according to the unique device identification of equipment to equipment Hardware component carries out hot repair and answers.
In some embodiments, when the service packs about hardware component for receiving server transmission, agency is called It can include using the step of class:
When the service packs for receiving server transmission, judge whether the service packs received is complete;If so, call generation Class ought to be used;If it is not, service packs about hardware component then is re-downloaded from server, after complete service packs is downloaded to, Call agent application class.
Specifically, after service packs is received, whether the prosthetic device of hardware component first determines whether the service packs received Completely, for example, the prosthetic device of hardware component can by detect service packs receive during whether occur in data transmission It is disconnected, if there are data-transmission interruptions, it is determined that the service packs received is imperfect;If do not occur data-transmission interruptions, it is determined that The service packs received is complete.Either, judge whether the service packs received is complete, and particular content is herein by other means Place is not construed as limiting.
When the service packs received is complete, the prosthetic device of hardware component can call agent application class, pass through generation Hot repair ought to be carried out with class to hardware component to answer.
When the service packs received is imperfect, the prosthetic device of hardware component can obtain the patch about hardware component The mark of packet, and send service packs corresponding with the mark to server and obtain request, it receives server and is obtained based on service packs The service packs retransmitted is asked, so as to re-download service packs corresponding with the mark of service packs from server.Under After being downloaded to complete service packs, the prosthetic device of hardware component can call agent application class, with by agent application class to hard Part component carries out hot repair and answers.
Either, when the service packs received is imperfect, the prosthetic device of hardware component can be sent to server to be mended The information of fourth packet reception failure is closed so that server is sent based on the information received to the prosthetic device of hardware component again In the service packs of hardware component, so as to re-download service packs corresponding with the mark of service packs from server.It is downloading To after complete service packs, the prosthetic device of hardware component can call agent application class, with by agent application class to hardware Component carries out hot repair and answers.
Optionally, the prosthetic device of hardware component from server re-download the service packs about hardware component the step of can To include:
Judge whether current download time reaches preset times;If so, terminate to the service packs about hardware component What is performed re-downloads operation;If it is not, the service packs about hardware component is then re-downloaded from server.Wherein, preset times It can flexibly be set according to actual conditions, specific value is not construed as limiting here.
Optionally, the prosthetic device of hardware component from server re-download the service packs about hardware component the step of can To include:
Obtain the time interval between current time stamp and the timestamp for not receiving complete service packs for the first time;During judgement Between be spaced whether be more than prefixed time interval;If so, terminate to re-download behaviour to the service packs execution about hardware component Make;If it is not, the service packs about hardware component is then re-downloaded from server.Wherein, prefixed time interval can be according to reality Situation is flexibly set, and specific value is not construed as limiting here.
In step S104, based on agent application class, SDK is updated using service packs, to be carried out to hardware component It repairs.
The prosthetic device of hardware component can be based on agent application class, utilize what is received after agent application class is called Service packs about hardware component is updated SDK, and hardware component is repaired with realizing, i.e., with realization to hardware component Hot repair is carried out to answer.Wherein, hot repair can repair hardware component by service packs again, and the multiple process of the hot repair is that one kind exists The process of bug existing for hardware component is repaired in the case of user's unaware.Also, it avoids and installation kit is updated by OTA Mode repairs bug so that repair only needs to receive the service packs packet that server issues every time, and high degree alleviates clothes The channel resource being engaged between device and equipment occupies the problem of big.
In some embodiments, the prosthetic device of hardware component is based on agent application class, and SDK is carried out using service packs Update, to be repaired to hardware component the step of, can include:
(1) SDK current versions are obtained by agent application class and the reparation interface of SDK is called by agent application class;
(2) by repairing interface, SDK current versions is updated according to service packs, obtain SDK more new versions;
(3) SDK more new versions are loaded by agent application class, to be repaired to hardware component.
The prosthetic device of hardware component can carry out hot repair by agent application after agent application is called to hardware component It is multiple, specifically, the prosthetic device of hardware component first by SDK version numbers currently used in agent application type acquistion device, And obtain SDK current versions corresponding with SDK version numbers.It, can be with since agent application class is integrated with the total interface of SDK The reparation interface of SDK is called by agent application class, then, by the reparation interface of SDK, according to receiving about hardware group The service packs update SDK current versions of part, obtain SDK more new versions.Finally, SDK more new versions are loaded by agent application class, It is answered with carrying out hot repair to hardware component.
It should be noted that in the prior art, the SDK of hardware component needs to open to the outside world to be connect to each hardware vendor The interface entered, thus the realization control of hardware component is that the calling range of SDK is caused to propose application in each hardware vendor side SDK developer for quotient side is uncontrollable.And in the embodiment of the present invention, it, can be by hardware group by creating agent application The critical path of the SDK of part is taken go back to the corresponding application providers of SDK back from hardware vendor side and is held, and ensures the calling range of SDK SDK developer for application provider side is controllable, and the SDK developer of application provider side can be with direct compilation SDK code building SDK revisions without being linked up with hardware vendor, can avoid and hardware factory when there is urgent bug Quotient is linked up, and is not needed to hardware vendor more and is participated in modification and test, improves the update efficiency of SDK, that is, improve hardware group The hot remediation efficiency and hot repair coverage of part.
Optionally, the prosthetic device of hardware component updates SDK current versions according to service packs, obtains by repairing interface The step of SDK more new versions, can include:
By repairing interface, obtaining offset information and different information in service packs and obtaining holding for SDK current versions Line program file;Position to be updated in execution is determined according to offset information;Different information is replaced to be updated The corresponding content in position, obtain SDK more new versions.
Specifically, the prosthetic device of hardware component can repair interface by calling and SDK is updated, first, from benefit The current SDK version numbers of the hardware component of extraction offset information and different information etc. and taking equipment in fourth packet, according to SDK editions This number acquisition SDK current version, and obtain the execution of the SDK current versions.Wherein, different information can be obtained Different information between the execution of SDK current versions and the execution of SDK revisions, offset information can To be offset information of the different information in the execution of SDK current versions.
It it should be noted that can with different information there are correspondence, offset information between offset information and different information To be one or more, i.e., can be the correspondence included between an offset information and a different information in service packs, It can also include multiple offset informations correspondence between multiple different informations respectively.
Then, the prosthetic device of hardware component is determined according to offset information in the execution of SDK current versions Different information is replaced the corresponding content in position to be updated, obtains SDK more new versions by position to be updated.For example, when offset Information A is the 100th row in the execution of SDK current versions, and when offset information A corresponds to different information a, hardware The content of the 100th row in the execution of SDK current versions is replaced with different information a by the prosthetic device of component.Make The bug of hardware component, user can be repaired in a manner that service packs synthesizes SDK more new versions by obtaining the prosthetic device of hardware component Unaware repair process, improves user experience.
In some embodiments, when different information being replaced the corresponding content in position to be updated, the hardware component Restorative procedure further includes:
Different information is replaced into the corresponding content in position to be updated if failing, current SDK is restored to SDK Current version generates the reparation state of hardware component, and will repair state reporting to server.
Specifically, the prosthetic device of hardware component is in the process that different information is replaced to the corresponding content in position to be updated In, judge whether different information successfully to be replaced the corresponding content in position to be updated.Successfully if different information can be replaced The corresponding content in position to be updated can then obtain SDK more new versions.If failing, it is to be updated to replace different information The corresponding content in position, then illustrating the information such as the different information included in service packs and offset information, there may be exceptions, can not It is normally carried out repairing, i.e., hot repairing failure, at this point, in order to keep current SDK and receive the state consistency before service packs, Current SDK can be restored to SDK current versions.
When fail different information is replaced into the corresponding content in position to be updated when, the prosthetic device of hardware component is also The reparation state of hardware component can be generated, and state reporting will be repaired to server, wherein, reparation state can be that SDK works as Preceding more new state, such as can be the state of SDK repairing failures.So that SDK developer obtains hardware component from server Reparation state, the reason of further determining that repairing failure, and take and change strategy in next step.
From the foregoing, it will be observed that the embodiment of the present invention is opened by obtaining the critical path of hardware component and loading software in equipment Send out kit SDK;Then, the corresponding agent application class of hardware component is created according to critical path and SDK;When receiving server During the service packs about hardware component sent, agent application class is called;Based on agent application class, using service packs to SDK into Row update, to be repaired to hardware component.Since the agent application class is integrated with the critical path of hardware component in the program And function of SDK etc., therefore, can by the agent application class, according to the service packs received to the hardware component of equipment into Row is repaired, without being upgraded by installation kit to SDK, saving the floating resources of equipment and improving equipment to hard The reliability and convenience that part component is repaired.
According to the described method of above-described embodiment, citing is described in further detail below.
For above equipment by taking robot as an example, the prosthetic device of above-mentioned hardware component can specifically be integrated in the robot, should Robot can include speaker and display etc., be provided with SDK in the hardware component of robot, robot can by SDK and Critical path of hardware component etc. creates agent application class, and in the service packs about hardware component for receiving server transmission When, SDK can be updated using service packs by agent application, answered with carrying out hot repair to hardware component.
Referring to Fig. 3, Fig. 3 is another flow diagram of the restorative procedure of hardware component provided in an embodiment of the present invention. This method flow can include:
S201, robot obtain the critical path of hardware component and loading Software Development Kit SDK.
Wherein, the hardware component of robot is the application on the software layer of hardware in robot, for example, the speaker of robot Application on the software layer of hardware.The critical path of hardware component can include the calling road of the SDK of key scenes in robot Diameter, the scenes for example, volume of the speaker of robot connection network, the low battery of robot, robot becomes larger or can become smaller etc. SDK calling path.Robot needs to obtain critical path and the loading of hardware component before agent application is created SDK。
S202, robot create the corresponding agent application class of hardware component according to critical path and SDK.
Robot, can be according to the critical path of hardware component after the critical path and loading SDK for obtaining hardware component And SDK creates the corresponding agent application class of hardware component, so as to migrate the critical path of hardware component to agent application Class and the interface of SDK and function etc. are integrated in agent application class.
After obtained agent application class is created, robot can pass through generation with dynamic load agent application class at runtime SDK ought to be initialized and be updated with class, other functions can also be performed by agent application class, for example, working as machine When the volume of the speaker of device people is more than default volume threshold, in the critical path that hardware component can be called by agent application class Volume adjustment path;The volume of speaker is turned down by volume adjustment path.
S203, robot to server uploaded state information and receive server based on state by agent application class The service packs about hardware component that information is sent.
After agent application class is created, robot can pass through agency with dynamic load agent application class at runtime Using class to server uploaded state information, wherein, it is current which can include the mark of robot, robot The information such as SDK version numbers, the networking state of robot, the hardware component states of robot and memory operating status.
Server is monitored the status information received, when the hardware component for monitoring robot has abnormal, The abnormal prompt information of the hardware component about robot can be exported so that developer can exist according to abnormal prompt information SDK codes are changed in client, which can be according to the SDK code building SDK revisions of compiling, and SDK is changed Version is uploaded to server.Server is according to the corresponding SDK current versions of hardware component of robot and the SDK received Revision generates the service packs of the hardware component about robot.For example, server is literary by the execution program of SDK current versions The execution of part and SDK revisions is compared, and the execution and SDK for obtaining SDK current versions are changed Different information and the different information between the execution of version is in the execution of SDK current versions Offset information;Then, according to the service packs of different information and offset information generation about the hardware component of robot, finally will The service packs is sent to robot.
It for example, if robot is when carrying out interactive voice, such as inquiry weather, listens to music and carries out the scene such as chatting Under, there is the serious bug for needing emergency repair inside the SDK of hardware component, cause to influence business experience even system crash, Developer can change SDK code building SDK revisions at this time, and SDK revisions are issued server, by server It generates service packs according to SDK revisions and SDK current versions and is targetedly handed down to service packs and worked as using SDK The robot of preceding version, robot can update SDK according to the service packs received, to answer the carry out hot repair of hardware component, The state of normal operation can be ensured to be in robot.
It should be noted that when the service packs for receiving server transmission, robot may determine that the patch received Whether packet is complete;If so, calling agent application class, answered with carrying out hot repair to hardware component by agent application class;If it is not, then The service packs about hardware component is re-downloaded from server, after complete service packs is downloaded to, calls agent application class, with Hot repair is carried out by agent application class to hardware component to answer.
S204, robot obtain SDK current versions by agent application class and call SDK's by agent application class Repair interface.
Robot after calling agent application, can pass through agent application pair after the service packs for receiving server transmission It obtains SDK version numbers currently used in equipment and obtains SDK current versions corresponding with the SDK version numbers.Due to agency The total interface of SDK is integrated with using class, therefore the reparation interface of SDK can be called by agent application class.
S205, robot are based on repairing interface, update SDK current versions using service packs, obtain SDK more new versions.
Robot can obtain offset information and difference in service packs by reparation interface of the agent application class based on SDK Different information and the execution for obtaining SDK current versions;It determines to treat more in execution according to offset information New position;Different information is replaced into the corresponding content in position to be updated, obtains SDK more new versions.For example, work as offset information B is the 50th row in the execution of SDK current versions, and when offset information B corresponds to different information b, can be by SDK The content of the 50th row in the execution of current version replaces with different information b.
It should be noted that robot is during SDK current versions are updated, it can be determined that whether SDK current versions It is updated successfully, if so, SDK more new versions can be obtained;If it is not, then illustrate update failure, it at this time can be extensive by current SDK It is multiple to generate the repairing failure state of hardware component to SDK current versions, and by repairing failure state reporting to server, so as to Developer obtains the repairing failure state of hardware component, the reason of further determining that repairing failure from server, and takes down One step modification strategy.
For example, when have in service packs 6 different informations need in SDK current versions 6 at position be updated when, if First different information and second different information first position in SDK current versions and second location updating respectively Success, and when using third different information update third position, update failure, at this time by newer content recovery To the state before not newer so that current SDK restores to SDK current versions.
S206, robot load SDK new versions by agent application class, are answered with carrying out hot repair to hardware component.
Robot obtains SDK new versions in update, SDK new versions can be loaded by agent application class, with to hardware group Part carries out hot repair and answers.
For example, as shown in figure 4, robot after the critical path according to hardware component and SDK create agent application class, can Migrating the critical path in hardware component into agent application class, after the SDK of access hardware component, generation can be passed through The corresponding key logic of critical path in hardware component ought to be realized with class, and when robot loads hardware component, it can With dynamic load agent application class.When bug occurs in hardware component, robot is passing through message push channel (i.e. push channels) The service packs about hardware component that server issues is received, agent application class is called, is utilized based on agent application class by patch Packet is updated SDK, generates SDK more new versions, then loads SDK more new versions, and carrying out hot repair to hardware component answers.
In the embodiment of the present invention, robot can create the agent application of critical path and the SDK of integrated hardware component etc., By the agent application, can hot repair be carried out to hardware component according to the service packs received and answered, without passing through installation kit pair SDK is upgraded, and repair only needs to receive the service packs that server issues every time, saves the floating resources of robot, And it improves robot and the multiple reliability and convenience of hot repair is carried out to hardware component.
For ease of preferably implementing the restorative procedure of hardware component provided in an embodiment of the present invention, the embodiment of the present invention also carries For a kind of device of the restorative procedure based on above-mentioned hardware component.The wherein restorative procedure of the meaning of noun and above-mentioned hardware component In it is identical, specific implementation details can be with the explanation in reference method embodiment.
Referring to Fig. 5, Fig. 5 is the structure diagram of the prosthetic device of hardware component provided in an embodiment of the present invention, wherein The prosthetic device of the hardware component can include acquiring unit 301, creating unit 302, call unit 303 and repair unit 304 Deng.
Wherein, acquiring unit 301, for obtaining the critical path of hardware component and loading software development work in equipment Tool packet SDK.
Can be to hardware group when the prosthetic device of hardware component repairs hardware component in the embodiment of the present invention Part carries out hot repair and answers, and the hot repair is multiple to carry out emergency repair in user's unaware hardware component using patch, for example, can be with It is some code building service packs by repairing hardware component loophole, it, should according to the reparation that service packs carries out hardware component Hot repair is the repair mode that a kind of quick and low cost repairs hardware component bug again.At this point, without re-downloading a new peace Dress packet, but a service packs is directly downloaded, there is the class of bug by service packs to replace some, due to downloading service packs Process user is usually imperceptible, therefore the bug of hardware component can be directly repaired in user's unaware.
Hardware component will be carried out to be described in detail for hot repair is multiple by the prosthetic device of hardware component below.
Wherein, hardware component can be the application of hardware, i.e., the application in equipment on the software layer of hardware is (i.e. Application);The critical path of hardware component can include the calling path of the SDK of key scenes in equipment, for example, setting Standby connection network, the low battery of equipment, device voice volume become larger or can become smaller etc. the calling path of the SDK of scenes.Creating generation Before ought to using, acquiring unit 301 needs to obtain the critical path of hardware component and loading SDK in equipment, and SDK is performed The operations such as initialization.
Creating unit 302, for creating the corresponding agent application class of hardware component according to critical path and SDK.
After the critical path that obtains hardware component and loading SDK, creating unit 302 can according to the critical path and SDK creates the corresponding agent application class (i.e. Application proxy class) of hardware component, i.e., moves the critical path of hardware component It moves to agent application class and that the interface of SDK and function etc. are integrated in agent application class is medium.Wherein, the agent application class It can include example, which can be the application example for each process creation that device systems are application, can pass through the reality Example carries out the operations such as data transfer, data sharing and data buffer storage.
After obtained agent application class is created, the prosthetic device of hardware component can be acted on behalf of at runtime with dynamic load should Sequence of operations, the agent application class such as it can be initialized with class and to SDK and be updated by agent application class and may be used also To realize that the institute of hardware component is functional.
In some embodiments, as shown in figure 8, the prosthetic device of hardware component further includes:
Path call unit 305, for when the electricity of equipment is less than default power threshold, calling agent application class, with And the electricity in the critical path of hardware component is called to adjust path by agent application class;
Releasing unit 306, for adjusting the default memory of path release by electricity.
Specifically, due to being integrated with the critical path of hardware component and the function of SDK etc. in agent application class, when When the electricity of equipment is less than default power threshold, illustrate the low battery of equipment, the prosthetic device of hardware component is for electricity at this time Too low information is measured, the operating status of equipment is dispatched accordingly.
For example, in order to extend the usage time of equipment, the prosthetic device of hardware component can call agent application class, pass through Agent application class calls the electricity in the critical path of hardware component to adjust path, and the pre- of path release device is adjusted by electricity If memory, to reduce the consumption of equipment electricity in the unit interval.
It should be noted that path can also be adjusted by electricity turn the volume of sound equipment in equipment or pass hull closure down Display of display screen etc., to achieve the purpose that reduce the consumption of equipment electricity in the unit interval.Wherein, power threshold and pre- is preset If memory can flexibly be set according to actual conditions, particular content is not construed as limiting here.
It is understood that agent application class is may call upon to perform other functions, for example, when equipment needs to connect During network, the network connection path in the critical path of hardware component can be called by agent application class, and pass through the network Connection path performs networking operation;When equipment needs to tune up the volume of equipment, can hardware be called by agent application class Volume adjustment path in the critical path of component, and pass through the volume adjustment path and tune up the volume of equipment, etc..
Call unit 303, for when receiving the service packs about hardware component that server is sent, calling agency should Use class.
Call unit 303 can actively send service packs to server to obtain request, then receive server and be based on mending Fourth packet obtain request send the service packs about hardware component, so as to repair unit 304 according to service packs to hardware component into Row is repaired.Certainly, call unit 303 can also be the passive service packs about hardware component for receiving server and sending, so as to It repairs unit 304 hot repair is carried out to hardware component according to service packs and answer, server can be to calling every preset time at this time Unit 303 sends service packs or sends the service packs to call unit 303 after generation service packs every time.
Server to call unit 303 send service packs before, optionally, server receive client upload about The SDK revisions of the hardware component of equipment and the corresponding SDK current versions of hardware component for obtaining equipment;It is repaiied according to SDK The service packs of correcting sheet and the generation of SDK current versions about the hardware component of equipment;Then it is single the service packs to be sent to calling Member 303.
Wherein, which can be the client that developer is used to compile SDK codes, which can be according to volume The SDK code building SDK revisions translated.
Optionally, the step of SDK revisions of the hardware component about equipment that server reception client uploads, can To include:The status information that server receiving device reports, and the status information is monitored;When the hardware for monitoring equipment When component has abnormal, the abnormal prompt information of the hardware component about equipment is exported, client is received and is believed based on abnormal prompt Cease the SDK revisions uploaded.Certainly, client can also be the SDK revisions uploaded according to actual needs to server.
Wherein, which can include device identification, device version number, equipment current SDK version numbers, equipment The information such as the memory operating status of networking state, the hardware component states of equipment and equipment.
Optionally, server, which obtains the step of hardware component corresponding SDK current versions of equipment, to include:Server In the status information that slave device reports or with obtaining device identification in the interactive information of equipment, equipment is obtained according to device identification The current SDK version numbers of hardware component from the database of storage SDK versions, obtain SDK corresponding with the SDK version numbers and work as Preceding version.
Optionally, server is according to the patch of SDK revisions and the generation of SDK current versions about the hardware component of equipment The step of packet, can include:Server is by the execution of the execution of SDK current versions and SDK revisions It is compared, obtains the difference letter between the execution of SDK current versions and the execution of SDK revisions The offset information of breath and the different information in the execution of SDK current versions;Then according to different information and partially Move service packs of the information generation about the hardware component of equipment.
Wherein, execution is that (the English full name of dex is dex:Dalvik VM executes, i.e. Android Dalvik performs program) file, which contains all operational orders that hardware component uses and runtime data etc., In program compilation process, Java source files are first compiled into class files, then by dx tools by multiple class files It is integrated into one or more dex files, such file structure enables each class shared data, and it is empty to substantially reduce storage Between, improve operational efficiency.
Optionally, the step of service packs is sent to call unit 303 by server can include:Server slave device reports Status information in or with obtaining device identification in the interactive information of equipment, wherein, which is 303 institute of call unit In the device identification of equipment, can service packs be sent to by call unit 303 according to device identification at this time.
Either, server is obtained in the status information that slave device reports or with obtaining equipment mark in the interactive information of equipment Know, according to the current SDK version numbers of the hardware component of device identification acquisition equipment, then, from the number of storage all devices mark (above equipment mark is contained in target device and identifies) is identified using the target device of the SDK version numbers according to being obtained in library, finally Service packs is sent to target device corresponding with target device mark, and (above equipment includes call unit 303, above equipment packet Contained in target device).
Wherein, target device mark can include one or more device identifications, and target device can include one or more A equipment.Device identification can be for the label of designation equipment uniqueness, for example, can be the character string structure of 16 by length Into so that server can issue service packs, so that equipment is according to service packs pair according to the unique device identification of equipment to equipment Hardware component carries out hot repair and answers.
In some embodiments, call unit 303 is specifically used for:
When the service packs for receiving server transmission, judge whether the service packs received is complete;If so, call generation Class ought to be used;If it is not, service packs about hardware component then is re-downloaded from server, after complete service packs is downloaded to, Call agent application class.
Specifically, after service packs is received, call unit 303 first determines whether the service packs received is complete, example Such as, call unit 303 can by detect service packs receive during whether there are data-transmission interruptions, if there is data biography Defeated interruption, it is determined that the service packs received is imperfect;If do not occur data-transmission interruptions, it is determined that the service packs received is complete It is whole.Either, judge whether the service packs received is complete, and particular content is not construed as limiting here by other means.
When the service packs received is complete, call unit 303 can call agent application class, to repair unit 304 carry out hot repair by agent application class to hardware component answers.
When the service packs received is imperfect, call unit 303 can obtain the mark of the service packs about hardware component Know, and send service packs corresponding with the mark to server and obtain request, reception server is based on service packs and obtains request weight The service packs newly sent, so as to re-download service packs corresponding with the mark of service packs from server.It is downloading to After whole service packs, call unit 303 can call agent application class, to repair unit 304 by agent application class to hard Part component carries out hot repair and answers.
Either, when the service packs received is imperfect, call unit 303 can send service packs to server and receive The information of failure, so that server sends the benefit about hardware component based on the information received to call unit 303 again Fourth packet, so as to re-download service packs corresponding with the mark of service packs from server.Downloading to complete service packs Afterwards, call unit 303 can call agent application class, and hardware component is carried out by agent application class to repair unit 304 Hot repair is answered.
Optionally, the step of call unit 303 re-downloads the service packs about hardware component from server can include:
Judge whether current download time reaches preset times;If so, terminate to the service packs about hardware component What is performed re-downloads operation;If it is not, the service packs about hardware component is then re-downloaded from server.Wherein, preset times It can flexibly be set according to actual conditions, specific value is not construed as limiting here.
Optionally, the step of call unit 303 re-downloads the service packs about hardware component from server can include:
Obtain the time interval between current time stamp and the timestamp for not receiving complete service packs for the first time;During judgement Between be spaced whether be more than prefixed time interval;If so, terminate to re-download behaviour to the service packs execution about hardware component Make;If it is not, the service packs about hardware component is then re-downloaded from server.Wherein, prefixed time interval can be according to reality Situation is flexibly set, and specific value is not construed as limiting here.
Repair unit 304, for being based on agent application class, SDK is updated using service packs, with to hardware component into Row is repaired.
After agent application class is called, agent application class can be based on by repairing unit 304, using receiving about hardware The service packs of component is updated SDK, and hardware component is repaired with realizing, i.e., carries out hot repair to hardware component to realize It is multiple.Wherein, hot repair can repair hardware component by service packs again, and the multiple process of the hot repair is a kind of noninductive in user The process of bug existing for hardware component is repaired in the case of knowing.Also, it avoids and is repaiied in a manner that OTA updates installation kit Multiple bug so that repair only needs to receive the service packs packet that server issues every time, and high degree alleviates server with setting Channel resource between standby occupies the problem of big.
In some embodiments, as shown in fig. 6, repairing unit 304 can include:
Subelement 3041 is obtained, SDK current versions are obtained and by agent application class tune for passing through agent application class With the reparation interface of SDK;
Subelement 3042 is updated, for passing through reparation interface, SDK current versions are updated according to service packs, obtain SDK updates Version;
Subelement 3043 is loaded, for passing through agent application class loading SDK more new versions, to be repaiied to hardware component It is multiple.
Unit 304 is repaired after agent application is called, can hot repair be carried out to hardware component by agent application and answered, specifically Ground, first by acquisition subelement 3041 by SDK version numbers currently used in agent application type acquistion device, and obtain with The corresponding SDK current versions of SDK version numbers.Since agent application class is integrated with the total interface of SDK, agency can be passed through The reparation interface of SDK is called using class, then, by update subelement 3042 by the reparation interface of SDK, according to the pass received SDK current versions are updated in the service packs of hardware component, obtain SDK more new versions.Finally, loading subelement 3043 passes through agency SDK more new versions are loaded using class, are answered with carrying out hot repair to hardware component.
It should be noted that in the prior art, the SDK of hardware component needs to open to the outside world to be connect to each hardware vendor The interface entered, thus the realization control of hardware component is that the calling range of SDK is caused to propose application in each hardware vendor side SDK developer for quotient side is uncontrollable.And in the embodiment of the present invention, it, can be by hardware group by creating agent application The critical path of the SDK of part is taken go back to the corresponding application providers of SDK back from hardware vendor side and is held, and ensures the calling range of SDK SDK developer for application provider side is controllable, and the SDK developer of application provider side can be with direct compilation SDK code building SDK revisions without being linked up with hardware vendor, can avoid and hardware factory when there is urgent bug Quotient is linked up, and is not needed to hardware vendor more and is participated in modification and test, improves the update efficiency of SDK, that is, improve hardware group The hot remediation efficiency and hot repair coverage of part.
Optionally, update subelement 3042 is specifically used for:
By repairing interface, obtaining offset information and different information in service packs and obtaining holding for SDK current versions Line program file;Position to be updated in execution is determined according to offset information;Different information is replaced to be updated The corresponding content in position, obtain SDK more new versions.
Specifically, update subelement 3042 can repair interface by calling and SDK is updated, and first, it is single update son The current SDK version numbers of the hardware component of extraction offset information and different information etc. and taking equipment from service packs of member 3042, SDK current versions are obtained, and obtain the execution of the SDK current versions according to SDK version numbers.Wherein, different information Can obtain the different information between the execution of SDK current versions and the execution of SDK revisions, Offset information can be offset information of the different information in the execution of SDK current versions.
It it should be noted that can with different information there are correspondence, offset information between offset information and different information To be one or more, i.e., can be the correspondence included between an offset information and a different information in service packs, It can also include multiple offset informations correspondence between multiple different informations respectively.
Then, update subelement 3042 determines to treat more in the execution of SDK current versions according to offset information Different information is replaced the corresponding content in position to be updated, obtains SDK more new versions by new position.For example, work as offset information A is the 100th row in the execution of SDK current versions, and when offset information A corresponds to different information a, hardware component Prosthetic device the content of the 100th row in the execution of SDK current versions is replaced with into different information a.It is so that hard The prosthetic device of part component can repair the bug of hardware component in a manner that service packs synthesizes SDK more new versions, and user is noninductive Know repair process, improve user experience.
In some embodiments, it is further included as shown in fig. 7, repairing unit 304:
Subelement 3044 is reported, if different information is replaced the corresponding content in position to be updated for failing, Current SDK is restored to, to SDK current versions, to generate the reparation state of hardware component, and state reporting will be repaired to server.
Specifically, subelement 3042 is updated during different information to be replaced to the corresponding content in position to be updated, Judge whether different information successfully to be replaced the corresponding content in position to be updated.Successfully if different information replacement can be treated more The corresponding content in new position can then obtain SDK more new versions.Different information is replaced to position to be updated if failing Corresponding content, then illustrating the information such as the different information included in service packs and offset information, there may be exceptions, can not be normal It is repaired, i.e., hot repairing failure, at this point, in order to keep current SDK and receive the state consistency before service packs, is reported Subelement 3044 can restore current SDK to SDK current versions.
When fail different information is replaced into the corresponding content in position to be updated when, report subelement 3044 can be with The reparation state of hardware component is generated, and state reporting will be repaired to server, wherein, reparation state can be SDK current More new state, such as can be the state of SDK repairing failures.So that SDK developer obtains repairing for hardware component from server Multiple state, the reason of further determining that repairing failure, and take and change strategy in next step.
From the foregoing, it will be observed that the embodiment of the present invention by acquiring unit 301 obtain equipment in hardware component critical path and Load Software Development Kit SDK;Then, creating unit 302 creates the corresponding agency of hardware component according to critical path and SDK Using class;When the service packs about hardware component for receiving server transmission, agent application is called by call unit 303 Class;It repairs unit 304 and is based on agent application class, SDK is updated using service packs, to be repaired to hardware component.It should Since the agent application class is integrated with the critical path of hardware component and the function of SDK etc. in scheme, the generation can be passed through Class ought to be used, the hardware component of equipment was repaired according to the service packs received, without being carried out by installation kit to SDK Upgrading, saves the floating resources of equipment and improves reliability and convenience that equipment repairs hardware component.
Correspondingly, the embodiment of the present invention also provides a kind of equipment, as shown in figure 9, the equipment can include radio frequency (RF, Radio Frequency) circuit 401, the memory 402, defeated that includes one or more computer readable storage mediums Enter unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) Module 407, including there are one or the processor 408 of more than one processing core and the components such as power supply 409.This field skill Art personnel are appreciated that the device structure shown in Fig. 9 does not form the restriction to equipment, can include more or more than illustrating Few component either combines certain components or different components arrangement.Wherein:
RF circuits 401 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, transfer to one or more than one processor 408 is handled;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 401 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 401 can also by radio communication with network and its He communicates at equipment.The wireless communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storage software program and module, and processor 408 is stored in memory 402 by operation Software program and module, so as to perform various functions application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to equipment (such as audio data, phone directory etc.) etc..In addition, memory 402 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 402 can also include Memory Controller, to provide processor 408 and input unit 403 to memory 402 Access.
Input unit 403 can be used for receiving the number inputted or character information and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, in a specific embodiment In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile Control plate, collect user on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It puts.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can reception processing Order that device 408 is sent simultaneously is performed.It is furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other are defeated Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse It is one or more in mark, operating lever etc..
Display unit 404 can be used for display by information input by user or be supplied to user information and equipment it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.Display Unit 404 may include display panel, optionally, may be used liquid crystal display (LCD, Liquid Crystal Display), Display panel is configured in the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode).Further , touch sensitive surface can cover display panel, when touch sensitive surface is detected on it or after neighbouring touch operation, send processing to Device 408 is followed by subsequent processing device 408 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in fig.9, touch sensitive surface and display panel are the components independent as two to realize input and input Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Equipment may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or the back of the body when equipment is moved in one's ear Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) acceleration Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as equipment The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 406, loud speaker, microphone can provide the audio interface between user and equipment.Voicefrequency circuit 406 can By the transformed electric signal of the audio data received, loud speaker is transferred to, voice signal output is converted to by loud speaker;It is another The voice signal of collection is converted to electric signal by aspect, microphone, and audio data is converted to after being received by voicefrequency circuit 406, then After audio data output processor 408 is handled, through RF circuits 401 to be sent to such as another equipment or by audio data It exports to memory 402 to be further processed.Voicefrequency circuit 406 is also possible that earphone jack, with provide peripheral hardware earphone with The communication of equipment.
WiFi belongs to short range wireless transmission technology, and equipment can help user's transceiver electronics postal by WiFi module 407 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown WiFi module 407, but it is understood that, and must be configured into for equipment is not belonging to, it can not change as needed completely Become in the range of the essence of invention and omit.
Processor 408 is the control centre of equipment, using various interfaces and the various pieces of connection whole mobile phone, is led to It crosses operation or performs the software program being stored in memory 402 and/or module and call and be stored in memory 402 Data perform the various functions of equipment and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor 408 can wrap Include one or more processing cores;Preferably, processor 408 can integrate application processor and modem processor, wherein, it should With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Equipment further includes the power supply 409 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 408 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 409 can also include one or more direct current or AC power, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, equipment can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation In example, the processor 408 in equipment can be corresponding by the process of one or more application program according to following instruction Executable file is loaded into memory 402, and runs the application program being stored in memory 402 by processor 408, from And realize various functions:
Obtain the critical path of hardware component and loading Software Development Kit SDK in equipment;According to critical path and SDK creates the corresponding agent application class of hardware component;When the service packs about hardware component for receiving server transmission, adjust With agent application class;Based on agent application class, SDK is updated using service packs, to be repaired to hardware component.
Optionally, based on agent application class, SDK is updated using service packs, with what is repaired to hardware component Step can include:
SDK current versions are obtained by agent application class and the reparation interface of SDK is called by agent application class;It is logical Reparation interface is crossed, SDK current versions are updated according to service packs, obtain SDK more new versions;SDK is loaded more by agent application class New version, to be repaired to hardware component.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present invention is opened by obtaining the critical path of hardware component and loading software in equipment Send out kit SDK;Then, the corresponding agent application class of hardware component is created according to critical path and SDK;When receiving server During the service packs about hardware component sent, agent application class is called;Based on agent application class, using service packs to SDK into Row update, to be repaired to hardware component.Since the agent application class is integrated with the critical path of hardware component in the program And function of SDK etc., therefore, can by the agent application class, according to the service packs received to the hardware component of equipment into Row is repaired, without being upgraded by installation kit to SDK, saving the floating resources of equipment and improving equipment to hard The reliability and convenience that part component is repaired.
The embodiment of the present invention also provides a kind of server, and as shown in Figure 10, it illustrates involved by the embodiment of the present invention The structure diagram of server, specifically:
The server can include one or processor 501, one or more meters of more than one processing core The components such as memory 502, power supply 503 and the input unit 504 of calculation machine readable storage medium storing program for executing.Those skilled in the art can manage It solves, the server architecture shown in Figure 10 does not form the restriction to server, can include than illustrating more or fewer portions Part either combines certain components or different components arrangement.Wherein:
Processor 501 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part is stored in memory by running or performing the software program being stored in memory 502 and/or module and call Data in 502, the various functions of execute server and processing data, so as to carry out integral monitoring to server.Optionally, locate Reason device 501 may include one or more processing cores;Preferably, processor 501 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 501.
Memory 502 can be used for storage software program and module, and processor 501 is stored in memory 502 by operation Software program and module, so as to perform various functions application and data processing.Memory 502 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to server Deng.In addition, memory 502 can include high-speed random access memory, nonvolatile memory can also be included, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide access of the processor 501 to memory 502.
Server further includes the power supply 503 powered to all parts, it is preferred that power supply 503 can pass through power management system System is logically contiguous with processor 501, so as to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.Power supply 503 can also include one or more direct current or AC power, recharging system, power failure monitor electricity The random components such as road, power supply changeover device or inverter, power supply status indicator.
The server may also include input unit 504, which can be used for receiving the number of input or character letter Breath and to generate the keyboard related with user setting and function control, mouse, operating lever, optics or trace ball signal defeated Enter.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, Processor 501 in server can according to following instruction, by the process of one or more application program is corresponding can File is performed to be loaded into memory 502, and the application program being stored in memory 502 is run by processor 501, so as to Realize various functions, it is as follows:
It receives the SDK revisions for the hardware component about equipment that client uploads and obtains the hardware group of equipment The corresponding SDK current versions of part;According to the patch of SDK revisions and the generation of SDK current versions about the hardware component of equipment Packet;The service packs is sent to equipment.
Optionally, the step of SDK revisions for receiving the hardware component about equipment that client uploads, can include: The status information that receiving device reports, and the status information is monitored;When the hardware component for monitoring equipment has exception When, the abnormal prompt information of the hardware component about equipment is exported, client is received and is repaiied based on the SDK that abnormal prompt information uploads Correcting sheet.
Optionally, the step of hardware component corresponding SDK current versions for obtaining equipment, can include:What slave device reported In status information or with obtaining device identification in the interactive information of equipment, the hardware component that equipment is obtained according to device identification is current SDK version numbers, from the database of storage SDK versions, obtain corresponding with SDK version numbers SDK current versions.
Optionally, according to the step of SDK revisions and the generation of SDK current versions about the service packs of the hardware component of equipment Suddenly can include:The execution of SDK current versions and the execution of SDK revisions;By SDK current versions The execution of execution and SDK revisions compared, obtain the execution program text of SDK current versions Different information and the different information between the execution of part and SDK revisions are in the execution of SDK current versions Offset information in program file;According to the service packs of different information and offset information generation about the hardware component of equipment.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the detailed description of the restorative procedure above with respect to hardware component, details are not described herein again.
The embodiment of the present invention also provides a kind of repair system of hardware component, and the repair system of the hardware component can include The prosthetic device of any hardware component that the embodiment of the present invention is provided, the wherein prosthetic device of the hardware component specifically can be with It is integrated in above equipment, for example, can be as follows:
Equipment, for obtaining the critical path of hardware component and loading Software Development Kit SDK in equipment;According to Critical path and SDK create the corresponding agent application class of hardware component;When receive server transmission about hardware component During service packs, agent application class is called;Based on agent application class, SDK is updated using service packs, with to hardware component into Row is repaired.
The equipment can be also used for obtaining SDK current versions by agent application class and be called by agent application class The reparation interface of SDK;By repairing interface, SDK current versions are updated according to service packs, obtain SDK more new versions;Pass through agency SDK more new versions are loaded using class, to be repaired to hardware component.
Optionally, the repair system of the hardware component can also include server, specifically can be as follows:
Server sets for receiving the SDK revisions of the hardware component about equipment of client upload and obtaining The corresponding SDK current versions of standby hardware component;The hardware about equipment is generated according to SDK revisions and SDK current versions The service packs of component;The service packs is sent to equipment.
The server can be also used for the status information that receiving device reports, and the status information be monitored;Work as prison When the hardware component for measuring equipment has abnormal, the abnormal prompt information of the hardware component about equipment is exported, receives client The SDK revisions uploaded based on abnormal prompt information.
The server can be also used for generating the hardware component about equipment according to SDK revisions and SDK current versions Service packs the step of can include:The execution of SDK current versions and the execution of SDK revisions; The execution of SDK current versions and the execution of SDK revisions are compared, obtain the current versions of SDK Different information and the different information between this execution and the execution of SDK revisions is in SDK Offset information in the execution of current version;The hardware group about equipment is generated according to different information and offset information The service packs of part.
The specific implementation of more than equipment and server can be found in the embodiment of front, and details are not described herein.
Since the repair system of the hardware component can be including any hardware component that the embodiment of the present invention is provided Prosthetic device, it is thereby achieved that achieved by the prosthetic device of any hardware component that the embodiment of the present invention is provided Advantageous effect refers to the embodiment of the detailed description of restorative procedure above for hardware component, and details are not described herein.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with By instructing to complete or relevant hardware being controlled to complete by instructing, which can be stored in one and computer-readable deposit In storage media, and loaded and performed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be handled Device is loaded, to perform the step in the restorative procedure of any hardware component that the embodiment of the present invention provided.It for example, should Instruction can perform following steps:
Obtain the critical path of hardware component and loading Software Development Kit SDK in equipment;According to critical path and SDK creates the corresponding agent application class of hardware component;When the service packs about hardware component for receiving server transmission, adjust With agent application class;Based on agent application class, SDK is updated using service packs, to be repaired to hardware component.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which can include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any hardware group that the embodiment of the present invention is provided can be performed Step in the restorative procedure of part, it is thereby achieved that the reparation side of any hardware component that the embodiment of the present invention is provided Advantageous effect achieved by method refers to the embodiment of front, and details are not described herein.
A kind of restorative procedure of hardware component, device, system and the storage medium provided above the embodiment of the present invention Be described in detail, specific case used herein is expounded the principle of the present invention and embodiment, more than it is real The explanation for applying example is merely used to help understand the method and its core concept of the present invention;Meanwhile to those skilled in the art, according to According to the thought of the present invention, there will be changes in specific embodiments and applications, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (14)

1. a kind of restorative procedure of hardware component, which is characterized in that including:
Obtain the critical path of hardware component and loading Software Development Kit SDK in equipment;
The corresponding agent application class of the hardware component is created according to the critical path and the SDK;
When the service packs about the hardware component for receiving server transmission, the agent application class is called;
Based on the agent application class, the SDK is updated using the service packs, to be repaiied to the hardware component It is multiple.
2. the restorative procedure of hardware component according to claim 1, which is characterized in that described to be based on the agent application Class is updated the SDK using the service packs, to include the step of reparation to the hardware component:
SDK current versions are obtained by the agent application class and the reparation of the SDK is called by the agent application class Interface;
By the reparation interface, the SDK current versions are updated according to the service packs, obtain SDK more new versions;
The SDK more new versions are loaded by the agent application class, to be repaired to the hardware component.
3. the restorative procedure of hardware component according to claim 2, which is characterized in that it is described by the reparation interface, The step of updating the SDK current versions according to the service packs, obtain SDK more new versions includes:
By the reparation interface, obtain offset information and different information in the service packs and to obtain the SDK current The execution of version;
Position to be updated in the execution is determined according to the offset information;
The different information is replaced into the corresponding content in the position to be updated, obtains SDK more new versions.
4. the restorative procedure of hardware component according to claim 3, which is characterized in that described to replace the different information During the corresponding content in the position to be updated, the method further includes:
The different information is replaced into the corresponding content in the position to be updated if failing, current SDK is restored To the SDK current versions, the reparation state of the hardware component is generated, and by the state reporting of repairing to the service Device.
5. the restorative procedure of hardware component according to any one of claims 1 to 4, which is characterized in that described to receive During the service packs about the hardware component that server is sent, the step of calling the agent application class, includes:
When the service packs for receiving server transmission, judge whether the service packs received is complete;
If so, call the agent application class;
If it is not, then re-downloading service packs about hardware component from the server, after complete service packs is downloaded to, adjust With the agent application class.
6. the restorative procedure of hardware component according to any one of claims 1 to 4, which is characterized in that described in the basis After critical path and the SDK create the step of hardware component corresponding agent application class, the method further includes:
When the electricity of the equipment is less than default power threshold, calls the agent application class and answered by the agency The electricity in the critical path of the hardware component is called to adjust path with class;
Release default memory in path is adjusted by the electricity.
7. a kind of prosthetic device of hardware component, which is characterized in that including:
Acquiring unit, for obtaining the critical path of hardware component and loading Software Development Kit SDK in equipment;
Creating unit, for creating the corresponding agent application class of the hardware component according to the critical path and the SDK;
Call unit, for when receiving the service packs about the hardware component that server is sent, calling the agency Using class;
Unit is repaired, for being based on the agent application class, the SDK is updated using the service packs, with to described Hardware component is repaired.
8. the prosthetic device of hardware component according to claim 7, which is characterized in that the reparation unit includes:
Subelement is obtained, for obtaining SDK current versions by the agent application class and passing through the agent application class tune With the reparation interface of the SDK;
Subelement is updated, for by the reparation interface, updating the SDK current versions according to the service packs, obtaining SDK More new version;
Subelement is loaded, for loading the SDK more new versions by the agent application class, to be carried out to the hardware component It repairs.
9. the prosthetic device of hardware component according to claim 8, which is characterized in that the update subelement is specifically used In:
By the reparation interface, obtain offset information and different information in the service packs and to obtain the SDK current The execution of version;
Position to be updated in the execution is determined according to the offset information;
The different information is replaced into the corresponding content in the position to be updated, obtains SDK more new versions.
10. the prosthetic device of hardware component according to claim 9, which is characterized in that the reparation unit further includes:
Subelement is reported, if the different information is replaced the corresponding content in the position to be updated for failing, Current SDK restores to, to the SDK current versions, to generate the reparation state of the hardware component, and by the reparation state Report to the server.
11. according to the prosthetic device of claim 7 to 10 any one of them hardware component, which is characterized in that described to call list Member is specifically used for:
When the service packs for receiving server transmission, judge whether the service packs received is complete;
If so, call the agent application class;
If it is not, then re-downloading service packs about hardware component from the server, after complete service packs is downloaded to, adjust With the agent application class.
12. according to the prosthetic device of claim 7 to 10 any one of them hardware component, which is characterized in that the hardware group The prosthetic device of part further includes:
Path call unit, for when the electricity of the equipment is less than default power threshold, calling the agent application class, with And the electricity in the critical path of the hardware component is called to adjust path by the agent application class;
Releasing unit adjusts the default memory of path release for passing through the electricity.
13. a kind of repair system of hardware component, which is characterized in that the repair system of the hardware component includes server and sets Standby, the equipment includes the prosthetic device such as claim 7 to 12 any one of them hardware component;Wherein,
The server, for receiving the SDK revisions of the hardware component about equipment of client upload and obtaining institute State the corresponding SDK current versions of hardware component of equipment;According to the SDK revisions and the generation of SDK current versions about institute State the service packs of the hardware component of equipment;The service packs is sent to the equipment.
14. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in the restorative procedure of 1 to 6 any one of them hardware component is required with perform claim.
CN201810034876.6A 2018-01-15 2018-01-15 Method, device and system for repairing hardware component and storage medium Active CN108241500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810034876.6A CN108241500B (en) 2018-01-15 2018-01-15 Method, device and system for repairing hardware component and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810034876.6A CN108241500B (en) 2018-01-15 2018-01-15 Method, device and system for repairing hardware component and storage medium

Publications (2)

Publication Number Publication Date
CN108241500A true CN108241500A (en) 2018-07-03
CN108241500B CN108241500B (en) 2022-02-01

Family

ID=62699619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810034876.6A Active CN108241500B (en) 2018-01-15 2018-01-15 Method, device and system for repairing hardware component and storage medium

Country Status (1)

Country Link
CN (1) CN108241500B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989443A (en) * 2018-07-31 2018-12-11 浙江每日互动网络科技股份有限公司 Method and system of the push server to mobile terminal PUSH message
CN109933356A (en) * 2019-03-26 2019-06-25 杭州云英网络科技有限公司 The hot replacement method of remote agent class and device
CN110287049A (en) * 2019-05-22 2019-09-27 百度在线网络技术(北京)有限公司 Data processing method, device and storage medium
CN110297666A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, system and storage medium
CN111009112A (en) * 2019-12-24 2020-04-14 杭州涂鸦信息技术有限公司 Infrared control method based on audio equipment and system and device thereof
CN111240767A (en) * 2020-02-04 2020-06-05 北京字节跳动网络技术有限公司 Component and page loading method and device, electronic equipment and storage medium
CN112286548A (en) * 2020-10-16 2021-01-29 锐捷网络股份有限公司 Patch upgrading method and device, electronic equipment and storage medium
CN112965733A (en) * 2021-03-22 2021-06-15 云账户技术(天津)有限公司 Component library updating method and device, electronic equipment and readable storage medium
WO2021129065A1 (en) * 2019-12-23 2021-07-01 华为技术有限公司 Upgrading method and apparatus
CN113961226A (en) * 2021-10-20 2022-01-21 北京字节跳动网络技术有限公司 Software development kit repairing method, terminal, server and equipment
US20230108838A1 (en) * 2021-10-04 2023-04-06 Dell Products, L.P. Software update system and method for proxy managed hardware devices of a computing environment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493871B1 (en) * 1999-09-16 2002-12-10 Microsoft Corporation Method and system for downloading updates for software installation
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
CN101154187A (en) * 2006-09-29 2008-04-02 英特尔公司 Method and apparatus for run-time in-memory patching of code from a service processor
CN105824623A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 Android application hotfix method and device
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system
CN106681749A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Local code patch updating method and device based on Android platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493871B1 (en) * 1999-09-16 2002-12-10 Microsoft Corporation Method and system for downloading updates for software installation
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
CN101154187A (en) * 2006-09-29 2008-04-02 英特尔公司 Method and apparatus for run-time in-memory patching of code from a service processor
CN106681749A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Local code patch updating method and device based on Android platform
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system
CN105824623A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 Android application hotfix method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989443B (en) * 2018-07-31 2021-02-19 每日互动股份有限公司 Method and system for pushing message to mobile terminal by push server
CN108989443A (en) * 2018-07-31 2018-12-11 浙江每日互动网络科技股份有限公司 Method and system of the push server to mobile terminal PUSH message
CN109933356A (en) * 2019-03-26 2019-06-25 杭州云英网络科技有限公司 The hot replacement method of remote agent class and device
CN109933356B (en) * 2019-03-26 2022-06-03 杭州云毅网络科技有限公司 Remote proxy hot replacement method and device
CN110287049A (en) * 2019-05-22 2019-09-27 百度在线网络技术(北京)有限公司 Data processing method, device and storage medium
CN110297666A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, system and storage medium
WO2021129065A1 (en) * 2019-12-23 2021-07-01 华为技术有限公司 Upgrading method and apparatus
CN111009112A (en) * 2019-12-24 2020-04-14 杭州涂鸦信息技术有限公司 Infrared control method based on audio equipment and system and device thereof
CN111240767A (en) * 2020-02-04 2020-06-05 北京字节跳动网络技术有限公司 Component and page loading method and device, electronic equipment and storage medium
CN112286548A (en) * 2020-10-16 2021-01-29 锐捷网络股份有限公司 Patch upgrading method and device, electronic equipment and storage medium
CN112965733A (en) * 2021-03-22 2021-06-15 云账户技术(天津)有限公司 Component library updating method and device, electronic equipment and readable storage medium
US20230108838A1 (en) * 2021-10-04 2023-04-06 Dell Products, L.P. Software update system and method for proxy managed hardware devices of a computing environment
CN113961226A (en) * 2021-10-20 2022-01-21 北京字节跳动网络技术有限公司 Software development kit repairing method, terminal, server and equipment
CN113961226B (en) * 2021-10-20 2023-11-07 抖音视界有限公司 Software development kit repairing method, terminal, server and equipment

Also Published As

Publication number Publication date
CN108241500B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN108241500A (en) A kind of restorative procedure of hardware component, device, system and storage medium
CN105490919B (en) Message cancelling method and device
CN104915241B (en) A kind of virtual machine (vm) migration control method and device
CN107992308B (en) Plug-in management method for android terminal application program
CN106502703B (en) Function calling method and device
CN106502906B (en) A kind of method and apparatus of test application program
CN104965721A (en) Method and apparatus for updating an application
CN109791497B (en) Method, device and terminal for executing hot patch
CN106775827A (en) A kind of application program update method and device, computer equipment
CN103473163A (en) Application program detection method and device
CN103544033A (en) Method, device and associated equipment for rolling back application program
CN104965722B (en) A kind of method and device of display information
CN114327688B (en) Data processing method, frame, storage medium and terminal equipment based on micro front end
CN114077423A (en) Airport APP development container architecture based on mobile cross-platform
CN110058850A (en) A kind of development approach of application, device and storage medium
CN104965716A (en) Icon updating method, client apparatus, and terminal apparatus
CN106953898B (en) Method and device for acquiring software package
CN106713608A (en) Application function state modifying method and apparatus, and terminal
CN106960155A (en) The update method and device of a kind of basic input output system
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN105227606B (en) Application program adaptation method and device
CN106850800A (en) Method and client that a kind of download path determines
CN109688427A (en) A kind of smart television and its system repair
CN105610878A (en) Directory uploading method, data releasing method, terminal and server
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium

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