WO2018153064A1 - Data processing method, terminal and non-volatile readable storage medium - Google Patents

Data processing method, terminal and non-volatile readable storage medium Download PDF

Info

Publication number
WO2018153064A1
WO2018153064A1 PCT/CN2017/101571 CN2017101571W WO2018153064A1 WO 2018153064 A1 WO2018153064 A1 WO 2018153064A1 CN 2017101571 W CN2017101571 W CN 2017101571W WO 2018153064 A1 WO2018153064 A1 WO 2018153064A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
data processing
data
execution object
payment terminal
Prior art date
Application number
PCT/CN2017/101571
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 WO2018153064A1 publication Critical patent/WO2018153064A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data processing method, a terminal, and a non-volatile readable storage medium.
  • POS Point Of Sale
  • smart devices such as mobile phones and tablet computers
  • the POS payment terminal can complete card reading, PIN (personal identification number) input, and data addition.
  • PIN personal identification number
  • POS payment terminals often need to download or update programs and files of POS payment terminals, such as POS payment terminal boot programs, operating system programs, application programs, and parameter files, both at the time of production and after shipment. These programs and files are often used. It belongs to different software layers and has a wide variety. Moreover, because different types of POS payment terminals and intelligent terminal communication carriers are also different, for example, some use RS232 serial port for communication, and some use USB (Universal Serial Bus) cable or wireless network for communication. The downloaded or updated program files are different, and the communication carriers are different, resulting in different transmission protocols.
  • RS232 serial port for communication
  • USB Universal Serial Bus
  • the POS payment terminal may need to perform different data operations of different programs or files from a plurality of different softwares on the smart terminal, and the operation is cumbersome, and it is necessary to develop different software to adapt data operations of different programs or files, resulting in development. Difficulties, wasting a lot of time, manpower and other resources.
  • a data processing method a terminal, and a non-volatile readable storage medium are provided.
  • a data processing method comprising:
  • a terminal comprising a memory and a processor, the memory storing computer executable instructions, the computer executable instructions being executed by the processor, causing the processor to perform the following steps:
  • One or more non-volatile readable storage media storing computer-executable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • FIG. 1 is an application scenario diagram of a data processing method in an embodiment
  • FIG. 2 is a block diagram of an intelligent terminal in an embodiment
  • FIG. 3 is a flow chart of a data processing method in an embodiment
  • FIG. 4 is a flowchart of a data processing module that passes parameters corresponding to an execution object into a matching data processing module to perform corresponding data operations on the connected payment terminals according to parameters;
  • FIG. 5 is a flowchart of performing a corresponding data operation on a connected payment terminal according to a parameter by a matched data processing module in an embodiment
  • Figure 6 is a flow chart showing process information in one embodiment
  • FIG. 7 is a flow chart of invoking an external processing tool for data processing in one embodiment
  • Figure 8 is a block diagram of a data processing apparatus in an embodiment
  • FIG. 9 is a block diagram of an execution module in one embodiment
  • Figure 10 is a block diagram of a data processing apparatus in another embodiment
  • Figure 11 is a block diagram of a data processing apparatus in still another embodiment.
  • FIG. 1 is an application scenario diagram of a data processing method in an embodiment.
  • the end of payment The terminal 10 can establish a communication connection with the smart terminal 20 through an RS232 serial port, a USB interface or a network interface.
  • the user can perform a data processing operation on the smart terminal 20, and the smart terminal 20 generates a processing task according to the data processing operation, and constructs a parameter command of a preset format according to the processing task.
  • the smart terminal 20 parses the parameter command, obtains an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object, so that the matched data processing module performs corresponding data operations on the connected payment terminal 10 according to the parameter. .
  • the smart terminal 20 includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a data transmission interface, a display screen, and an input device.
  • the memory of the terminal includes a non-volatile storage medium and an internal memory, wherein the non-volatile storage medium of the terminal stores an operating system and computer-executable instructions, which are executed by the processor to implement the embodiment of the present application.
  • the processor is used to provide computing and control capabilities to support the operation of the entire smart terminal 20.
  • the internal memory in smart terminal 20 provides an environment for the operation of computer executable instructions in a non-volatile storage medium.
  • the data transmission interface is used for communicating with the payment terminal, such as sending the downloaded file, program, etc. to the payment terminal.
  • the display screen of the terminal may be a liquid crystal display or an electronic ink display screen.
  • the input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the terminal housing, or may be an external device. Keyboard, trackpad or mouse.
  • the smart terminal 20 can be a mobile phone, a tablet computer, or a personal computer (PC). Those skilled in the art can understand that the structure shown in FIG.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the smart terminal 20 to which the solution of the present application is applied, specifically, the smart terminal. 20 may include more or fewer components than shown in the figures, or some components may be combined, or have different component arrangements.
  • a data processing method is provided, which is applicable to the smart terminal shown in FIG. 2, and includes the following steps:
  • Step S310 generating a processing task according to the data processing operation.
  • the payment terminal can be through an RS232 serial port, a USB interface, or a network interface. And establishing a communication connection with the smart terminal, wherein the payment terminal can be a traditional POS machine, a MPOS (simple POS) machine or a wireless POS machine, etc., and the smart terminal can be a mobile phone, a tablet computer, a laptop computer or a PC machine.
  • the payment terminal can be a traditional POS machine, a MPOS (simple POS) machine or a wireless POS machine, etc.
  • the smart terminal can be a mobile phone, a tablet computer, a laptop computer or a PC machine.
  • the user may perform a data processing operation on the data terminal connected to the smart terminal on the data processing interface of the smart terminal, and the executed data processing operation may include downloading data from the smart terminal, querying data of the payment terminal, deleting data of the payment terminal, and reconstructing the payment.
  • the file system of the terminal, etc. The user may select an execution action, an execution object, and a corresponding communication parameter on the data processing interface, where the execution action may include downloading, querying, deleting, rebuilding the file system, etc., and the execution object may include a base program, a boot program, and an operating system.
  • configuration files, parameter files and applications, etc., communication parameters can include communication serial port number, baud rate, and so on.
  • the data processing interface of the intelligent terminal can generate a corresponding processing task according to the data processing operation.
  • Step S320 constructing a parameter command of a preset format according to the processing task.
  • the data processing interface of the smart terminal generates a corresponding processing task according to the data processing operation of the user, and the processing task may include a user-selected execution action, an execution object, a communication parameter, and the like, and a parameter of the connected payment terminal model, which may be preset according to the preset. Format, constructs a parameter command based on the processing task.
  • the user selects the monitor file on the data processing interface of the smart terminal to download, and selects the corresponding communication serial port number as COM1, and the baud rate is 115200 Bd/s (baud/second), wherein the monitor file is monitored.
  • Step S330 parsing the parameter command to obtain an execution object.
  • the parameter command may be sent to the pre-created data processing process, and the parameter command is parsed through the data processing process, and the execution action included in the parameter command is obtained.
  • Execute parameters such as object and communication parameters.
  • Step S340 the parameter corresponding to the execution object is passed to the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
  • the data processing module matching the execution object may be acquired according to the data type of the execution object, wherein the data type may include a base program, firmware layer information, application layer information, and extended information. And so on, corresponding to the base program download module, firmware layer information processing module, application layer information processing module and extended information processing module and other data processing modules, different data processing modules can respectively handle data operations of different software layers.
  • the data processing module may be stored in the memory of the smart terminal in the form of software, or embedded in or independent of the processor of the data processing module in hardware form, so that the processor can call the data processing module matching the execution object for processing.
  • the data processing process may pass the parameter corresponding to the execution object to the data processing module that matches the execution object, and execute, by the matched data processing module, the data operation corresponding to the execution action and the execution object to the connected payment terminal.
  • act removeapp indicates that the action is performed to delete the application
  • the 12345 application if the data type of the execution object is application layer information, the corresponding parameter is passed to the application layer information processing module, and the application layer number 12345 application is deleted on the connected payment terminal through the application layer information processing module.
  • the data processing method generates a processing task according to the data processing operation, constructs a parameter command of a preset format according to the processing task, parses the parameter command to obtain an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object,
  • the data processing module that matches the execution object performs corresponding data operations on the connected payment terminal according to the parameter, and integrates data processing functions belonging to different software layers and different data operations, and can directly execute on the payment terminal.
  • Different types of data operations do not need to be operated separately from different softwares, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
  • step S340 passes parameters corresponding to the execution object to the matched data processing module, so that the matched data processing module performs corresponding data operations on the connected payment terminals according to the parameters, including The following steps:
  • Step S402 detecting a data type included in the execution object.
  • the data processing process of the intelligent terminal parses the parameter command, an execution object is obtained, and the data type included in the execution object can be detected, and the data processing module matching the included data type is obtained.
  • the data processing process of the smart terminal may obtain a plurality of execution objects, and may respectively detect data types of the respective execution objects, and acquire data processing modules that match the data types.
  • Step S404 storing parameters corresponding to the execution objects belonging to the data type in the to-be-processed parameter structure corresponding to the data type.
  • Different data types can respectively correspond to different parameter structures to be processed, which facilitates matching data processing modules to perform data operations.
  • the data processing process of the intelligent terminal can detect the data types included in the execution object one by one, and can first determine whether the execution object includes the base program. When the base program is included, the parameters corresponding to the execution object of the base program are stored in the base program.
  • determining whether the execution object contains firmware layer information, and when the firmware layer information is included, storing the parameter corresponding to the execution object belonging to the firmware layer information in the parameter structure to be processed corresponding to the firmware layer information Determining whether the execution object includes the application layer information, and when the application layer information is included, storing the parameter corresponding to the execution object of the application layer information in the to-be-processed parameter structure corresponding to the application layer information; determining whether the execution object includes the extension information When the extended information is included, the parameter corresponding to the execution object belonging to the extended information is stored in the to-be-processed parameter structure corresponding to the extended information.
  • Step S406 performing a corresponding data operation on the connected payment terminal according to the parameter structure to be processed by the data processing module matching the data type.
  • the data processing process of the intelligent terminal respectively belongs to the parameter corresponding to the execution object of each data type.
  • the data processing module matching each data type can parse the corresponding parameter structure to be processed, obtain a data operation instruction, and perform corresponding operations on the connected payment terminal according to the data operation instruction. Data manipulation.
  • the execution object of the data processing process parsing parameter command of the smart terminal includes the boot file and the application number.
  • the parameters corresponding to the boot file may be stored in the parameter structure to be processed corresponding to the firmware layer information, and the parameter corresponding to the application with the application number 12345
  • the parameter structure to be processed corresponding to the application layer information is stored, and the firmware layer information processing module parses the parameter structure to be processed corresponding to the firmware layer information, and sends the boot file to the connected payment terminal according to the obtained data operation instruction, and then
  • the application layer information processing module parses the to-be-processed parameter structure corresponding to the application layer information, and deletes the application number 12345 on the connected payment terminal according to the obtained data operation instruction.
  • step S340 passes parameters corresponding to the execution object to the matched data processing module, so that the matched data processing module performs corresponding data operations on the connected payment terminals according to the parameters.
  • Step S502 obtaining a corresponding transmission protocol according to the terminal model and the communication parameter.
  • Different types of payment terminals and data transmission interfaces may adopt different transmission protocols.
  • the transmission protocols used by payment terminals of different terminal models may be set by the manufacturer of the payment terminal. For example, if the payment terminal of the A model establishes a communication connection with the intelligent terminal through the USB interface, the data transmission is performed by using a specific USB transmission protocol, and the payment terminal of the B model establishes a communication connection with the intelligent terminal through the network interface, and the TCP (Transmission Control Protocol) is adopted. Transmission Control Protocol) protocol for data transmission.
  • TCP Transmission Control Protocol
  • Different types of payment terminals and various transmission protocols that may be used for communication parameters may be encapsulated in advance.
  • the intelligent terminal may be based on the terminal model of the connected payment terminal and the communication serial port included in the communication parameters. The number selects the corresponding transport protocol for data operation.
  • Step S504 according to the transmission protocol and the communication parameter, the connection is matched by the matched data processing module.
  • the payment terminal performs a data operation corresponding to the execution action and the execution object.
  • the intelligent terminal may perform data operation on the connected payment terminal according to the communication serial port number and the baud rate in the transmission protocol and the communication parameter, and perform data processing matching the execution object.
  • the module parses the corresponding parameter structure to be processed to obtain a data operation instruction, and the data processing module can perform a data operation corresponding to the execution action and the execution object on the connected payment terminal according to the data operation instruction.
  • the user selects to download the boot file in the data processing interface of the smart terminal, and selects the communication serial port number as the serial port 1.
  • the baud rate is 115200 Bd/s
  • the intelligent terminal detects the connected terminal model of the payment terminal as S80, and the payment terminal passes the RS232.
  • the serial port establishes a communication connection with the intelligent terminal, a transmission protocol corresponding to the terminal model S80 and supporting RS232 serial communication can be obtained, and the firmware layer information processing module can send the boot file through the serial port 1 at a rate of 115200 Bd/s according to the transmission protocol.
  • the firmware layer information processing module can send the boot file through the serial port 1 at a rate of 115200 Bd/s according to the transmission protocol.
  • the data processing module matching the data type performs corresponding data operations on the connected payment terminal, and the data processing functions belonging to different software layers and different data operations are integrated.
  • the foregoing data processing method further includes the following steps:
  • Step S602 obtaining process information for performing a corresponding data operation on the connected payment terminal by using a pipeline created in advance.
  • a pipe is a communication mechanism between processes. It can communicate with each other through a part of shared memory. When a process writes information to a pipe, another process can read the information from the pipe.
  • Pipes can include anonymous pipes and named pipes. Anonymous pipes require less overhead than named pipes, but provide less functionality and are generally used for data transfer between parent and child processes.
  • the smart terminal can create an anonymous pipeline by calling the CreatePipe function, thereby reducing unnecessary resource overhead.
  • the Zhitong terminal can obtain the connected payment terminal from the data processing process through the created pipeline.
  • the process information of the corresponding data operation may be performed, and the process information may include an action being executed, related information of the execution object, progress information of the data processing module performing the data operation according to the data operation instruction, error information, and the like, and the action being performed may include downloading, Querying, deleting, rebuilding a file system, etc.
  • the related information of the execution object may include information such as an execution object, a storage path of the execution object, and the like.
  • the progress information of the data processing module executing the data operation according to the data operation instruction is used to indicate the completion of the executed data operation, such as downloading 50%, downloading 70%, etc.
  • the error information refers to an error occurring during the execution of the data operation.
  • the serial port fails to open, the data download fails, and so on.
  • the data processing process writes the process information BP_ERR_DL_BOOT_DATA to the pipeline, and BP_ERR_DL_BOOT_DATA indicates that the download of the boot file failed.
  • the preset output format is not limited thereto, and may be other formats.
  • step S604 the process information is parsed and displayed according to a preset method.
  • the process information can be transmitted to the data processing interface.
  • the process information can be parsed and displayed according to a preset manner.
  • the preset mode may include a progress bar, a text description, and the like.
  • the data processing process when the data processing module performs the corresponding data operation, can write the exit code into the pipeline and transmit the exit code to the data processing interface through the pipeline.
  • the data processing interface parses the read exit code to display the data processing result of the execution completion.
  • the process information of performing the corresponding data operation on the connected payment terminal can be obtained through the pipeline and displayed, so that the user can understand the progress of executing the data operation, the occurrence of errors and the operation result and the like.
  • step S330 After the parameter command is parsed in step S330 to obtain an execution object, the following steps are further included:
  • Step S702 calling an external processing tool according to the execution object.
  • some specific data operations may not be performed by the data processing process, and a specific external processing tool needs to be called to perform the completion.
  • the smart terminal may pass the parameter corresponding to the execution object to the extended information processing module through the data processing process, and send the parameter to the external processing tool by calling the interface of the external processing tool by the extended information processing module.
  • Step S704 the parameter corresponding to the execution object is transmitted to the external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter.
  • the external processing tool may perform corresponding data operations on the connected payment terminal according to the parameters.
  • the interface provided by the external processing tool may be used.
  • External processing tools are integrated, and the expansion method is simple and easy to operate, which can effectively reduce the complexity of development and reduce resource waste.
  • Step S706 obtaining process information for performing a corresponding data operation on the connected payment terminal from the external processing tool through a pre-created pipeline.
  • the data processing process of the intelligent terminal may call a pre-created pipeline, obtain process information of performing corresponding data operations on the connected payment terminal from the external processing tool through the pipeline, and record the execution of the external processing tool through the process information.
  • Step S708 parsing the process information acquired from the external processing tool, and performing the display according to a preset manner.
  • the intelligent terminal can transmit the process information acquired from the external processing tool to the data processing interface through the pipeline, and the data processing interface can be parsed after reading the process information from the pipeline, and displayed according to preset manners such as a progress bar and a text description.
  • Step S710 when the execution is completed, the data processing result is displayed.
  • the data processing interface When the data processing interface reads the exit code from the pipeline, it indicates that the external processing tool performs the data operation of the connected payment terminal, and the read exit code can be parsed and the executed data is displayed.
  • the data processing interface receives the exit instruction, the data processing result is displayed.
  • the external processing tool can be invoked to perform corresponding data operations on the connected payment terminal, integrate the data operation function of the external processing tool, and the integration mode is simple, and can directly perform different types of data operations on the payment terminal. Simple.
  • a data processing apparatus including a generating module 810, a constructing module 820, a parsing module 830, and an executing module 840.
  • the generating module 810 is configured to generate a processing task according to the data processing operation.
  • the constructing module 820 is configured to construct a parameter command of a preset format according to the processing task.
  • the parsing module 830 is configured to parse the parameter command to obtain an execution object.
  • the executing module 840 is configured to pass the parameter corresponding to the execution object to the matched data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
  • the data processing device generates a processing task according to the data processing operation, constructs a parameter command of a preset format according to the processing task, parses the parameter command to obtain an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object,
  • the data processing module matching the execution object performs corresponding data operations on the connected payment terminal according to the parameter, and integrates data processing functions belonging to different software layers and different data operations, and can directly perform different types on the payment terminal.
  • the data operation does not need to be operated separately from different softwares, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
  • execution module 840 includes detection unit 842, storage unit 844, execution unit 846, and protocol acquisition unit 848.
  • the detecting unit 842 is configured to detect a data type included in the execution object.
  • the storage unit 844 is configured to store parameters corresponding to the execution objects belonging to the data type in the to-be-processed parameter structure corresponding to the data type.
  • the executing unit 846 is configured to: according to the data processing module that matches the data type, according to the to-be-processed parameter The number structure performs corresponding data operations on the connected payment terminals.
  • the protocol obtaining unit 848 is configured to obtain a corresponding transmission protocol according to the terminal model and the communication parameter.
  • the executing unit 846 is further configured to perform, by the matched data processing module, the data operation corresponding to the execution action and the execution object by the matched data processing module according to the transmission protocol and the communication parameter.
  • the data processing module matching the data type performs corresponding data operations on the connected payment terminal, and the data processing functions belonging to different software layers and different data operations are integrated.
  • the data processing apparatus includes an information obtaining module 850 and a display module 860 in addition to the generating module 810, the constructing module 820, the parsing module 830, and the executing module 840.
  • the information obtaining module 850 is configured to obtain, by using a pre-created pipeline, process information for performing a corresponding data operation on the connected payment terminal.
  • the display module 860 is configured to parse the process information and display it according to a preset manner.
  • the process information of performing the corresponding data operation on the connected payment terminal can be obtained through the pipeline and displayed, so that the user can understand the progress of executing the data operation, the occurrence of errors and the operation result and the like.
  • the data processing apparatus includes a generation module 810, a construction module 820, a parsing module 830, an execution module 840, an information acquisition module 850, and a display module 860, and includes a calling module 870 and Pass in module 880.
  • the calling module 870 is configured to invoke an external processing tool according to the execution object.
  • the incoming module 880 is configured to pass the parameter corresponding to the execution object to an external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter.
  • the information obtaining module 850 is further configured to acquire, by using a pre-created pipeline, process information for performing a corresponding data operation on the connected payment terminal from an external processing tool.
  • the display module 860 is further configured to parse the process information acquired from the external processing tool, and according to the pre- Set the way to display.
  • the display module 860 is further configured to display a data processing result when the execution is completed.
  • the external processing tool can be invoked to perform corresponding data operations on the connected payment terminal, integrate the data operation function of the external processing tool, and the integration mode is simple, and can directly perform different types of data operations on the payment terminal. Simple.
  • the parsing module 830 can obtain an execution object by parsing a parameter command by a processor of the terminal, where the processor can be a central processing unit (CPU), a microprocessor, or the like.
  • the above modules may be embedded in the hardware of the terminal or may be stored in the memory of the terminal in the form of software, so that the processor can call the corresponding operations of the above modules.
  • a terminal in one embodiment, includes a memory and a processor having stored therein computer executable instructions that, when executed by a processor, cause the processor to perform the data processing method described above.
  • one or more non-volatile readable storage media storing computer-executable instructions are provided, which may be implemented when executed by one or more processors.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

