WO2017101720A1 - Method and device for upgrading transaction terminal - Google Patents

Method and device for upgrading transaction terminal Download PDF

Info

Publication number
WO2017101720A1
WO2017101720A1 PCT/CN2016/108918 CN2016108918W WO2017101720A1 WO 2017101720 A1 WO2017101720 A1 WO 2017101720A1 CN 2016108918 W CN2016108918 W CN 2016108918W WO 2017101720 A1 WO2017101720 A1 WO 2017101720A1
Authority
WO
WIPO (PCT)
Prior art keywords
variable component
transaction terminal
information
upgrade
update program
Prior art date
Application number
PCT/CN2016/108918
Other languages
French (fr)
Chinese (zh)
Inventor
张少飞
王琪
Original Assignee
中国银联股份有限公司
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 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2017101720A1 publication Critical patent/WO2017101720A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/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
    • 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

Definitions

  • the present invention relates to the field of intelligent payment terminals, and in particular, to a method and device for upgrading a transaction terminal.
  • POS Point of Sales
  • OCR optical character recognition
  • the application of trading terminals enables companies to simplify the supply chain, promote self-service transactions and reduce the cost of deploying and maintaining the retail infrastructure.
  • Trading terminals are indispensable collection devices for retailers.
  • the system program of the trading terminal also needs to be upgraded and maintained.
  • the upgrade and maintenance of the transaction terminal is mainly completed by manually downloading the serial port of the computer at the merchant site, and the timeliness of the transaction terminal program update cannot be guaranteed.
  • the system program upgrade of the transaction terminal is to update the entire system program, the update process is complicated, and the amount of downloaded data is large.
  • the invention provides a method and a device for upgrading a transaction terminal, which are used to solve the transaction in the prior art.
  • the upgrade of the terminal must update the transaction terminal as a whole.
  • an embodiment of the present invention provides a method for upgrading a transaction terminal, including: reporting, to a server, an upgrade request of a transaction terminal, where the upgrade request includes an identifier of a variable component in the transaction terminal; Update program information, wherein the update program information includes upgrade information of a variable component that the transaction terminal needs to upgrade, and the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than
  • the upgrade request includes the number of identifiers of the variable component in the transaction terminal; and the corresponding variable component is updated according to the upgrade information included in the update program information.
  • the transaction terminal sends an upgrade request to the server, and accepts the update program information delivered by the server, where the update program information includes the upgrade information of the variable component that needs to be upgraded in the transaction terminal, according to the update program information, Corresponding variable components in the transaction terminal are updated to implement partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, which makes the upgrade process convenient and flexible, and saves the amount of downloaded data.
  • the update program information is integrity and/or tamper-evident verified, and the updated program information received by the transaction terminal is not destroyed in the intermediate link, and has not been tampered with. Then, the normal use of the transaction terminal after the variable component in the transaction terminal is updated according to the update program information is ensured, and the security of the transaction terminal is ensured.
  • the upgrade request further includes:
  • the transaction terminal information and a version number of each variable component in the transaction terminal are identical to each variable component in the transaction terminal.
  • the corresponding server may be searched according to the transaction terminal information, and the connection between the transaction terminal and the server is ensured, and the corresponding value in the server is determined according to the version number of each variable component in the terminal. Compare the version numbers of the variable components so that you need more New variable components.
  • variable component including:
  • the corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  • the upgrade information of the variable component is searched for, and the download request is sent to the server according to the download address of the upgrade information, and the variable component and the server are ensured.
  • the correspondence between the update programs of the variable components is ensured.
  • the present invention provides a method for upgrading a transaction terminal, comprising: after receiving the upgrade request reported by the transaction terminal, according to a variable component of the transaction terminal included in the upgrade request Identifying, corresponding to the variable component; selecting, from all of the determined variable components, a variable component that needs to be updated; sending upgrade information of the variable component that needs to be updated to the transaction terminal by using update program information, And causing the transaction terminal to update the corresponding variable component according to the upgrade information of the variable component.
  • the server after receiving the upgrade request of the transaction terminal, the server searches for the corresponding variable component according to the identifier of the reported variable component, and determines that the update is required according to the reported variable component.
  • the variable component sends the upgrade information of the determined variable component to the transaction terminal through the update program information, and the embodiment of the present invention implements partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, so that the upgrade process is convenient. Flexible, saving the amount of downloaded data.
  • the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by using the update program information, and further includes:
  • the information list is used as upgrade information of a variable component that needs to be updated.
  • the download address of each variable component that needs to be upgraded constitutes a list of information, so that the transaction terminal can obtain the downloaded file through the download address in the information list, thereby realizing the convenience of upgrading.
  • a third method the embodiment of the present invention provides a transaction terminal upgrading apparatus, including: a reporting unit, configured to report an upgrade request of a transaction terminal to a server, where the upgrade request includes an identifier of a variable component in the transaction terminal; a receiving unit, configured to receive update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded
  • the number of the variable components is not greater than the number of the identifiers of the variable components included in the transaction terminal in the upgrade request; and the updating unit is configured to: according to the upgrade information included in the update program information, corresponding to The variable component is updated.
  • the receiving unit is further configured to:
  • the upgrade request further includes:
  • the transaction terminal information and a version number of each variable component in the transaction terminal are identical to each variable component in the transaction terminal.
  • the updating unit is specifically configured to:
  • the corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  • an embodiment of the present invention provides a transaction terminal upgrading apparatus, including: a determining unit, configured to: after receiving the upgrade request reported by the transaction terminal, according to the transaction terminal included in the upgrade request An identifier of the variable component in the determination, corresponding to the variable component; a selection unit, configured to select a variable component that needs to be updated from all the determined variable components; The upgrade information of the variable component that needs to be updated is sent to the transaction terminal through the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component.
  • selecting unit is further configured to:
  • the information list is used as upgrade information of a variable component that needs to be updated.
  • an embodiment of the present invention provides an electronic device, including: a processor, a memory, a transceiver, and a bus interface, wherein a processor, a memory, and a transceiver are connected through a bus interface;
  • the processor is configured to read a program in the memory, and execute the following method: reporting, by the transceiver, an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal; Receiving, by the transceiver, update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded
  • the number of variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request; and the corresponding variable component is updated according to the upgrade information included in the update program information. ;
  • the memory is configured to store one or more executable programs, and may store data used by the processor when performing operations;
  • the transceiver is configured to report, by the processor, an upgrade request of the transaction terminal to the server, and receive, by the transceiver, update program information delivered by the server;
  • the bus interface is for providing an interface.
  • a sixth aspect of the present invention provides a network device, including: a processor, a memory, a transceiver, and a bus interface, wherein a processor, a memory, and a transceiver are connected through a bus interface;
  • the processor is configured to read a program in the memory, and execute the following method: after receiving, by the transceiver, the upgrade request reported by the transaction terminal, according to the transaction terminal included in the upgrade request An identifier of the variable component in the determination, corresponding to the variable component; selecting a variable component that needs to be updated from among all the variable components determined; a variable component that will need to be updated
  • the upgrade information is sent to the transaction terminal by the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component;
  • the memory is configured to store one or more executable programs, and may store data used by the processor when performing operations;
  • the transceiver is configured to receive, by the processor, the upgrade request reported by the transaction terminal;
  • the bus interface is for providing an interface.
  • the transaction terminal sends an upgrade request to the server, and accepts the update program information delivered by the server, where the update program information includes the upgrade information of the variable component that needs to be upgraded in the transaction terminal, according to the update program information, Corresponding variable components in the transaction terminal are updated to implement partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, which makes the upgrade process convenient and flexible, and saves the amount of downloaded data.
  • FIG. 1 is a schematic flowchart of a first method for upgrading a transaction terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a second method for upgrading a transaction terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a POS upgrade method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an apparatus for upgrading a transaction terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a second type of transaction terminal upgrading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to another embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a network device according to another embodiment of the present invention.
  • An embodiment of the present invention reports an upgrade request of a transaction terminal to a server, where the upgrade request includes an identifier of a variable component in the transaction terminal, and an update program information delivered by the server, where the update program information includes the transaction
  • the terminal needs upgrade information of the upgraded variable component, and the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than the that the upgrade request includes the transaction terminal
  • the number of identifiers of the component updating the corresponding variable component according to the upgrade information included in the update program information.
  • the embodiment of the invention provides a method for upgrading a transaction terminal, as shown in FIG. 1 , wherein:
  • Step S101 reporting an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal;
  • Step S102 Receive update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded.
  • the number of variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
  • Step S103 Update the corresponding variable component according to the upgrade information included in the update program information.
  • the variable component refers to a component that can be updated in the transaction terminal, for example, a component that processes the card swipe operation in the transaction terminal system, or a component that reads the IC card.
  • the variable component in addition to the variable component, has a fixed component in the transaction terminal system.
  • the fixed component is a component that does not need to be updated in the transaction terminal system. For example, a component capable of supporting a normal switching machine of the transaction terminal can be classified into a fixed component.
  • the transaction terminal may be a smart sales terminal POS machine, It may be an ATM (Automatic Teller Machine) in a bank, or a Lakka credit card machine installed in a different convenience store.
  • the transaction terminal refers to a smart POS machine.
  • the upgrade request refers to a type of request sent by the system of the transaction terminal to the server that needs to perform system update after the transaction terminal is powered on, and the upgrade request includes all the transactions in the transaction terminal.
  • the identification number of the variable component which can be the ID number of all variable components.
  • the upgrade request further includes:
  • the transaction terminal information and a version number of each variable component in the transaction terminal are identical to each variable component in the transaction terminal.
  • the server may be connected to a transaction terminal or may be connected to multiple transaction terminals. If the server is connected to a transaction terminal, the server may store the corresponding transaction terminal.
  • the transaction terminal reports to the server that the transaction terminal information may be an identification ID number of the transaction terminal, so that the server searches for the corresponding variable according to the identification ID of the transaction terminal. Component area.
  • the version number of all variable components in the transaction terminal is reported to the server, so that when the server receives the upgrade request, the variable component is searched according to the ID number of the variable component, and then saved according to the version number of the variable component reported.
  • the version number of the variable component in the server is compared. If it is inconsistent, it indicates that the variable component needs to be updated.
  • the reporting period may be set in advance. For example, if the update period is set to one week, the transaction terminal will connect to the server at a specific time every week, and report the upgrade request, which may be implemented in the implementation.
  • the length of the update cycle can be automatically adjusted according to the requirements, or it can be set manually.
  • step S102 the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than the identifier of the variable component included in the transaction terminal in the upgrade request. quantity.
  • the transaction terminal includes N variable components
  • the transaction terminal reports the identification ID of the N variable components to the server, the version information of the N variable components, and the server searches for Corresponding to the ID of the variable component, comparing the two versions of the same variable component, one is the version information saved by the transaction terminal, and the other is the version information saved in the server. If the two versions are inconsistent, the description may be The component needs to be updated; if the two versions are consistent, the variable component is considered to not need to be updated.
  • the transaction terminal reports the upgrade request of the N variable components, and the number of update programs of the variable component included in the returned update program information is no more than N, and may be less than N, if less than N However, there are some variable components in the transaction terminal that do not need to be updated temporarily.
  • step S102 after the update program information sent by the server is received, the corresponding variable component is performed according to the upgrade information of the variable component that the transaction terminal needs to upgrade according to the update program information.
  • the update program information sent by the server is received, the corresponding variable component is performed according to the upgrade information of the variable component that the transaction terminal needs to upgrade according to the update program information.
  • the update program information sent by the server is received, the corresponding variable component is performed according to the upgrade information of the variable component that the transaction terminal needs to upgrade according to the update program information.
  • the update program information sent by the server Before the update, it also includes:
  • the update program information includes the MD5 value of the variable component, and the Message Digest Algorithm (MD5) is the most widely used Hash algorithm, the Hash algorithm, and Called a hash algorithm, the hash algorithm maps binary values of arbitrary length to shorter fixed-length binary values. This small binary value is called a hash value.
  • MD5 is an industry-standard one-way 128-bit hash scheme developed by RSA Data Security. The role of MD5 is to enable large-capacity information to be "compressed" into a secure format before signing a private key with digital signature software. Converts a byte string of arbitrary length into a string of hexadecimal digits of a certain length. MD5 treats the entire file as a large text message, and generates a unique MD5 message digest by its irreversible string transformation algorithm.
  • Various peer-to-peer protocol vendors use it for encrypted authentication.
  • the transaction terminal uses an intelligent POS machine as an example to explain that the server sends an update program of the variable component to the smart POS machine, and uses the MD5 value to update the variable component sent by the server to the smart POS machine.
  • the process of integrity verification is:
  • the update program of the variable component sent by the server to the smart POS machine is encoded by MD5, and the server sends the update program and the summary information digest of the MD5-encoded update program to the smart POS machine, and therefore, the server sends the smart POS machine to the smart POS machine.
  • Variable component update program by Two parts, one is the update program of the original variable component, and the other part is the summary information encoded by MD5;
  • the intelligent POS machine receives the update program of the variable component pushed by the server, first separates the update program of the variable component composed of two parts, and the intelligent POS machine performs the MD5 operation according to the content of the update program of the received variable component. Recalculating the summary information of the update component of the variable component, the smart POS machine compares the summary information calculated by itself with the received summary information, and if the comparison result is the same, it considers that the update component of the variable component is transmitting It has not been modified in the middle. Otherwise, the update procedure of the variable component must be modified during the transmission process, so the content is not trusted.
  • step S103 updating the corresponding variable component according to the upgrade information included in the update program information, including:
  • the corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  • the transaction terminal when receiving the update program information, searches for the updateable variable component corresponding to the update program information according to the identifier ID of the variable component in the transaction terminal, and the update program information includes the identifier of the variable component.
  • the ID, MD5 value, and the download address of the variable component the transaction terminal searches for the variable component that needs to be updated according to the ID of the variable component, and downloads the update program of the variable component according to the download address of the variable component corresponding to the variable component.
  • step S103 before the corresponding variable component is updated according to the upgrade information included in the update program information, the transaction terminal and the server perform two-way verification.
  • the transaction terminal sends a clear text of the terminal authentication to the remote management system; the server writes the plaintext of the key into the plaintext of the terminal authentication, thereby obtaining the first terminal authentication data; and encrypting the key with the master key as the key, thereby obtaining the key ciphertext;
  • the server sends the first terminal authentication data, the key ciphertext, and a system authentication plaintext to the transaction terminal; the transaction terminal uses the master control key to parse the key ciphertext to obtain the key Writing the plaintext of the key to the terminal authentication plaintext saved by itself, thereby obtaining the second terminal authentication data; determining whether the first terminal authentication data is consistent with the second terminal authentication data; if they are consistent, the transaction terminal generates the first authentication result as a transaction. Terminal certification passed;
  • the transaction terminal writes the clear text of the key into the system authentication plaintext to obtain the first system authentication data; the first system authentication data is sent to the server together with the first authentication result; the server writes the key plaintext into the system authentication plaintext saved by itself, and obtains the first
  • the second system authentication data determines whether the first system authentication data is consistent with the second system authentication data. If they are consistent, the server generates a second authentication result for the server authentication to pass.
  • the master key is a download master key (DMK); the key text is a download work key (DWK).
  • the key ciphertext is a DMK encrypted key plaintext, which is recorded as DWK-1; and the terminal authentication plaintext is represented as T-DATA for authenticating the transaction terminal.
  • the invention provides a method for upgrading a transaction terminal, as shown in FIG. 2, wherein:
  • Step S201 after receiving the upgrade request reported by the transaction terminal, determining, according to the identifier of the variable component in the transaction terminal included in the upgrade request, that the variable component is corresponding;
  • Step S202 selecting a variable component that needs to be updated from among all the variable components determined;
  • Step S203 the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component.
  • the relationship information of the variable component and the variable component are stored in the server, and the information of the variable component is searched in the relationship list in the server by the identification information of the variable component, and the call is made. Change component information.
  • the upgrade information of the variable component that needs to be updated is sent to the transaction terminal through the update program information. Also includes:
  • the information list is used as upgrade information of a variable component that needs to be updated.
  • the server receives the identification ID number and the version number of all the variable components reported by the transaction terminal, searches for the corresponding variable component in the server according to the ID of the variable component, and changes according to the transaction terminal.
  • the version number of the component is compared with the version number of the variable component in the server. If the version number is inconsistent, the variable component is considered to be a variable component that needs to be updated, and the variable components in all transaction terminals are filtered according to the above steps.
  • all variable components that need to be upgraded are selected, and for a variable component that needs to be updated, the server pushes the upgrade information of the component to the transaction terminal, wherein the upgrade information includes the identification ID of the variable component, and is variable.
  • the server finds the version information of the variable component by the ID of the variable component, and compares the version of the variable component in the server when comparing the version of the variable component and determining that the variable component needs to be updated.
  • the server address information is written into the upgrade information.
  • the server address corresponding to the variable component version in the server is described by using a uniform resource locator URL.
  • the format of the URL is composed of three parts, a protocol, and a host IP with a resource. And the specific address of the host resource.
  • the download address is file//:ftp.linkwan.com/upgrades/files/document1.apk, it means that the download server is linkwan, and the download address of the update program of the variable component document1 of the upgrades/files is downloaded.
  • step S203 after receiving the update application request of the corresponding variable component sent by the transaction terminal according to the download address of the variable component in the upgrade information, the server will update the variable component to the application.
  • the format is sent to the trading terminal.
  • the application that stores the complete variable component update program in the server, or the code compiler in the server, and the script information of the update program corresponding to all the variable components receive the transaction terminal according to the server according to After updating the application request of the variable component sent by the download address of the variable component in the upgrade information, the code compiler compiles the script information of the update component of the variable component into an application program and pushes it to the transaction terminal.
  • the operating system of the transaction terminal is an Android system
  • the format of the application is an APK.
  • the script information XML may be processed by using a Linux system.
  • the variable component file is packaged in an asset folder, and the script information of the variable component update program is packaged into a resource file.
  • Generate R.java file then package the R.java file, compile the packaged R.java file and other Java source files of the application, generate the corresponding .class file; convert the .class file into Davik VM support
  • the .dex file then package the .dex file into an unsigned .APK program, then sign the .APK program and get the signed APK program.
  • the method further includes: in the update program information, a new variable component that is sent by the server, where the new variable component refers to a variable component that is not included in the transaction terminal variable component, where the server is When the variable component in the transaction terminal is updated, a new variable component is issued to the transaction terminal, so that the transaction terminal can add a new variable component to implement a new function.
  • the present invention provides a method for upgrading a transaction terminal.
  • the transaction terminal includes an operating system of a transaction terminal, a component update service module, and a storage module, wherein the operating system is divided into a variable component and a fixed component, and the component is updated.
  • the service module has system rights, including a boot event detector and a component update program.
  • the transaction terminal refers to a smart POS machine;
  • the boot event detector can monitor the boot completion time of the transaction terminal, the component update program timing and the component update server communication, and send the smart POS machine manufacturer identifier, the system identifier, and the ID and version number of all variable components of the variable component area; Download variable components; detect variable component integrity and correctness; update variable components to the system.
  • the server includes a component update server, which is used for saving and delivering variable components.
  • the component update server includes a database, and stores all variable component file information of all manufacturers' intelligent POS system and these components and manufacturers and systems.
  • the information of the variable component includes an ID, a version number, an MD5 value, and signature information.
  • Corresponding information includes the manufacturer and system version to which a component belongs; the file system stores all variable component files of all vendors; the component management system provides a visual maintenance entry for variable components, specifically communicating with all intelligent POS machines. , providing distribution of variable components.
  • the interval time is set, so that the transaction terminal reports the upgrade request to the server at a specific time.
  • Step S301 the boot event monitor in the smart POS machine detects that the smart POS machine has been powered on;
  • Step S302 the boot event monitor in the smart POS machine starts the component update service program
  • Step S303 the component update service program in the smart POS machine includes an interval timer, and sends a communication request to the server every specified time interval;
  • Step S304 The component update service program in the smart POS server sends the vendor identifier of the smart POS machine, the system identifier, and the component ID and version number of all variable components in the system to the component update server in the server.
  • Step S305 the component update server in the server compares each variable component uploaded by the smart POS machine with the component saved in the server, and filters and returns the list of updateable variable component information.
  • Each list item includes an ID of an updateable variable component, an MD5 value, a signature information, and a download address;
  • Step S306 the component update service program in the smart POS server requests the variable component file to be updated one by one according to the component update server in the server according to the list of updateable variable component information returned by the component update server;
  • Step S307 the component update server in the server returns the variable component file to the component update program of the smart POS machine.
  • Step S308 the component update service program of the smart POS machine recalculates the MD5 value of the variable component file, and compares it with the MD5 value returned by the server in step 5. If they are consistent, the file is not tampered with.
  • Step S309 the smart POS machine replaces the variable component file in the variable component area of the system with the component update service program in the smart POS machine according to the variable component ID.
  • the present invention further provides a transaction terminal upgrading apparatus, as shown in FIG. 4, including:
  • the reporting unit 401 is configured to report an upgrade request of the transaction terminal to the server, where the upgrade is requested Finding an identifier including a variable component in the transaction terminal;
  • the receiving unit 402 is configured to receive update program information that is sent by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded.
  • the number of the variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
  • the updating unit 403 is configured to update the corresponding variable component according to the upgrade information included in the update program information.
  • the receiving unit 402 is further configured to:
  • the upgrade request further includes:
  • the transaction terminal information and a version number of each variable component in the transaction terminal are identical to each variable component in the transaction terminal.
  • the updating unit 403 is specifically configured to:
  • the corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  • the present invention further provides a transaction terminal upgrading apparatus, as shown in FIG. 5, including:
  • a determining unit 501 configured to determine, according to the identifier of the variable component in the transaction terminal included in the upgrade request, the variable component after receiving the upgrade request reported by the transaction terminal;
  • a selecting unit 502 configured to select, from all the determined variable components, a variable component that needs to be updated
  • a sending unit 503 configured to send, by using the update program information, upgrade information of the variable component that needs to be updated, to the transaction terminal, so that the transaction terminal, according to the upgrade information of the variable component, the corresponding variable component Update.
  • selecting unit 502 is further configured to:
  • the information list is used as upgrade information of a variable component that needs to be updated.
  • the present invention further provides an electronic device, as shown in FIG. 6, including a processor 601, a memory 602, a transceiver 603, and a bus interface 604, wherein the processor 601, the memory 602, and the transceiver 603 pass Bus interface 604 is connected;
  • the processor 601 is configured to read a program in the memory 602, and perform the following method: reporting, by the transceiver 603, an upgrade request of the transaction terminal to the server, where the upgrade request includes a variable component in the transaction terminal Receiving, by the transceiver 603, update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs The number of the variable components that are upgraded is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request; according to the upgrade information included in the update program information, the corresponding The component is updated;
  • the memory 602 is configured to store one or more executable programs, and may store data used by the processor 601 when performing an operation;
  • the transceiver 603 is configured to report, by the processor 601, an upgrade request of the transaction terminal to the server, and receive, by the transceiver, update program information delivered by the server;
  • the bus interface 604 is configured to provide an interface.
  • the processor 601 selects the upgrade information of the variable component that needs to be upgraded by the transaction terminal included in the update program information, and the corresponding Before the variable component is updated, it is also used to:
  • the update program information received by the transceiver 603 is determined to pass the integrity verification.
  • the upgrade request further includes:
  • the transaction terminal information and a version number of each variable component in the transaction terminal are identical to each variable component in the transaction terminal.
  • processor 601 is configured according to the upgrade information included in the update program information.
  • said variable component is updated, specifically for:
  • the corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  • the present invention further provides a network device, as shown in FIG. 7, including a processor 701, a memory 702, a transceiver 703, and a bus interface 704, wherein the processor 701, the memory 702, and the transceiver 703 pass through Bus interface 704 is connected;
  • the processor 701 is configured to read a program in the memory 702, and perform the following method: after receiving the upgrade request reported by the transaction terminal by the transceiver 703, according to the location included in the upgrade request Determining an identifier of the variable component in the transaction terminal, determining corresponding to the variable component; selecting a variable component that needs to be updated from all the determined variable components; and upgrading information of the variable component that needs to be updated by the update program Sending information to the transaction terminal, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component;
  • the memory 702 is configured to store one or more executable programs, and may store data used by the processor 701 when performing operations;
  • the transceiver 703 is configured to receive, by the processor 701, the upgrade request reported by the transaction terminal;
  • the bus interface 704 is configured to provide an interface.
  • the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by using the update program information, specifically Used for:
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • the computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor, or a processor of other programmable data processing device such that instructions executed by a processor of the computer or other programmable data processing device can be implemented in a flowchart
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

Abstract

Provided are a method and device for upgrading a transaction terminal, comprising: reporting to a server an upgrade request of a transaction terminal, said upgrade request comprising an identifier of a variable component in said transaction terminal (S101); receiving update procedure information issued by a server; said update procedure information comprising the upgrade information of the variable component requiring upgrading of said transaction terminal; the quantity of said variable components requiring upgrading comprised by said update procedure information being not greater than the quantity of identifiers, of said variable components in said transaction terminal, comprised in the upgrade request (S102); according to the upgrade information comprised in the update procedure information, updating the respective variable components (S103). The method achieves a partial upgrade of a transaction terminal system, the upgrade process is convenient and flexible, conserving download-data usage.

Description

一种交易终端升级的方法及装置Method and device for upgrading transaction terminal
本申请要求在2015年12月14日提交中国专利局、申请号为201510929347.9、发明名称为“一种交易终端升级的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510929347.9, entitled "A Method and Apparatus for Upgrade of Trading Terminals", filed on December 14, 2015, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及智能支付终端领域,尤其涉及一种交易终端升级的方法及装置。The present invention relates to the field of intelligent payment terminals, and in particular, to a method and device for upgrading a transaction terminal.
背景技术Background technique
POS(Point of sales,销售终端)是一种配有条码或光字符码(Optical character recognition,简称OCR)的终端阅读器,具有现金或易货额度出纳功能,通过交易终端,消费者可以与银行进行交互。当前,交易终端已经广泛用于零售业和服务业的交易处理和记录,如在银行、百货商场、超市、服装行业、医疗行业(医院、药店)、娱乐等产生消费的场所都需要用到交易终端。交易终端的应用使得企业可以简化供应链、促进自助式交易并且降低部署和维护零售环节的基础设施的成本,交易终端是已成为零售商家不可缺少的收款设备。POS (Point of Sales) is a terminal reader equipped with a bar code or optical character recognition (OCR). It has a cash or barter cashier function. Through the transaction terminal, the consumer can interact with the bank. Interact. At present, trading terminals have been widely used in the transaction processing and recording of retail and service industries, such as transactions in places such as banks, department stores, supermarkets, clothing industry, medical industry (hospitals, pharmacies), entertainment, etc. terminal. The application of trading terminals enables companies to simplify the supply chain, promote self-service transactions and reduce the cost of deploying and maintaining the retail infrastructure. Trading terminals are indispensable collection devices for retailers.
正如当前几乎所有的软件都会升级更新,交易终端的系统程序也需要升级和维护。目前对于交易终端的升级和维护主要是通过人工在商户现场使用电脑串口下载来完成的,不能够保证交易终端程序更新的时效性。并且在现有技术中,对交易终端的系统程序升级都是更新整个系统程序,更新过程复杂,下载数据量较大。Just as almost all current software will be upgraded and updated, the system program of the trading terminal also needs to be upgraded and maintained. At present, the upgrade and maintenance of the transaction terminal is mainly completed by manually downloading the serial port of the computer at the merchant site, and the timeliness of the transaction terminal program update cannot be guaranteed. Moreover, in the prior art, the system program upgrade of the transaction terminal is to update the entire system program, the update process is complicated, and the amount of downloaded data is large.
发明内容Summary of the invention
本发明提一种交易终端升级方法及装置,用以解决现有技术中对于交易 终端的升级更新必须对交易终端进行整体更新的问题。The invention provides a method and a device for upgrading a transaction terminal, which are used to solve the transaction in the prior art. The upgrade of the terminal must update the transaction terminal as a whole.
第一方面,本发明实施例提供一种交易终端升级的方法,包括:向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。In a first aspect, an embodiment of the present invention provides a method for upgrading a transaction terminal, including: reporting, to a server, an upgrade request of a transaction terminal, where the upgrade request includes an identifier of a variable component in the transaction terminal; Update program information, wherein the update program information includes upgrade information of a variable component that the transaction terminal needs to upgrade, and the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than The upgrade request includes the number of identifiers of the variable component in the transaction terminal; and the corresponding variable component is updated according to the upgrade information included in the update program information.
本发明上述实施例中交易终端向服务器发送升级请求,并且接受服务器下发的更新程序信息,更新程序信息中包含交易终端中需要升级的可变组件的升级信息,根据所述更新程序信息,将对应的所述交易终端中的可变组件进行更新,实现了交易终端系统的部分升级,不是整个系统或者固件升级,使得升级过程便捷灵活,节约了下载数据量。In the above embodiment of the present invention, the transaction terminal sends an upgrade request to the server, and accepts the update program information delivered by the server, where the update program information includes the upgrade information of the variable component that needs to be upgraded in the transaction terminal, according to the update program information, Corresponding variable components in the transaction terminal are updated to implement partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, which makes the upgrade process convenient and flexible, and saves the amount of downloaded data.
进一步地,所述接收服务器下发的更新程序信息之后,根据所述更新程序信息包括的所述交易终端需要升级的所述可变组件的升级信息,对对应的所述可变组件进行更新之前,还包括:Further, after the update program information sent by the server is updated, the update component of the variable component that needs to be upgraded by the transaction terminal included in the update program information is updated before the corresponding variable component is updated. ,Also includes:
确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
本发明上述实施例中,对所述更新程序信息进行完整性和/或可篡改性验证,保证了交易终端接收到的所述更新程序信息在中间链路没有被破坏,以及没有被篡改过,继而保证了所述交易终端中的可变组件根据所述更新程序信息进行更新后所述交易终端的正常使用,并且保证了所述交易终端的安全性。In the above embodiment of the present invention, the update program information is integrity and/or tamper-evident verified, and the updated program information received by the transaction terminal is not destroyed in the intermediate link, and has not been tampered with. Then, the normal use of the transaction terminal after the variable component in the transaction terminal is updated according to the update program information is ensured, and the security of the transaction terminal is ensured.
进一步地,所述升级请求,还包括:Further, the upgrade request further includes:
所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
本发明上述实施例中,根据所述交易终端信息可以查找对应的服务器,保证所述交易终端与服务器的连接正确,并且根据所述终端中每个可变组件的版本号对所述服务器中对应可变组件的版本号进行对比,以便得到需要更 新的可变组件。In the foregoing embodiment of the present invention, the corresponding server may be searched according to the transaction terminal information, and the connection between the transaction terminal and the server is ensured, and the corresponding value in the server is determined according to the version number of each variable component in the terminal. Compare the version numbers of the variable components so that you need more New variable components.
进一步地,根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新,包括:Further, updating, according to the upgrade information included in the update program information, the corresponding variable component, including:
根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
本发明上述实施例中,在接收到所述更新程序信息中查找可变组件的升级信息,并根据升级信息的下载地址,向服务器发送下载请求,保证了所述可变组件与服务器中所述可变组件的更新程序的对应关系。In the foregoing embodiment of the present invention, the upgrade information of the variable component is searched for, and the download request is sent to the server according to the download address of the upgrade information, and the variable component and the server are ensured. The correspondence between the update programs of the variable components.
第二方面,本发明提供一种交易终端升级的方法,包括:在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;从确定的所有可变组件中选择需要进行更新的可变组件;将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。In a second aspect, the present invention provides a method for upgrading a transaction terminal, comprising: after receiving the upgrade request reported by the transaction terminal, according to a variable component of the transaction terminal included in the upgrade request Identifying, corresponding to the variable component; selecting, from all of the determined variable components, a variable component that needs to be updated; sending upgrade information of the variable component that needs to be updated to the transaction terminal by using update program information, And causing the transaction terminal to update the corresponding variable component according to the upgrade information of the variable component.
本发明上述实施例中,服务器在接收到交易终端的升级请求后,根据上报的可变组件的标识,查找对应的可变组件,并且根据上报的所述可变组件,确定需要进行更新的可变组件,将确定的需要更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,本发明实施例实现了交易终端系统的部分升级,不是整个系统或者固件升级,使得升级过程便捷灵活,节约了下载数据量。In the foregoing embodiment of the present invention, after receiving the upgrade request of the transaction terminal, the server searches for the corresponding variable component according to the identifier of the reported variable component, and determines that the update is required according to the reported variable component. The variable component sends the upgrade information of the determined variable component to the transaction terminal through the update program information, and the embodiment of the present invention implements partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, so that the upgrade process is convenient. Flexible, saving the amount of downloaded data.
进一步地,所述从确定的所有可变组件中选择需要进行更新的可变组件之后,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端之前,还包括:Further, after the variable component that needs to be updated is selected from the determined variable components, the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by using the update program information, and further includes:
确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组 成信息列表;Determine the download address of each variable component that needs to be updated, and determine the download address group a list of information;
将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
本发明上述实施例中,将每个需要进行升级的可变组件的下载地址组成信息列表,使得所述交易终端能够通过信息列表中的下载地址得到下载文件,实现了升级的便捷性。In the above embodiment of the present invention, the download address of each variable component that needs to be upgraded constitutes a list of information, so that the transaction terminal can obtain the downloaded file through the download address in the information list, thereby realizing the convenience of upgrading.
第三方法,本发明实施例提供一种交易终端升级装置,包括:上报单元,用于向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;接收单元,用于接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;更新单元,用于根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。A third method, the embodiment of the present invention provides a transaction terminal upgrading apparatus, including: a reporting unit, configured to report an upgrade request of a transaction terminal to a server, where the upgrade request includes an identifier of a variable component in the transaction terminal; a receiving unit, configured to receive update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded The number of the variable components is not greater than the number of the identifiers of the variable components included in the transaction terminal in the upgrade request; and the updating unit is configured to: according to the upgrade information included in the update program information, corresponding to The variable component is updated.
进一步地,所述接收单元,还用于:Further, the receiving unit is further configured to:
确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
进一步地,所述升级请求,还包括:Further, the upgrade request further includes:
所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
进一步地,所述更新单元,具体用于:Further, the updating unit is specifically configured to:
根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
第四方面,本发明实施例提供一种交易终端升级装置,包括:确定单元,用于在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;选择单元,用于从确定的所有可变组件中选择需要进行更新的可变组件;发送单元,用 于将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。According to a fourth aspect, an embodiment of the present invention provides a transaction terminal upgrading apparatus, including: a determining unit, configured to: after receiving the upgrade request reported by the transaction terminal, according to the transaction terminal included in the upgrade request An identifier of the variable component in the determination, corresponding to the variable component; a selection unit, configured to select a variable component that needs to be updated from all the determined variable components; The upgrade information of the variable component that needs to be updated is sent to the transaction terminal through the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component.
进一步地,所述选择单元,还用于:Further, the selecting unit is further configured to:
确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
第五方面,本发明实施例提供一种电子设备,包括:处理器、存储器、收发机、总线接口,其中处理器、存储器与收发机之间通过总线接口连接;In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, a transceiver, and a bus interface, wherein a processor, a memory, and a transceiver are connected through a bus interface;
所述处理器,用于读取所述存储器中的程序,执行下列方法:通过收发机向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;通过收发机接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新;The processor is configured to read a program in the memory, and execute the following method: reporting, by the transceiver, an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal; Receiving, by the transceiver, update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded The number of variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request; and the corresponding variable component is updated according to the upgrade information included in the update program information. ;
所述存储器,用于存储一个或多个可执行程序,可以存储所述处理器在执行操作时所使用的数据;The memory is configured to store one or more executable programs, and may store data used by the processor when performing operations;
所述收发机,用于在所述处理器的控制下向服务器上报交易终端的升级请求且通过收发机接收服务器下发的更新程序信息;The transceiver is configured to report, by the processor, an upgrade request of the transaction terminal to the server, and receive, by the transceiver, update program information delivered by the server;
所述总线接口,用于提供接口。The bus interface is for providing an interface.
第六方面,本发明实施例提供的一种网络设备,包括:处理器、存储器、收发机、总线接口,其中处理器、存储器与收发机之间通过总线接口连接;A sixth aspect of the present invention provides a network device, including: a processor, a memory, a transceiver, and a bus interface, wherein a processor, a memory, and a transceiver are connected through a bus interface;
所述处理器,用于读取所述存储器中的程序,执行下列方法:在通过收发机接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;从确定的所有可变组件中选择需要进行更新的可变组件;将需要进行更新的可变组件的 升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新;The processor is configured to read a program in the memory, and execute the following method: after receiving, by the transceiver, the upgrade request reported by the transaction terminal, according to the transaction terminal included in the upgrade request An identifier of the variable component in the determination, corresponding to the variable component; selecting a variable component that needs to be updated from among all the variable components determined; a variable component that will need to be updated The upgrade information is sent to the transaction terminal by the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component;
所述存储器,用于存储一个或多个可执行程序,可以存储所述处理器在执行操作时所使用的数据;The memory is configured to store one or more executable programs, and may store data used by the processor when performing operations;
所述收发机,用于在所述处理器的控制下接收交易终端上报的所述升级请求;The transceiver is configured to receive, by the processor, the upgrade request reported by the transaction terminal;
所述总线接口,用于提供接口。The bus interface is for providing an interface.
本发明上述实施例中交易终端向服务器发送升级请求,并且接受服务器下发的更新程序信息,更新程序信息中包含交易终端中需要升级的可变组件的升级信息,根据所述更新程序信息,将对应的所述交易终端中的可变组件进行更新,实现了交易终端系统的部分升级,不是整个系统或者固件升级,使得升级过程便捷灵活,节约了下载数据量。In the above embodiment of the present invention, the transaction terminal sends an upgrade request to the server, and accepts the update program information delivered by the server, where the update program information includes the upgrade information of the variable component that needs to be upgraded in the transaction terminal, according to the update program information, Corresponding variable components in the transaction terminal are updated to implement partial upgrade of the transaction terminal system, not the entire system or firmware upgrade, which makes the upgrade process convenient and flexible, and saves the amount of downloaded data.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例提供的第一种交易终端升级方法的流程示意图;1 is a schematic flowchart of a first method for upgrading a transaction terminal according to an embodiment of the present invention;
图2为本发明实施例提供的第二种交易终端升级方法的流程示意图;2 is a schematic flowchart of a second method for upgrading a transaction terminal according to an embodiment of the present invention;
图3为本发明实施例提供的一种POS升级方法的结构示意图;FIG. 3 is a schematic structural diagram of a POS upgrade method according to an embodiment of the present disclosure;
图4为本发明实施例提供的第一种交易终端升级装置的结构示意图;4 is a schematic structural diagram of an apparatus for upgrading a transaction terminal according to an embodiment of the present invention;
图5为本发明实施例提供的第二种交易终端升级装置的结构示意图;FIG. 5 is a schematic structural diagram of a second type of transaction terminal upgrading apparatus according to an embodiment of the present invention;
图6为本发明另一实施例提供的终端的结构示意图;FIG. 6 is a schematic structural diagram of a terminal according to another embodiment of the present disclosure;
图7为本发明另一实施例提供的网络设备的结构示意图。FIG. 7 is a schematic structural diagram of a network device according to another embodiment of the present invention.
具体实施方式 detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。An embodiment of the present invention reports an upgrade request of a transaction terminal to a server, where the upgrade request includes an identifier of a variable component in the transaction terminal, and an update program information delivered by the server, where the update program information includes the transaction The terminal needs upgrade information of the upgraded variable component, and the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than the that the upgrade request includes the transaction terminal The number of identifiers of the component; updating the corresponding variable component according to the upgrade information included in the update program information.
下面结合说明书附图对本发明实施例作进一步详细描述。The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
本发明实施例提供一种交易终端升级方法,如图1所示,其中:The embodiment of the invention provides a method for upgrading a transaction terminal, as shown in FIG. 1 , wherein:
步骤S101,向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;Step S101, reporting an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal;
步骤S102,接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;Step S102: Receive update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded. The number of variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
步骤S103,根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。Step S103: Update the corresponding variable component according to the upgrade information included in the update program information.
在本发明上述实施例中,可变组件指的是在交易终端中可以被更新的组件,例如,交易终端系统中对刷卡操作进行处理的组件,或者对IC卡进行读取的组件都是可变组件,除了可变组件,交易终端系统中还有固定组件,固定组件就是交易终端系统中不需要进行更新的组件,例如,能够支持交易终端正常开关机的组件就可以被划分为固定组件。In the above embodiment of the present invention, the variable component refers to a component that can be updated in the transaction terminal, for example, a component that processes the card swipe operation in the transaction terminal system, or a component that reads the IC card. The variable component, in addition to the variable component, has a fixed component in the transaction terminal system. The fixed component is a component that does not need to be updated in the transaction terminal system. For example, a component capable of supporting a normal switching machine of the transaction terminal can be classified into a fixed component.
在本发明上述实施例中,所述交易终端可以是智能销售终端POS机,也 可以是银行中的ATM(Automatic Teller Machine,自动取款机),也可以是设置在不同便利店中的拉卡拉刷卡机,在本发明中,所述交易终端指的是智能POS机。In the above embodiment of the present invention, the transaction terminal may be a smart sales terminal POS machine, It may be an ATM (Automatic Teller Machine) in a bank, or a Lakka credit card machine installed in a different convenience store. In the present invention, the transaction terminal refers to a smart POS machine.
其中,在步骤S101中,所述升级请求指的是在交易终端开机后,交易终端的系统向服务器发送的需要进行系统更新的一类请求,所述升级请求中包含有所述交易终端中所有可变组件的标识号,可以是所有可变组件的ID号。In the step S101, the upgrade request refers to a type of request sent by the system of the transaction terminal to the server that needs to perform system update after the transaction terminal is powered on, and the upgrade request includes all the transactions in the transaction terminal. The identification number of the variable component, which can be the ID number of all variable components.
其中,在步骤S101中,所述升级请求,还包括:In the step S101, the upgrade request further includes:
所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
在本发明上述实施例中,所述服务器可以与一个交易终端进行连接,也可以与多个交易终端进行连接,若服务器与一个交易终端进行连接,则服务器中保存的是对应的交易终端的可变组件;In the above embodiment of the present invention, the server may be connected to a transaction terminal or may be connected to multiple transaction terminals. If the server is connected to a transaction terminal, the server may store the corresponding transaction terminal. Variable component
若所述服务器与多个交易终端进行连接,则交易终端向所述服务器上报所述交易终端信息可以是交易终端的标识ID号,以使服务器根据所述交易终端的标识ID查找对应的可变组件区域。If the server is connected to the plurality of transaction terminals, the transaction terminal reports to the server that the transaction terminal information may be an identification ID number of the transaction terminal, so that the server searches for the corresponding variable according to the identification ID of the transaction terminal. Component area.
将交易终端中所有可变组件的版本号上报给服务器,以使服务器在接收到升级请求时,根据可变组件的ID号查找可变组件,然后根据上报的可变组件的版本号,与保存在服务器中的可变组件的版本号进行对比,若不一致,则说明该可变组件是需要进行更新的。The version number of all variable components in the transaction terminal is reported to the server, so that when the server receives the upgrade request, the variable component is searched according to the ID number of the variable component, and then saved according to the version number of the variable component reported. The version number of the variable component in the server is compared. If it is inconsistent, it indicates that the variable component needs to be updated.
其中,在步骤S101中,可以预先设置上报周期,例如,将更新周期设置为一星期,则交易终端将在每星期的一个特定时间与所述服务器进行连接,并且上报升级请求,在实施中可以根据需求自动调整更新周期的长短,也可以人工设置。In the step S101, the reporting period may be set in advance. For example, if the update period is set to one week, the transaction terminal will connect to the server at a specific time every week, and report the upgrade request, which may be implemented in the implementation. The length of the update cycle can be automatically adjusted according to the requirements, or it can be set manually.
其中,在步骤S102中,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量。Wherein, in step S102, the number of the variable components that need to be upgraded by the transaction terminal included in the update program information is not greater than the identifier of the variable component included in the transaction terminal in the upgrade request. quantity.
在本发明上述实施例中,交易终端中包括N个可变组件,交易终端向服务器上报N个可变组件的标识ID,N个可变组件的版本信息,服务器在查找 对应可变组件的ID时,对比同一个可变组件的两个版本信息,一个是交易终端保存的版本信息,另一个是服务器中保存的版本信息,若两个版本信息不一致,则说明该可变组件需要更新;若两个版本一致,则认为该可变组件不需要更新。In the above embodiment of the present invention, the transaction terminal includes N variable components, and the transaction terminal reports the identification ID of the N variable components to the server, the version information of the N variable components, and the server searches for Corresponding to the ID of the variable component, comparing the two versions of the same variable component, one is the version information saved by the transaction terminal, and the other is the version information saved in the server. If the two versions are inconsistent, the description may be The component needs to be updated; if the two versions are consistent, the variable component is considered to not need to be updated.
所以在本发明实施例中,交易终端上报N个可变组件的升级请求,返回的更新程序信息中包括的可变组件的更新程序个数是不大于N个,可以小于N个,若小于N个,则说明交易终端中有一些可变组件暂时不需要更新。Therefore, in the embodiment of the present invention, the transaction terminal reports the upgrade request of the N variable components, and the number of update programs of the variable component included in the returned update program information is no more than N, and may be less than N, if less than N However, there are some variable components in the transaction terminal that do not need to be updated temporarily.
在步骤S102中,所述接收服务器下发的更新程序信息之后,根据所述更新程序信息包括的所述交易终端需要升级的所述可变组件的升级信息,对对应的所述可变组件进行更新之前,还包括:In step S102, after the update program information sent by the server is received, the corresponding variable component is performed according to the upgrade information of the variable component that the transaction terminal needs to upgrade according to the update program information. Before the update, it also includes:
确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
在本发明上述实施例中,所述更新程序信息中包括所述可变组件的MD5值,MD5(Message Digest Algorithm,消息摘要算法第五版)是目前最广泛应用的Hash算法,Hash算法,又叫作哈希算法,哈希算法将任意长度的二进制值映射为较短的固定长度的二进制值,这个小的二进制值称为哈希值。MD5是一种符合工业标准的单向128位哈希方案,由RSA数据安全公司开发,MD5的作用是让大容量信息在用数字签名软件签署私人密钥前被"压缩"成一种保密的格式,把一个任意长度的字节串变换成一定长的十六进制数字串,MD5将整个文件当作一个大文本信息,通过其不可逆的字符串变换算法,产生了这个唯一的MD5信息摘要。各种点对点协议供应商都将它用于加密的身份验证。In the above embodiment of the present invention, the update program information includes the MD5 value of the variable component, and the Message Digest Algorithm (MD5) is the most widely used Hash algorithm, the Hash algorithm, and Called a hash algorithm, the hash algorithm maps binary values of arbitrary length to shorter fixed-length binary values. This small binary value is called a hash value. MD5 is an industry-standard one-way 128-bit hash scheme developed by RSA Data Security. The role of MD5 is to enable large-capacity information to be "compressed" into a secure format before signing a private key with digital signature software. Converts a byte string of arbitrary length into a string of hexadecimal digits of a certain length. MD5 treats the entire file as a large text message, and generates a unique MD5 message digest by its irreversible string transformation algorithm. Various peer-to-peer protocol vendors use it for encrypted authentication.
在本发明实施例中,交易终端以智能POS机为例,解释了服务器向智能POS机发送可变组件的更新程序,则利用MD5值对服务器向之智能POS机发送的可变组件的更新程序完整性验证的过程为:In the embodiment of the present invention, the transaction terminal uses an intelligent POS machine as an example to explain that the server sends an update program of the variable component to the smart POS machine, and uses the MD5 value to update the variable component sent by the server to the smart POS machine. The process of integrity verification is:
服务器向智能POS机发送的可变组件的更新程序用MD5进行编码,服务器将更新程序以及经过MD5编码过后的更新程序的摘要信息digest一起发送给智能POS机,因此,服务器向智能POS机发送的可变组件的更新程序由 两部分组成,一部分是原始的可变组件的更新程序,还有一部分是经过MD5编码的摘要信息;The update program of the variable component sent by the server to the smart POS machine is encoded by MD5, and the server sends the update program and the summary information digest of the MD5-encoded update program to the smart POS machine, and therefore, the server sends the smart POS machine to the smart POS machine. Variable component update program by Two parts, one is the update program of the original variable component, and the other part is the summary information encoded by MD5;
智能POS机接收到了服务器推送的的可变组件的更新程序,首先分离由两部分组成的可变组件的更新程序,智能POS机通过MD5运算,根据收到的可变组件的更新程序的内容,重新计算出该可变组件的更新程序的摘要信息,智能POS机将自己计算出的摘要信息和收到的摘要信息进行比较,如果比较结果一样,则认为这封可变组件的更新程序在传输中途没有被修改过,否则的话,可变组件的更新程序在传输过程中一定被修改过,因此内容不可信。The intelligent POS machine receives the update program of the variable component pushed by the server, first separates the update program of the variable component composed of two parts, and the intelligent POS machine performs the MD5 operation according to the content of the update program of the received variable component. Recalculating the summary information of the update component of the variable component, the smart POS machine compares the summary information calculated by itself with the received summary information, and if the comparison result is the same, it considers that the update component of the variable component is transmitting It has not been modified in the middle. Otherwise, the update procedure of the variable component must be modified during the transmission process, so the content is not trusted.
在步骤S103中,根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新,包括:In step S103, updating the corresponding variable component according to the upgrade information included in the update program information, including:
根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
本发明上述实施例中,交易终端接收到更新程序信息时根据交易终端中可变组件的标识ID查找在更新程序信息中对应的可更新的可变组件,更新程序信息中包括可变组件的标识ID,MD5值,还包括可变组件的下载地址,交易终端根据可变组件的ID查找需要更新的可变组件,根据可变组件对应的可变组件的下载地址下载可变组件的更新程序。In the above embodiment of the present invention, when receiving the update program information, the transaction terminal searches for the updateable variable component corresponding to the update program information according to the identifier ID of the variable component in the transaction terminal, and the update program information includes the identifier of the variable component. The ID, MD5 value, and the download address of the variable component, the transaction terminal searches for the variable component that needs to be updated according to the ID of the variable component, and downloads the update program of the variable component according to the download address of the variable component corresponding to the variable component.
其中,在步骤S103中,在根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新之前,还包括交易终端与服务器进行双向验证。In step S103, before the corresponding variable component is updated according to the upgrade information included in the update program information, the transaction terminal and the server perform two-way verification.
交易终端向远程管理系统发送一份终端认证明文;服务器将密钥明文写入终端认证明文,从而得到第一终端认证数据;以主控密钥为密钥明文加密,从而得到密钥密文;服务器将第一终端认证数据、密钥密文连同一份系统认证明文发送到交易终端;交易终端利用主控密钥解析密钥密文,得到密钥明 文;将密钥明文写入自身保存的终端认证明文,从而得到第二终端认证数据;判断第一终端认证数据与第二终端认证数据是否一致;如果一致则交易终端生成第一认证结果为交易终端认证通过;The transaction terminal sends a clear text of the terminal authentication to the remote management system; the server writes the plaintext of the key into the plaintext of the terminal authentication, thereby obtaining the first terminal authentication data; and encrypting the key with the master key as the key, thereby obtaining the key ciphertext; The server sends the first terminal authentication data, the key ciphertext, and a system authentication plaintext to the transaction terminal; the transaction terminal uses the master control key to parse the key ciphertext to obtain the key Writing the plaintext of the key to the terminal authentication plaintext saved by itself, thereby obtaining the second terminal authentication data; determining whether the first terminal authentication data is consistent with the second terminal authentication data; if they are consistent, the transaction terminal generates the first authentication result as a transaction. Terminal certification passed;
交易终端将密钥明文写入系统认证明文,得到第一系统认证数据;将第一系统认证数据连同第一认证结果发送到服务器;服务器将密钥明文写入自身保存的系统认证明文,得到第二系统认证数据,判断第一系统认证数据与第二系统认证数据是否一致,如果一致,则服务器生成第二认证结果为服务器认证通过。The transaction terminal writes the clear text of the key into the system authentication plaintext to obtain the first system authentication data; the first system authentication data is sent to the server together with the first authentication result; the server writes the key plaintext into the system authentication plaintext saved by itself, and obtains the first The second system authentication data determines whether the first system authentication data is consistent with the second system authentication data. If they are consistent, the server generates a second authentication result for the server authentication to pass.
可选的,主控密钥本实施例中,所述主控密钥为下载维护密钥(Download Master Key,简称DMK);所述密钥明文为下载工作密钥(Download Work Key,简称DWK);所述密钥密文为DMK加密过的密钥明文,记做DWK-1;所述终端认证明文表示为T-DATA,用于对交易终端进行认证。Optionally, in the embodiment, the master key is a download master key (DMK); the key text is a download work key (DWK). The key ciphertext is a DMK encrypted key plaintext, which is recorded as DWK-1; and the terminal authentication plaintext is represented as T-DATA for authenticating the transaction terminal.
本发明提供一种交易终端的升级方法,如图2所示,其中:The invention provides a method for upgrading a transaction terminal, as shown in FIG. 2, wherein:
步骤S201,在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;Step S201, after receiving the upgrade request reported by the transaction terminal, determining, according to the identifier of the variable component in the transaction terminal included in the upgrade request, that the variable component is corresponding;
步骤S202,从确定的所有可变组件中选择需要进行更新的可变组件;Step S202, selecting a variable component that needs to be updated from among all the variable components determined;
步骤S203,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。Step S203, the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component.
其中,在步骤S201中,在服务器中保存有可变组件的标识信息与可变组件对应的关系列表,通过可变组件的标识信息在服务器中关系列表中查找可变组件的信息,并调用可变组件信息。In the step S201, the relationship information of the variable component and the variable component are stored in the server, and the information of the variable component is searched in the relationship list in the server by the identification information of the variable component, and the call is made. Change component information.
其中,在步骤S202中,所述从确定的所有可变组件中选择需要进行更新的可变组件之后,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端之前,还包括:After the variable component that needs to be updated is selected from all the variable components determined in step S202, the upgrade information of the variable component that needs to be updated is sent to the transaction terminal through the update program information. Also includes:
确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表; Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
在本发明上述实施例中,服务器接收交易终端上报的所有可变组件的标识ID号以及版本号,根据可变组件的ID在服务器中查找对应的可变组件,并根据交易终端上报的可变组件的版本号与服务器中可变组件的版本号进行对比,若版本号不一致,则认为该可变组件为需要更新的可变组件,将所有交易终端中的可变组件都按照上述步骤进行筛选对比,选择出所有需要升级的可变组件,并且针对一个需要更新的可变组件,服务器会将所述组件的升级信息推送给交易终端,其中,升级信息包括可变组件的标识ID,可变组件的MD5值,以及可变组件的下载地址。In the above embodiment of the present invention, the server receives the identification ID number and the version number of all the variable components reported by the transaction terminal, searches for the corresponding variable component in the server according to the ID of the variable component, and changes according to the transaction terminal. The version number of the component is compared with the version number of the variable component in the server. If the version number is inconsistent, the variable component is considered to be a variable component that needs to be updated, and the variable components in all transaction terminals are filtered according to the above steps. In contrast, all variable components that need to be upgraded are selected, and for a variable component that needs to be updated, the server pushes the upgrade information of the component to the transaction terminal, wherein the upgrade information includes the identification ID of the variable component, and is variable. The MD5 value of the component, as well as the download address of the variable component.
在本发明上述实施例中,服务器通过可变组件的ID查找到可变组件的版本信息,在对比完可变组件的版本并确定可变组件需要更新时,将服务器中可变组件的版本对应的服务器地址信息写入升级信息中,可选的,将服务器中可变组件版本对应的服务器地址采用统一资源定位符URL进行描述,URL的格式由三部分组成,协议,存有资源的主机IP以及主机资源的具体地址。In the above embodiment of the present invention, the server finds the version information of the variable component by the ID of the variable component, and compares the version of the variable component in the server when comparing the version of the variable component and determining that the variable component needs to be updated. The server address information is written into the upgrade information. Optionally, the server address corresponding to the variable component version in the server is described by using a uniform resource locator URL. The format of the URL is composed of three parts, a protocol, and a host IP with a resource. And the specific address of the host resource.
例如下载地址为file//:ftp.linkwan.com/upgrades/files/document1.apk,就表示下载服务器为linkwan,下载文件目录为upgrades/files的可变组件document1的更新程序的下载地址。For example, if the download address is file//:ftp.linkwan.com/upgrades/files/document1.apk, it means that the download server is linkwan, and the download address of the update program of the variable component document1 of the upgrades/files is downloaded.
其中,在步骤S203中,所述服务器在接收到交易终端根据升级信息中可变组件的下载地址发送的对应可变组件的更新应用请求后,服务器会将可变组件的更新程序以应用程序的格式发送给交易终端的。In step S203, after receiving the update application request of the corresponding variable component sent by the transaction terminal according to the download address of the variable component in the upgrade information, the server will update the variable component to the application. The format is sent to the trading terminal.
可选的,在服务器中存放有完整的可变组件更新程序的应用程序,或者,在服务器中有代码编译器,以及所有可变组件对应的更新程序的脚本信息,在服务器接收到交易终端根据升级信息中可变组件的下载地址发送的对应可变组件的更新应用请求后,利用代码编译器将可变组件的更新程序的脚本信息编译成应用程序,推送给交易终端。Optionally, the application that stores the complete variable component update program in the server, or the code compiler in the server, and the script information of the update program corresponding to all the variable components, receive the transaction terminal according to the server according to After updating the application request of the variable component sent by the download address of the variable component in the upgrade information, the code compiler compiles the script information of the update component of the variable component into an application program and pushes it to the transaction terminal.
可选的,所述交易终端的操作系统为Android系统,则所述应用程序的格式为APK。 Optionally, the operating system of the transaction terminal is an Android system, and the format of the application is an APK.
可选的,在本发明实施例中,可以使用Linux系统对脚本信息XML进行处理,首先,将可变组件的文件打包在asset文件夹中,可变组件更新程序的脚本信息打包成资源文件,生成R.java文件;然后对R.java文件进行打包,并对打包好的R.java文件及应用程序其它Java源文件进行编译,生成对应的.class文件;把.class文件转化成Davik VM支持的.dex文件,然后将.dex文件打包成未签名的.APK程序,然后对.APK程序进行签名,得到签名后的APK程序。Optionally, in the embodiment of the present invention, the script information XML may be processed by using a Linux system. First, the variable component file is packaged in an asset folder, and the script information of the variable component update program is packaged into a resource file. Generate R.java file; then package the R.java file, compile the packaged R.java file and other Java source files of the application, generate the corresponding .class file; convert the .class file into Davik VM support The .dex file, then package the .dex file into an unsigned .APK program, then sign the .APK program and get the signed APK program.
其中,在步骤S203中,还包括,在所述更新程序信息还包括服务器下发的新的可变组件,新的可变组件是指在交易终端可变组件中没有的可变组件,服务器在更新交易终端中的可变组件的同时,会下发新的可变组件给交易终端,使交易终端能够增加新的可变组件,从而实现新的功能。In the step S203, the method further includes: in the update program information, a new variable component that is sent by the server, where the new variable component refers to a variable component that is not included in the transaction terminal variable component, where the server is When the variable component in the transaction terminal is updated, a new variable component is issued to the transaction terminal, so that the transaction terminal can add a new variable component to implement a new function.
本发明提供一种交易终端升级方法,如图3所示,所述交易终端包括交易终端的操作系统,组件更新服务模块,以及存储模块,其中操作系统划分为可变组件与固定组件,组件更新服务模块具有系统权限,包括开机事件检测器与组件更新程序两部分;在本发明实施例中,所述交易终端指的是智能POS机;The present invention provides a method for upgrading a transaction terminal. As shown in FIG. 3, the transaction terminal includes an operating system of a transaction terminal, a component update service module, and a storage module, wherein the operating system is divided into a variable component and a fixed component, and the component is updated. The service module has system rights, including a boot event detector and a component update program. In the embodiment of the present invention, the transaction terminal refers to a smart POS machine;
开机事件检测器可以监测到交易终端的开机完成时间,组件更新程序定时和组件更新服务器通信,上送该智能POS机厂商标识、系统标识及可变组件区所有可变组件的ID和版本号;下载可变组件;检测可变组件完整性和正确性;更新可变组件至系统。The boot event detector can monitor the boot completion time of the transaction terminal, the component update program timing and the component update server communication, and send the smart POS machine manufacturer identifier, the system identifier, and the ID and version number of all variable components of the variable component area; Download variable components; detect variable component integrity and correctness; update variable components to the system.
服务器中包括组件更新服务器,组件更新服务器用于可变组件的保存和下发,其中组件更新服务器中包括数据库,保存所有厂商智能POS机系统的所有可变组件文件信息及这些组件与厂商和系统的对应信息。可变组件的信息包括ID、版本号、MD5值和签名信息等。对应信息包含某个组件所属的厂商及所属的系统版本;文件系统,具体保存所有厂商的所有可变组件文件;组件管理系统,提供可变组件的可视化维护入口,具体与所有智能POS机网络通信,提供可变组件的分发工作。 The server includes a component update server, which is used for saving and delivering variable components. The component update server includes a database, and stores all variable component file information of all manufacturers' intelligent POS system and these components and manufacturers and systems. Corresponding information. The information of the variable component includes an ID, a version number, an MD5 value, and signature information. Corresponding information includes the manufacturer and system version to which a component belongs; the file system stores all variable component files of all vendors; the component management system provides a visual maintenance entry for variable components, specifically communicating with all intelligent POS machines. , providing distribution of variable components.
在本发明实施例中,设置间隔时间,使得交易终端每隔特定时间向服务器上报升级请求。In the embodiment of the present invention, the interval time is set, so that the transaction terminal reports the upgrade request to the server at a specific time.
如图3所示,本发明实施例中交易终端升级的具体流程为:As shown in FIG. 3, the specific process of upgrading a transaction terminal in the embodiment of the present invention is as follows:
步骤S301,智能POS机中的开机事件监测器监测到智能POS机已经开机完毕;Step S301, the boot event monitor in the smart POS machine detects that the smart POS machine has been powered on;
步骤S302,智能POS机中的开机事件监测器启动组件更新服务程序;Step S302, the boot event monitor in the smart POS machine starts the component update service program;
步骤S303,智能POS机中的组件更新服务程序内含一个间隔间隔定时器,每隔指定时间间隔向服务器发送通信请求;Step S303, the component update service program in the smart POS machine includes an interval timer, and sends a communication request to the server every specified time interval;
步骤S304,智能POS机中的组件更新服务程序将智能POS机的厂商标识、系统标识和系统中所有可变组件的组件ID和版本号上送服务器中的组件更新服务器。Step S304: The component update service program in the smart POS server sends the vendor identifier of the smart POS machine, the system identifier, and the component ID and version number of all variable components in the system to the component update server in the server.
步骤S305,服务器中的组件更新服务器将智能POS机上传的每个可变组件与服务器中保存的该组件进行对比,筛选并返回可更新可变组件信息列表。每个列表项包括一个可更新可变组件的ID、MD5值、签名信息和下载地址;Step S305, the component update server in the server compares each variable component uploaded by the smart POS machine with the component saved in the server, and filters and returns the list of updateable variable component information. Each list item includes an ID of an updateable variable component, an MD5 value, a signature information, and a download address;
步骤S306,智能POS机中组件更新服务程序根据组件更新服务器返回的可更新可变组件信息列表,向服务器中组件更新服务器逐个请求待更新的可变组件文件;Step S306, the component update service program in the smart POS server requests the variable component file to be updated one by one according to the component update server in the server according to the list of updateable variable component information returned by the component update server;
步骤S307,服务器中组件更新服务器返回可变组件文件给智能POS机的组件更新程序。Step S307, the component update server in the server returns the variable component file to the component update program of the smart POS machine.
步骤S308,智能POS机的组件更新服务程序对可变组件文件重新计算MD5值,并与步骤5中服务器返回的MD5值进行比对。如果一致,则文件完整未被篡改。Step S308, the component update service program of the smart POS machine recalculates the MD5 value of the variable component file, and compares it with the MD5 value returned by the server in step 5. If they are consistent, the file is not tampered with.
步骤S309,智能POS机根据可变组件ID,利用智能POS机中的组件更新服务程序将系统中可变组件区中的可变组件文件进行替换。Step S309, the smart POS machine replaces the variable component file in the variable component area of the system with the component update service program in the smart POS machine according to the variable component ID.
基于相同的技术构思,本发明还提供一种交易终端升级装置,如图4所示,包括:Based on the same technical concept, the present invention further provides a transaction terminal upgrading apparatus, as shown in FIG. 4, including:
上报单元401,用于向服务器上报交易终端的升级请求,其中所述升级请 求包括所述交易终端中的可变组件的标识;The reporting unit 401 is configured to report an upgrade request of the transaction terminal to the server, where the upgrade is requested Finding an identifier including a variable component in the transaction terminal;
接收单元402,用于接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;The receiving unit 402 is configured to receive update program information that is sent by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded. The number of the variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
更新单元403,用于根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。The updating unit 403 is configured to update the corresponding variable component according to the upgrade information included in the update program information.
进一步地,所述接收单元402,还用于:Further, the receiving unit 402 is further configured to:
确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
进一步地,所述升级请求,还包括:Further, the upgrade request further includes:
所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
进一步地,所述更新单元403,具体用于:Further, the updating unit 403 is specifically configured to:
根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
基于相同的技术构思,本发明还提供一种交易终端升级装置,如图5所示,包括:Based on the same technical concept, the present invention further provides a transaction terminal upgrading apparatus, as shown in FIG. 5, including:
确定单元501,用于在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;a determining unit 501, configured to determine, according to the identifier of the variable component in the transaction terminal included in the upgrade request, the variable component after receiving the upgrade request reported by the transaction terminal;
选择单元502,用于从确定的所有可变组件中选择需要进行更新的可变组件;a selecting unit 502, configured to select, from all the determined variable components, a variable component that needs to be updated;
发送单元503,用于将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。 a sending unit 503, configured to send, by using the update program information, upgrade information of the variable component that needs to be updated, to the transaction terminal, so that the transaction terminal, according to the upgrade information of the variable component, the corresponding variable component Update.
进一步地,所述选择单元502,还用于:Further, the selecting unit 502 is further configured to:
确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
基于相同的原理,本发明还提供一种电子设备,如图6所示,包括处理器601、存储器602、收发机603、总线接口604,其中处理器601、存储器602与收发机603之间通过总线接口604连接;Based on the same principle, the present invention further provides an electronic device, as shown in FIG. 6, including a processor 601, a memory 602, a transceiver 603, and a bus interface 604, wherein the processor 601, the memory 602, and the transceiver 603 pass Bus interface 604 is connected;
所述处理器601,用于读取所述存储器602中的程序,执行下列方法:通过收发机603向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;通过收发机603接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新;The processor 601 is configured to read a program in the memory 602, and perform the following method: reporting, by the transceiver 603, an upgrade request of the transaction terminal to the server, where the upgrade request includes a variable component in the transaction terminal Receiving, by the transceiver 603, update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs The number of the variable components that are upgraded is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request; according to the upgrade information included in the update program information, the corresponding The component is updated;
所述存储器602,用于存储一个或多个可执行程序,可以存储所述处理器601在执行操作时所使用的数据;The memory 602 is configured to store one or more executable programs, and may store data used by the processor 601 when performing an operation;
所述收发机603,用于在所述处理器601的控制下向服务器上报交易终端的升级请求且通过收发机接收服务器下发的更新程序信息;The transceiver 603 is configured to report, by the processor 601, an upgrade request of the transaction terminal to the server, and receive, by the transceiver, update program information delivered by the server;
所述总线接口604,用于提供接口。The bus interface 604 is configured to provide an interface.
进一步地,所述处理器601通过收发机603接收服务器下发的更新程序信息后,根据所述更新程序信息包括的所述交易终端需要升级的所述可变组件的升级信息,对对应的所述可变组件进行更新之前,还用于:Further, after the processor 601 receives the update program information sent by the server, the processor 601 selects the upgrade information of the variable component that needs to be upgraded by the transaction terminal included in the update program information, and the corresponding Before the variable component is updated, it is also used to:
确定通过收发机603收到的所述更新程序信息通过完整性验证。The update program information received by the transceiver 603 is determined to pass the integrity verification.
进一步地,所述升级请求,还包括:Further, the upgrade request further includes:
所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
进一步地,所述处理器601根据所述更新程序信息包括的升级信息,对 对应的所述可变组件进行更新,具体用于:Further, the processor 601 is configured according to the upgrade information included in the update program information. Corresponding said variable component is updated, specifically for:
根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
基于相同的原理,本发明还提供一种网络设备,如图7所示,包括处理器701、存储器702、收发机703、总线接口704,其中处理器701、存储器702与收发机703之间通过总线接口704连接;Based on the same principle, the present invention further provides a network device, as shown in FIG. 7, including a processor 701, a memory 702, a transceiver 703, and a bus interface 704, wherein the processor 701, the memory 702, and the transceiver 703 pass through Bus interface 704 is connected;
所述处理器701,用于读取所述存储器702中的程序,执行下列方法:在通过收发机703接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;从确定的所有可变组件中选择需要进行更新的可变组件;将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新;The processor 701 is configured to read a program in the memory 702, and perform the following method: after receiving the upgrade request reported by the transaction terminal by the transceiver 703, according to the location included in the upgrade request Determining an identifier of the variable component in the transaction terminal, determining corresponding to the variable component; selecting a variable component that needs to be updated from all the determined variable components; and upgrading information of the variable component that needs to be updated by the update program Sending information to the transaction terminal, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component;
所述存储器702,用于存储一个或多个可执行程序,可以存储所述处理器701在执行操作时所使用的数据;The memory 702 is configured to store one or more executable programs, and may store data used by the processor 701 when performing operations;
所述收发机703,用于在所述处理器701的控制下接收交易终端上报的所述升级请求;The transceiver 703 is configured to receive, by the processor 701, the upgrade request reported by the transaction terminal;
所述总线接口704,用于提供接口。The bus interface 704 is configured to provide an interface.
进一步地,所述处理器701从确定的所有可变组件中选择需要进行更新的可变组件之后,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端之前,具体用于:Further, after the processor 701 selects a variable component that needs to be updated from all the determined variable components, the upgrade information of the variable component that needs to be updated is sent to the transaction terminal by using the update program information, specifically Used for:
确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;将所述信息列表作为需要进行更新的可变组件的升级信息。Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information; using the information list as upgrade information of a variable component that needs to be updated.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、 或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器,使得通过该计算机或其他可编程数据处理设备的处理器执行的指令可实现流程图中的一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. The computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor, or a processor of other programmable data processing device such that instructions executed by a processor of the computer or other programmable data processing device can be implemented in a flowchart The function specified in one or more processes and/or block diagrams in one or more blocks.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图的一个流程或多个流程和/或方框图的一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (18)

  1. 一种交易终端升级的方法,其特征在于,所述方法包括:A method for upgrading a transaction terminal, characterized in that the method comprises:
    向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;And uploading, to the server, an upgrade request of the transaction terminal, where the upgrade request includes an identifier of a variable component in the transaction terminal;
    接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;Receiving update program information delivered by the server, where the update program information includes upgrade information of a variable component that the transaction terminal needs to upgrade, and the variable component included in the update program information needs to be upgraded by the transaction terminal The number is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
    根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。And updating the corresponding variable component according to the upgrade information included in the update program information.
  2. 根据权利要求1所述的方法,其特征在于,所述接收服务器下发的更新程序信息之后,根据所述更新程序信息包括的所述交易终端需要升级的所述可变组件的升级信息,对对应的所述可变组件进行更新之前,还包括:The method according to claim 1, wherein after the update program information sent by the server is received, the upgrade information of the variable component that needs to be upgraded by the transaction terminal included in the update program information is Before the corresponding variable component is updated, the method further includes:
    确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
  3. 根据权利要求1所述的方法,其特征在于,所述升级请求,还包括:The method of claim 1, wherein the upgrade request further comprises:
    所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
  4. 根据权利要求1~3任一所述的方法,其特征在于,根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新,包括:The method according to any one of claims 1 to 3, wherein updating the corresponding variable component according to the upgrade information included in the update program information comprises:
    根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
    根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  5. 一种交易终端升级的方法,其特征在于,所述方法包括:A method for upgrading a transaction terminal, characterized in that the method comprises:
    在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件; After receiving the upgrade request reported by the transaction terminal, determining, according to the identifier of the variable component in the transaction terminal included in the upgrade request, the corresponding variable component;
    从确定的所有可变组件中选择需要进行更新的可变组件;Selecting a variable component that needs to be updated from among all the variable components determined;
    将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。The upgrade information of the variable component that needs to be updated is sent to the transaction terminal through the update program information, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component.
  6. 根据权利要求5所述的方法,其特征在于,所述从确定的所有可变组件中选择需要进行更新的可变组件之后,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端之前,还包括:The method according to claim 5, wherein after selecting the variable component that needs to be updated from among all the variable components determined, the upgrade information of the variable component that needs to be updated is sent to the update program information by Before the transaction terminal, the method further includes:
    确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
    将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
  7. 一种交易终端升级的装置,其特征在于,包括:A device for upgrading a transaction terminal, comprising:
    上报单元,用于向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;a reporting unit, configured to report an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal;
    接收单元,用于接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;a receiving unit, configured to receive update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded The number of the variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request;
    更新单元,用于根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新。And an updating unit, configured to update the corresponding variable component according to the upgrade information included in the update program information.
  8. 根据权利要求7所述的装置,其特征在于,所述接收单元,还用于:The device according to claim 7, wherein the receiving unit is further configured to:
    确定收到的所述更新程序信息通过完整性验证。Determining that the updated program information received passes the integrity verification.
  9. 根据权利要求7所述的装置,其特征在于,所述升级请求,还包括:The device according to claim 7, wherein the upgrade request further comprises:
    所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
  10. 根据权利要求7~9任一所述的装置,其特征在于,所述更新单元,具体用于:The device according to any one of claims 7 to 9, wherein the updating unit is specifically configured to:
    根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新 程序的下载地址;And searching, according to the identifier of the variable component, upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a variable component update that needs to be updated. The download address of the program;
    根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  11. 一种交易终端升级的装置,其特征在于,包括:A device for upgrading a transaction terminal, comprising:
    确定单元,用于在接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;a determining unit, configured to determine, according to the identifier of the variable component in the transaction terminal included in the upgrade request, the variable component after receiving the upgrade request reported by the transaction terminal;
    选择单元,用于从确定的所有可变组件中选择需要进行更新的可变组件;a selection unit for selecting a variable component that needs to be updated from among all the variable components determined;
    发送单元,用于将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新。a sending unit, configured to send upgrade information of the variable component that needs to be updated to the transaction terminal by using the update program information, so that the transaction terminal performs the corresponding variable component according to the upgrade information of the variable component. Update.
  12. 根据权利要求11所述的装置,其特征在于,所述选择单元,还用于:The device according to claim 11, wherein the selecting unit is further configured to:
    确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
    将所述信息列表作为需要进行更新的可变组件的升级信息。The information list is used as upgrade information of a variable component that needs to be updated.
  13. 一种电子设备,其特征在于,包括处理器、存储器、收发机、总线接口,其中处理器、存储器与收发机之间通过总线接口连接;An electronic device, comprising: a processor, a memory, a transceiver, and a bus interface, wherein a processor, a memory and a transceiver are connected by a bus interface;
    所述处理器,用于读取所述存储器中的程序,执行下列方法:通过收发机向服务器上报交易终端的升级请求,其中所述升级请求包括所述交易终端中的可变组件的标识;通过收发机接收服务器下发的更新程序信息,其中所述更新程序信息包括所述交易终端需要升级的可变组件的升级信息,所述更新程序信息中包括的所述交易终端需要升级的所述可变组件的数量不大于所述升级请求中包括所述交易终端中的所述可变组件的标识的数量;根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新;The processor is configured to read a program in the memory, and execute the following method: reporting, by the transceiver, an upgrade request of the transaction terminal to the server, where the upgrade request includes an identifier of the variable component in the transaction terminal; Receiving, by the transceiver, update program information delivered by the server, where the update program information includes upgrade information of the variable component that the transaction terminal needs to upgrade, and the transaction terminal included in the update program information needs to be upgraded The number of variable components is not greater than the number of identifiers of the variable component included in the transaction terminal in the upgrade request; and the corresponding variable component is updated according to the upgrade information included in the update program information. ;
    所述存储器,用于存储一个或多个可执行程序,可以存储所述处理器在执行操作时所使用的数据;The memory is configured to store one or more executable programs, and may store data used by the processor when performing operations;
    所述收发机,用于在所述处理器的控制下向服务器上报交易终端的升级 请求且通过收发机接收服务器下发的更新程序信息;The transceiver is configured to report an upgrade of the transaction terminal to the server under the control of the processor Requesting and receiving, by the transceiver, update program information delivered by the server;
    所述总线接口,用于提供接口。The bus interface is for providing an interface.
  14. 根据权利要求13所述的设备,其特征在于,所述处理器通过收发机接收服务器下发的更新程序信息后,根据所述更新程序信息包括的所述交易终端需要升级的所述可变组件的升级信息,对对应的所述可变组件进行更新之前,还用于:The device according to claim 13, wherein the processor, after receiving the update program information sent by the server, receives the variable component that the transaction terminal needs to upgrade according to the update program information. Upgrade information, before updating the corresponding variable component, is also used to:
    确定通过收发机收到的所述更新程序信息通过完整性验证。Determining that the update program information received by the transceiver passes the integrity verification.
  15. 根据权利要求13所述的设备,其特征在于,所述升级请求,还包括:The device of claim 13, wherein the upgrade request further comprises:
    所述交易终端信息和所述交易终端中每个可变组件的版本号。The transaction terminal information and a version number of each variable component in the transaction terminal.
  16. 根据权利要求13~15所述的设备,其特征在于,所述处理器根据所述更新程序信息包括的升级信息,对对应的所述可变组件进行更新,具体用于:The device according to any one of claims 13 to 15, wherein the processor updates the corresponding variable component according to the upgrade information included in the update program information, specifically for:
    根据所述可变组件的标识,在所述更新程序信息中查找对应的所述可变组件的升级信息,其中,所述升级信息中包括需要进行更新的可变组件更新程序的下载地址;And searching, according to the identifier of the variable component, the upgrade information of the corresponding variable component in the update program information, where the upgrade information includes a download address of a variable component update program that needs to be updated;
    根据所述述可变组件更新程序的下载地址下载对应的所述更新程序,并通过下载的更新程序对对应的可变组件进行更新。The corresponding update program is downloaded according to the download address of the variable component update program, and the corresponding variable component is updated by the downloaded update program.
  17. 一种网络设备,其特征在于,包括:A network device, comprising:
    处理器701、存储器702、收发机703、总线接口704,其中处理器701、存储器702与收发机703之间通过总线接口704连接;The processor 701, the memory 702, the transceiver 703, and the bus interface 704, wherein the processor 701, the memory 702 and the transceiver 703 are connected by a bus interface 704;
    所述处理器701,用于读取所述存储器702中的程序,执行下列方法:在通过收发机703接收到所述交易终端上报的所述升级请求后,根据所述升级请求中包括的所述交易终端中的可变组件的标识,确定对应所述可变组件;从确定的所有可变组件中选择需要进行更新的可变组件;将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端,以使所述交易终端根据可变组件的升级信息,对对应的所述可变组件进行更新;The processor 701 is configured to read a program in the memory 702, and perform the following method: after receiving the upgrade request reported by the transaction terminal by the transceiver 703, according to the location included in the upgrade request Determining an identifier of the variable component in the transaction terminal, determining corresponding to the variable component; selecting a variable component that needs to be updated from all the determined variable components; and upgrading information of the variable component that needs to be updated by the update program Sending information to the transaction terminal, so that the transaction terminal updates the corresponding variable component according to the upgrade information of the variable component;
    所述存储器702,用于存储一个或多个可执行程序,可以存储所述处理器 701在执行操作时所使用的数据;The memory 702 is configured to store one or more executable programs, and the processor may be stored 701 data used in performing the operation;
    所述收发机703,用于在所述处理器701的控制下接收交易终端上报的所述升级请求;The transceiver 703 is configured to receive, by the processor 701, the upgrade request reported by the transaction terminal;
    所述总线接口704,用于提供接口。The bus interface 704 is configured to provide an interface.
  18. 根据权利要求17所述的设备,其特征在于,所述处理器701从确定的所有可变组件中选择需要进行更新的可变组件之后,将需要进行更新的可变组件的升级信息通过更新程序信息发送给所述交易终端之前,具体用于:The device according to claim 17, wherein after the processor 701 selects a variable component that needs to be updated from among all the variable components determined, the upgrade information of the variable component that needs to be updated is passed through the update program. Before the information is sent to the transaction terminal, it is specifically used to:
    确定每个需要进行更新的可变组件的下载地址,并将确定的下载地址组成信息列表;Determining a download address of each variable component that needs to be updated, and composing the determined download address into a list of information;
    将所述信息列表作为需要进行更新的可变组件的升级信息。 The information list is used as upgrade information of a variable component that needs to be updated.
