CN106952426B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN106952426B
CN106952426B CN201710104740.3A CN201710104740A CN106952426B CN 106952426 B CN106952426 B CN 106952426B CN 201710104740 A CN201710104740 A CN 201710104740A CN 106952426 B CN106952426 B CN 106952426B
Authority
CN
China
Prior art keywords
data
execution
data processing
module
payment terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710104740.3A
Other languages
Chinese (zh)
Other versions
CN106952426A (en
Inventor
郑任持
李坚强
魏鸣飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201710104740.3A priority Critical patent/CN106952426B/en
Publication of CN106952426A publication Critical patent/CN106952426A/en
Priority to PCT/CN2017/101571 priority patent/WO2018153064A1/en
Application granted granted Critical
Publication of CN106952426B publication Critical patent/CN106952426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The invention relates to a data processing method and device. The method comprises the following steps: generating a processing task according to the data processing operation; constructing a parameter command in a preset format according to the processing task; analyzing the parameter command to obtain an execution object; and transmitting the parameters corresponding to the execution object into a matched data processing module so that the matched data processing module executes corresponding data operation on a connected payment terminal according to the parameters. The data processing method and the data processing device can directly execute different types of data operation on the payment terminal, do not need to be operated from different software respectively, are simple and convenient to operate, and can effectively reduce the development complexity and reduce the resource waste.

Description

Data processing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a data processing method and device, and specifically relates to a data processing method and device based on a payment terminal.
Background
The POS (Point Of Sale) can establish communication connection with intelligent equipment such as a mobile phone and a tablet personal computer and perform data transmission, and the POS payment terminal can complete operations such as card reading, PIN (personal identification number) input, data encryption and decryption, prompt information display and the like, so that the application Of a payment function is realized.
The POS payment terminal, whether produced or after shipment, often needs to download or update programs and files of the POS payment terminal, such as a boot program, an operating system program, an application program, and a parameter file of the POS payment terminal, and these programs and files often belong to different software layers, which are various. And because the communication carriers of the POS payment terminals of different models and the intelligent terminal are also different, for example, some of them use RS232 serial ports for communication, and some of them use USB (Universal serial bus) cables or wireless networks for communication. Different program files are downloaded or updated, different communication carriers are adopted, and different transmission protocols are caused. Therefore, the POS payment terminal may need to perform data operations of different programs or files from a plurality of different software on the smart terminal, which is cumbersome to operate, and needs to develop different software to adapt to the data operations of different programs or files, resulting in difficulty in development and waste of resources such as a lot of time and manpower.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, which can directly execute different types of data operation on a payment terminal, are simple and convenient to operate, and can effectively reduce the development complexity and reduce the resource waste.
A method of data processing, comprising:
generating a processing task according to the data processing operation;
constructing a parameter command in a preset format according to the processing task;
analyzing the parameter command to obtain an execution object;
and transmitting the parameters corresponding to the execution object into a matched data processing module so that the matched data processing module executes corresponding data operation on a connected payment terminal according to the parameters.
In one embodiment, the passing of the parameter corresponding to the execution object into the matched data processing module to enable the matched data processing module to execute a corresponding data operation on a connected payment terminal according to the parameter includes:
detecting the data type contained in the execution object;
storing parameters corresponding to execution objects belonging to the data type in a parameter structure to be processed corresponding to the data type;
and executing corresponding data operation on the connected payment terminal according to the parameter structure to be processed by the data processing module matched with the data type.
In one embodiment, the parameters corresponding to the execution content include an execution action, an execution object, a terminal model and communication parameters;
the enabling of the matched data processing module to execute corresponding data operation on the connected payment terminal according to the parameters includes:
acquiring a corresponding transmission protocol according to the terminal model and the communication parameters;
and according to the transmission protocol and the communication parameters, executing data operation corresponding to the execution action and the execution object on the connected payment terminal through the matched data processing module.
In one embodiment, the method further comprises:
acquiring process information for executing corresponding data operation on the connected payment terminal through a pre-established pipeline;
and analyzing the process information and displaying according to a preset mode.
In one embodiment, after parsing the parameter command to obtain an execution object, the method further includes:
calling an external processing tool according to the execution object;
transmitting parameters corresponding to the execution objects into the external processing tool so that the external processing tool executes corresponding data operation on the connected payment terminal according to the parameters;
acquiring process information for executing corresponding data operation on the connected payment terminal from the external processing tool through a pre-established pipeline;
analyzing the process information acquired from the external processing tool, and displaying the process information according to a preset mode;
when the execution is completed, the data processing result is displayed.
A data processing apparatus comprising:
the generating module is used for generating a processing task according to the data processing operation;
the construction module is used for constructing a parameter command in a preset format according to the processing task;
the analysis module is used for analyzing the parameter command to obtain an execution object;
and the execution module is used for transmitting the parameters corresponding to the execution object into the matched data processing module so as to enable the matched data processing module to execute corresponding data operation on the connected payment terminal according to the parameters.
In one embodiment, the execution module includes:
a detection unit for detecting a data type contained in the execution object;
a storage unit, configured to store 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 the execution unit is used for executing corresponding data operation on the connected payment terminal according to the parameter structure to be processed through the data processing module matched with the data type.
In one embodiment, the parameters corresponding to the execution content include an execution action, an execution object, a terminal model and communication parameters;
the execution module further comprises:
the protocol acquisition unit is used for acquiring a corresponding transmission protocol according to the terminal model and the communication parameters;
and the execution unit is further used for executing data operations corresponding to the execution action and the execution object on the connected payment terminal through the matched data processing module according to the transmission protocol and the communication parameters.
In one embodiment, the apparatus further comprises:
the information acquisition module is used for acquiring process information for executing corresponding data operation on the connected payment terminal through a pre-established pipeline;
and the display module is used for analyzing the process information and displaying according to a preset mode.
In one embodiment, the apparatus further comprises:
the calling module is used for calling an external processing tool according to the execution object;
the transmission module is used for transmitting the parameters corresponding to the execution objects into the external processing tool so that the external processing tool executes corresponding data operation on the connected payment terminal according to the parameters;
the information acquisition module is also used for acquiring process information for executing corresponding data operation on the connected payment terminal from the external processing tool through a pre-established pipeline;
the display module is also used for analyzing the process information acquired from the external processing tool and displaying the process information according to a preset mode;
the display module is also used for displaying the data processing result when the execution is finished.
According to the data processing method and device, the processing task is generated according to the data processing operation, the parameter command in the preset format is constructed according to the processing task, the parameter command is analyzed to obtain the execution object, the parameter corresponding to the execution object is transmitted to the data processing module matched with the execution object, so that the data processing module matched with the execution object executes corresponding data operation on the connected payment terminal according to the parameter, the data processing functions of different data operations belonging to different software layers are integrated together, different types of data operations can be directly executed on the payment terminal, the operation from different software is not needed, the operation is simple and convenient, the development complexity can be effectively reduced, and the resource waste is reduced.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a data processing method;
FIG. 2 is a block diagram of an intelligent terminal in one embodiment;
FIG. 3 is a flow diagram illustrating a data processing method according to one embodiment;
FIG. 4 is a flow diagram illustrating an embodiment of transferring a parameter corresponding to an execution object into a matching data processing module, so that the matching data processing module executes a corresponding data operation on a connected payment terminal according to the parameter;
FIG. 5 is a flowchart illustrating a corresponding data operation performed on a connected payment terminal by a matched data processing module according to a parameter in one embodiment;
FIG. 6 is a flow diagram illustrating process information in one embodiment;
FIG. 7 is a flow diagram that illustrates invoking an external processing tool for data processing, in one embodiment;
FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of an execution module according to an embodiment;
FIG. 10 is a schematic structural diagram of a data processing apparatus according to another embodiment;
fig. 11 is a schematic structural diagram of a data processing apparatus according to yet another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a diagram illustrating an application scenario of a data processing method according to an embodiment. As shown in fig. 1, the payment terminal 10 may establish a communication connection with the intelligent terminal 20 through an RS232 serial port, a USB interface, a network interface, or the like. The user can perform data processing operation on the intelligent terminal 20, and the intelligent terminal 20 generates a processing task according to the data processing operation and constructs a parameter command in a preset format according to the processing task. The intelligent terminal 20 analyzes the parameter command to obtain an execution object, and transmits a parameter corresponding to the execution object to the data processing module matched with the execution object, so that the matched data processing module executes corresponding data operation on the connected payment terminal 10 according to the parameter.
Fig. 2 is a schematic diagram of an internal structure of the intelligent terminal 20 in one embodiment. As shown in fig. 2, the intelligent terminal 20 includes a processor, a nonvolatile storage medium, an internal memory, a data transmission interface, a display screen, and an input device, which are connected through a system bus. The nonvolatile storage medium of the terminal stores an operating system and further comprises a data processing device, and the data processing device is used for realizing a data processing method. The processor is used to provide computing and control capabilities to support the operation of the entire intelligent terminal 20. The internal memory of the intelligent terminal 20 provides an environment for the operation of the data processing device in the non-volatile storage medium, and the internal memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor can be caused to execute a data processing method. The data transmission interface is used for communicating with the payment terminal, such as transmitting files, programs and the like required to be downloaded to the payment terminal. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, or an external keyboard, a touch pad or a mouse. The smart terminal 20 may be a mobile phone, a tablet computer, a PC (personal computer), or the like. Those skilled in the art will appreciate that the structure shown in fig. 2 is a block diagram of only a portion of the structure related to the present application, and does not constitute a limitation to the intelligent terminal 20 to which the present application is applied, and in particular, the intelligent terminal 20 may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
As shown in fig. 3, in one embodiment, there is provided a data processing method comprising the steps of:
in step S310, a processing task is generated according to the data processing operation.
In one embodiment, the payment terminal may establish a communication connection with the smart terminal through an RS232 serial port, a USB interface, a network interface, or the like, wherein the payment terminal may be a conventional POS, an MPOS (simple POS) machine, a wireless POS machine, or the like, and the smart terminal may be a mobile phone, a tablet computer, a laptop computer, a PC, or the like.
The user can perform data processing operations on the payment terminal connected with the intelligent terminal on a data processing interface of the intelligent terminal, and the performed data processing operations can include downloading data from the intelligent terminal, inquiring data of the payment terminal, deleting data of the payment terminal, rebuilding a file system of the payment terminal and the like. The user can select an execution action, an execution object, corresponding communication parameters and the like on the data processing interface, wherein the execution action can comprise downloading, querying, deleting, reconstructing a file system and the like, the execution object can comprise a base program, a bootstrap program, an operating system, a configuration file, a parameter file, an application program and the like, and the communication parameters can comprise a communication serial port number, a baud rate and the like. And 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 in a preset format according to the processing task.
The data processing interface of the intelligent terminal generates a corresponding processing task according to the data processing operation of the user, the processing task can comprise parameters such as an execution action, an execution object and a communication parameter selected by the user and a connected payment terminal model, and a parameter command can be constructed according to a preset format and the processing task. The default format may be substantially in the form of X ═ Y, i.e., in the form of a name (name) to value (value) pair, preceded by a name field, followed by the particular value to which the name field corresponds in processing the task. For example, a user selects a monitor file to download on a data processing interface of the intelligent terminal, and selects a corresponding communication serial port number COM1 and a baud rate of 115200Bd/s (baud/sec), where the monitor file is an operating system file of the payment terminal, and the data processing interface may configure a parameter command as follows according to the generated processing task: the method comprises the steps of carrying out an act-dlmonitor, wherein the act-dlmonitor represents that an executed action is downloading and an executed object is a monitor file, the monitor represents that a work \ S80_ monitor bin represents a storage path of the monitor file, the type-S80 represents that a connected payment terminal model is S80, the baud-200 represents that a baud rate is 115200Bd/S, and the com-1 represents that a communication serial port is 1. It is to be understood that the preset format of the parameter command is not limited thereto, and other formats may be used for the construction.
Step S330, analyzing the parameter command to obtain an execution object.
After the data processing interface of the intelligent terminal constructs the parameter command with the preset format according to the processing task, the parameter command can be sent to the pre-established data processing process, and the parameter command is analyzed through the data processing process, so that parameters such as an execution action, an execution object and communication parameters contained in the parameter command are obtained.
Step S340, the parameters corresponding to the execution object are transmitted to the matched data processing module, so that the matched data processing module executes corresponding data operations on the connected payment terminal according to the parameters.
After the data processing process of the intelligent terminal analyzes the parameter command, the data processing module matched with the execution object can be obtained according to the data type of the execution object, wherein the data type can comprise a base program, firmware layer information, application layer information, extension information and the like and respectively corresponds to the data processing modules such as a base program downloading module, a firmware layer information processing module, an application layer information processing module, an extension information processing module and the like, and different data processing modules can respectively and correspondingly process data operation of different software layers. The data processing process can transmit the parameters corresponding to the execution object into the data processing module matched with the execution object, and execute the data operation corresponding to the execution action and the execution object on the connected payment terminal through the matched data processing module.
For example, the parameter command of the data processing interface structure of the intelligent terminal is as follows: the method includes the steps that (1) the action is removeapp, wherein the action is to represent that an execution action is to delete an application program, (12345) the appid represents that an execution object is an application program with an application number of 12345, and the data type of the execution object is application layer information, so that corresponding parameters are transmitted to an application layer information processing module, and the application program with the application number of 12345 on a connected payment terminal is deleted through the application layer information processing module.
According to the data processing method, the processing task is generated according to the data processing operation, the parameter command in the preset format is constructed according to the processing task, the parameter command is analyzed to obtain the execution object, the parameter corresponding to the execution object is transmitted to the data processing module matched with the execution object, so that the data processing module matched with the execution object executes corresponding data operation on the connected payment terminal according to the parameter, the data processing functions of different data operations belonging to different software layers are integrated together, different types of data operations can be directly executed on the payment terminal, the operation from different software is not needed, the operation is simple and convenient, the development complexity can be effectively reduced, and the resource waste is reduced.
As shown in fig. 4, in an embodiment, the step S340 transmits the 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 terminal according to the parameters, including the following steps:
in step S402, the data type contained in the execution object is detected.
And after the data processing process of the intelligent terminal analyzes the parameter command, an execution object is obtained, the data type contained in the execution object can be detected, and a data processing module matched with the contained data type is obtained. In one embodiment, the number of execution objects obtained by analyzing the data processing process of the intelligent terminal may be multiple, and the data types of the execution objects may be detected respectively, and the data processing module matched with each data type is obtained.
Step S404, storing the parameters corresponding to the execution objects belonging to the data type in the parameter structure to be processed corresponding to the data type.
Different data types can respectively correspond to different parameter structures to be processed, and the matched data processing module can conveniently perform data operation. The data processing process of the intelligent terminal can detect the data types contained in the execution object one by one, can judge whether the execution object contains a base program or not, and if so, stores the parameters corresponding to the execution object belonging to the base program in a parameter structure to be processed corresponding to the base program; judging whether the execution object contains firmware layer information, if so, storing the parameters corresponding to the execution object belonging to the firmware layer information in a parameter structure to be processed corresponding to the firmware layer information; judging whether the execution object contains application layer information, if so, storing the parameters corresponding to the execution object belonging to the application layer information in a parameter structure to be processed corresponding to the application layer information; and judging whether the execution object contains the extension information, if so, storing the parameters corresponding to the execution object belonging to the extension information in the parameter structure to be processed corresponding to the extension information.
And step S406, executing corresponding data operation on the connected payment terminal according to the parameter structure to be processed through the data processing module matched with the data type.
After the data processing process of the intelligent terminal respectively stores the parameters corresponding to the execution objects belonging to each data type in the parameter structure to be processed corresponding to the data type, the corresponding parameter structure to be processed can be analyzed through the data processing module matched with each data type to obtain a data operation instruction, and corresponding data operation is executed on the connected payment terminal according to the data operation instruction.
For example, if the user selects to download a boot file and delete an application program with application number 12345 at the same time on the data processing interface of the smart terminal, the execution object obtained by the data processing process analysis parameter command of the smart terminal includes the boot file and the application program with application number 12345, which are firmware layer information and application layer information, respectively, the parameter corresponding to the boot file can be stored in the parameter structure to be processed corresponding to the firmware layer information, the parameter corresponding to the application program with application number 12345 can be stored in the parameter structure to be processed corresponding to the application layer information, the parameter structure to be processed corresponding to the firmware layer information can be analyzed by the firmware layer information processing module, the boot file is sent to the connected payment terminal according to the obtained data operation instruction, and the parameter structure to be processed corresponding to the application layer information can be analyzed by the application layer information processing module, and deleting the application program with the application number of 12345 on the connected payment terminal according to the obtained data operation instruction.
As shown in fig. 5, in an embodiment, the step S340 transmits the parameters corresponding to the execution object to the matched data processing module, so that the matched data processing module executes corresponding data operations on the connected payment terminal according to the parameters, and further includes the following steps:
step S502, acquiring a corresponding transmission protocol according to the terminal model and the communication parameters.
The payment terminals of different models and the data transmission interfaces may adopt different transmission protocols, and the transmission protocols adopted by the payment terminals of different terminal models can be set by manufacturers of the payment terminals. For example, if the payment terminal of type a establishes a communication connection with the intelligent terminal through the USB interface, a specific USB Transmission Protocol is used for data Transmission, and if the payment terminal of type B establishes a communication connection with the intelligent terminal through the network interface, a TCP (Transmission Control Protocol) Protocol is used for data Transmission. The payment terminals with different models and various transmission protocols possibly adopted by the communication parameters can be packaged in advance, and when data operation is required to be performed on the payment terminals, the intelligent terminal can select the corresponding transmission protocol to perform data operation according to the terminal models of the connected payment terminals and the communication serial port numbers and the like contained in the communication parameters.
Step S504, according to the transmission protocol and the communication parameters, the matched data processing module executes data operation corresponding to the execution action and the execution object on the connected payment terminal.
After the intelligent terminal acquires a transmission protocol corresponding to the terminal model and the communication parameters, data operation can be performed on the connected payment terminal according to the information such as the communication serial port number, the baud rate and the like in the transmission protocol and the communication parameters, a corresponding parameter structure to be processed is analyzed through a data processing module matched with an execution object to obtain a data operation instruction, and the data processing module can execute data operation corresponding to an execution action and the execution object on the connected payment terminal according to the data operation instruction.
For example, a user selects to download a boot file on a data processing interface of the intelligent terminal, selects a communication serial port number as serial port 1 and a baud rate of 115200Bd/S, detects that a terminal model of a connected payment terminal is S80, and establishes communication connection with the intelligent terminal through an RS232 serial port, so that a transmission protocol corresponding to the terminal model S80 and supporting RS232 serial port communication can be obtained, and the firmware layer information processing module can send the boot file to the connected payment terminal through the serial port 1 at a rate of 115200Bd/S according to the transmission protocol.
In this embodiment, according to the data type contained in the execution object, the data processing module matched with the data type can execute corresponding data operation on the connected payment terminal, and data processing functions belonging to different software layers and different data operations are integrated together, so that different types of data operation can be directly executed on the payment terminal, operation from different software layers is not needed, the operation is simple and convenient, the development complexity can be effectively reduced, and the resource waste is reduced.
As shown in fig. 6, in an embodiment, the data processing method further includes the following steps:
step S602, acquiring process information for performing corresponding data operation on the connected payment terminal through a pre-created pipe.
Pipe (pipe) is a communication mechanism between processes, which can communicate with each other through a part of shared memory, and when one process writes information into the pipe, another process can read the information from the pipe. Pipes may include anonymous pipes (anonymous pipes) which require less overhead than named pipes, but provide less functionality, typically for data transfer between parent and child processes, and named pipes (named pipes). In the embodiment, the intelligent terminal can create the anonymous pipe by calling the CreatePipe function, so that unnecessary resource overhead is reduced.
The intelligent terminal can acquire process information for executing corresponding data operation on a connected payment terminal from a data processing process through the created pipeline, the process information can include an executing action, related information of an executing object, progress information of a data processing module executing data operation according to a data operation instruction, error information and the like, the executing action can include downloading, inquiring, deleting, rebuilding a file system and the like, and the related information of the executing object can include information of the executing object, a storage path of the executing object and the like. The data processing module is used for indicating the completion of the executed data operation according to the progress information of the data operation executed by the data operation instruction, such as 50% downloaded, 70% downloaded, and the like, and the error information refers to an error occurring in the execution of the data operation, such as serial port open failure, data download failure, and the like.
In one embodiment, the data processing process of the intelligent terminal may write the process information into the pipeline according to a preset output format, where the preset output format may be in an X-Y format, that is, a name and value pair format. For example, the DATA processing process writes the process information dlboot — wr into the pipe at 50%, where dlboot indicates that the BOOT file is being downloaded, wr indicates that the BOOT file is written into the flash memory of the payment terminal, 50% indicates that the current download progress is 50%, the DATA processing process writes the process information BP _ ERR _ DL _ BOOT _ DATA into the pipe, BP _ ERR _ DL _ BOOT _ DATA indicates that downloading the BOOT file fails, and so on. It is to be understood that the preset output format is not limited thereto, and may be other formats.
And step S604, analyzing the process information and displaying according to a preset method.
The smart terminal can transmit the process information to the data processing interface after acquiring the process information from the data processing process through the pipeline, the data processing interface can analyze the process information after reading the process information from the pipeline and display the process information according to a preset mode, and the preset mode can include forms such as a progress bar and a text description, for example, the data processing interface can read the process information dlboot. wr which is 50%, and after analyzing, the progress bar that the downloaded boot file completes 50% can be displayed, or the text that the downloaded boot file completes 50% is directly displayed, but the method is not limited thereto.
In one embodiment, when the data processing module performs the corresponding data operation, the data processing process may write the exit code into the pipeline, and transmit the exit code to the data processing interface through the pipeline. The data processing interface analyzes the read exit code and can display the executed data processing result.
In this embodiment, the process information of executing the corresponding data operation on the connected payment terminal can be acquired through the pipeline and displayed, so that the user can conveniently know the progress of executing the data operation and the execution conditions such as errors and operation results.
As shown in fig. 7, in an embodiment, after parsing the parameter command in step S330 to obtain the execution object, the method further includes the following steps:
step S702, calling an external processing tool according to the execution object.
In one embodiment, certain data operations may not be performed by the data processing process for which specific external processing tasks need to be invoked to perform the completion. When the execution object contains the extended information, the intelligent terminal can transmit the parameters corresponding to the execution object into the extended information processing module through the data processing process, and call the interface of the external processing tool through the extended information processing module to transmit the parameters into the external processing tool.
Step S704, the parameters corresponding to the execution object are transmitted to the external processing tool, so that the external processing tool executes corresponding data operations on the connected payment terminal according to the parameters.
After the external processing work receives the transmitted parameters corresponding to the execution object, corresponding data operation can be executed on the connected payment terminal according to the parameters, and for the data operation which cannot be paid in the data processing process, the external processing tool can be integrated through the interface provided by the external processing tool.
Step S706, process information for performing corresponding data operations on the connected payment terminal is acquired from the external processing tool through the pre-created pipe.
The data processing process of the intelligent terminal can call a pre-established pipeline, process information for executing corresponding data operation on the connected payment terminal is acquired from the external processing tool through the pipeline, and the execution condition of the external processing tool is recorded through the process information.
Step S708, analyzing the process information obtained from the external processing tool, and displaying the process information according to a preset mode.
The intelligent terminal can transmit the process information acquired from the external processing tool to the data processing interface through the pipeline, the data processing interface can analyze the process information after reading the process information from the pipeline, and the process information can be displayed according to preset modes such as progress bars and word descriptions.
In step S710, when the execution is completed, the data processing result is displayed.
When the data processing interface reads the exit code from the pipeline, it indicates that the external processing tool completes the data operation of the connected payment terminal, and may parse the read exit code and display the data processing result of the completed execution, for example, the exit code exit _ done _ ok is received, which indicates that the execution is completed, but is not limited thereto. It is understood that, besides the exit code, other exit instructions may be used to indicate the completion of the execution, and when the data processing interface receives the exit instruction, the data processing result is displayed.
In the embodiment, the external processing tool can be called to execute corresponding data operation on the connected payment terminal, the data operation function of the external processing tool is integrated, the integration mode is simple, different types of data operation can be directly executed on the payment terminal, and the operation is simple and convenient.
As shown in fig. 8, in one embodiment, a data processing apparatus is provided that includes a generation module 810, a construction module 820, a parsing module 830, and an execution module 840.
A generating module 810 for generating a processing task according to the data processing operation.
And a constructing module 820, configured to construct the parameter command in the preset format according to the processing task.
And the analysis module 830 is configured to analyze the parameter command to obtain an execution object.
And the execution module 840 is used for transmitting the parameters corresponding to the execution object into the matched data processing module so that the matched data processing module executes corresponding data operation on the connected payment terminal according to the parameters.
The data processing device generates the processing task according to the data processing operation, constructs the parameter command with the preset format according to the processing task, analyzes the parameter command to obtain the execution object, transmits the parameter corresponding to the execution object into the data processing module matched with the execution object, so that the data processing module matched with the execution object executes corresponding data operation on the connected payment terminal according to the parameter, integrates the data processing functions of different data operations belonging to different software layers, can directly execute different types of data operation on the payment terminal, does not need to operate from different software respectively, is simple and convenient to operate, can effectively reduce the development complexity, and reduces the resource waste.
As shown in fig. 9, in one embodiment, the execution module 840 includes a detection unit 842, a storage unit 844, an execution unit 846, and a protocol obtaining unit 848.
The detecting unit 842 is used for detecting the data type contained in the execution object.
A storage unit 844 is used for storing the parameters corresponding to the execution objects belonging to the data type in the parameter structure to be processed corresponding to the data type.
And an executing unit 846, configured to execute, by using a data processing module matched with the data type, a corresponding data operation on the connected payment terminal according to the parameter structure to be processed.
The protocol obtaining unit 848 is configured to obtain a corresponding transmission protocol according to the terminal model and the communication parameter.
And the execution unit 846 is further configured to execute, according to the transmission protocol and the communication parameter, a data operation corresponding to the execution action and the execution object on the connected payment terminal through the matched data processing module.
In this embodiment, according to the data type contained in the execution object, the data processing module matched with the data type can execute corresponding data operation on the connected payment terminal, and data processing functions belonging to different software layers and different data operations are integrated together, so that different types of data operation can be directly executed on the payment terminal, operation from different software layers is not needed, the operation is simple and convenient, the development complexity can be effectively reduced, and the resource waste is reduced.
As shown in fig. 10, in an embodiment, the data processing apparatus includes an information obtaining module 850 and a presentation module 860 in addition to the generating module 810, the constructing module 820, the parsing module 830 and the executing module 840.
An information obtaining module 850, configured to obtain process information for performing a corresponding data operation on the connected payment terminal through a pre-created pipe.
And the display module 860 is used for analyzing the process information and displaying the process information according to a preset mode.
In this embodiment, the process information of executing the corresponding data operation on the connected payment terminal can be acquired through the pipeline and displayed, so that the user can conveniently know the progress of executing the data operation and the execution conditions such as errors and operation results.
As shown in fig. 11, in one embodiment, the data processing apparatus includes a calling module 870 and an incoming module 880, in addition to the generating module 810, the constructing module 820, the parsing module 830, the executing module 840, the information obtaining module 850 and the displaying module 860.
And the calling module 870 is used for calling the external processing tool according to the execution object.
A transmitting module 880, configured to transmit the parameter corresponding to the execution object to the external processing tool, so that the external processing tool executes a corresponding data operation on the connected payment terminal according to the parameter.
The information acquiring module 850 is further configured to acquire process information for performing corresponding data operations on the connected payment terminal from the external processing tool through a pre-created pipe.
The display module 860 is further configured to analyze the process information obtained from the external processing tool and display the process information according to a preset manner.
The presentation module 860 is further configured to display the data processing result when the execution is completed.
In the embodiment, the external processing tool can be called to execute corresponding data operation on the connected payment terminal, the data operation function of the external processing tool is integrated, the integration mode is simple, different types of data operation can be directly executed on the payment terminal, and the operation is simple and convenient.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of data processing, comprising:
the intelligent terminal generates a processing task according to the data processing operation;
constructing a parameter command in a preset format according to the processing task, wherein the preset format is in a form that a name field corresponds to a value of the name field in the processing task;
analyzing the parameter command to obtain an execution object;
detecting a data type contained in the execution object, wherein the data type comprises a base program, firmware layer information, application layer information and extension information;
storing parameters corresponding to an execution object belonging to the data type in a structure to be processed corresponding to the data type, wherein the corresponding parameters comprise an execution action, an execution object, a terminal model and communication parameters;
acquiring a corresponding transmission protocol according to the terminal model and the communication parameters;
and according to the transmission protocol and the communication parameters, executing data operation corresponding to the execution action and the execution object on the connected payment terminal through a data processing module matched with the data type according to the parameter structure to be processed.
2. The method of claim 1, wherein the detecting the type of data contained in the execution object comprises:
and detecting whether the data types contained in the execution object comprise a base program, firmware layer information, application layer information and extension information one by one.
3. The method according to claim 1, wherein the executing data operations corresponding to the execution actions and execution objects on the connected payment terminal according to the parameter structure to be processed by the data processing module matched with the data type comprises:
analyzing the parameter structure to be processed through a data processing module matched with the data type to obtain a data operation instruction;
and executing data operation corresponding to the execution action and the execution object on the connected payment terminal through the data processing module according to the data operation instruction.
4. The method of claim 1, further comprising:
acquiring process information for executing corresponding data operation on the connected payment terminal through a pre-established pipeline;
and analyzing the process information and displaying according to a preset mode.
5. The method of claim 1 or 4, wherein after said parsing said parameter command to obtain an execution object, said method further comprises:
calling an external processing tool according to the execution object;
transmitting parameters corresponding to the execution objects into the external processing tool so that the external processing tool executes corresponding data operation on the connected payment terminal according to the parameters;
acquiring process information for executing corresponding data operation on the connected payment terminal from the external processing tool through a pre-established pipeline;
analyzing the process information acquired from the external processing tool, and displaying the process information according to a preset mode;
when the execution is completed, the data processing result is displayed.
6. A data processing apparatus, comprising:
the generating module is used for generating a processing task according to the data processing operation;
the construction module is used for constructing a parameter command in a preset format according to the processing task, wherein the preset format is in a form that a name field corresponds to a value of the name field in the processing task;
the analysis module is used for analyzing the parameter command to obtain an execution object;
the apparatus further comprises an execution module, the execution module comprising:
the detection unit is used for detecting the data type contained in the execution object, wherein the data type comprises a base program, firmware layer information, application layer information and extension information;
a storage unit, configured to store a parameter corresponding to an execution object belonging to the data type in a parameter structure to be processed corresponding to the data type; the corresponding parameters comprise execution actions, execution objects, terminal models and communication parameters;
the protocol acquisition unit is used for acquiring a corresponding transmission protocol according to the terminal model and the communication parameters;
and the execution unit is used for executing data operation corresponding to the execution action and the execution object on the connected payment terminal according to the transmission protocol and the communication parameters and the data processing module matched with the data type according to the parameter structure to be processed.
7. The apparatus according to claim 6, wherein the detecting unit is further configured to detect whether the data types included in the execution object include a base program, firmware layer information, application layer information, and extension information one by one.
8. The apparatus of claim 6, wherein the execution unit is further configured to:
analyzing the parameter structure to be processed through a data processing module matched with the data type to obtain a data operation instruction;
and executing corresponding data operation on the connected payment terminal according to the data operation instruction through the data processing module.
9. The apparatus of claim 6, further comprising:
the information acquisition module is used for acquiring process information for executing corresponding data operation on the connected payment terminal through a pre-established pipeline;
and the display module is used for analyzing the process information and displaying according to a preset mode.
10. The apparatus of claim 9, further comprising:
the calling module is used for calling an external processing tool according to the execution object;
the transmission module is used for transmitting the parameters corresponding to the execution objects into the external processing tool so that the external processing tool executes corresponding data operation on the connected payment terminal according to the parameters;
the information acquisition module is also used for acquiring process information for executing corresponding data operation on the connected payment terminal from the external processing tool through a pre-established pipeline;
the display module is also used for analyzing the process information acquired from the external processing tool and displaying the process information according to a preset mode;
the display module is also used for displaying the data processing result when the execution is finished.
CN201710104740.3A 2017-02-24 2017-02-24 Data processing method and device Active CN106952426B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN106952426A CN106952426A (en) 2017-07-14
CN106952426B true CN106952426B (en) 2020-01-21

Family

ID=59466515

Family Applications (1)

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

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 (5)

* 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
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

Family Cites Families (3)

* 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
KR101536069B1 (en) * 2014-02-11 2015-07-13 주식회사 빅솔론 Pos peripherals controlling device, mobile host device and method for controlling thereof
CN106952426B (en) * 2017-02-24 2020-01-21 百富计算机技术(深圳)有限公司 Data processing method and device

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN106952426A (en) 2017-07-14
WO2018153064A1 (en) 2018-08-30

Similar Documents

Publication Publication Date Title
CN106952426B (en) Data processing method and device
CN102187314A (en) Interactive design environments to visually model, debug and execute resource oriented programs
US10191751B2 (en) Information processing device for generating application programming interface information
CN111694572A (en) Code format conversion method, device, computer equipment and storage medium
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
US8977968B2 (en) Pseudo-remote terminal IOTA mobile diagnostics and electronic customer care
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
JP2011118610A (en) Portable terminal, control method thereof, program, and storage medium
CN110765085A (en) Log information writing method, system, storage medium and mobile terminal
CN106302011B (en) Multi-terminal-based test method and terminal
CN104991857B (en) Trace debug method and device
EP1895794B1 (en) Remote management system and method for portable electronic devices
CN111552606B (en) Data processing method and device and electronic equipment
CN111382004B (en) Parameter backup method and device, parameter restoration method and device and backup restoration system
JP2009199441A (en) Video editing apparatus, terminal device and gui program transmission method
CN114282760A (en) Workflow generation method and device combining dynamic form and dynamic flow
CN107092601A (en) Resource file construction method, resource file application process and device
CN111737372A (en) Map data generation method and device
CN110716908A (en) Log information writing method, system, storage medium and mobile terminal
KR102005718B1 (en) Situation information indexing type actual operation based script generation method for mobile device
CN111026650B (en) Method and device for testing software, storage medium and electronic equipment
CN113835914B (en) Debugging system, method, device and equipment of firmware support package
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant