WO2017084556A1 - 一种跨终端设备平台的数据处理方法及装置 - Google Patents

一种跨终端设备平台的数据处理方法及装置 Download PDF

Info

Publication number
WO2017084556A1
WO2017084556A1 PCT/CN2016/105905 CN2016105905W WO2017084556A1 WO 2017084556 A1 WO2017084556 A1 WO 2017084556A1 CN 2016105905 W CN2016105905 W CN 2016105905W WO 2017084556 A1 WO2017084556 A1 WO 2017084556A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
application data
space
format
underlying application
Prior art date
Application number
PCT/CN2016/105905
Other languages
English (en)
French (fr)
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 WO2017084556A1 publication Critical patent/WO2017084556A1/zh

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

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus across a terminal device platform.
  • POS Point of Sales
  • Each manufacturer has its own POS terminal products, and the hardware of each terminal product is different, and the underlying functions of each terminal, such as the operating system layer and API (Application Programming Interface, application programming interface) layer definitions are different, resulting in inconsistent data definitions when processing the same type of data for each terminal product.
  • the bank card number read from the reader of the A manufacturer POS is in the form of a
  • the bank card number read by the B vendor POS reader is in the format b.
  • the card number is the same length, it cannot define a common, cross-platform upper POS application based on the terminal hardware and the underlying layer of different vendors.
  • a corresponding POS application is developed in each type of POS terminal in the prior art, and the developed POS application can only be applied to the POS terminal of this type, and cannot be performed across the terminal device. Application, which leads to inefficient application development and waste of resources.
  • the present invention provides a data processing method and device for a cross-terminal device platform, which is used to solve the technical problem that the developed POS application in the prior art cannot be used across the terminal device, resulting in low application development efficiency.
  • a data processing method for a cross-terminal device platform provided by an embodiment of the present application is include:
  • the converted underlying application data is stored into the data space, so that the upper layer application reads the converted underlying application data when needed.
  • the method provided by the embodiment of the present application first obtains the underlying application data of the POS terminal, and then formats the underlying application data according to the upper application data format and the underlying application data format, so that the converted underlying application data format and the upper application are converted.
  • the format of the data is the same, and the converted underlying application data is stored in the data space, and the upper layer application is used when needed. Therefore, the method converts the format of the underlying data unique to a POS terminal into the agreed upper application data.
  • the format of the upper application only needs to obtain data in the data space, and the data format in the data space of each POS terminal is the same, because the data format called by the upper POS application is unified. Therefore, the upper POS application can be used across the terminal device, which improves the efficiency of the program developer and saves system resources.
  • the storing the converted underlying application data into the data space includes:
  • the converted underlying application data is stored into a corresponding data space.
  • the method further includes:
  • the converted underlying application data is read from the corresponding data space.
  • the storage space comprises part or all of the following:
  • An EMV kernel data space for storing data objects read by an EMV kernel from an IC card or a transaction-related data object set by an EMV kernel
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • the storing the converted underlying application data into the corresponding data space includes:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • a data processing apparatus for a cross-terminal device platform provided by the embodiment of the present application includes:
  • An obtaining unit configured to obtain bottom layer application data of a point of sale POS terminal
  • a determining unit configured to determine an upper application data format and a format of the underlying application data
  • a conversion unit configured to perform format conversion on the underlying application data according to the format of the underlying application data and the upper application data format, so that the format of the converted underlying application data and the upper application data are The same format;
  • a storage unit configured to store the converted underlying application data into the data space, so that the upper layer application reads the converted underlying application data when needed.
  • the storage unit is specifically configured to:
  • the converted underlying application data is stored into a corresponding data space.
  • the device further includes a calling unit, configured to:
  • the converted underlying application data is read from the corresponding data space.
  • the storage space comprises part or all of the following:
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • the storage unit is further configured to:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • a data processing apparatus for a cross-terminal device platform includes a communication interface, a processor, a memory, and a bus system;
  • the processor reads the information in the memory and performs the following steps:
  • the processor is specifically configured to:
  • the converted underlying application data is stored into a corresponding data space.
  • the processor is further configured to:
  • the converted underlying application data is read from the corresponding data space.
  • the storage space comprises part or all of the following:
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • the processor is further configured to:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • FIG. 1 is a flowchart of a data processing method for a cross-terminal device platform according to an embodiment of the present application
  • FIG. 2(a) is a schematic diagram showing the format of an underlying application format of a bank card number of a POS terminal A converted to an upper layer application format according to an embodiment of the present application;
  • FIG. 2(b) is a schematic diagram showing a format of an underlying application format of a bank card number of a POS terminal B according to an embodiment of the present application;
  • FIG. 3 is a detailed flowchart of a data processing method for a cross-terminal device platform according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a data processing apparatus of a cross-terminal device platform according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of another data processing apparatus of a cross-terminal device platform according to an embodiment of the present disclosure.
  • the data processing method of the cross-terminal device platform includes:
  • Step 101 Obtain an underlying application data of a point-of-sale POS terminal
  • Step 102 Determine an upper application data format and a format of the underlying application data.
  • Step 103 Perform format conversion on the underlying application data according to the format of the underlying application data and the upper application data format, so that the format of the converted underlying application data is the same as the format of the upper application data.
  • Step 104 Store the converted underlying application data into the data space, so that the upper layer application reads the converted underlying application data when needed.
  • the POS terminal reads the IC (Integrated Circuit) card information, such as card number, card information, etc., by acquiring the underlying application data, for example, by a card reader.
  • IC Integrated Circuit
  • the upper layer application data format and the bottom layer application data format are obtained.
  • the upper layer application data format is the data format of the POS terminal itself, and the upper layer application data format is the converted data format.
  • the underlying application data formats of different types of POS terminals are different, but the upper layer application data format conventions of different types of POS terminals are the same, for example, as shown in FIG. 2(a) and FIG. 2(b), respectively.
  • the underlying application format of the bank card number of the POS terminal A and the POS terminal B is converted into the upper application format.
  • the underlying application format of the POS terminal A obtaining the bank card number is a
  • the underlying application of the POS terminal B obtaining the bank card number is b.
  • the converted underlying application data is stored in the data space, so that the upper layer application reads the converted underlying application data when needed. Therefore, when the upper application needs to obtain data, only the POS terminal needs to be obtained.
  • the data in the data space can be obtained. Because the data format of the data space of different POS terminals is the same, the upper application of the POS terminal can be transplanted across the terminal device, for example, as shown in Figure 2(a) and Figure 2(b). It can be noted that, for upper-layer applications that handle the same service, the upper-layer application in the POS terminal A and the application in the POS terminal B can be the same set of applications.
  • the method provided by the embodiment of the present application first obtains the underlying application data of the POS terminal, and then formats the underlying application data according to the upper application data format and the underlying application data format, so that the converted underlying application data format and the upper application are converted.
  • the format of the data is the same, and the converted underlying application data is stored in the data space, and the upper layer application is used when needed. Therefore, the method converts the format of the underlying data unique to a POS terminal into the agreed upper application data.
  • the format of the upper application only needs to obtain data in the data space, and the data format in the data space of each POS terminal is the same, because the data format called by the upper POS application is unified. Therefore, the upper POS application can be transplanted across the terminal device, which improves the efficiency of the program developer and saves system resources.
  • the data space is a storage space of the data object, and may be correspondingly specified according to the needs of the actual application, for example, according to the type of the service, different types of services are divided into corresponding data spaces, or according to Data source, which divides data from different sources into corresponding data spaces.
  • This application is not specifically limited. The following describes a method for dividing a data space provided by an embodiment of the present application, that is, dividing a data space according to a data source.
  • the storage space comprises part or all of the following:
  • An EMV kernel data space for storing data objects read by an EMV kernel from an IC card or a transaction-related data object set by an EMV kernel
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • the data space is divided into four types, namely:
  • the current data space is a storage area that is opened at the beginning of a transaction. Its function is to store the data objects of the current transaction.
  • the current data space is created at the beginning of the transaction and releases the relevant resources at the end of the transaction.
  • the data objects it stores include EMV (Europay, Master and Visa, Europay, Continental, MasterCard, Visa) data objects and custom data objects.
  • EMV data object is data that needs to be used when the POS terminal and the financial IC card perform two-way security authentication.
  • the custom data object is data to be used by the POS during the entire transaction process, such as transaction type, terminal transaction attribute, transaction amount, currency. Data such as code.
  • Peripheral reading refers to data read from external devices such as a PIN pad, a non-card reader, and a scanner.
  • the EMV kernel is a set of independently packaged function libraries defined by POS for handling secure authentication with financial IC cards.
  • the EMV kernel data space is a storage area opened by the EMV kernel at the beginning of the transaction. Its function is to store the data objects read by the EMV kernel from the IC card and the transaction-related data objects set by the application to the EMV kernel.
  • the EMV kernel data space is created at the beginning of the transaction and releases the relevant resources at the end of the transaction.
  • the data objects it stores contain only EMV data objects. Such as within EMV
  • the data stored in the nuclear data space may be IC card related data such as card number, transaction type, and the like.
  • the environment variable data space refers to a storage space opened after the system is initialized. This space has the power-off protection feature. Its function is to store system parameters and data objects that describe system capabilities.
  • the environment variable data space is created during system initialization and is valid throughout the system life cycle.
  • the data objects it stores include EMV data objects and custom data objects.
  • the data stored in the environment variable data space can be a global variable, such as system time, POS terminal model, POS terminal number, and the like.
  • the historical transaction data space refers to the historical transaction record found by searching the log or the location record during the transaction process.
  • the storage area associated with the historical transaction record is the historical transaction data space, and its function is to store the data object of the historical transaction.
  • the historical transaction data space is created during the transaction process when the historical transaction log is retrieved for the first time and released at the end of the transaction.
  • the stored data objects include EMV data objects and custom data objects, which are associated with the newly retrieved historical transaction records when retrieved again.
  • the above method specifically defines the type of the data space in the use of the embodiment of the present application.
  • the type of the data space can be defined and set according to actual needs, which is not specifically limited in this application.
  • the upper application After the specific space type is determined, the upper application only needs to obtain the corresponding data in the corresponding data space when the data is needed. Since the data space definitions of different POS terminals are consistent, the upper application shields the underlying applications of different POS terminals. The difference between data formats only needs to pay attention to the specific business execution logic, which improves the development efficiency of developers and saves system resources.
  • the data can be stored in the corresponding data space according to the correspondence between the type of the underlying application data and the storage space.
  • the storing the converted underlying application data into the data space includes:
  • the converted underlying application data is stored into a corresponding data space.
  • the storage space corresponding to the type of the obtained underlying application data is determined, and then the converted underlying application data is stored in the corresponding data space, for example, the underlying application.
  • the obtained data type is related to the current transaction, and then the storage space corresponding to the acquired data is determined to be the current transaction data space, and then the underlying application data format is converted according to the underlying application data format and the upper application data format. , the converted underlying application data is stored in the current transaction data space.
  • the method can store different types of data into the corresponding storage space, thereby facilitating the upper application to call the relevant data according to different needs to the related data space, thereby improving the System efficiency.
  • the storing the converted underlying application data into the corresponding data space includes:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • the converted underlying application data is directly used to update the data object. If there is no corresponding data object, the data object is first established, and then the converted underlying application is applied. The data is updated to establish a good data object, thus ensuring that the same data object is created only once in the data space, saving system resources.
  • the method further includes:
  • the converted underlying application data is read from the corresponding data space.
  • the upper layer application when the upper layer application needs to call related data, it only needs to find the corresponding storage space according to the data type to be called, and then reads the converted underlying application data in the corresponding storage space.
  • the method needs to acquire data, the data of the upper application data format can be directly read from the data space, and the data of the underlying application data format is not required to be read, thereby shielding the difference between the data formats of the underlying application of different POS terminals, and the upper application.
  • the program only needs to focus on the implementation of business logic, improve the efficiency of developers, and improve system performance.
  • FIG. 3 it is a detailed flowchart of a data processing method for a cross-terminal device platform provided by an embodiment of the present application.
  • Step 301 Obtain an underlying application data and a data type of the POS terminal.
  • Step 302 Obtain an upper application data format and a format of the underlying application data.
  • Step 303 Convert a format of the underlying application data according to an upper application data format and a format of the underlying application data;
  • Step 304 Determine, according to the correspondence between the type of the underlying application data and the storage space, a storage space corresponding to the type of the underlying application data;
  • Step 305 Store the converted underlying application data into a corresponding storage space.
  • the method provided by the embodiment of the present application first obtains the underlying application data of the POS terminal, and then formats the underlying application data according to the upper application data format and the underlying application data format, so that the converted underlying application data format and the upper application are converted.
  • the format of the data is the same, and the converted underlying application data is stored in the data space, and the upper layer application is used when needed. Therefore, the method converts the format of the underlying data unique to a POS terminal into the agreed upper application data. Format, the upper application only needs to obtain data in the data space, and each The data formats in the data space of the POS terminals are the same. Since the data formats called by the upper POS application are unified, the upper POS application can be used across the terminal device, which improves the efficiency of the program developer. Save system resources.
  • the embodiment of the present application further provides a data processing device across a terminal device platform.
  • the data processing device of the cross-terminal device platform provided by the embodiment of the present application is as shown in FIG. 4 .
  • An obtaining unit 401 configured to acquire bottom layer application data of a point-of-sale POS terminal
  • a determining unit 402 configured to determine an upper layer application data format and a format of the underlying application data
  • the converting unit 403 is configured to perform format conversion on the bottom layer application data according to the format of the underlying application data and the upper layer application data format, so that the converted format of the underlying application data and the upper layer application data are The same format;
  • the storage unit 404 is configured to store the converted underlying application data into the data space, so that the upper layer application reads the converted underlying application data when needed.
  • the storage unit 404 is specifically configured to:
  • the converted underlying application data is stored into a corresponding data space.
  • the device further includes a calling unit 405, configured to:
  • the converted underlying application data is read from the corresponding data space.
  • the storage space comprises part or all of the following:
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • the storage unit 404 is further configured to:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • a data processing apparatus for a cross-terminal device platform provided by an embodiment of the present application, as shown in FIG. 5, includes a communication interface 501, a processor 502, a memory 503, and a bus system 504;
  • the memory 503 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 503 may be a random access memory (RAM) or a non-volatile memory such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 503 can also be a memory in processor 502.
  • the memory 503 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 502 controls the operation of the device that determines the motion information of the object to be tested, and the processor 502 may also be referred to as a CPU (Central Processing Unit).
  • the components of the device for determining the motion information of the object to be tested are coupled together by a bus system 504.
  • the bus system 504 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
  • various buses are labeled as bus system 504 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
  • Processor 502 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 502 or an instruction in a form of software.
  • the processor 502 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 503, and the processor 502 reads the information in the memory 503 and performs the following steps in conjunction with its hardware:
  • the processor 502 is specifically configured to:
  • the converted underlying application data is stored into a corresponding data space.
  • processor 502 is further configured to:
  • the converted underlying application data is read from the corresponding data space.
  • the storage space comprises part or all of the following:
  • An environment variable data space for storing system parameters or data objects describing system capabilities
  • a historical transaction data space used to store historical transaction data objects.
  • processor 502 is further configured to:
  • the data object corresponding to the upper layer application data is established in the corresponding storage space according to the converted underlying application data.
  • 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. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

本申请涉及数据处理技术领域,尤其涉及一种跨终端设备平台的数据处理方法及装置,用以解决现有技术中存在的开发的POS应用程序无法实现跨终端设备使用的技术问题,包括:获取POS终端的底层应用数据,根据上层应用数据格式和底层应用数据的格式将底层应用数据进行格式转换,以使转换后的底层应用数据的格式与上层应用数据的格式相同,并将转换后的底层应用数据存储到数据空间中,提供上层应用程序在需要的时候使用,该方法将终端特有的底层数据格式转换为约定后的上层应用数据格式,上层应用程序在使用时只需要在数据空间获取数据即可,由于各个终端的数据空间中的数据格式都相同,因而POS应用程序可以跨终端设备使用,节约了系统资源。

Description

一种跨终端设备平台的数据处理方法及装置
本申请要求在2015年11月19日提交中国专利局、申请号为201510802474.2、申请名称为“一种跨终端设备平台的数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种跨终端设备平台的数据处理方法及装置。
背景技术
随着科技的发展,POS(Point of sales,销售点)终端的使用越来越普遍。当前国内市场上POS终端厂商过百家,每家厂商都有各自的POS终端产品,而每款终端产品的硬件都有差异,并且每款终端的底层函数,如操作系统层和API(Application Programming Interface,应用程序编程接口)层定义都有差别,导致与每款终端产品的处理同一类数据时的数据定义都不一致,比如从A厂商POS的读卡器读出的银行卡号格式为a,而B厂商POS读卡器读出的银行卡号格式为b,虽然卡号长度一样,但无法基于不同的厂商的终端硬件和底层定义一套通用的、跨平台的上层POS应用程序。
综上所述,现有技术中每种类型的POS终端中都要开发出一套相应的POS应用程序,且开发的POS应用程序只能应用于该类型的POS终端中,不能跨终端设备进行应用,因而导致应用程序开发效率低,造成资源的浪费。
发明内容
本申请提供一种跨终端设备平台的数据处理方法及装置,用以解决现有技术中存在的开发的POS应用程序无法实现跨终端设备使用,造成应用程序开发效率低的技术问题。
第一方面,本申请实施例提供的一种跨终端设备平台的数据处理方法, 包括:
获取销售点POS终端的底层应用数据;
确定上层应用数据格式和所述底层应用数据的格式;
根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;
将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
本申请实施例提供的方法,首先获取POS终端的底层应用数据,然后根据上层应用数据格式和底层应用数据的格式将底层应用数据进行格式转换,以使转换后的底层应用数据的格式与上层应用数据的格式相同,并将转换后的底层应用数据存储到数据空间中,提供上层应用程序在需要的时候使用,因而该方法将一个POS终端特有的底层数据的格式转换为约定后的上层应用数据的格式,上层应用程序在使用时只需要在数据空间获取数据即可,而各个POS终端的数据空间中的数据格式都是相同的,由于上层POS应用程序所调用的数据格式都做了统一,因而上层POS应用程序可以跨终端设备进行使用,提高了程序开发人员的效率,节约了系统资源。
可选地,所述将转换后的所述底层应用数据存储到数据空间中,包括:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
可选地,将转换后的所述底层应用数据存储到数据空间中之后,还包括:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储EMV内核从IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
可选地,所述将转换后的所述底层应用数据存储到对应的数据空间中,包括:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
第二方面,本申请实施例提供的一种跨终端设备平台的数据处理装置,包括:
获取单元,用于获取销售点POS终端的底层应用数据;
确定单元,用于确定上层应用数据格式和所述底层应用数据的格式;
转换单元,用于根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;
存储单元,用于将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
可选地,所述存储单元,具体用于:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
可选地,所述装置还包括调用单元,用于:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储欧陆卡万事达卡维萨卡EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
可选地,所述存储单元,还用于:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
第三方面,本申请实施例提供的一种跨终端设备平台的数据处理装置,包括通信接口、处理器、存储器和总线系统;
处理器读取存储器中的信息执行以下步骤:
获取销售点POS终端的底层应用数据;确定上层应用数据格式和所述底层应用数据的格式;根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
可选地,所述处理器,具体用于:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层 应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
可选地,所述处理器还用于:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储欧陆卡万事达卡维萨卡EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
可选地,所述处理器还用于:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的跨终端设备平台的数据处理方法流程图;
图2(a)为本申请实施例提供的POS终端A银行卡号底层应用格式转换为上层应用格式示意图;
图2(b)为本申请实施例提供的POS终端B银行卡号底层应用格式转换为上层应用格式示意图;
图3为本申请实施例提供的跨终端设备平台的数据处理方法详细流程图;
图4为本申请实施例提供的跨终端设备平台的数据处理装置示意图;
图5为本申请实施例提供的另一种跨终端设备平台的数据处理装置示意图。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部份实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
下面结合说明书附图对本申请实施例作进一步详细描述。
如图1所示,本申请实施例提供的跨终端设备平台的数据处理方法,包括:
步骤101、获取销售点POS终端的底层应用数据;
步骤102、确定上层应用数据格式和底层应用数据的格式;
步骤103、根据底层应用数据的格式和上层应用数据格式,对底层应用数据进行格式转换,以使转换后的底层应用数据的格式与上层应用数据的格式相同;
步骤104、将转换后的底层应用数据存储到数据空间中,以使上层应用程序在需要时读取转换后的底层应用数据。
上述步骤101中,POS终端通过获取底层应用数据,例如通过读卡器读取IC(Integrated Circuit,集成电路)卡信息,如卡号,卡片信息等。
上述步骤102中,获取上层应用数据格式和底层应用数据的格式,上层应用数据格式即为POS终端自身的数据格式,上层应用数据格式为转换后的数据格式。
上述步骤103中,不同类型的POS终端的底层应用数据格式不同,但不同类型的POS终端的上层应用数据格式约定为相同,例如,如图2(a)和图2(b)所示,分别为POS终端A和POS终端B的银行卡号底层应用格式转换为上层应用格式示意图,其中POS终端A底层应用程序获取银行卡号底层应用格式为a,POS终端B底层应用程序获取银行卡号底层应用格式为b,约定所有POS终端都将银行卡号底层应用格式转换为上层应用格式c,即POS终端A将银行卡底层应用格式a转换为上层应用格式c,POS终端B将银行卡底层应用格式b转换为上层应用格式c。
上述步骤104中,转换后的底层应用数据存储到数据空间中,以使上层应用程序在需要时读取转换后的底层应用数据,因而,上层应用程序需要获取数据时,只需要到POS终端的数据空间中获取需要的数据即可,由于不同POS终端的数据空间的数据格式一致,因此POS终端的上层应用程序可实现跨终端设备移植,例如如图2(a)和图2(b)所示,针对处理相同业务的上层应用程序,POS终端A中的上层应用程序和POS终端B中的应用程序可以是同一套应用程序。
本申请实施例提供的方法,首先获取POS终端的底层应用数据,然后根据上层应用数据格式和底层应用数据的格式将底层应用数据进行格式转换,以使转换后的底层应用数据的格式与上层应用数据的格式相同,并将转换后的底层应用数据存储到数据空间中,提供上层应用程序在需要的时候使用,因而该方法将一个POS终端特有的底层数据的格式转换为约定后的上层应用数据的格式,上层应用程序在使用时只需要在数据空间获取数据即可,而各个POS终端的数据空间中的数据格式都是相同的,由于上层POS应用程序所调用的数据格式都做了统一,因而上层POS应用程序可以跨终端设备进行移植使用,提高了程序开发人员的效率,节约了系统资源。
具体地,上述步骤104中,数据空间是数据对象的存储空间,可根据实际应用的需要做相应的规定,例如根据业务的类型,将不同类型的业务划分到相应的数据空间中,或者是根据数据来源,将不同来源的数据划分到相应的数据空间中。对此本申请不做具体限定。下面给出一种本申请实施例提供的数据空间的划分方式,即根据数据来源来对数据空间进行划分。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储EMV内核从IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
上述对数据空间的划分中,将数据空间划分为四种类型,分别为:
一、当前数据空间
当前数据空间是在一个交易开始时开辟的一块储存区域。其功能是储存当前交易的数据对象。当前数据空间在交易开始时创建,在交易结束时释放相关资源。其储存的数据对象包括EMV(Europay,Master and Visa,Europay,欧陆卡,万事达卡,维萨卡)数据对象和自定义数据对象。其中,EMV数据对象是POS终端与金融IC卡进行双向安全认证时需要使用的数据,自定义数据对象是POS在整个交易过程中要使用的数据,例如交易类型,终端交易属性,交易金额,货币代码等数据。数据来源方式有很多,比如外设读取等,外设读取是指通过从密码键盘、非接读卡器、扫码器等外接设备读取的数据,
二、EMV内核数据空间
EMV内核是POS为处理与金融IC卡安全认证而定义的一套独立封装的函数库。EMV内核数据空间是指交易开始时EMV内核开辟的一块储存区域。其功能是存储EMV内核从IC卡中读取的数据对象和应用程序向EMV内核设置的交易相关数据对象。EMV内核数据空间在交易开始时创建,在交易结束时释放相关资源。其储存的数据对象只包含EMV数据对象。例如EMV内 核数据空间中存储的数据可以是IC卡相关数据,如卡号,交易类型等。
三、环境变量数据空间
环境变量数据空间是指系统初始化后开辟的一块储存空间,该空间具有断电保护特性。其功能是存储系统参数和描述系统能力的数据对象。环境变量数据空间在系统初始化时创建,整个系统生命周期内有效。其储存的数据对象包括EMV数据对象和自定义数据对象。例如环境变量数据空间存储的数据可以是全局变量,如系统时间,POS终端型号,POS终端编号等。
四、历史交易数据空间
历史交易数据空间是指在交易过程中,通过检索日志或定位记录找到匹配的历史交易记录,与该历史交易记录关联的存储区域即为历史交易数据空间,其功能是储存历史交易的数据对象。历史交易数据空间在交易过程中,第一次检索到历史交易日志时创建,交易结束时释放。存储的数据对象包括EMV数据对象和自定义数据对象,再次检索时,该数据空间关联到新检索到的历史交易记录。
上述方法,具体定义了本申请实施例使用过程中的数据空间类型,在实际使用中可根据实际需要而对数据空间的类型做相关定义和设置,本申请不做具体限定。在确定了具体空间类型之后,上层应用程序在需要数据时,只需要到相应的数据空间获取相应的数据即可,由于不同POS终端数据空间定义一致,因而上层应用程序屏蔽了不同POS终端底层应用数据格式之间的差异,只需要关注具体业务执行逻辑,提高了开发人员的开发效率,节约了系统资源。
在确定了数据空间的具体类型之后,当底层应用程序获取到数据之后,就可以根据底层应用数据的类型和存储空间的对应关系,将数据存储到相应的数据空间中。
可选地,所述将转换后的所述底层应用数据存储到数据空间中,包括:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
上述方法中,根据底层应用数据的类型和存储空间的对应关系,确定获取的底层应用数据的类型对应的存储空间,然后将转换后的底层应用数据存储到对应的数据空间,例如,底层应用程序获取到的数据类型是跟当前交易有关的数据,则可以确定获取到的该数据对应的存储空间是当前交易数据空间,然后根据底层应用数据格式和上层应用数据格式,对底层应用数据格式进行转换,将转换后的底层应用数据存储到当前交易数据空间中。该方法根据数据类型与存储空间的对应关系,可以将不同类型的数据分别存储到相应的存储空间,因而方便了上层应用程序根据不同的需要而到相应的数据空间中去调用相关数据,提高了系统效率。
对于如何将转换后的底层应用数据存储到对应的数据空间,有很多方式,例如对于同一数据对象,如果已经存在,可以是再建立一个数据对象,实现相同数据对象的多个存储,也可以是在已有数据对象基础上做数据的新增即可,对与如何将转换后的底层应用数据存储到对应的数据空间的实现方式,本申请不做具体限定。
可选地,所述将转换后的所述底层应用数据存储到对应的数据空间中,包括:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
上述方法,若存储空间中已经有了相应的数据对象,则直接用转换后的底层应用数据去更新该数据对象,若没有相应的数据对象,则首先建立数据对象,然后将转换后的底层应用数据去更新建立好的数据对象,因而保证了在数据空间对同一个数据对象只创建一次,节约了系统资源。
可选地,将转换后的所述底层应用数据存储到数据空间中之后,还包括:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
上述方法,当上层应用程序需要调用相关数据时,只需要根据需要调用的数据类型,找到相应的存储空间,然后在相应的存储空间中读取转换后的底层应用数据。该方法需要获取数据时,直接从数据空间中读取上层应用数据格式的数据即可,无需读取底层应用数据格式的数据,因而屏蔽了不同POS终端底层应用数据格式之间的差异,上层应用程序只需要专注与业务逻辑的实现,提高了开发人员的效率,提高了系统性能。
下面对本申请实施例提供的跨终端设备平台的数据处理方法做详细描述。如图3所示,为本申请实施例提供的跨终端设备平台的数据处理方法详细流程图。
步骤301、获取POS终端的底层应用数据和数据类型;
步骤302、获取上层应用数据格式和底层应用数据的格式;
步骤303、根据上层应用数据格式和底层应用数据的格式,对底层应用数据的格式进行转换;
步骤304、根据底层应用数据的类型和存储空间的对应关系,确定底层应用数据的类型对应的存储空间;
步骤305、将转换后的底层应用数据存储到对应的存储空间。
本申请实施例提供的方法,首先获取POS终端的底层应用数据,然后根据上层应用数据格式和底层应用数据的格式将底层应用数据进行格式转换,以使转换后的底层应用数据的格式与上层应用数据的格式相同,并将转换后的底层应用数据存储到数据空间中,提供上层应用程序在需要的时候使用,因而该方法将一个POS终端特有的底层数据的格式转换为约定后的上层应用数据的格式,上层应用程序在使用时只需要在数据空间获取数据即可,而各 个POS终端的数据空间中的数据格式都是相同的,由于上层POS应用程序所调用的数据格式都做了统一,因而上层POS应用程序可以跨终端设备进行使用,提高了程序开发人员的效率,节约了系统资源。
基于相同的技术构思,本申请实施例还提供一种跨终端设备平台的数据处理装置。本申请实施例提供的跨终端设备平台的数据处理装置如图4所示。
获取单元401,用于获取销售点POS终端的底层应用数据;
确定单元402,用于确定上层应用数据格式和所述底层应用数据的格式;
转换单元403,用于根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;
存储单元404,用于将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
可选地,所述存储单元404,具体用于:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
可选地,所述装置还包括调用单元405,用于:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储欧陆卡万事达卡维萨卡EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
可选地,所述存储单元404,还用于:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
基于相同的技术构思,本申请实施例提供的一种跨终端设备平台的数据处理装置,如图5所示,包括通信接口501、处理器502、存储器503和总线系统504;
其中,存储器503,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器503可能为随机存取存储器(random access memory,RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器503也可以是处理器502中的存储器。
存储器503存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。
处理器502控制确定待测对象的运动信息的装置的操作,处理器502还可以称为CPU(Central Processing Unit,中央处理单元)。具体的应用中,确定待测对象的运动信息的装置的各个组件通过总线系统504耦合在一起,其中总线系统504除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统504。为便于表示,图5中仅是示意性画出。
上述本申请实施例揭示的方法可以应用于处理器502中,或者由处理器 502实现。处理器502可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器502中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器502可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器503,处理器502读取存储器503中的信息,结合其硬件执行以下步骤:
获取销售点POS终端的底层应用数据;确定上层应用数据格式和所述底层应用数据的格式;根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
可选地,所述处理器502,具体用于:
根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
将转换后的所述底层应用数据存储到对应的数据空间中。
可选地,所述处理器502还用于:
在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
从对应的数据空间中读取转换后的底层应用数据。
可选地,所述存储空间包括下列中的部分或全部:
用于存储当前交易数据对象的当前数据空间;
用于存储欧陆卡万事达卡维萨卡EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
用于存储历史交易数据对象的历史交易数据空间。
可选地,所述处理器502还用于:
判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (10)

  1. 一种跨终端设备平台的数据处理方法,其特征在于,包括:
    获取销售点POS终端的底层应用数据;
    确定上层应用数据格式和所述底层应用数据的格式;
    根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;
    将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
  2. 如权利要求1所述的方法,其特征在于,所述将转换后的所述底层应用数据存储到数据空间中,包括:
    根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
    将转换后的所述底层应用数据存储到对应的数据空间中。
  3. 如权利要求2所述的方法,其特征在于,将转换后的所述底层应用数据存储到数据空间中之后,还包括:
    在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
    根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
    从对应的数据空间中读取转换后的底层应用数据。
  4. 如权利要求2所述的方法,其特征在于,所述存储空间包括下列中的部分或全部:
    用于存储当前交易数据对象的当前数据空间;
    用于存储EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
    用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
    用于存储历史交易数据对象的历史交易数据空间。
  5. 如权利要求2所述的方法,其特征在于,所述将转换后的所述底层应用数据存储到对应的数据空间中,包括:
    判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
    若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
    若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
  6. 一种跨终端设备平台的数据处理装置,其特征在于,包括:
    获取单元,用于获取销售点POS终端的底层应用数据;
    确定单元,用于确定上层应用数据格式和所述底层应用数据的格式;
    转换单元,用于根据所述底层应用数据的格式和所述上层应用数据格式,对所述底层应用数据进行格式转换,以使转换后的所述底层应用数据的格式与所述上层应用数据的格式相同;
    存储单元,用于将转换后的所述底层应用数据存储到数据空间中,以使所述上层应用程序在需要时读取转换后的所述底层应用数据。
  7. 如权利要求6所述的装置,其特征在于,所述存储单元,具体用于:
    根据底层应用数据的类型和存储空间的对应关系,确定获取的所述底层应用数据的类型对应的存储空间;
    将转换后的所述底层应用数据存储到对应的数据空间中。
  8. 如权利要求7所述的装置,其特征在于,所述装置还包括调用单元,用于:
    在上层应用程序需要调用底层应用数据后,通过所述上层应用程序执行下列步骤:
    根据底层应用数据的类型和存储空间的对应关系,确定需要读取的底层应用数据对应的存储空间;
    从对应的数据空间中读取转换后的底层应用数据。
  9. 如权利要求7所述的装置,其特征在于,所述存储空间包括下列中的部分或全部:
    用于存储当前交易数据对象的当前数据空间;
    用于存储EMV内核从集成电路IC卡中读取的数据对象或EMV内核设置的与交易有关的数据对象的EMV内核数据空间;
    用于存储系统参数或描述系统能力的数据对象的环境变量数据空间;
    用于存储历史交易数据对象的历史交易数据空间。
  10. 如权利要求7所述的装置,其特征在于,所述存储单元,还用于:
    判断对应的存储空间中是否有所述上层应用数据对应的数据对象;
    若有,则用转换后的所述底层应用数据更新对应的存储空间中所述上层应用数据对应的数据对象;
    若不存在,则根据转换后的所述底层应用数据在对应的存储空间中建立与所述上层应用数据对应的数据对象。
PCT/CN2016/105905 2015-11-19 2016-11-15 一种跨终端设备平台的数据处理方法及装置 WO2017084556A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510802474.2 2015-11-19
CN201510802474.2A CN105930137B (zh) 2015-11-19 2015-11-19 一种跨终端设备平台的数据处理方法及装置

Publications (1)

Publication Number Publication Date
WO2017084556A1 true WO2017084556A1 (zh) 2017-05-26

Family

ID=56839978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105905 WO2017084556A1 (zh) 2015-11-19 2016-11-15 一种跨终端设备平台的数据处理方法及装置

Country Status (3)

Country Link
CN (1) CN105930137B (zh)
TW (1) TW201719394A (zh)
WO (1) WO2017084556A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930137B (zh) * 2015-11-19 2019-06-28 中国银联股份有限公司 一种跨终端设备平台的数据处理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415341B1 (en) * 1999-01-29 2002-07-02 Tekserve Pos, Llc Point-of-sale terminal adapter
CN101650815A (zh) * 2009-09-15 2010-02-17 北京市政交通一卡通有限公司 业务处理方法、装置及终端
CN105930137A (zh) * 2015-11-19 2016-09-07 中国银联股份有限公司 一种跨终端设备平台的数据处理方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06164673A (ja) * 1992-11-26 1994-06-10 Tokyo Electric Co Ltd 通信制御装置
CN101046904A (zh) * 2006-03-29 2007-10-03 深圳市桑达实业股份有限公司 生成税控收款机的发票格式文件的方法
CN101165726B (zh) * 2006-10-19 2012-03-07 胡乐乐 一种信用卡防盗用的方法和系统
CN101458783A (zh) * 2007-12-13 2009-06-17 鸿富锦精密工业(深圳)有限公司 单据生成系统及方法
JP5348679B2 (ja) * 2008-07-18 2013-11-20 Necインフロンティア株式会社 Posシステム、プリンタ制御装置、単色プリンタ、印刷方法、及びプログラム
CN101996443A (zh) * 2010-09-02 2011-03-30 中国工商银行股份有限公司 一种商业预付卡制卡设备
CN103986779B (zh) * 2014-05-29 2017-10-13 沈文策 一种应用数据传输方法、装置及终端设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415341B1 (en) * 1999-01-29 2002-07-02 Tekserve Pos, Llc Point-of-sale terminal adapter
CN101650815A (zh) * 2009-09-15 2010-02-17 北京市政交通一卡通有限公司 业务处理方法、装置及终端
CN105930137A (zh) * 2015-11-19 2016-09-07 中国银联股份有限公司 一种跨终端设备平台的数据处理方法及装置

Also Published As

Publication number Publication date
CN105930137B (zh) 2019-06-28
CN105930137A (zh) 2016-09-07
TW201719394A (zh) 2017-06-01

Similar Documents

Publication Publication Date Title
WO2020006910A1 (zh) 业务组件式开发方法、装置、计算机设备及存储介质
BR112019014589A2 (pt) Método de processamento de serviço e aparelho
CN108108239A (zh) 一种业务功能的提供方法、装置及计算机可读存储介质
WO2020001112A1 (zh) 一种支持多类型设备的平台的应用方法、移动终端
CN107632869B (zh) 一种加载pos应用的用户界面的方法与设备
JP6974604B2 (ja) ユーザインタフェース表示方法及び端末デバイス
US20220292082A1 (en) Method, apparatus and device for parallel execution of smart contract, and medium
US10372465B2 (en) System and method for controlling batch jobs with plugins
US20230046119A1 (en) Method for implementing middleware based on emv and terminal device
TW201933812A (zh) 資料的處理方法、裝置及設備
WO2017084556A1 (zh) 一种跨终端设备平台的数据处理方法及装置
CN110837446A (zh) 应用于嵌入式系统的设备管理方法及装置、介质以及嵌入式设备
CN111209283A (zh) 一种数据处理方法及装置
US10417629B2 (en) Account identifier digitization abstraction
JP6422346B2 (ja) プログラム生成装置、及び、プログラム生成方法
US11017342B2 (en) Generating a combined entity workflow
US20130332123A1 (en) Model element characteristic preservation in modeling environments
CN103246524A (zh) 基于arm芯片的多个程序段同时运行的动态加载方法
JP7438432B1 (ja) 電子情報記憶媒体、icチップ、icカード、レコード書き込み方法、及びプログラム
CN114066613A (zh) 金融业务产品的配置方法、装置、介质及电子设备
WO2024108907A1 (zh) 一种数据处理方法、装置、ai芯片、电子设备及存储介质
CN114625358A (zh) 一种通用字符型设备驱动系统及方法
JP7010084B2 (ja) Ic決済で用いるトークンデバイス
CN117331616A (zh) 一种块设备复杂驱动方法及驱动系统
CN115407969A (zh) 一种api接口生成方法、装置及api开放平台

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: 16865733

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: 16865733

Country of ref document: EP

Kind code of ref document: A1