PCT/CN2016/108918 2015-12-14 2016-12-07 Method and device for upgrading transaction terminal WO2017101720A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017101720A1 true WO2017101720A1 (en) 2017-06-22

Family

ID=56840306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108918 WO2017101720A1 (en) 2015-12-14 2016-12-07 Method and device for upgrading transaction terminal

Country Status (3)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704088A (en) * 2019-10-21 2020-01-17 李炳勇 Sensor upgrading method and system based on Internet of things

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930179A (en) * 2015-12-14 2016-09-07 中国银联股份有限公司 Method and apparatus for upgrading transaction terminal
CN106775841B (en) * 2016-11-29 2021-02-19 深圳广电银通金融电子科技有限公司 Method, system and device for upgrading plug-in
CN107194242B (en) * 2017-03-30 2019-11-08 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
CN109413009B (en) * 2017-08-18 2022-06-14 厦门雅迅网络股份有限公司 Method for over-the-air upgrading of vehicle firmware and computer readable storage medium
CN107995284B (en) * 2017-11-29 2021-02-05 艾体威尔电子技术(北京)有限公司 OTA (over the air) upgrading method suitable for POS (point of sale) machine
CN112905230A (en) * 2021-03-16 2021-06-04 深圳市麦谷科技有限公司 Application program management method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707972A (en) * 2012-05-02 2012-10-03 银联商务有限公司 POS (Point Of Sale) terminal program updating method and system
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN105930179A (en) * 2015-12-14 2016-09-07 中国银联股份有限公司 Method and apparatus for upgrading transaction terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9240888B2 (en) * 2003-03-05 2016-01-19 Bally Gaming, Inc. Authentication system for gaming machines
CN102609277B (en) * 2011-08-26 2014-05-21 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN103108024B (en) * 2012-11-14 2015-08-26 福建联迪商用设备有限公司 A kind of increment method for down loading of multimedia self-help terminal
CN103685554A (en) * 2013-12-25 2014-03-26 浙江云巢科技有限公司 Upgrading method, device and system
CN104331522B (en) * 2014-11-28 2018-03-30 迈普通信技术股份有限公司 OEM information method for customizing 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN102707972A (en) * 2012-05-02 2012-10-03 银联商务有限公司 POS (Point Of Sale) terminal program updating method and system
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN105930179A (en) * 2015-12-14 2016-09-07 中国银联股份有限公司 Method and apparatus for upgrading transaction terminal

