CN105930179A - Method and apparatus for upgrading transaction terminal - Google Patents

Method and apparatus for upgrading transaction terminal Download PDF

Info

Publication number
CN105930179A
CN105930179A CN201510929347.9A CN201510929347A CN105930179A CN 105930179 A CN105930179 A CN 105930179A CN 201510929347 A CN201510929347 A CN 201510929347A CN 105930179 A CN105930179 A CN 105930179A
Authority
CN
China
Prior art keywords
variable component
transaction terminal
information
upgrade
updated
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.)
Pending
Application number
CN201510929347.9A
Other languages
Chinese (zh)
Inventor
张少飞
王琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201510929347.9A priority Critical patent/CN105930179A/en
Publication of CN105930179A publication Critical patent/CN105930179A/en
Priority to PCT/CN2016/108918 priority patent/WO2017101720A1/en
Priority to TW105140583A priority patent/TW201721417A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44573Execute-in-place [XIP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and apparatus for upgrading a transaction terminal. The method comprises the steps of reporting an upgrade request of a transaction terminal to a server, the upgrade request including identifiers of variable components in the transaction terminal; receiving update program information sent by the server, the update program information including upgrade information of the variable components needs to upgrade, wherein the number of the variable components, included in the update program information, the transaction terminal needs to upgrade is not greater than the number of identifiers, in the upgrade request, of the variable components in the transaction terminal included; and updating the corresponding variable components according to the upgrade information included in the update program information. The embodiment of the invention achieves partial upgrade of a transaction terminal system, the upgrade process is convenient and flexible, and the amount of download data is saved.

Description

A kind of method and device of transaction terminal upgrading
Technical field
The present invention relates to intelligent payment terminal field, particularly relate to method and the dress of the upgrading of a kind of transaction terminal Put.
Background technology
POS (Point of sales, point-of-sale terminal) is that one is furnished with bar code or optical character code (Optical Character recognition, be called for short OCR) terminal reader, have cash or amount of bartering cashier merit Can, by transaction terminal, consumer can interact with bank.Currently, transaction terminal is the most extensively used In retail business and the trading processing of service trade and record, as bank, department stores, supermarket, apparel industry, Medical industry (hospital, pharmacy), amusement etc. produce the place of consumption and are required for using transaction terminal.Transaction The application of terminal makes enterprise can simplify supply chain, promote self-service transaction and reduce deployment and safeguard zero Selling the cost of the infrastructure of link, transaction terminal is to have become the indispensable Cash collecting equipment of retailer.
As current almost all of software all can be upgraded renewal, the system program of transaction terminal is also required to upgrading And maintenance.Upgrading and maintenance for transaction terminal at present is mainly by artificial at trade company's onsite application computer Serial ports has been downloaded, it is impossible to enough ensure that transaction terminal program updates ageing.And in prior art In, the system program upgrading to transaction terminal is all to update whole system program, and renewal process is complicated, downloads Data volume is bigger.
Summary of the invention
The present invention carries a kind of transaction terminal upgrade method and device, whole for transaction in order to solve in prior art The upgrading of end updates the problem that transaction terminal must be carried out whole updating.
The embodiment of the present invention provides the method for a kind of transaction terminal upgrading, including: report transaction eventually to server The upgrade request of end, wherein said upgrade request includes the mark of the variable component in described transaction terminal;Connect Receiving the renewal program information that server issues, wherein said renewal program information includes described transaction terminal needs The upgrade information of the variable component of upgrading, the described transaction terminal that described renewal program information includes needs to rise It is described that the quantity of described variable component of level is not more than that described upgrade request includes in described transaction terminal The quantity of the mark of variable component;The upgrade information included according to described renewal program information, to corresponding institute State variable component to be updated.
In the above embodiment of the present invention, transaction terminal sends upgrade request to server, and accepts under server The renewal program information sent out, updates the liter comprising the variable component needing upgrading in transaction terminal in program information Level information, according to described renewal program information, is carried out the variable component in corresponding described transaction terminal more Newly, it is achieved that the part upgrading of transaction terminal system, is not whole system or firmware upgrade so that upgrading Process is convenient flexibly, has saved download data volume.
Further, after the renewal program information that described reception server issues, according to described more new procedures The upgrade information of the described variable component of the described transaction terminal needs upgrading that information includes, described in corresponding Before variable component is updated, also include:
Determine that the described renewal program information received passes through integrity verification.
In the above embodiment of the present invention, described renewal program information is carried out integrity and/or can test by tamper Card, it is ensured that the described renewal program information that transaction terminal receives is not destroyed at intermediate line link, and It was not tampered with, then ensure that the variable component in described transaction terminal was according to described renewal program information The normal use of described transaction terminal after being updated, and ensure that the safety of described transaction terminal.
Further, described upgrade request, also include:
The version number of each variable component in described transaction terminal information and described transaction terminal.
In the above embodiment of the present invention, the server of correspondence can be searched according to described transaction terminal information, protect Demonstrate,prove described transaction terminal correct with the connection of server, and according to the version of variable component each in described terminal The version number of corresponding variable assembly in described server is contrasted by this number, in order to obtain need update can Become assembly.
Further, the upgrade information included according to described renewal program information, to corresponding described changeable set Part is updated, including:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
In the above embodiment of the present invention, in receiving described renewal program information, search the upgrading of variable component Information, and according to the download address of upgrade information, send, to server, the request of download, it is ensured that described variable The corresponding relation of the more new procedures of variable component described in assembly and server.
The present invention provides a kind of method that transaction terminal is upgraded, including: report receiving described transaction terminal Described upgrade request after, according to the variable component in the described transaction terminal that described upgrade request includes Mark, determines corresponding described variable component;Needs are selected to be updated from all variable component determined Variable component;The upgrade information of the variable component being updated by needs is sent to institute by updating program information State transaction terminal, so that described transaction terminal is according to the upgrade information of variable component, to corresponding described variable Assembly is updated.
In the above embodiment of the present invention, server is after receiving the upgrade request of transaction terminal, according to reporting The mark of variable component, search corresponding variable component, and according to the described variable component reported, really Calmly need the variable component being updated, the upgrade information of the variable component needing to update determined is passed through more New procedures information is sent to described transaction terminal, and the embodiment of the present invention achieves the part liter of transaction terminal system Level, is not whole system or firmware upgrade so that escalation process is convenient flexibly, has saved download data volume.
Further, described select to need from all variable component determined the variable component that is updated it After, it would be desirable to the upgrade information of the variable component being updated is sent to described transaction by updating program information Before terminal, also include:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
In the above embodiment of the present invention, each needs are carried out the download address composition letter of the variable component upgraded Breath list so that described transaction terminal can obtain downloading file by the download address in information list, real Show the convenience of upgrading.
The embodiment of the present invention provides a kind of transaction terminal update device, including: report unit, for service Device reports the upgrade request of transaction terminal, wherein said upgrade request to include the changeable set in described transaction terminal The mark of part;Receive unit, for receiving the renewal program information that server issues, wherein said renewal journey Sequence information includes the upgrade information of the variable component that described transaction terminal needs upgrade, described renewal program information The quantity of the described variable component of the described transaction terminal needs upgrading included is not more than described upgrade request Include the quantity of the mark of described variable component in described transaction terminal;Updating block, for according to institute State and update the upgrade information that program information includes, corresponding described variable component is updated.
Further, described reception unit, it is additionally operable to:
Determine that the described renewal program information received passes through integrity verification.
Further, described upgrade request, also include:
The version number of each variable component in described transaction terminal information and described transaction terminal.
Further, described updating block, specifically for:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
The embodiment of the present invention provides a kind of transaction terminal update device, comprises determining that unit, for receiving After the described upgrade request that described transaction terminal reports, the described transaction included according to described upgrade request The mark of the variable component in terminal, determines corresponding described variable component;Select unit, for from determining All variable component select the variable component needing to be updated;Transmitting element, for carrying out needs more The upgrade information of new variable component is sent to described transaction terminal by updating program information, so that described friendship Easily terminal is according to the upgrade information of variable component, is updated corresponding described variable component.
Further, described selection unit, it is additionally operable to:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to briefly introduce, it should be apparent that, the accompanying drawing in describing below is only the present invention's Some embodiments, from the point of view of those of ordinary skill in the art, in the premise not paying creative work Under, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
The schematic flow sheet of the first transaction terminal upgrade method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the second transaction terminal upgrade method that Fig. 2 provides for the embodiment of the present invention;
The structural representation of a kind of POS upgrade method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the first transaction terminal update device that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the second transaction terminal update device that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this Bright it is described in further detail, it is clear that described embodiment is only some embodiments of the present invention, Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out all other embodiments obtained under creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention reports the upgrade request of transaction terminal, wherein said upgrade request to include to server The mark of the variable component in described transaction terminal;Receive the renewal program information that server issues, Qi Zhongsuo State the upgrade information updating the variable component that program information includes that described transaction terminal needs upgrade, described renewal The quantity of the described variable component of the described transaction terminal needs upgrading that program information includes is not more than described Upgrade request includes the quantity of the mark of the described variable component in described transaction terminal;According to described renewal The upgrade information that program information includes, is updated corresponding described variable component.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
The embodiment of the present invention provides a kind of transaction terminal upgrade method, as it is shown in figure 1, wherein:
Step S101, reports the upgrade request of transaction terminal, wherein said upgrade request to include institute to server State the mark of variable component in transaction terminal;
Step S102, receives the renewal program information that server issues, and wherein said renewal program information includes Described transaction terminal needs the upgrade information of the variable component of upgrading, the institute that described renewal program information includes The quantity of the described variable component stating transaction terminal needs upgrading is not more than described upgrade request and includes described The quantity of the mark of the described variable component in transaction terminal;
Step S103, the upgrade information included according to described renewal program information, to corresponding described changeable set Part is updated.
In the above embodiment of the present invention, variable component refers to the group can being updated in transaction terminal Part, such as, the assembly in transaction terminal system, operation of swiping the card processed, or IC-card is read The assembly taken is all variable component, except variable component, also has fixation kit in transaction terminal system, fixing Assembly is exactly the assembly being made without in transaction terminal system updating, for instance, it is possible to just support transaction terminal The assembly of normally opened shutdown just can be divided into fixation kit.
In the above embodiment of the present invention, described transaction terminal can be intelligence point-of-sale terminal POS, also Can be the ATM (Automatic Teller Machine, ATM) in bank, it is also possible to be to set Putting and draw the OK a karaoke club POS in different convenience stores, in the present invention, described transaction terminal refers to intelligence POS.
Wherein, in step S101, described upgrade request refers to after transaction terminal is started shooting, and transaction is eventually The class request needing to carry out system update that the system of end sends to server, comprises in described upgrade request There is the identification number of all variable component in described transaction terminal, can be No. ID of all variable component.
Wherein, in step S101, described upgrade request, also include:
The version number of each variable component in described transaction terminal information and described transaction terminal.
In the above embodiment of the present invention, described server can be attached with a transaction terminal, it is possible to To be attached with multiple transaction terminals, if server and a transaction terminal are attached, then in server Preserve is the variable component of corresponding transaction terminal;
If described server is attached with multiple transaction terminals, then transaction terminal reports institute to described server State the mark ID that transaction terminal information can be transaction terminal, so that server is according to described transaction terminal Mark ID search corresponding variable component region.
The version number of variable component all in transaction terminal is reported server, so that server is receiving During upgrade request, according to No. ID lookup variable component of variable component, then according to the variable component reported Version number, contrast with the version number preserving variable component in the server, if inconsistent, then say This variable component bright needs to be updated.
Wherein, in step S101, report cycle can be pre-set, such as, will arrange the update cycle Be a week, then transaction terminal will be attached with described server at a special time weekly, and And report upgrade request, can the most automatically adjust the length of update cycle in force, it is also possible to people Work is arranged.
Wherein, in step s 102, the described transaction terminal that described renewal program information includes needs to rise It is described that the quantity of described variable component of level is not more than that described upgrade request includes in described transaction terminal The quantity of the mark of variable component.
In the above embodiment of the present invention, transaction terminal includes N number of variable component, and transaction terminal is to service Device reports mark ID of N number of variable component, the version information of N number of variable component, and server is right in lookup When answering the ID of variable component, contrasting two version informations of same variable component, one is transaction terminal The version information preserved, another is the version information preserved in server, if two version informations are inconsistent, Then illustrate that this variable component needs to update;If two versions are consistent, then it is assumed that this variable component need not update.
So in embodiments of the present invention, transaction terminal reports the upgrade request of N number of variable component, return The more new procedures number updating the variable component that program information includes is no more than N number of, can be less than N Individual, if less than N number of, then explanation transaction terminal there are some variable component temporarily to need not update.
In step s 102, after the renewal program information that described reception server issues, according to described more The upgrade information of the described variable component of the described transaction terminal needs upgrading that new procedures information includes, to correspondence Described variable component be updated before, also include:
Determine that the described renewal program information received passes through integrity verification.
In the above embodiment of the present invention, described renewal program information includes the MD5 of described variable component Value, MD5 (Message Digest Algorithm, Message Digest Algorithm 5) is the most extensively should Hash algorithm, hash algorithm, be called again hash algorithm, hash algorithm is by the binary system of random length Value is mapped as the binary value of shorter regular length, and this little binary value is referred to as cryptographic Hash.MD5 It is a kind of unidirectional 128 hash scheme meeting industrial standard, RSA Data Security Inc develops, MD5 Effect be to allow Large Copacity information being become a kind of guarantor with " compression " before digital signature software signature private key Close form, is transformed into the byte serial of a random length hexadecimal number word string of one fixed length, MD5 By whole file as a big text message, by its irreversible character string mapping algorithm, create this Individual unique MD5 informative abstract.It is used for the authentication of encryption by various point-to-point protocols supply commercial city.
In embodiments of the present invention, transaction terminal, as a example by intelligence POS, explains server to intelligence POS send variable component more new procedures, then utilize MD5 value to server to intelligence POS send out The process updating process integrity checking of the variable component sent is:
Server encodes to the more new procedures MD5 of the variable component that intelligence POS sends, service The summary info digest of more new procedures and the more new procedures after MD5 is encoded is sent by device together Giving intelligence POS, therefore, the more new procedures of the variable component that server sends to intelligence POS is by two Part composition, a part is the more new procedures of original variable component, and some is to compile through MD5 The summary info of code;
Intelligence POS have received server push the more new procedures of variable component, first separate by The more new procedures of variable component dimerous, intelligence POS is by MD5 computing, according to receive The content of the more new procedures of variable component, recalculates the summary info of the more new procedures of this variable component, Summary info and the summary info received that oneself is calculated by intelligence POS compare, if compared Result is the same, then it is assumed that the more new procedures of this envelope variable component way in the transmission is not modified, otherwise Words, the more new procedures of variable component is necessarily modified in transmitting procedure, and therefore content is insincere.
In step s 103, the upgrade information included according to described renewal program information, described in corresponding Variable component is updated, including:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
In the above embodiment of the present invention, according to can in transaction terminal when transaction terminal receives renewal program information The mark ID becoming assembly searches renewable variable component corresponding in updating program information, more new procedures Information includes mark ID of variable component, MD5 value, also includes the download address of variable component, transaction Terminal searches the variable component needing to update according to the ID of variable component, according to corresponding variable of variable component The download address of assembly downloads the more new procedures of variable component.
Wherein, in step s 103, at the upgrade information included according to described renewal program information, to right Before the described variable component answered is updated, also include that transaction terminal and server carry out bi-directional verification.
Transaction terminal sends a terminal authentication in plain text to long-distance management system;Key plain is write by server Terminal authentication in plain text, thus obtains first terminal authentication data;Encrypt with master control key for key plain, from And obtain key ciphertext;Server is bright together with a system authentication by first terminal authentication data, key ciphertext Literary composition is sent to transaction terminal;Transaction terminal utilizes master control key to resolve key ciphertext, obtains key plain;Will The terminal authentication that key plain write preserves self in plain text, thus obtains the second terminal authentication data;Judge One terminal authentication data and the second terminal authentication data are the most consistent;If consistent, transaction terminal generates first Authentication result is that transaction terminal certification is passed through;
Transaction terminal by key plain writing system certification in plain text, obtains the first system authentication data;By first System authentication data are sent to server together with the first authentication result;Key plain is write self and protects by server The system authentication deposited in plain text, obtains second system authentication data, it is judged that the first system authentication data with second is System authentication data is the most consistent, if unanimously, then server generates the second authentication result is that server authentication leads to Cross.
Optionally, in master control key the present embodiment, described master control key is download-maintenance key (Download Master Key, is called for short DMK);Described key plain for download working key (Download Work Key, It is called for short DWK);Described key ciphertext is key plain encrypted for DMK, is denoted as DWK-1;Described end End certification is expressed as T-DATA in plain text, for being authenticated transaction terminal.
The present invention provides the upgrade method of a kind of transaction terminal, as in figure 2 it is shown, wherein:
Step S201, after receiving the described upgrade request that described transaction terminal reports, according to described upgrading The mark of the variable component in the described transaction terminal that request includes, determines corresponding described variable component;
Step S202, selects the variable component needing to be updated from all variable component determined;
Step S203, it would be desirable to the upgrade information of the variable component being updated sends by updating program information To described transaction terminal, so that described transaction terminal is according to the upgrade information of variable component, described in corresponding Variable component is updated.
Wherein, in step s 201, identification information and the changeable set of variable component are preserved in the server The relation list that part is corresponding, variable by the identification information of variable component relation list in the server is searched The information of assembly, and call variable component information.
Wherein, in step S202, described from all variable component determined select needs be updated Variable component after, it would be desirable to the upgrade information of the variable component being updated by update program information send out Before giving described transaction terminal, also include:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
In the above embodiment of the present invention, server receives the mark of all variable component that transaction terminal reports No. ID and version number, search the variable component of correspondence, and root in the server according to the ID of variable component The version number of the variable component reported according to transaction terminal contrasts with the version number of variable component in server, If version number is inconsistent, then it is assumed that this variable component is the variable component needing to update, by All Activity terminal In variable component all according to above-mentioned steps carry out screening contrast, select be there is a need to upgrading changeable set Part, and the variable component needing renewal for, the upgrade information of described assembly can be pushed by server To transaction terminal, wherein, upgrade information includes mark ID of variable component, the MD5 value of variable component, And the download address of variable component.
In the above embodiment of the present invention, server finds the version of variable component by the ID of variable component This information, when having contrasted the version of variable component and having determined that variable component needs to update, by can in server Become in the server address information write upgrade information that the version of assembly is corresponding, optionally, by can in server Becoming server address corresponding to component version uses uniform resource position mark URL to be described, the lattice of URL Formula is made up of three parts, agreement, has the host ip of resource and the specific address of host resource.
Such as download address be file//: ftp.linkwan.com/upgrades/files/document1.apk, mean that Download server is linkwan, and downloading file directory is variable component document1 of upgrades/files The download address of more new procedures.
Wherein, in step S203, described server is receiving transaction terminal according to can in upgrade information After the renewal application request of the corresponding variable assembly becoming the download address transmission of assembly, server can be by changeable set The more new procedures of part is sent to transaction terminal with the form of application program.
Optionally, deposit the application program of complete variable component more new procedures in the server, or, There is code encoder in the server, and the script information of more new procedures corresponding to all variable component, Server receives the corresponding variable that transaction terminal sends according to the download address of variable component in upgrade information After the renewal application request of assembly, code encoder is utilized to be compiled by the script information of the more new procedures of variable component It is translated into application program, is pushed to transaction terminal.
Optionally, the operating system of described transaction terminal is android system, the lattice of the most described application program Formula is APK.
Optionally, in embodiments of the present invention, it is possible to use script information XML is carried out by linux system Process, first, the file of variable component is packaged in asset file, variable component more new procedures Script information is packaged into resource file, generates R.java file;Then R.java file is packed, and Packed R.java file and other Java source file of application program are compiled, generate corresponding .class File;.class file translations is become the .dex file that Davik VM supports, then .dex file is packaged into Unsigned .APK program, then signs to .APK program, the APK program after being signed.
Wherein, in step S203, also include, also include that server issues at described renewal program information New variable component, new variable component refers to the variable component not having in transaction terminal variable component, While server variable component in updating transaction terminal, new variable component can be issued to transaction eventually End, enables transaction terminal to increase new variable component, thus realizes new function.
The present invention provides a kind of transaction terminal upgrade method, as it is shown on figure 3, described transaction terminal includes transaction The operating system of terminal, assembly updates service module, and memory module, and wherein be divided into can for operating system Becoming assembly and fixation kit, assembly updates service module and has System Privileges, including power-on event detector with Assembly more new procedures two parts;In embodiments of the present invention, described transaction terminal refers to intelligence POS;
Power-on event detector can monitor the start deadline of transaction terminal, and assembly updates program timing Update server communication with assembly, above give this intelligence POS identification of the manufacturer, system banner and variable component The ID of all variable component in district and version number;Download variable component;Detection variable component integrity is with correct Property;Update variable component to system.
Server include assembly update server, assembly update server for variable component preservation and under Sending out, wherein assembly renewal server includes data base, preserves the institute of all manufacturers intelligence POS system There are variable component fileinfo and these assemblies and manufacturer and the corresponding informance of system.The information bag of variable component Include ID, version number, MD5 value and signing messages etc..Corresponding informance comprise the manufacturer belonging to certain assembly and Affiliated system version;File system, the concrete all variable component files preserving all manufacturers;Assembly pipe Reason system, it is provided that the visualization maintenance access of variable component, concrete and all intelligence POS network service, The distribution work of variable component is provided.
In embodiments of the present invention, interval time is set so that transaction terminal every special time to server Report upgrade request.
As it is shown on figure 3, the idiographic flow of transaction terminal upgrading is in the embodiment of the present invention:
Step S301, it is already powered on that the power-on event monitor in intelligence POS monitors intelligence POS Complete;
Step S302, the power-on event monitor in intelligence POS starts assembly and updates service routine;
Step S303, the assembly in intelligence POS updates service routine and includes an interval intervalometer, Communication request is sent to server every specifying time interval;
Step S304, intelligence POS in assembly update service routine by intelligence POS identification of the manufacturer, System banner and system send the assembly in server to update in the assembly ID of all variable component and version number Server.
Step S305, the assembly in server updates each changeable set that intelligence POS is uploaded by server Part contrasts with this assembly of preservation in server, screens and return renewable variable component information list. Each list items includes ID, MD5 value, signing messages and the download address of a renewable variable component;
Step S306, in intelligence POS, assembly updates service routine and updates what server returned according to assembly Renewable variable component information list, in server, assembly updates server and asks to be updated variable one by one Component file;
Step S307, in server, assembly updates server return variable component file to intelligence POS Assembly more new procedures.
Step S308, the assembly of intelligence POS updates service routine and recalculates variable component file MD5 value, and compare with the MD5 value of server return in step 5.If consistent, then file is complete Whole it is not tampered with.
Step S309, intelligence POS, according to variable component ID, utilizes the assembly in intelligence POS to update Variable component file in variable component district in system is replaced by service routine.
Based on identical technology design, the present invention also provides for a kind of transaction terminal update device, as shown in Figure 4, Including:
Reporting unit 401, for reporting the upgrade request of transaction terminal to server, wherein said upgrading please Seek the mark of the variable component included in described transaction terminal;
Receive unit 402, for receiving the renewal program information that server issues, wherein said more new procedures Information includes the upgrade information of the variable component that described transaction terminal needs upgrade, in described renewal program information Including described transaction terminal need the quantity of described variable component of upgrading to be not more than in described upgrade request Quantity including the mark of the described variable component in described transaction terminal;
Updating block 403, for the upgrade information included according to described renewal program information, to corresponding institute State variable component to be updated.
Further, described reception unit 402, it is additionally operable to:
Determine that the described renewal program information received passes through integrity verification.
Further, described upgrade request, also include:
The version number of each variable component in described transaction terminal information and described transaction terminal.
Further, described updating block 403, specifically for:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
Based on identical technology design, the present invention also provides for a kind of transaction terminal update device, as it is shown in figure 5, Including:
Determine unit 501, be used for after receiving the described upgrade request that described transaction terminal reports, according to The mark of the variable component in the described transaction terminal that described upgrade request includes, determines corresponding described variable Assembly;
Select unit 502, for selecting the changeable set needing to be updated from all variable component determined Part;
Transmitting element 503, the upgrade information of the variable component for being updated by needs passes through more new procedures Information is sent to described transaction terminal, so that described transaction terminal is according to the upgrade information of variable component, to right The described variable component answered is updated.
Further, described selection unit 502, it is additionally operable to:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. the method for a transaction terminal upgrading, it is characterised in that described method includes: on server The upgrade request of report transaction terminal, wherein said upgrade request includes the variable component in described transaction terminal Mark;
Receiving the renewal program information that server issues, wherein said renewal program information includes described transaction eventually End needs the upgrade information of the variable component of upgrading, the described transaction terminal that described renewal program information includes The quantity needing the described variable component of upgrading is not more than described upgrade request and includes in described transaction terminal The quantity of mark of described variable component;
The upgrade information included according to described renewal program information, is carried out more corresponding described variable component Newly.
Method the most according to claim 1, it is characterised in that described reception server issues more After new procedures information, according to described in the described transaction terminal needs upgrading that described renewal program information includes The upgrade information of variable component, before being updated corresponding described variable component, also includes:
Determine that the described renewal program information received passes through integrity verification.
Method the most according to claim 1, it is characterised in that described upgrade request, also includes:
The version number of each variable component in described transaction terminal information and described transaction terminal.
4. according to the arbitrary described method of claims 1 to 3, it is characterised in that according to described more new procedures The upgrade information that information includes, is updated corresponding described variable component, including:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
5. the method for a transaction terminal upgrading, it is characterised in that described method includes:
After receiving the described upgrade request that described transaction terminal reports, include according to described upgrade request Described transaction terminal in the mark of variable component, determine corresponding described variable component;
The variable component needing to be updated is selected from all variable component determined;
The upgrade information of the variable component being updated by needs is sent to described friendship by updating program information Easily terminal, so that described transaction terminal is according to the upgrade information of variable component, to corresponding described variable component It is updated.
Method the most according to claim 5, it is characterised in that described from all changeable set determined After part selects the variable component needing to be updated, it would be desirable to the upgrading letter of the variable component being updated Cease before being sent to described transaction terminal by renewal program information, also include:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
7. the device of a transaction terminal upgrading, it is characterised in that including:
Report unit, for reporting the upgrade request of transaction terminal, wherein said upgrade request bag to server Include the mark of variable component in described transaction terminal;
Receive unit, for receiving the renewal program information that server issues, wherein said renewal program information Need the upgrade information of the variable component of upgrading including described transaction terminal, described renewal program information includes Described transaction terminal need the quantity of described variable component of upgrading to be not more than described upgrade request to include The quantity of the mark of the described variable component in described transaction terminal;
Updating block, for the upgrade information that includes according to described renewal program information, to can described in corresponding Become assembly to be updated.
Device the most according to claim 7, it is characterised in that described reception unit, is additionally operable to:
Determine that the described renewal program information received passes through integrity verification.
Device the most according to claim 7, it is characterised in that described upgrade request, also includes:
The version number of each variable component in described transaction terminal information and described transaction terminal.
10. according to the arbitrary described device of claim 7~9, it is characterised in that described updating block, tool Body is used for:
According to the mark of described variable component, described renewal program information is searched the described changeable set of correspondence The upgrade information of part, wherein, described upgrade information includes the variable component more new procedures needing to be updated Download address;
Download more new procedures described in correspondence according to the described download address stating variable component more new procedures, and lead to Cross the more new procedures downloaded corresponding variable component is updated.
The device of 11. 1 kinds of transaction terminal upgradings, it is characterised in that including:
Determine unit, for after receiving the described upgrade request that described transaction terminal reports, according to described The mark of the variable component in the described transaction terminal that upgrade request includes, determines corresponding described changeable set Part;
Select unit, for selecting the variable component needing to be updated from all variable component determined;
Transmitting element, for the upgrade information of variable component that is updated by needs by updating program information It is sent to described transaction terminal, so that described transaction terminal is according to the upgrade information of variable component, to correspondence Described variable component is updated.
12. devices according to claim 11, it is characterised in that described selection unit, are additionally operable to:
Determine the download address of the variable component that each needs are updated, and the download address composition that will determine Information list;
Using the upgrade information of the variable component that described information list is updated as needs.
CN201510929347.9A 2015-12-14 2015-12-14 Method and apparatus for upgrading transaction terminal Pending CN105930179A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201510929347.9A CN105930179A (en) 2015-12-14 2015-12-14 Method and apparatus for upgrading transaction terminal
PCT/CN2016/108918 WO2017101720A1 (en) 2015-12-14 2016-12-07 Method and device for upgrading transaction terminal
TW105140583A TW201721417A (en) 2015-12-14 2016-12-08 Method and apparatus for upgrading transaction terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510929347.9A CN105930179A (en) 2015-12-14 2015-12-14 Method and apparatus for upgrading transaction terminal

Publications (1)

Publication Number Publication Date
CN105930179A true CN105930179A (en) 2016-09-07

Family

ID=56840306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510929347.9A Pending CN105930179A (en) 2015-12-14 2015-12-14 Method and apparatus for upgrading transaction terminal

Country Status (3)

Country Link
CN (1) CN105930179A (en)
TW (1) TW201721417A (en)
WO (1) WO2017101720A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775841A (en) * 2016-11-29 2017-05-31 广州广电运通金融电子股份有限公司 The method, system and device of plug-in unit upgrading
WO2017101720A1 (en) * 2015-12-14 2017-06-22 中国银联股份有限公司 Method and device for upgrading transaction terminal
CN107995284A (en) * 2017-11-29 2018-05-04 艾体威尔电子技术(北京)有限公司 A kind of OTA upgrade methods suitable for POS machine
WO2018176733A1 (en) * 2017-03-30 2018-10-04 百富计算机技术(深圳)有限公司 Firmware upgrade method, terminal and computer-readable non-volatile storage medium
CN109413009A (en) * 2017-08-18 2019-03-01 厦门雅迅网络股份有限公司 The method and computer readable storage medium of vehicle Firmware Over upgrading
CN112905230A (en) * 2021-03-16 2021-06-04 深圳市麦谷科技有限公司 Application program management method and device, terminal equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704088B (en) * 2019-10-21 2023-01-13 中商民智科技工程集团有限公司 Sensor upgrading method and system based on Internet of things

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080045342A1 (en) * 2003-03-05 2008-02-21 Bally Gaming, Inc. Data Integrity and Non-Repudiation
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN104331522A (en) * 2014-11-28 2015-02-04 迈普通信技术股份有限公司 OEM (Original Equipment Manufacture) information customizing method and OEM equipment
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707972B (en) * 2012-05-02 2016-03-09 银联商务有限公司 A kind of POS terminal method for updating program and system
CN103095838B (en) * 2013-01-16 2016-03-30 百度时代网络技术(北京)有限公司 A kind of method of Android smartphone software of being upgraded by download increment AKU
CN105930179A (en) * 2015-12-14 2016-09-07 中国银联股份有限公司 Method and apparatus for upgrading transaction terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080045342A1 (en) * 2003-03-05 2008-02-21 Bally Gaming, Inc. Data Integrity and Non-Repudiation
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN104331522A (en) * 2014-11-28 2015-02-04 迈普通信技术股份有限公司 OEM (Original Equipment Manufacture) information customizing method and OEM equipment
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101720A1 (en) * 2015-12-14 2017-06-22 中国银联股份有限公司 Method and device for upgrading transaction terminal
CN106775841A (en) * 2016-11-29 2017-05-31 广州广电运通金融电子股份有限公司 The method, system and device of plug-in unit upgrading
WO2018176733A1 (en) * 2017-03-30 2018-10-04 百富计算机技术(深圳)有限公司 Firmware upgrade method, terminal and computer-readable non-volatile storage medium
CN109413009A (en) * 2017-08-18 2019-03-01 厦门雅迅网络股份有限公司 The method and computer readable storage medium of vehicle Firmware Over upgrading
CN107995284A (en) * 2017-11-29 2018-05-04 艾体威尔电子技术(北京)有限公司 A kind of OTA upgrade methods suitable for POS machine
CN112905230A (en) * 2021-03-16 2021-06-04 深圳市麦谷科技有限公司 Application program management method and device, terminal equipment and storage medium
CN112905230B (en) * 2021-03-16 2024-06-28 深圳市麦谷科技有限公司 Application management method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
WO2017101720A1 (en) 2017-06-22
TW201721417A (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN105930179A (en) Method and apparatus for upgrading transaction terminal
US20220044237A1 (en) Systems and methods for initialization and activation of secure elements
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US10108412B2 (en) Blocking and non-blocking firmware update
CN111182025B (en) Message processing method, device, server and storage medium
EP4177736A1 (en) Compressed firmware update
US20170286085A1 (en) Compressed firmware update
CN105391717A (en) APK signature authentication method and APK signature authentication system
CN106843976B (en) Method and apparatus for generating image file
CN104346167A (en) Method and device for generating application channel package
CN108460273B (en) Application management method of terminal, application server and terminal
CN109766134A (en) System start method, device, electronic equipment and storage medium
CN103136678A (en) Identification method and device of intelligent terminal, processing method and device of identification information and identification system
CN110058867A (en) The packing of application program mirror image, installation method and computer installation, storage medium
CN102707972A (en) POS (Point Of Sale) terminal program updating method and system
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN110895472A (en) Method and device for identifying service change
CN113468049B (en) Configurable interface-based test method, device, equipment and medium
CN107980132A (en) A kind of APK signature authentications method and system
CA2907515C (en) A method and system for transferring data
CN109284452B (en) Electronic protocol online display method and device, electronic equipment and storage medium
CN113434254A (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN112037051A (en) Clearing account opening method and device
CN107493288B (en) Application network security control method and device based on Android POS
CN108829436A (en) Hot restorative procedure, device, system, electronic equipment and computer-readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1227123

Country of ref document: HK

RJ01 Rejection of invention patent application after publication

Application publication date: 20160907

RJ01 Rejection of invention patent application after publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1227123

Country of ref document: HK