Landscapes

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

Abstract

Disclosed is a data processing method, comprising: generating a processing task according to a data processing operation (S310); constructing a parameter command of a pre-set format according to the processing task (S320); parsing the parameter command to obtain an execution object (S330); and transmitting a parameter corresponding to the execution object into a matched data processing module, so that the matched data processing module executes a corresponding data operation on a connected payment terminal (10) according to the parameter (S340).

Description

数据处理方法、终端及非易失性可读存储介质Data processing method, terminal and non-volatile readable storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年2月24日提交中国专利局、申请号为201710104740.3、发明名称为“数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application, filed Jan.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种数据处理方法、终端及非易失性可读存储介质。The present application relates to the field of computer technology, and in particular, to a data processing method, a terminal, and a non-volatile readable storage medium.
背景技术Background technique
POS(Point Of Sale,支付终端)可与手机、平板电脑等智能设备建立通信连接,并进行数据传输,POS支付终端可完成卡片读取、PIN(personal identification number,个人标识号)输入、数据加解密、提示信息显示等操作,从而实现支付功能的应用。POS (Point Of Sale) can establish communication connection with smart devices such as mobile phones and tablet computers, and perform data transmission. The POS payment terminal can complete card reading, PIN (personal identification number) input, and data addition. The operation of decryption, prompt information display, etc., thereby realizing the application of the payment function.
POS支付终端无论是生产时还是在出厂后,都经常需要下载或更新POS支付终端的程序及文件,例如POS支付终端的引导程序、操作系统程序、应用程序及参数文件等,这些程序及文件往往分属不同的软件层,种类繁多。且由于不同型号的POS支付终端与智能终端的通信载体也不同,例如有的是采用RS232串口进行通信,有的采用USB(Universal Serial Bus,通用串行总线)线缆或是无线网络进行通信。下载或更新的程序文件不同,通信载体不同,导致传输协议也不同。因此,POS支付终端可能需要分别从智能终端上的多个不同的软件进行不同的程序或文件的数据操作,操作繁琐,且需要开发不同的软件适配不同的程序或文件的数据操作,导致开发困难,浪费大量时间、人力等资源。 POS payment terminals often need to download or update programs and files of POS payment terminals, such as POS payment terminal boot programs, operating system programs, application programs, and parameter files, both at the time of production and after shipment. These programs and files are often used. It belongs to different software layers and has a wide variety. Moreover, because different types of POS payment terminals and intelligent terminal communication carriers are also different, for example, some use RS232 serial port for communication, and some use USB (Universal Serial Bus) cable or wireless network for communication. The downloaded or updated program files are different, and the communication carriers are different, resulting in different transmission protocols. Therefore, the POS payment terminal may need to perform different data operations of different programs or files from a plurality of different softwares on the smart terminal, and the operation is cumbersome, and it is necessary to develop different software to adapt data operations of different programs or files, resulting in development. Difficulties, wasting a lot of time, manpower and other resources.
发明内容Summary of the invention
根据本申请的各种实施例,提供一种数据处理方法、终端及非易失性可读存储介质。According to various embodiments of the present application, a data processing method, a terminal, and a non-volatile readable storage medium are provided.
一种数据处理方法,包括:A data processing method comprising:
根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
根据所述处理任务构造预设格式的参数命令;Constructing a parameter command of a preset format according to the processing task;
解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
一种终端,包括存储器和处理器,所述存储器中储存有计算机可执行指令,所述计算机可执行指令被所述处理器执行时,使得所述处理器执行以下步骤:A terminal comprising a memory and a processor, the memory storing computer executable instructions, the computer executable instructions being executed by the processor, causing the processor to perform the following steps:
根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
根据所述处理任务构造预设格式的参数命令;Constructing a parameter command of a preset format according to the processing task;
解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
一个或多个存储有计算机可执行指令的非易失性可读存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile readable storage media storing computer-executable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
根据所述处理任务构造预设格式的参数命令;Constructing a parameter command of a preset format according to the processing task;
解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请 的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. This application Other features, objects, and advantages will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中数据处理方法的应用场景图;1 is an application scenario diagram of a data processing method in an embodiment;
图2为一个实施例中智能终端的框图;2 is a block diagram of an intelligent terminal in an embodiment;
图3为一个实施例中数据处理方法的流程图;3 is a flow chart of a data processing method in an embodiment;
图4为一个实施例中将与执行对象对应的参数传入匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作的流程图;4 is a flowchart of a data processing module that passes parameters corresponding to an execution object into a matching data processing module to perform corresponding data operations on the connected payment terminals according to parameters;
图5为一个实施例中通过匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作的流程图;FIG. 5 is a flowchart of performing a corresponding data operation on a connected payment terminal according to a parameter by a matched data processing module in an embodiment; FIG.
图6为一个实施例中展示过程信息的流程图;Figure 6 is a flow chart showing process information in one embodiment;
图7为一个实施例中调用外部处理工具进行数据处理的流程图;7 is a flow chart of invoking an external processing tool for data processing in one embodiment;
图8为一个实施例中数据处理装置的框图;Figure 8 is a block diagram of a data processing apparatus in an embodiment;
图9为一个实施例中执行模块的框图;Figure 9 is a block diagram of an execution module in one embodiment;
图10为另一个实施例中数据处理装置的框图;Figure 10 is a block diagram of a data processing apparatus in another embodiment;
图11为又一个实施例中数据处理装置的框图。Figure 11 is a block diagram of a data processing apparatus in still another embodiment.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中数据处理方法的应用场景图。如图1所示,支付终 端10可通过RS232串口、USB接口或是网络接口等与智能终端20建立通信连接。用户可在智能终端20上进行数据处理操作,智能终端20根据数据处理操作生成处理任务,并根据处理任务构造预设格式的参数命令。智能终端20解析该参数命令,得到执行对象,并将执行对象对应的参数传入与执行对象匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端10执行相应的数据操作。FIG. 1 is an application scenario diagram of a data processing method in an embodiment. As shown in Figure 1, the end of payment The terminal 10 can establish a communication connection with the smart terminal 20 through an RS232 serial port, a USB interface or a network interface. The user can perform a data processing operation on the smart terminal 20, and the smart terminal 20 generates a processing task according to the data processing operation, and constructs a parameter command of a preset format according to the processing task. The smart terminal 20 parses the parameter command, obtains an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object, so that the matched data processing module performs corresponding data operations on the connected payment terminal 10 according to the parameter. .
图2为一个实施例中上述智能终端20的框图。如图2所示,该智能终端20包括通过系统总线连接的处理器、非易失性存储介质、内存储器、数据传输接口、显示屏和输入装置。终端的存储器包括非易失性存储介质及内存储器,其中,终端的非易失性存储介质存储有操作系统及计算机可执行指令,该计算机可执行指令被处理器执行时以实现本申请实施例中提供的一种数据处理方法。该处理器用于提供计算和控制能力,支撑整个智能终端20的运行。智能终端20中的内存储器为非易失性存储介质中的计算机可执行指令的运行提供环境。数据传输接口用于与支付终端进行通信,如向支付终端发送所需下载的文件、程序等。终端的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该智能终端20可以是手机、平板电脑或PC(personal computer,个人计算机)等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的智能终端20的限定,具体地智能终端20可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。2 is a block diagram of the above-described smart terminal 20 in one embodiment. As shown in FIG. 2, the smart terminal 20 includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a data transmission interface, a display screen, and an input device. The memory of the terminal includes a non-volatile storage medium and an internal memory, wherein the non-volatile storage medium of the terminal stores an operating system and computer-executable instructions, which are executed by the processor to implement the embodiment of the present application. A data processing method provided in . The processor is used to provide computing and control capabilities to support the operation of the entire smart terminal 20. The internal memory in smart terminal 20 provides an environment for the operation of computer executable instructions in a non-volatile storage medium. The data transmission interface is used for communicating with the payment terminal, such as sending the downloaded file, program, etc. to the payment terminal. The display screen of the terminal may be a liquid crystal display or an electronic ink display screen. The input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the terminal housing, or may be an external device. Keyboard, trackpad or mouse. The smart terminal 20 can be a mobile phone, a tablet computer, or a personal computer (PC). Those skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the smart terminal 20 to which the solution of the present application is applied, specifically, the smart terminal. 20 may include more or fewer components than shown in the figures, or some components may be combined, or have different component arrangements.
如图3所示,在一个实施例中,提供一种数据处理方法,可适用于如图2所示的智能终端,包括以下步骤:As shown in FIG. 3, in an embodiment, a data processing method is provided, which is applicable to the smart terminal shown in FIG. 2, and includes the following steps:
步骤S310,根据数据处理操作生成处理任务。Step S310, generating a processing task according to the data processing operation.
在一个实施例中,支付终端可通过RS232串口、USB接口或是网络接口 等与智能终端建立通信连接,其中,支付终端可以是传统POS机、MPOS(简易POS)机或无线POS机等,智能终端可以是手机、平板电脑、手提电脑或PC机等。In one embodiment, the payment terminal can be through an RS232 serial port, a USB interface, or a network interface. And establishing a communication connection with the smart terminal, wherein the payment terminal can be a traditional POS machine, a MPOS (simple POS) machine or a wireless POS machine, etc., and the smart terminal can be a mobile phone, a tablet computer, a laptop computer or a PC machine.
用户可在智能终端的数据处理界面上对与智能终端连接的支付终端执行数据处理操作,执行的数据处理操作可包括从智能终端下载数据、查询支付终端的数据、删除支付终端的数据、重建支付终端的文件系统等。用户可在数据处理界面上选择执行动作、执行对象,以及对应的通信参数等,其中,执行动作可包括下载、查询、删除、重建文件系统等,执行对象可包括底座程序、引导程序、操作系统、配置文件、参数文件及应用程序等,通信参数可包括通信串口号、波特率等。智能终端的数据处理界面可根据数据处理操作生成对应的处理任务。The user may perform a data processing operation on the data terminal connected to the smart terminal on the data processing interface of the smart terminal, and the executed data processing operation may include downloading data from the smart terminal, querying data of the payment terminal, deleting data of the payment terminal, and reconstructing the payment. The file system of the terminal, etc. The user may select an execution action, an execution object, and a corresponding communication parameter on the data processing interface, where the execution action may include downloading, querying, deleting, rebuilding the file system, etc., and the execution object may include a base program, a boot program, and an operating system. , configuration files, parameter files and applications, etc., communication parameters can include communication serial port number, baud rate, and so on. The data processing interface of the intelligent terminal can generate a corresponding processing task according to the data processing operation.
步骤S320,根据处理任务构造预设格式的参数命令。Step S320, constructing a parameter command of a preset format according to the processing task.
智能终端的数据处理界面根据用户的数据处理操作生成对应的处理任务,处理任务中可包括有用户选择的执行动作、执行对象、通信参数等,以及连接的支付终端型号等参数,可按照预设格式,根据处理任务构造参数命令。预设格式可基本为X=Y形式,即按照名字(name)与值(value)对的形式,前面为名字字段,后面为该名字字段在处理任务中对应的具体的值。例如,用户在智能终端的数据处理界面上选择monitor(监控)文件进行下载,并选择对应的通信串口号为COM1,波特率为115200Bd/s(波特/秒),其中,monitor文件即监控文件,是一种支付终端的操作系统文件,则数据处理界面可根据生成的处理任务构造参数命令为:act=dlmonitor monitor=D:\work\S80_monitor.bin type=S80 baud=115200 com=1,其中,act=dlmonitor表示执行的动作为下载、执行对象为monitor文件,monitor=D:\work\S80_monitor.bin表示monitor文件的存储路径,type=S80表示连接的支付终端型号为S80,baud=115200表示波特率为115200 Bd/s,com=1表示通信串口为串口1。可以理解地,参数命令的预设格式并不限于此,也可采用其它的格式进行构造。 The data processing interface of the smart terminal generates a corresponding processing task according to the data processing operation of the user, and the processing task may include a user-selected execution action, an execution object, a communication parameter, and the like, and a parameter of the connected payment terminal model, which may be preset according to the preset. Format, constructs a parameter command based on the processing task. The preset format can be basically X=Y form, that is, according to the name (name) and the value (value) pair form, the front is the name field, followed by the specific value corresponding to the name field in the processing task. For example, the user selects the monitor file on the data processing interface of the smart terminal to download, and selects the corresponding communication serial port number as COM1, and the baud rate is 115200 Bd/s (baud/second), wherein the monitor file is monitored. The file is an operating system file of the payment terminal, and the data processing interface can construct a parameter command according to the generated processing task: act=dlmonitor monitor=D:\work\S80_monitor.bin type=S80 baud=115200 com=1, Among them, act=dlmonitor indicates that the action to be executed is the download and the execution object is the monitor file, monitor=D:\work\S80_monitor.bin indicates the storage path of the monitor file, and type=S80 indicates that the connected payment terminal model is S80, baud=115200 Indicates that the baud rate is 115200 Bd/s, and com=1 indicates that the communication serial port is serial port 1. It can be understood that the preset format of the parameter command is not limited thereto, and other formats may be used for construction.
步骤S330,解析参数命令,得到执行对象。Step S330, parsing the parameter command to obtain an execution object.
智能终端的数据处理界面根据处理任务构造预设格式的参数命令后,可将参数命令发送至预先创建的数据处理进程,并通过数据处理进程对参数命令进行解析,得到参数命令包含的执行动作、执行对象及通信参数等参数。After the data processing interface of the intelligent terminal constructs the parameter command of the preset format according to the processing task, the parameter command may be sent to the pre-created data processing process, and the parameter command is parsed through the data processing process, and the execution action included in the parameter command is obtained. Execute parameters such as object and communication parameters.
步骤S340,将与执行对象对应的参数传入匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作。Step S340, the parameter corresponding to the execution object is passed to the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
智能终端的数据处理进程对参数命令进行解析后,可根据执行对象的数据类型,获取与执行对象匹配的数据处理模块,其中,数据类型可包括底座程序、固件层信息、应用层信息、扩展信息等,分别对应于底座程序下载模块、固件层信息处理模块、应用层信息处理模块及扩展信息处理模块等数据处理模块,不同的数据处理模块可分别对应处理不同软件层的数据操作。数据处理模块可以软件的形式存储在智能终端的存储器中,也可以硬件形式内嵌于或独立于数据处理模块的处理器中,方便处理器调用与执行对象匹配的数据处理模块进行处理。数据处理进程可将与执行对象对应的参数传入与执行对象匹配的数据处理模块,并通过该匹配的数据处理模块对连接的支付终端执行与执行动作及执行对象对应的数据操作。After the data processing process of the intelligent terminal parses the parameter command, the data processing module matching the execution object may be acquired according to the data type of the execution object, wherein the data type may include a base program, firmware layer information, application layer information, and extended information. And so on, corresponding to the base program download module, firmware layer information processing module, application layer information processing module and extended information processing module and other data processing modules, different data processing modules can respectively handle data operations of different software layers. The data processing module may be stored in the memory of the smart terminal in the form of software, or embedded in or independent of the processor of the data processing module in hardware form, so that the processor can call the data processing module matching the execution object for processing. The data processing process may pass the parameter corresponding to the execution object to the data processing module that matches the execution object, and execute, by the matched data processing module, the data operation corresponding to the execution action and the execution object to the connected payment terminal.
例如,智能终端的数据处理界面构造的参数命令为:act=removeapp appid=12345type=S80 baud=115200 com=1,其中act=removeapp表示执行动作为删除应用程序,appid=12345表示执行对象为应用编号为12345的应用程序,该执行对象的数据类型为应用层信息,则将相应的参数传入应用层信息处理模块,并通过应用层信息处理模块删除连接的支付终端上应用编号为12345的应用程序。For example, the parameter command of the data processing interface constructed by the smart terminal is: act=removeapp appid=12345type=S80 baud=115200 com=1, where act=removeapp indicates that the action is performed to delete the application, and appid=12345 indicates that the execution object is the application number. For the 12345 application, if the data type of the execution object is application layer information, the corresponding parameter is passed to the application layer information processing module, and the application layer number 12345 application is deleted on the connected payment terminal through the application layer information processing module. .
上述数据处理方法,根据数据处理操作生成处理任务,根据处理任务构造预设格式的参数命令,解析参数命令得到执行对象,并将与执行对象对应的参数传入与执行对象匹配的数据处理模块,以使该与执行对象匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作,将分属于不同软件层、不同数据操作的数据处理功能集成到一起,能够直接对支付终端执行 不同类型的数据操作,无需分别从不同的软件进行操作,操作简便,且能有效降低开发的复杂度,减少资源浪费。The data processing method generates a processing task according to the data processing operation, constructs a parameter command of a preset format according to the processing task, parses the parameter command to obtain an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object, The data processing module that matches the execution object performs corresponding data operations on the connected payment terminal according to the parameter, and integrates data processing functions belonging to different software layers and different data operations, and can directly execute on the payment terminal. Different types of data operations do not need to be operated separately from different softwares, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
如图4所示,在一个实施例中,步骤S340将与执行对象对应的参数传入匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作,包括以下步骤:As shown in FIG. 4, in an embodiment, step S340 passes parameters corresponding to the execution object to the matched data processing module, so that the matched data processing module performs corresponding data operations on the connected payment terminals according to the parameters, including The following steps:
步骤S402,检测执行对象包含的数据类型。Step S402, detecting a data type included in the execution object.
智能终端的数据处理进程解析参数命令后,得到执行对象,可检测执行对象中包含的数据类型,并获取与包含的数据类型匹配的数据处理模块。在一个实施例中,智能终端的数据处理进程解析得到的执行对象可能为多个,可分别检测各个执行对象的数据类型,并获取与各数据类型匹配的数据处理模块。After the data processing process of the intelligent terminal parses the parameter command, an execution object is obtained, and the data type included in the execution object can be detected, and the data processing module matching the included data type is obtained. In an embodiment, the data processing process of the smart terminal may obtain a plurality of execution objects, and may respectively detect data types of the respective execution objects, and acquire data processing modules that match the data types.
步骤S404,将与属于数据类型的执行对象对应的参数存储在与数据类型对应的待处理参数结构中。Step S404, storing parameters corresponding to the execution objects belonging to the data type in the to-be-processed parameter structure corresponding to the data type.
不同的数据类型可分别对应于不同的待处理参数结构,方便匹配的数据处理模块进行数据操作。智能终端的数据处理进程可对执行对象包含的数据类型进行逐一检测,可先判断执行对象是否包含底座程序,当包含底座程序时,则将属于底座程序的执行对象对应的参数存储在与底座程序对应的待处理参数结构中;再判断执行对象是否包含固件层信息,当包含固件层信息时,则将属于固件层信息的执行对象对应的参数存储在与固件层信息对应的待处理参数结构中;判断执行对象是否包含应用层信息,当包含应用层信息时,则将属于应用层信息的执行对象对应的参数存储在与应用层信息对应的待处理参数结构中;判断执行对象是否包含扩展信息,当包含扩展信息时,则将属于扩展信息的执行对象对应的参数存储在与扩展信息对应的待处理参数结构中。Different data types can respectively correspond to different parameter structures to be processed, which facilitates matching data processing modules to perform data operations. The data processing process of the intelligent terminal can detect the data types included in the execution object one by one, and can first determine whether the execution object includes the base program. When the base program is included, the parameters corresponding to the execution object of the base program are stored in the base program. Corresponding to the parameter structure to be processed; determining whether the execution object contains firmware layer information, and when the firmware layer information is included, storing the parameter corresponding to the execution object belonging to the firmware layer information in the parameter structure to be processed corresponding to the firmware layer information Determining whether the execution object includes the application layer information, and when the application layer information is included, storing the parameter corresponding to the execution object of the application layer information in the to-be-processed parameter structure corresponding to the application layer information; determining whether the execution object includes the extension information When the extended information is included, the parameter corresponding to the execution object belonging to the extended information is stored in the to-be-processed parameter structure corresponding to the extended information.
步骤S406,通过与数据类型匹配的数据处理模块根据待处理参数结构对连接的支付终端执行相应的数据操作。Step S406, performing a corresponding data operation on the connected payment terminal according to the parameter structure to be processed by the data processing module matching the data type.
智能终端的数据处理进程分别将属于各数据类型的执行对象对应的参数 存储在该数据类型对应的待处理参数结构中后,可通过与各数据类型匹配的数据处理模块解析对应的待处理参数结构,得到数据操作指令,并根据数据操作指令对连接的支付终端执行相应的数据操作。The data processing process of the intelligent terminal respectively belongs to the parameter corresponding to the execution object of each data type. After being stored in the to-be-processed parameter structure corresponding to the data type, the data processing module matching each data type can parse the corresponding parameter structure to be processed, obtain a data operation instruction, and perform corresponding operations on the connected payment terminal according to the data operation instruction. Data manipulation.
例如,用户在智能终端的数据处理界面同时选择了下载boot(引导程序)文件及删除应用编号为12345的应用程序,则智能终端的数据处理进程解析参数命令得到的执行对象包括boot文件、应用编号为12345的应用程序,分别为固件层信息及应用层信息,则可将与boot文件对应的参数存储在与固件层信息对应的待处理参数结构,将与应用编号为12345的应用程序对应的参数存储在与应用层信息对应的待处理参数结构,并由固件层信息处理模块解析与固件层信息对应的待处理参数结构,根据得到的数据操作指令将boot文件发送至连接的支付终端,再由应用层信息处理模块解析与应用层信息对应的待处理参数结构,根据得到的数据操作指令删除连接的支付终端上应用编号为12345的应用程序。For example, if the user selects the boot (bootstrap) file and deletes the application with the application number 12345 in the data processing interface of the smart terminal, the execution object of the data processing process parsing parameter command of the smart terminal includes the boot file and the application number. For the 12345 application, which is the firmware layer information and the application layer information respectively, the parameters corresponding to the boot file may be stored in the parameter structure to be processed corresponding to the firmware layer information, and the parameter corresponding to the application with the application number 12345 The parameter structure to be processed corresponding to the application layer information is stored, and the firmware layer information processing module parses the parameter structure to be processed corresponding to the firmware layer information, and sends the boot file to the connected payment terminal according to the obtained data operation instruction, and then The application layer information processing module parses the to-be-processed parameter structure corresponding to the application layer information, and deletes the application number 12345 on the connected payment terminal according to the obtained data operation instruction.
如图5所示,在一个实施例中,步骤S340将与执行对象对应的参数传入匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作,还包括以下步骤:As shown in FIG. 5, in an embodiment, step S340 passes parameters corresponding to the execution object to the matched data processing module, so that the matched data processing module performs corresponding data operations on the connected payment terminals according to the parameters. Includes the following steps:
步骤S502,根据终端型号及通信参数获取对应的传输协议。Step S502, obtaining a corresponding transmission protocol according to the terminal model and the communication parameter.
不同型号的支付终端及数据传输接口可能采用的传输协议不同,不同终端型号的支付终端采用的传输协议可由支付终端的厂商进行设定。例如,A型号的支付终端通过USB接口与智能终端建立通信连接,则采用特定的USB传输协议进行数据传输,B型号的支付终端通过网络接口与智能终端建立通信连接,则采用TCP(Transmission Control Protocol传输控制协议)协议进行数据传输。可预先将不同型号的支付终端及通信参数可能采用的多种传输协议进行封装,当需要对支付终端进行数据操作时,智能终端可根据连接的支付终端的终端型号及通信参数中包含的通信串口号等选择对应的传输协议进行数据操作。Different types of payment terminals and data transmission interfaces may adopt different transmission protocols. The transmission protocols used by payment terminals of different terminal models may be set by the manufacturer of the payment terminal. For example, if the payment terminal of the A model establishes a communication connection with the intelligent terminal through the USB interface, the data transmission is performed by using a specific USB transmission protocol, and the payment terminal of the B model establishes a communication connection with the intelligent terminal through the network interface, and the TCP (Transmission Control Protocol) is adopted. Transmission Control Protocol) protocol for data transmission. Different types of payment terminals and various transmission protocols that may be used for communication parameters may be encapsulated in advance. When data operations are required on the payment terminal, the intelligent terminal may be based on the terminal model of the connected payment terminal and the communication serial port included in the communication parameters. The number selects the corresponding transport protocol for data operation.
步骤S504,按照传输协议及通信参数,通过匹配的数据处理模块对连接 的支付终端执行与执行动作及执行对象对应的数据操作。Step S504, according to the transmission protocol and the communication parameter, the connection is matched by the matched data processing module. The payment terminal performs a data operation corresponding to the execution action and the execution object.
智能终端获取与终端型号及通信参数对应的传输协议后,可按照传输协议及通信参数中的通信串口号、波特率等信息对连接的支付终端进行数据操作,通过与执行对象匹配的数据处理模块解析对应的待处理参数结构,得到数据操作指令,该数据处理模块可根据数据操作指令对连接的支付终端执行与执行动作及执行对象对应的数据操作。After obtaining the transmission protocol corresponding to the terminal model and the communication parameters, the intelligent terminal may perform data operation on the connected payment terminal according to the communication serial port number and the baud rate in the transmission protocol and the communication parameter, and perform data processing matching the execution object. The module parses the corresponding parameter structure to be processed to obtain a data operation instruction, and the data processing module can perform a data operation corresponding to the execution action and the execution object on the connected payment terminal according to the data operation instruction.
例如,用户在智能终端的数据处理界面选择下载boot文件,并选择通信串口号为串口1、波特率为115200Bd/s,智能终端检测连接的支付终端的终端型号为S80,该支付终端通过RS232串口与智能终端建立通信连接,则可获取与终端型号S80对应且支持RS232串口通信的传输协议,固件层信息处理模块可按照该传输协议,并通过串口1以115200Bd/s的速率将boot文件发送到连接的支付终端。For example, the user selects to download the boot file in the data processing interface of the smart terminal, and selects the communication serial port number as the serial port 1. The baud rate is 115200 Bd/s, and the intelligent terminal detects the connected terminal model of the payment terminal as S80, and the payment terminal passes the RS232. When the serial port establishes a communication connection with the intelligent terminal, a transmission protocol corresponding to the terminal model S80 and supporting RS232 serial communication can be obtained, and the firmware layer information processing module can send the boot file through the serial port 1 at a rate of 115200 Bd/s according to the transmission protocol. To the connected payment terminal.
在本实施例中,可根据执行对象包含的数据类型,通过与数据类型匹配的数据处理模块对连接的支付终端执行相应的数据操作,将分属于不同软件层、不同数据操作的数据处理功能集成到一起,能够直接对支付终端执行不同类型的数据操作,无需分别从不同的软件进行操作,操作简便,且能有效降低开发的复杂度,减少资源浪费。In this embodiment, according to the data type included in the execution object, the data processing module matching the data type performs corresponding data operations on the connected payment terminal, and the data processing functions belonging to different software layers and different data operations are integrated. Together, it is possible to directly perform different types of data operations on the payment terminal, without separately operating from different software, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
如图6所示,在一个实施例中,上述数据处理方法,还包括以下步骤:As shown in FIG. 6, in an embodiment, the foregoing data processing method further includes the following steps:
步骤S602,通过预先创建的管道获取对连接的支付终端执行相应的数据操作的过程信息。Step S602, obtaining process information for performing a corresponding data operation on the connected payment terminal by using a pipeline created in advance.
管道(pipe)是一种进程间的通信机制,可通过一部份共享内存实现进程之间的相互通信,当一个进程往管道中写入信息时,另一个进程可从管道中读出该信息。管道可包括匿名管道(anonymous pipes)及命名管道(named pipes),匿名管道比命名管道所需的开销要少,但提供的功能也少,一般用于父进程与子进程之间的数据传输。在本实施例中,智通终端可通过调用CreatePipe函数创建匿名管道,减少不必要的资源开销。A pipe is a communication mechanism between processes. It can communicate with each other through a part of shared memory. When a process writes information to a pipe, another process can read the information from the pipe. . Pipes can include anonymous pipes and named pipes. Anonymous pipes require less overhead than named pipes, but provide less functionality and are generally used for data transfer between parent and child processes. In this embodiment, the smart terminal can create an anonymous pipeline by calling the CreatePipe function, thereby reducing unnecessary resource overhead.
智通终端可通过创建的管道从数据处理进程中获取对连接的支付终端执 行相应的数据操作的过程信息,过程信息可包括正在执行的动作、执行对象的相关信息、数据处理模块根据数据操作指令执行数据操作的进度信息、出错信息等,正在执行的动作可包括下载、查询、删除、重建文件系统等,执行对象的相关信息可包括执行对象、执行对象的存储路径等信息。数据处理模块根据数据操作指令执行数据操作的进度信息用于表示执行的数据操作的完成情况,例如下载了50%、下载了70%等,出错信息则指的是执行数据操作过程中出现的错误,例如串口打开失败、下载数据失败等。The Zhitong terminal can obtain the connected payment terminal from the data processing process through the created pipeline. The process information of the corresponding data operation may be performed, and the process information may include an action being executed, related information of the execution object, progress information of the data processing module performing the data operation according to the data operation instruction, error information, and the like, and the action being performed may include downloading, Querying, deleting, rebuilding a file system, etc., the related information of the execution object may include information such as an execution object, a storage path of the execution object, and the like. The progress information of the data processing module executing the data operation according to the data operation instruction is used to indicate the completion of the executed data operation, such as downloading 50%, downloading 70%, etc., and the error information refers to an error occurring during the execution of the data operation. For example, the serial port fails to open, the data download fails, and so on.
在一个实施例中,智能终端的数据处理进程可按照预设的输出格式将过程信息写入管道中,预设的输出格式可为X=Y形式,即name与value对的形式。例如,数据处理进程将过程信息dlboot.wr=50%写入管道,其中,dlboot表示正在下载boot文件,wr表示将boot文件写入支付终端的闪存,50%表示当前的下载进度为50%,数据处理进程将过程信息BP_ERR_DL_BOOT_DATA写入管道,BP_ERR_DL_BOOT_DATA表示下载boot文件失败等。可以理解地,预设的输出格式并不限于此,还可以是其它的格式。In an embodiment, the data processing process of the smart terminal may write the process information into the pipeline according to a preset output format, and the preset output format may be an X=Y form, that is, a form of a name and a value pair. For example, the data processing process writes the process information dlboot.wr=50% to the pipeline, where dlboot indicates that the boot file is being downloaded, wr indicates that the boot file is written to the flash memory of the payment terminal, and 50% indicates that the current download progress is 50%. The data processing process writes the process information BP_ERR_DL_BOOT_DATA to the pipeline, and BP_ERR_DL_BOOT_DATA indicates that the download of the boot file failed. It can be understood that the preset output format is not limited thereto, and may be other formats.
步骤S604,解析过程信息,并按照预设方法进行展示。In step S604, the process information is parsed and displayed according to a preset method.
智通终端通过管道从数据处理进程中获取过程信息后,可将过程信息传输至数据处理界面,数据处理界面从管道中读取过程信息后,可对过程信息进行解析,并按照预设方式进行展示,预设方式可以包含进度条、文字说明等形式,例如,数据处理界面读取过程信息dlboot.wr=50%,解析后,则可展示下载boot文件完成50%的进度条,或是直接显示“下载boot文件已完全50%”的文字,但不限于此。After the Zhitong terminal obtains the process information from the data processing process through the pipeline, the process information can be transmitted to the data processing interface. After the data processing interface reads the process information from the pipeline, the process information can be parsed and displayed according to a preset manner. The preset mode may include a progress bar, a text description, and the like. For example, the data processing interface reads the process information dlboot.wr=50%, after parsing, it may display a 50% progress bar for downloading the boot file, or directly display "Download the boot file is completely 50%" text, but not limited to this.
在一个实施例中,当数据处理模块执行完成相应的数据操作时,数据处理进程可将退出码写入管道中,通过管道将退出码传输至数据处理界面。数据处理界面解析读取的退出码,可显示执行完成的数据处理结果。In one embodiment, when the data processing module performs the corresponding data operation, the data processing process can write the exit code into the pipeline and transmit the exit code to the data processing interface through the pipeline. The data processing interface parses the read exit code to display the data processing result of the execution completion.
在本实施例中,通过管道可获取对连接的支付终端执行相应的数据操作的过程信息并进行展示,方便用户了解执行数据操作的进度、出现在错误及操作结果等执行情况。 In this embodiment, the process information of performing the corresponding data operation on the connected payment terminal can be obtained through the pipeline and displayed, so that the user can understand the progress of executing the data operation, the occurrence of errors and the operation result and the like.
如图7所示,在一个实施例中,在步骤S330解析参数命令,得到执行对象之后,还包括以下步骤:As shown in FIG. 7, in one embodiment, after the parameter command is parsed in step S330 to obtain an execution object, the following steps are further included:
步骤S702,根据执行对象调用外部处理工具。Step S702, calling an external processing tool according to the execution object.
在一个实施例中,对于某些特定的数据操作由数据处理进程可能无法执行,需要调用特定的外部处理工具才可执行完成。当执行对象中包含扩展信息,则智能终端可通过数据处理进程将与执行对象对应的参数传入扩展信息处理模块,并通过扩展信息处理模块调用外部处理工具的接口将参数传入外部处理工具。In one embodiment, some specific data operations may not be performed by the data processing process, and a specific external processing tool needs to be called to perform the completion. When the execution object includes the extended information, the smart terminal may pass the parameter corresponding to the execution object to the extended information processing module through the data processing process, and send the parameter to the external processing tool by calling the interface of the external processing tool by the extended information processing module.
步骤S704,将与执行对象对应的参数传入外部处理工具,以使外部处理工具根据参数对连接的支付终端执行相应的数据操作。Step S704, the parameter corresponding to the execution object is transmitted to the external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter.
外部处理工具接收传入的与执行对象对应的参数后,可根据参数对连接的支付终端执行相应的数据操作,对于数据处理进程原先无法支付的数据操作,通过外部处理工具提供的接口即可将外部处理工具进行集成,扩展方式简单易操作,能有效降低开发的复杂度,减少资源浪费。After receiving the parameters corresponding to the executed object, the external processing tool may perform corresponding data operations on the connected payment terminal according to the parameters. For the data operation that the data processing process cannot previously pay, the interface provided by the external processing tool may be used. External processing tools are integrated, and the expansion method is simple and easy to operate, which can effectively reduce the complexity of development and reduce resource waste.
步骤S706,通过预先创建的管道从外部处理工具获取对连接的支付终端执行相应的数据操作的过程信息。Step S706, obtaining process information for performing a corresponding data operation on the connected payment terminal from the external processing tool through a pre-created pipeline.
智能终端的数据处理进程可调用预先创建的管道,通过管道从外部处理工具获取对连接的支付终端执行相应的数据操作的过程信息,通过过程信息记录外部处理工具的执行情况。The data processing process of the intelligent terminal may call a pre-created pipeline, obtain process information of performing corresponding data operations on the connected payment terminal from the external processing tool through the pipeline, and record the execution of the external processing tool through the process information.
步骤S708,解析从外部处理工具获取的过程信息,并按照预设方式进行展示。Step S708, parsing the process information acquired from the external processing tool, and performing the display according to a preset manner.
智能终端可通过管道将从外部处理工具获取的过程信息传输至数据处理界面,数据处理界面从管道中读取过程信息后可进行解析,并按照进度条、文字说明等预设方式进行展示。The intelligent terminal can transmit the process information acquired from the external processing tool to the data processing interface through the pipeline, and the data processing interface can be parsed after reading the process information from the pipeline, and displayed according to preset manners such as a progress bar and a text description.
步骤S710,当执行完成时,显示数据处理结果。Step S710, when the execution is completed, the data processing result is displayed.
当数据处理界面从管道中读取到退出码时,表示外部处理工具对连接的支付终端的数据操作执行完成,可解析读取的退出码并显示执行完成的数据 处理结果,例如,接收到退出码exit_done=ok,表示执行完成,但不限于此。可以理解地,除了退出码外,也可用其它的退出指令表示执行完成,当数据处理界面接收到退出指令时,显示数据处理结果。When the data processing interface reads the exit code from the pipeline, it indicates that the external processing tool performs the data operation of the connected payment terminal, and the read exit code can be parsed and the executed data is displayed. The result of the processing, for example, receiving the exit code exit_done=ok, indicates that the execution is completed, but is not limited thereto. It can be understood that, in addition to the exit code, other exit instructions can be used to indicate that the execution is completed. When the data processing interface receives the exit instruction, the data processing result is displayed.
在本实施例中,可调用外部处理工具对连接的支付终端执行相应的数据操作,将外部处理工具的数据操作功能进行集成,集成方式简单,能够直接对支付终端执行不同类型的数据操作,操作简便。In this embodiment, the external processing tool can be invoked to perform corresponding data operations on the connected payment terminal, integrate the data operation function of the external processing tool, and the integration mode is simple, and can directly perform different types of data operations on the payment terminal. Simple.
如图8所示,在一个实施例中,提供一种数据处理装置,包括生成模块810、构造模块820、解析模块830及执行模块840。As shown in FIG. 8, in one embodiment, a data processing apparatus is provided, including a generating module 810, a constructing module 820, a parsing module 830, and an executing module 840.
生成模块810,用于根据数据处理操作生成处理任务。The generating module 810 is configured to generate a processing task according to the data processing operation.
构造模块820,用于根据处理任务构造预设格式的参数命令。The constructing module 820 is configured to construct a parameter command of a preset format according to the processing task.
解析模块830,用于解析参数命令,得到执行对象。The parsing module 830 is configured to parse the parameter command to obtain an execution object.
执行模块840,用于将与执行对象对应的参数传入匹配的数据处理模块,以使匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作。The executing module 840 is configured to pass the parameter corresponding to the execution object to the matched data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
上述数据处理装置,根据数据处理操作生成处理任务,根据处理任务构造预设格式的参数命令,解析参数命令得到执行对象,并将与执行对象对应的参数传入与执行对象匹配的数据处理模块,以使该与执行对象匹配的数据处理模块根据参数对连接的支付终端执行相应的数据操作,将分属于不同软件层、不同数据操作的数据处理功能集成到一起,能够直接对支付终端执行不同类型的数据操作,无需分别从不同的软件进行操作,操作简便,且能有效降低开发的复杂度,减少资源浪费。The data processing device generates a processing task according to the data processing operation, constructs a parameter command of a preset format according to the processing task, parses the parameter command to obtain an execution object, and passes the parameter corresponding to the execution object to the data processing module that matches the execution object, The data processing module matching the execution object performs corresponding data operations on the connected payment terminal according to the parameter, and integrates data processing functions belonging to different software layers and different data operations, and can directly perform different types on the payment terminal. The data operation does not need to be operated separately from different softwares, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
如图9所示,在一个实施例中,执行模块840包括检测单元842、存储单元844、执行单元846及协议获取单元848。As shown in FIG. 9, in one embodiment, execution module 840 includes detection unit 842, storage unit 844, execution unit 846, and protocol acquisition unit 848.
检测单元842,用于检测执行对象包含的数据类型。The detecting unit 842 is configured to detect a data type included in the execution object.
存储单元844,用于将与属于数据类型的执行对象对应的参数存储在与数据类型对应的待处理参数结构中。The storage unit 844 is configured to store parameters corresponding to the execution objects belonging to the data type in the to-be-processed parameter structure corresponding to the data type.
执行单元846,用于通过与数据类型匹配的数据处理模块根据待处理参 数结构对连接的支付终端执行相应的数据操作。The executing unit 846 is configured to: according to the data processing module that matches the data type, according to the to-be-processed parameter The number structure performs corresponding data operations on the connected payment terminals.
协议获取单元848,用于根据终端型号及通信参数获取对应的传输协议。The protocol obtaining unit 848 is configured to obtain a corresponding transmission protocol according to the terminal model and the communication parameter.
执行单元846,还用于按照传输协议及通信参数,通过匹配的数据处理模块对连接的支付终端执行与执行动作及执行对象对应的数据操作。The executing unit 846 is further configured to perform, by the matched data processing module, the data operation corresponding to the execution action and the execution object by the matched data processing module according to the transmission protocol and the communication parameter.
在本实施例中,可根据执行对象包含的数据类型,通过与数据类型匹配的数据处理模块对连接的支付终端执行相应的数据操作,将分属于不同软件层、不同数据操作的数据处理功能集成到一起,能够直接对支付终端执行不同类型的数据操作,无需分别从不同的软件进行操作,操作简便,且能有效降低开发的复杂度,减少资源浪费。In this embodiment, according to the data type included in the execution object, the data processing module matching the data type performs corresponding data operations on the connected payment terminal, and the data processing functions belonging to different software layers and different data operations are integrated. Together, it is possible to directly perform different types of data operations on the payment terminal, without separately operating from different software, and the operation is simple, and the complexity of development can be effectively reduced, and resource waste is reduced.
如图10所示,在一个实施例中,上述数据处理装置,除了包括生成模块810、构造模块820、解析模块830及执行模块840,还包括信息获取模块850及展示模块860。As shown in FIG. 10, in one embodiment, the data processing apparatus includes an information obtaining module 850 and a display module 860 in addition to the generating module 810, the constructing module 820, the parsing module 830, and the executing module 840.
信息获取模块850,用于通过预先创建的管道获取对连接的支付终端执行相应的数据操作的过程信息。The information obtaining module 850 is configured to obtain, by using a pre-created pipeline, process information for performing a corresponding data operation on the connected payment terminal.
展示模块860,用于解析过程信息,并按照预设方式进行展示。The display module 860 is configured to parse the process information and display it according to a preset manner.
在本实施例中,通过管道可获取对连接的支付终端执行相应的数据操作的过程信息并进行展示,方便用户了解执行数据操作的进度、出现在错误及操作结果等执行情况。In this embodiment, the process information of performing the corresponding data operation on the connected payment terminal can be obtained through the pipeline and displayed, so that the user can understand the progress of executing the data operation, the occurrence of errors and the operation result and the like.
如图11所示,在一个实施例中,上述数据处理装置,除了包括生成模块810、构造模块820、解析模块830、执行模块840、信息获取模块850及展示模块860,还包括调用模块870及传入模块880。As shown in FIG. 11 , in one embodiment, the data processing apparatus includes a generation module 810, a construction module 820, a parsing module 830, an execution module 840, an information acquisition module 850, and a display module 860, and includes a calling module 870 and Pass in module 880.
调用模块870,用于根据执行对象调用外部处理工具。The calling module 870 is configured to invoke an external processing tool according to the execution object.
传入模块880,用于将与执行对象对应的参数传入外部处理工具,以使外部处理工具根据参数对连接的支付终端执行相应的数据操作。The incoming module 880 is configured to pass the parameter corresponding to the execution object to an external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter.
信息获取模块850,还用于通过预先创建的管道从外部处理工具获取对连接的支付终端执行相应的数据操作的过程信息。The information obtaining module 850 is further configured to acquire, by using a pre-created pipeline, process information for performing a corresponding data operation on the connected payment terminal from an external processing tool.
展示模块860,还用于解析从外部处理工具获取的过程信息,并按照预 设方式进行展示。The display module 860 is further configured to parse the process information acquired from the external processing tool, and according to the pre- Set the way to display.
展示模块860,还用于当执行完成时,显示数据处理结果。The display module 860 is further configured to display a data processing result when the execution is completed.
在本实施例中,可调用外部处理工具对连接的支付终端执行相应的数据操作,将外部处理工具的数据操作功能进行集成,集成方式简单,能够直接对支付终端执行不同类型的数据操作,操作简便。In this embodiment, the external processing tool can be invoked to perform corresponding data operations on the connected payment terminal, integrate the data operation function of the external processing tool, and the integration mode is simple, and can directly perform different types of data operations on the payment terminal. Simple.
上述数据处理装置中的各个模块可全部或部分通过软件、硬件或其组合来实现。例如,在硬件实现上,上述解析模块830可通过终端的处理器解析参数命令,得到执行对象,其中,该处理器可以为中央处理单元(CPU)、微处理器等。上述各模块可以硬件形式内嵌于或独立于终端的处理器中,也可以以软件形式存储于终端的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each of the above-described data processing devices may be implemented in whole or in part by software, hardware, or a combination thereof. For example, in the hardware implementation, the parsing module 830 can obtain an execution object by parsing a parameter command by a processor of the terminal, where the processor can be a central processing unit (CPU), a microprocessor, or the like. The above modules may be embedded in the hardware of the terminal or may be stored in the memory of the terminal in the form of software, so that the processor can call the corresponding operations of the above modules.
在一个实施例中,提供一种终端,包括存储器和处理器,存储器中储存有计算机可执行指令,计算机可执行指令被处理器执行时,使得该处理器执行时可实现上述的数据处理方法。In one embodiment, a terminal is provided that includes a memory and a processor having stored therein computer executable instructions that, when executed by a processor, cause the processor to perform the data processing method described above.
在一个实施例中,提供一个或多个存储有计算机可执行指令的非易失性可读存储介质,计算机可执行指令被一个或多个处理器执行时可实现上述的数据处理方法。In one embodiment, one or more non-volatile readable storage media storing computer-executable instructions are provided, which may be implemented when executed by one or more processors.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。 The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。 The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (15)

  1. 一种数据处理方法,包括:A data processing method comprising:
    根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
    根据所述处理任务构造预设格式的参数命令;Constructing a parameter command of a preset format according to the processing task;
    解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
    将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
  2. 根据权利要求1所述的方法,其特征在于,所述将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The method according to claim 1, wherein the parameter corresponding to the execution object is passed to a matching data processing module, so that the matched data processing module pairs the connected payment terminal according to the parameter. Perform the appropriate data operations, including:
    检测所述执行对象包含的数据类型;Detecting a data type included in the execution object;
    将与属于所述数据类型的执行对象对应的参数存储在与所述数据类型对应的待处理参数结构中;及Storing a parameter corresponding to an execution object belonging to the data type in a parameter structure to be processed corresponding to the data type; and
    通过与所述数据类型匹配的数据处理模块根据所述待处理参数结构对连接的支付终端执行相应的数据操作。A corresponding data operation is performed on the connected payment terminal according to the to-be-processed parameter structure by a data processing module that matches the data type.
  3. 根据权利要求1所述的方法,其特征在于,所述与执行内容对应的参数包括执行动作、执行对象、终端型号及通信参数;The method according to claim 1, wherein the parameters corresponding to the execution content include an execution action, an execution object, a terminal model, and a communication parameter;
    所述以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The causing the matched data processing module to perform corresponding data operations on the connected payment terminal according to the parameter, including:
    根据所述终端型号及通信参数获取对应的传输协议;及Obtaining a corresponding transmission protocol according to the terminal model and communication parameters; and
    按照所述传输协议及通信参数,通过所述匹配的数据处理模块对连接的支付终端执行与所述执行动作及执行对象对应的数据操作。And performing, according to the transmission protocol and the communication parameter, a data operation corresponding to the execution action and the execution object to the connected payment terminal by the matched data processing module.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    通过预先创建的管道获取对所述连接的支付终端执行相应的数据操作的过程信息;及Obtaining process information for performing a corresponding data operation on the connected payment terminal through a pre-created pipeline; and
    解析所述过程信息,并按照预设方式进行展示。The process information is parsed and displayed in a preset manner.
  5. 根据权利要求1所述的方法,其特征在于,在所述解析所述参数命令, 得到执行对象之后,所述方法还包括:The method of claim 1 wherein said parsing said parameter command, After obtaining the execution object, the method further includes:
    根据所述执行对象调用外部处理工具;Calling an external processing tool according to the execution object;
    将与所述执行对象对应的参数传入所述外部处理工具,以使所述外部处理工具根据所述参数对连接的支付终端执行相应的数据操作;Passing a parameter corresponding to the execution object to the external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter;
    通过预先创建的管道从所述外部处理工具获取对所述连接的支付终端执行相应的数据操作的过程信息;Obtaining process information for performing a corresponding data operation on the connected payment terminal from the external processing tool through a pre-created pipeline;
    解析从所述外部处理工具获取的过程信息,并按照预设方式进行展示;及Parsing process information obtained from the external processing tool and displaying it according to a preset manner; and
    当执行完成时,显示数据处理结果。When the execution is completed, the data processing result is displayed.
  6. 一种终端,包括存储器和处理器,所述存储器中储存有计算机可执行指令,所述计算机可执行指令被所述处理器执行时,使得所述处理器执行以下步骤:A terminal comprising a memory and a processor, the memory storing computer executable instructions, the computer executable instructions being executed by the processor, causing the processor to perform the following steps:
    根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
    根据所述处理任务构造预设格式的参数命令;Constructing a parameter command of a preset format according to the processing task;
    解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
    将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
  7. 根据权利要求6所述的终端,其特征在于,所述将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The terminal according to claim 6, wherein the parameter corresponding to the execution object is passed to a matching data processing module, so that the matched data processing module connects the connected payment terminal according to the parameter. Perform the appropriate data operations, including:
    检测所述执行对象包含的数据类型;Detecting a data type included in the execution object;
    将与属于所述数据类型的执行对象对应的参数存储在与所述数据类型对应的待处理参数结构中;及Storing a parameter corresponding to an execution object belonging to the data type in a parameter structure to be processed corresponding to the data type; and
    通过与所述数据类型匹配的数据处理模块根据所述待处理参数结构对连接的支付终端执行相应的数据操作。A corresponding data operation is performed on the connected payment terminal according to the to-be-processed parameter structure by a data processing module that matches the data type.
  8. 根据权利要求6所述的终端,其特征在于,所述与执行内容对应的参 数包括执行动作、执行对象、终端型号及通信参数;The terminal according to claim 6, wherein the parameter corresponding to the execution content The number includes the execution action, the execution object, the terminal model and the communication parameters;
    所述以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The causing the matched data processing module to perform corresponding data operations on the connected payment terminal according to the parameter, including:
    根据所述终端型号及通信参数获取对应的传输协议;及Obtaining a corresponding transmission protocol according to the terminal model and communication parameters; and
    按照所述传输协议及通信参数,通过所述匹配的数据处理模块对连接的支付终端执行与所述执行动作及执行对象对应的数据操作。And performing, according to the transmission protocol and the communication parameter, a data operation corresponding to the execution action and the execution object to the connected payment terminal by the matched data processing module.
  9. 根据权利要求6所述的终端,其特征在于,所述计算机可执行指令被所述处理器执行时,还使得所述处理器执行:The terminal of claim 6 wherein said computer executable instructions, when executed by said processor, further cause said processor to:
    通过预先创建的管道获取对所述连接的支付终端执行相应的数据操作的过程信息;及Obtaining process information for performing a corresponding data operation on the connected payment terminal through a pre-created pipeline; and
    解析所述过程信息,并按照预设方式进行展示的步骤。The step of parsing the process information and displaying it in a preset manner.
  10. 根据权利要求6所述的终端,其特征在于,所述计算机可执行指令被所述处理器执行时,使得所述处理器在执行所述解析所述参数命令,得到执行对象的步骤之后,还执行:The terminal according to claim 6, wherein said computer executable instructions are executed by said processor, such that said processor, after performing said step of parsing said parameter command to obtain an execution object, further carried out:
    根据所述执行对象调用外部处理工具;Calling an external processing tool according to the execution object;
    将与所述执行对象对应的参数传入所述外部处理工具,以使所述外部处理工具根据所述参数对连接的支付终端执行相应的数据操作;Passing a parameter corresponding to the execution object to the external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter;
    通过预先创建的管道从所述外部处理工具获取对所述连接的支付终端执行相应的数据操作的过程信息;Obtaining process information for performing a corresponding data operation on the connected payment terminal from the external processing tool through a pre-created pipeline;
    解析从所述外部处理工具获取的过程信息,并按照预设方式进行展示;及Parsing process information obtained from the external processing tool and displaying it according to a preset manner; and
    当执行完成时,显示数据处理结果的步骤。The step of displaying the data processing result when the execution is completed.
  11. 一个或多个存储有计算机可执行指令的非易失性可读存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile readable storage media storing computer-executable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
    根据数据处理操作生成处理任务;Generating a processing task according to a data processing operation;
    根据所述处理任务构造预设格式的参数命令; Constructing a parameter command of a preset format according to the processing task;
    解析所述参数命令,得到执行对象;及Parsing the parameter command to obtain an execution object; and
    将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作。Passing parameters corresponding to the execution object into the matching data processing module, so that the matched data processing module performs a corresponding data operation on the connected payment terminal according to the parameter.
  12. 根据权利要求11所述的非易失性可读存储介质,其特征在于,所述将与所述执行对象对应的参数传入匹配的数据处理模块,以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The non-volatile readable storage medium according to claim 11, wherein the parameter corresponding to the execution object is passed to a matching data processing module, so that the matched data processing module is The parameters perform corresponding data operations on the connected payment terminal, including:
    检测所述执行对象包含的数据类型;Detecting a data type included in the execution object;
    将与属于所述数据类型的执行对象对应的参数存储在与所述数据类型对应的待处理参数结构中;及Storing a parameter corresponding to an execution object belonging to the data type in a parameter structure to be processed corresponding to the data type; and
    通过与所述数据类型匹配的数据处理模块根据所述待处理参数结构对连接的支付终端执行相应的数据操作。A corresponding data operation is performed on the connected payment terminal according to the to-be-processed parameter structure by a data processing module that matches the data type.
  13. 根据权利要求11所述的非易失性可读存储介质,其特征在于,所述与执行内容对应的参数包括执行动作、执行对象、终端型号及通信参数;The non-volatile readable storage medium according to claim 11, wherein the parameters corresponding to the execution content include an execution action, an execution object, a terminal model, and a communication parameter;
    所述以使所述匹配的数据处理模块根据所述参数对连接的支付终端执行相应的数据操作,包括:The causing the matched data processing module to perform corresponding data operations on the connected payment terminal according to the parameter, including:
    根据所述终端型号及通信参数获取对应的传输协议;及Obtaining a corresponding transmission protocol according to the terminal model and communication parameters; and
    按照所述传输协议及通信参数,通过所述匹配的数据处理模块对连接的支付终端执行与所述执行动作及执行对象对应的数据操作。And performing, according to the transmission protocol and the communication parameter, a data operation corresponding to the execution action and the execution object to the connected payment terminal by the matched data processing module.
  14. 根据权利要求11所述的非易失性可读存储介质,其特征在于,所述计算机可执行指令被一个或多个处理器执行时,还使得所述一个或多个处理器执行:The non-volatile readable storage medium of claim 11, wherein when the computer executable instructions are executed by one or more processors, the one or more processors are further executed:
    通过预先创建的管道获取对所述连接的支付终端执行相应的数据操作的过程信息;及Obtaining process information for performing a corresponding data operation on the connected payment terminal through a pre-created pipeline; and
    解析所述过程信息,并按照预设方式进行展示的步骤。The step of parsing the process information and displaying it in a preset manner.
  15. 根据权利要求11所述的非易失性可读存储介质,其特征在于,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器在执行所述解析所述参数命令,得到执行对象的步骤之后,还执行: A non-volatile readable storage medium according to claim 11 wherein said computer executable instructions are executed by one or more processors such that said one or more processors are performing said parsing After the parameter command obtains the step of executing the object, it also executes:
    根据所述执行对象调用外部处理工具;Calling an external processing tool according to the execution object;
    将与所述执行对象对应的参数传入所述外部处理工具,以使所述外部处理工具根据所述参数对连接的支付终端执行相应的数据操作;Passing a parameter corresponding to the execution object to the external processing tool, so that the external processing tool performs a corresponding data operation on the connected payment terminal according to the parameter;
    通过预先创建的管道从所述外部处理工具获取对所述连接的支付终端执行相应的数据操作的过程信息;Obtaining process information for performing a corresponding data operation on the connected payment terminal from the external processing tool through a pre-created pipeline;
    解析从所述外部处理工具获取的过程信息,并按照预设方式进行展示;及Parsing process information obtained from the external processing tool and displaying it according to a preset manner; and
    当执行完成时,显示数据处理结果的步骤。 The step of displaying the data processing result when the execution is completed.