Cited By (2)

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

Also Published As

Publication number Publication date
TW201721417A (en) 2017-06-16
CN105930179A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
WO2017101720A1 (en) Method and device for upgrading transaction terminal
US11256799B2 (en) Device lifecycle distributed ledger
KR102263985B1 (en) Method and system for providing validated, auditable, and immutable inputs to a smart contract
JP6713056B2 (en) Compression firmware update
CN105391717A (en) APK signature authentication method and APK signature authentication system
GB2507596A (en) A method for updating software in a device that makes payment transactions
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
US20220201064A1 (en) Method And System For Transferring Data
CN102707972A (en) POS (Point Of Sale) terminal program updating method and system
CN110058867A (en) The packing of application program mirror image, installation method and computer installation, storage medium
US20230169154A1 (en) Ownership data management system and method
CN111125778A (en) Copyright transaction information processing method and device
WO2023065823A1 (en) Software development kit fixing method, terminal, server and device
CN110766403A (en) Data processing device and method based on block chain and storage medium
US20190188731A1 (en) Authentication of goods
CN109891385B (en) Method and terminal for installing POS machine initialization configuration information
US20210158372A1 (en) Secure management of ownership of physical objects
CN106535082B (en) Data processing method, device and system
CN111273920A (en) Method and device for writing data into installation package and storage medium
US9336361B2 (en) Feature license-related repair/replacement processes and credit handling
US20210234686A1 (en) Information processing device, information processing method, and storage medium
US9607135B2 (en) Asset protection based on redundantly associated trusted entitlement verification
US11397760B2 (en) Managing relationships between persons and physical objects based on physical fingerprints of the physical objects
KR101101322B1 (en) Method and apparatus for application authentication
US11907983B2 (en) Systems and methods for proof of application ownership

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16874777

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874777

Country of ref document: EP

Kind code of ref document: A1