PCT/CN2017/101571 2017-02-24 2017-09-13 Data processing method, terminal and non-volatile readable storage medium WO2018153064A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710104740.3A CN106952426B (en) 2017-02-24 2017-02-24 Data processing method and device
CN201710104740.3 2017-02-24

Publications (1)

Publication Number Publication Date
WO2018153064A1 true WO2018153064A1 (en) 2018-08-30

Family

ID=59466515

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101571 WO2018153064A1 (en) 2017-02-24 2017-09-13 Data processing method, terminal and non-volatile readable storage medium

Country Status (2)

Country Link
CN (1) CN106952426B (en)
WO (1) WO2018153064A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106952426B (en) * 2017-02-24 2020-01-21 百富计算机技术(深圳)有限公司 Data processing method and device
CN110648108A (en) * 2019-08-30 2020-01-03 广东工业大学 Office automation method and system based on key sprites
CN113553120A (en) * 2021-06-30 2021-10-26 珠海豹趣科技有限公司 Task execution method and device, storage medium and electronic equipment
CN115357309B (en) * 2022-10-24 2023-07-14 深信服科技股份有限公司 Data processing method, device, system and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020046185A1 (en) * 2000-08-30 2002-04-18 Jean-Marc Villart System and method conducting POS transactions
CN1378670A (en) * 1999-10-13 2002-11-06 株式会社日本视觉 Network type data transmission method and system, server or termainl device in said system, device for recording said programed method
CN1997963A (en) * 2004-05-25 2007-07-11 亚历山大·索雷斯·皮·法里亚斯 System for accessing a POS terminal, method for downloading and updating applications and method for performing electronic operation using such a system
CN101753547A (en) * 2008-12-19 2010-06-23 北京银迅捷电子技术有限公司 Method and system for updating applications and parameters of multi-model POS terminal device
CN105242915A (en) * 2015-09-07 2016-01-13 无锡天脉聚源传媒科技有限公司 Data operation processing method and apparatus
CN106204968A (en) * 2016-07-25 2016-12-07 无锡酷银科技有限公司 A kind of many hardware adaptation device based on POS and adaptation method thereof
US20160364710A1 (en) * 2014-02-11 2016-12-15 Bixolon Co., Ltd. Pos peripherals controlling device, mobile host device, and control method thereof
CN106952426A (en) * 2017-02-24 2017-07-14 百富计算机技术(深圳)有限公司 Data processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378670A (en) * 1999-10-13 2002-11-06 株式会社日本视觉 Network type data transmission method and system, server or termainl device in said system, device for recording said programed method
US20020046185A1 (en) * 2000-08-30 2002-04-18 Jean-Marc Villart System and method conducting POS transactions
CN1997963A (en) * 2004-05-25 2007-07-11 亚历山大·索雷斯·皮·法里亚斯 System for accessing a POS terminal, method for downloading and updating applications and method for performing electronic operation using such a system
CN101753547A (en) * 2008-12-19 2010-06-23 北京银迅捷电子技术有限公司 Method and system for updating applications and parameters of multi-model POS terminal device
US20160364710A1 (en) * 2014-02-11 2016-12-15 Bixolon Co., Ltd. Pos peripherals controlling device, mobile host device, and control method thereof
CN105242915A (en) * 2015-09-07 2016-01-13 无锡天脉聚源传媒科技有限公司 Data operation processing method and apparatus
CN106204968A (en) * 2016-07-25 2016-12-07 无锡酷银科技有限公司 A kind of many hardware adaptation device based on POS and adaptation method thereof
CN106952426A (en) * 2017-02-24 2017-07-14 百富计算机技术(深圳)有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN106952426B (en) 2020-01-21
CN106952426A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
WO2020233048A1 (en) Customized software generation method and system, and electronic device and storage medium
WO2018153064A1 (en) Data processing method, terminal and non-volatile readable storage medium
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
WO2018049888A1 (en) Application data migration method and device
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
WO2019075774A1 (en) Device parameter configuration method and apparatus, computer device and storage medium
US10146554B2 (en) Extraction of operating system-specific characteristics via a communication interface
US20100100868A1 (en) Interactive design environments to visually model, debug and execute resource oriented programs.
WO2020119804A1 (en) Page view display method, apparatus, device and storage medium
CN111694572A (en) Code format conversion method, device, computer equipment and storage medium
WO2019075845A1 (en) Construction method and device for link call relationship, computer device and storage medium
CN113868868A (en) Equipment data interaction method, system and platform based on object model structure
CN106302011B (en) Multi-terminal-based test method and terminal
CN106095886B (en) Data processing method and device
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN111552606B (en) Data processing method and device and electronic equipment
CN108196906B (en) User instruction processing method and embedded device
US20220342742A1 (en) Graphical management of big data pipelines
WO2016061921A1 (en) Method, device, terminal and computer storage medium for combining multiple application operations
US9298428B2 (en) Graphical user interface editor that displays live data during editing
CN113495651B (en) Window control method and device
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
JP5959535B2 (en) Server, method, and program for causing a computer to function as a server for accessing a mobile terminal from a client via a network
CN111737372A (en) Map data generation method and device
CN113157360B (en) Method, apparatus, device, medium, and article for processing an 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: 17897398

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

Country of ref document: EP

Kind code of ref document: A1