CN106952426A - Data processing method and device - Google Patents
Data processing method and device Download PDFInfo
- Publication number
- CN106952426A CN106952426A CN201710104740.3A CN201710104740A CN106952426A CN 106952426 A CN106952426 A CN 106952426A CN 201710104740 A CN201710104740 A CN 201710104740A CN 106952426 A CN106952426 A CN 106952426A
- Authority
- CN
- China
- Prior art keywords
- parameter
- data processing
- data
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
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
The present invention relates to a kind of data processing method and device.The above method, including:Process task is generated according to data processing operation;The parameter command of preset format is constructed according to the process task;The parameter command is parsed, obtains performing object;By the data processing module of the incoming matching of parameter corresponding with the execution object, so that the data processing module of the matching performs corresponding data manipulation according to the parameter to the payment terminal of connection.Above-mentioned data processing method and device, directly can perform different types of data manipulation to payment terminal, easy to operate without being operated respectively from different software, and can effectively reduce the complexity of exploitation, reduce the wasting of resources.
Description
Technical field
The present invention relates to field of computer technology, more particularly to data processing method and device, in particular it relates to a kind of
Data processing method and device based on payment terminal.
Background technology
POS (Point Of Sale, payment terminal) can set up with the smart machine such as mobile phone, panel computer and communicate to connect, and
Carry out data transmission, POS payment terminal can complete card read, PIN (personal identification number, it is individual
People's identification number) input, data encrypting and deciphering, prompt message the operation such as show, so as to realize the application of payment function.
When POS payment terminal is either produced still after dispatching from the factory, all it is frequently necessary to download or update POS payment terminal
Program and file, such as the bootstrap of POS payment terminal, operating system program, application program and Parameter File, these journeys
Sequence and file often adhere to different software layers separately, and species is various.And POS payment terminal due to different model and intelligent terminal
Communications carrier is also different, for example, have plenty of and communicated using RS232 serial ports, some use USB (Universal Serial
Bus, USB) cable or wireless network communicated.The program file downloaded or updated is different, and communications carrier is not
Together, cause host-host protocol also different.Therefore, POS payment terminal may be needed respectively from multiple different soft on intelligent terminal
Part carries out the data manipulation of different program or files, cumbersome, and needs to develop the different program of different software adaptations
Or the data manipulation of file, cause exploitation difficult, waste the resources such as plenty of time, manpower.
The content of the invention
The embodiment of the present invention provides a kind of data processing method and device, directly can perform different type to payment terminal
Data manipulation, it is easy to operate, and can effectively reduce the complexity of exploitation, reduce the wasting of resources.
A kind of data processing method, including:
Process task is generated according to data processing operation;
The parameter command of preset format is constructed according to the process task;
The parameter command is parsed, obtains performing object;
By the data processing module of the incoming matching of parameter corresponding with the execution object, so that at the data of the matching
Manage module and corresponding data manipulation is performed to the payment terminal of connection according to the parameter.
In wherein one embodiment, the data processing mould by the incoming matching of parameter corresponding with the execution object
Block, so that the data processing module of the matching performs corresponding data manipulation according to the parameter to the payment terminal of connection,
Including:
Detection is described to perform the data type that object is included;
Parameter corresponding with the execution object for belonging to the data type is stored in treat corresponding with the data type
In processing parameter structure;
By the data processing module that matches with the data type according to the pending argument structure to the branch that is connected
Pay terminal and perform corresponding data manipulation.
In wherein one embodiment, the parameter corresponding with performing content includes performing action, performs object, terminal
Model and messaging parameter;
It is described so that the data processing module of the matching payment terminal of connection is performed according to the parameter it is corresponding
Data manipulation, including:
Corresponding host-host protocol is obtained according to the terminal models and messaging parameter;
According to the host-host protocol and messaging parameter, pass through the payment terminal of the data processing module of the matching to connection
Perform data manipulation corresponding with execution action and execution object.
In wherein one embodiment, methods described also includes:
Obtained by the pipeline being pre-created and the process that the payment terminal of the connection performs corresponding data manipulation is believed
Breath;
The procedural information is parsed, and is shown according to predetermined manner.
In wherein one embodiment, in the parsing parameter command, obtain after execution object, methods described is also
Including:
According to the execution object reference external treatment instrument;
Will with the corresponding incoming external treatment instrument of parameter of the execution object so that the external treatment instrument root
Corresponding data manipulation is performed to the payment terminal of connection according to the parameter;
Obtained by the pipeline being pre-created from the external treatment instrument and the payment terminal of the connection is performed accordingly
Data manipulation procedural information;
The procedural information obtained from the external treatment instrument is parsed, and is shown according to predetermined manner;
When performing completion, display data result.
A kind of data processing equipment, including:
Generation module, for generating process task according to data processing operation;
Constructing module, the parameter command for constructing preset format according to the process task;
Parsing module, for parsing the parameter command, obtains performing object;
Performing module, for by the data processing module of the incoming matching of parameter corresponding with the execution object, so that institute
The data processing module for stating matching performs corresponding data manipulation according to the parameter to the payment terminal of connection.
In wherein one embodiment, the performing module, including:
Detection unit, for detecting the data type that the execution object is included;
Memory cell, for parameter corresponding with the execution object for belonging to the data type to be stored in and the data
In the corresponding pending argument structure of type;
Execution unit, for the data processing module by being matched with the data type according to the pending parameter knot
Structure performs corresponding data manipulation to the payment terminal of connection.
In wherein one embodiment, the parameter corresponding with performing content includes performing action, performs object, terminal
Model and messaging parameter;
The performing module, also includes:
Agreement acquiring unit, for obtaining corresponding host-host protocol according to the terminal models and messaging parameter;
The execution unit, is additionally operable to, according to the host-host protocol and messaging parameter, pass through the data processing of the matching
Module performs data manipulation corresponding with execution action and execution object to the payment terminal of connection.
In wherein one embodiment, described device also includes:
Data obtaining module, obtains for the pipeline by being pre-created and the payment terminal of the connection is performed accordingly
The procedural information of data manipulation;
Display module, is shown for parsing the procedural information, and according to predetermined manner.
In wherein one embodiment, described device also includes:
Calling module, for according to the execution object reference external treatment instrument;
Afferent module, for will with the corresponding incoming external treatment instrument of parameter of the execution object so that described
External treatment instrument performs corresponding data manipulation according to the parameter to the payment terminal of connection;
Described information acquisition module, is additionally operable to obtain to described from the external treatment instrument by the pipeline being pre-created
The payment terminal of connection performs the procedural information of corresponding data manipulation;
The display module, is additionally operable to the procedural information that parsing is obtained from the external treatment instrument, and according to default side
Formula is shown;
The display module, is additionally operable to when performing completion, display data result.
Above-mentioned data processing method and device, generate process task according to data processing operation, are constructed according to process task
The parameter command of preset format, analytic parameter order obtains performing object, and will with to perform the corresponding parameter of object incoming with holding
The data processing module of row object matching, so that should be with performing the data processing module of object matching according to parameter to the branch that is connected
Pay terminal and perform corresponding data manipulation, different software layer will be belonged to, the data processing function of different pieces of information operation is integrated into
Together, different types of data manipulation directly can be performed to payment terminal, without being operated respectively from different software, behaviour
Make easy, and can effectively reduce the complexity of exploitation, reduce the wasting of resources.
Brief description of the drawings
Fig. 1 is the application scenario diagram of data processing method in one embodiment;
Fig. 2 is the block diagram of intelligent terminal in one embodiment;
Fig. 3 is the schematic flow sheet of data processing method in one embodiment;
Fig. 4 be in one embodiment by the data processing module with performing the corresponding incoming matching of parameter of object so that
The data processing module matched somebody with somebody performs the schematic flow sheet of corresponding data manipulation according to parameter to the payment terminal of connection;
Fig. 5 performs phase according to parameter for the data processing module in one embodiment by matching to the payment terminal of connection
The schematic flow sheet for the data manipulation answered;
Fig. 6 is the schematic flow sheet of displaying procedural information in one embodiment;
Fig. 7 carries out the schematic flow sheet of data processing to call external treatment instrument in one embodiment;
Fig. 8 is the structural representation of data processing equipment in one embodiment;
Fig. 9 is the internal structure schematic diagram of performing module in one embodiment;
Figure 10 is the structural representation of data processing equipment in another embodiment;
Figure 11 is the structural representation of data processing equipment in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
Fig. 1 is the application scenario diagram of data processing method in one embodiment.As shown in figure 1, payment terminal 10 can pass through
RS232 serial ports, USB interface or network interface etc. are set up with intelligent terminal 20 and communicated to connect.User can be on intelligent terminal 20
Data processing operation is carried out, intelligent terminal 20 generates process task according to data processing operation, and is constructed in advance according to process task
If the parameter command of form.Intelligent terminal 20 parses the parameter command, obtains performing object, and will perform the corresponding parameter of object
The incoming data processing module with performing object matching, so that the data processing module of matching is whole to the payment of connection according to parameter
End 10 performs corresponding data manipulation.
Fig. 2 is the internal structure schematic diagram of above-mentioned intelligent terminal 20 in one embodiment.As shown in Fig. 2 the intelligent terminal
20 are included by the processor of system bus connection, non-volatile memory medium, built-in storage, data transmission interface, display screen
And input unit.Wherein, the non-volatile memory medium of terminal is stored with operating system, also including a kind of data processing equipment,
The data processing equipment is used to realize a kind of data processing method.The processor, which is used to provide, to be calculated and control ability, is supported whole
The operation of individual intelligent terminal 20.Built-in storage in intelligent terminal 20 is the data processing equipment in non-volatile memory medium
Operation, which is provided in environment, the built-in storage, can store computer-readable instruction, and the computer-readable instruction is by the processor
During execution, a kind of data processing method of the computing device may be such that.Data transmission interface is used to be led to payment terminal
Letter, file, program for being downloaded as needed for being sent to payment terminal etc..The display screen of terminal can be LCDs or electronics
Ink display screen etc., input unit can be set on the touch layer or terminal enclosure covered on display screen button,
Trace ball or Trackpad or external keyboard, Trackpad or mouse etc..The intelligent terminal 20 can be mobile phone, flat board
Computer or PC (personal computer, personal computer) etc..It will be understood by those skilled in the art that the knot shown in Fig. 2
Structure, is only the block diagram of the part-structure related to application scheme, does not constitute what application scheme was applied thereon
The restriction of intelligent terminal 20, specifically intelligent terminal 20 can include than more or less parts shown in figure, or combine
Some parts, or arranged with different parts.
As shown in figure 3, comprising the following steps in one embodiment there is provided a kind of data processing method:
Step S310, process task is generated according to data processing operation.
In one embodiment, payment terminal can pass through RS232 serial ports, USB interface or network interface etc. and intelligent end
Communication connection is set up at end, wherein, payment terminal can be traditional POS, MPOS (simple POS) machine or wireless POS machine etc., intelligence
Terminal can be mobile phone, panel computer, laptop computer or PC etc..
The payment terminal that user can be connected at the data processing interface on pair of intelligent terminal with intelligent terminal is performed at data
Reason operation, the data processing operation of execution may include from intelligent terminal downloading data, inquire about the data of payment terminal, delete payment
The data of terminal, the file system for rebuilding payment terminal etc..User can select to perform action, execution pair on data processing interface
As, and corresponding messaging parameter etc., wherein, execution action may include to download, inquire about, deletes, rebuild file system etc., perform
Object may include cradle program, bootstrap, operating system, configuration file, Parameter File and application program etc., and messaging parameter can
Including communication serial port number, baud rate etc..The data processing interface of intelligent terminal can generate corresponding place according to data processing operation
Reason task.
Step S320, the parameter command of preset format is constructed according to process task.
The data processing interface of intelligent terminal generates corresponding process task according to the data processing operation of user, and processing is appointed
It may include that have user to select performs the ginsengs such as action, execution object, messaging parameter etc., and the payment terminal model connected in business
Number, can be according to preset format, according to process task constructing variable order.Preset format can be essentially X=Y forms, i.e., according to name
Word (name) with value (value) to form, before be name field, behind for the name field it is corresponding in process task
Specific value.For example, user selects monitor (monitoring) file to be downloaded on the data processing interface of intelligent terminal, and
It is COM1 to select corresponding communication serial port number, and baud rate is 115200Bd/s (baud/second), wherein, monitor files are monitoring
File, is a kind of operating system file of payment terminal, then data processing interface can be according to the process task constructing variable of generation
Order and be:Act=dlmonitor monitor=D:Work S80_monitor.bin type=S80baud=
115200com=1, wherein, act=dlmonitor represent perform action be download, perform object be monitor files,
Monitor=D:Work S80_monitor.bin represent the store paths of monitor files, type=S80 represents connection
Payment terminal model S80, baud=115200 represent that baud rate is 115200Bd/s, and com=1 represents that communication serial port is serial ports
1.It is to be appreciated that the preset format of parameter command is not limited to this, it can also be constructed using other forms.
Step S330, analytic parameter order obtains performing object.
The data processing interface of intelligent terminal is constructed according to process task after the parameter command of preset format, can order parameter
Order sends and parameter command is parsed to the data processing process being pre-created, and by data processing process, obtains parameter
Order what is included perform action, perform the parameter such as object and messaging parameter.
Step S340, by the data processing module of the incoming matching of parameter corresponding with performing object, so that the data of matching
Processing module performs corresponding data manipulation according to parameter to the payment terminal of connection.
After the data processing process of intelligent terminal is parsed to parameter command, can according to perform object data type,
The data processing module with performing object matching is obtained, wherein, data type may include cradle program, firmware layer information, application
Layer information, extension information etc., correspond respectively to cradle program download module, firmware layer message processing module, at application layer message
The data processing module such as module and extension message processing module is managed, it is soft that different data processing modules can distinguish alignment processing difference
The data manipulation of part layer.Data processing process can be by the incoming data with performing object matching of parameter corresponding with performing object
Module is managed, and by the data processing module of the matching payment terminal of connection is performed corresponding with execution action and execution object
Data manipulation.
For example, the parameter command of the data processing Interface Construction of intelligent terminal is:Act=removeapp appid=
12345type=S80baud=115200com=1, wherein act=removeapp represent that execution action is deletion application journey
Sequence, appid=12345 represents that it is the application program that application numbers are 12345 to perform object, and the data type of the execution object is
Application layer message, then by the incoming application layer message processing module of corresponding parameter, and deleted by application layer message processing module
Application numbers are 12345 application program in the payment terminal of connection.
Above-mentioned data processing method, process task is generated according to data processing operation, and default lattice are constructed according to process task
The parameter command of formula, analytic parameter order obtains performing object, and will with to perform the corresponding parameter of object incoming with performing object
The data processing module of matching, so that should be with performing the data processing module of object matching according to parameter to the payment terminal that is connected
Corresponding data manipulation is performed, different software layer will be belonged to, the data processing function of different pieces of information operation is integrated together, energy
It is enough that different types of data manipulation directly is performed to payment terminal, it is easy to operate without being operated respectively from different software,
And the complexity of exploitation can be effectively reduced, reduce the wasting of resources.
As shown in figure 4, in one embodiment, step S340 is by the data of the incoming matching of parameter corresponding with performing object
Processing module, so that the data processing module of matching performs corresponding data manipulation, bag according to parameter to the payment terminal of connection
Include following steps:
Step S402, detection performs the data type that object is included.
After the data processing process analytic parameter order of intelligent terminal, obtain performing object, can detect to perform in object and wrap
The data type contained, and obtain with comprising the data processing module that matches of data type.In one embodiment, intelligent terminal
The obtained execution object of data processing process parsing may be multiple, each data type for performing object can be detected respectively,
And obtain the data processing module matched with each data type.
Step S404, treat corresponding with data type is stored in by parameter corresponding with the execution object for belonging to data type
In processing parameter structure.
Different data types can correspond respectively to different pending argument structures, the data processing module of convenient matching
Carry out data manipulation.The data processing process of intelligent terminal can one by one be detected to performing the data type that include of object, can
First judge to perform whether object includes cradle program, if comprising the corresponding parameter of execution object for belonging to cradle program is deposited
Storage is in pending argument structure corresponding with cradle program;Judge to perform whether object includes firmware layer information again, if comprising,
The corresponding parameter of execution object for belonging to firmware layer information is then stored in pending argument structure corresponding with firmware layer information
In;Judge to perform whether object includes application layer message, if comprising the corresponding ginseng of execution object of application layer message will be belonged to
Number is stored in pending argument structure corresponding with application layer message;Whether judge to perform object comprising extension information, if bag
Contain, then the corresponding parameter of execution object for belonging to extension information is stored in pending argument structure corresponding with extension information
In.
Step S406, by the data processing module that matches with data type according to pending argument structure to the branch that is connected
Pay terminal and perform corresponding data manipulation.
The corresponding parameter of execution object for belonging to each data type is stored in by the data processing process of intelligent terminal respectively
After in the corresponding pending argument structure of the data type, the parsing pair of the data processing module that is matched with each data type can be passed through
The pending argument structure answered, obtains data manipulation instruction, and perform phase to the payment terminal of connection according to data manipulation instruction
The data manipulation answered.
For example, user intelligent terminal data processing interface simultaneous selection download boot (bootstrap) files and delete
Except the application program that application numbers are 12345, then the execution pair that the data processing process analytic parameter order of intelligent terminal is obtained
As including boot files, the application program that application numbers are 12345, respectively firmware layer information and application layer message then can be by
Parameter corresponding with boot files is stored in pending argument structure corresponding with firmware layer information, will be with application numbers
The 12345 corresponding parameter of application program is stored in pending argument structure corresponding with application layer message, and is believed by firmware layer
Cease processing module and parse pending argument structure corresponding with firmware layer information, it is according to obtained data manipulation instruction that boot is literary
Part is sent to the payment terminal of connection, then parses pending parameter corresponding with application layer message by application layer message processing module
Structure, the application program that application numbers in the payment terminal of connection are 12345 is deleted according to obtained data manipulation instruction.
As shown in figure 5, in one embodiment, step S340 is by the data of the incoming matching of parameter corresponding with performing object
Processing module, so that the data processing module of matching performs corresponding data manipulation according to parameter to the payment terminal of connection, also
Comprise the following steps:
Step S502, corresponding host-host protocol is obtained according to terminal models and messaging parameter.
The host-host protocol that the payment terminal and data transmission interface of different model may be used is different, different terminals model
The host-host protocol that payment terminal is used can be set by the manufacturer of payment terminal.For example, the payment terminal of A models passes through USB
Interface is set up with intelligent terminal and communicated to connect, then is carried out data transmission using specific USB transport protocol, and the payment of Type B number is whole
End is set up with intelligent terminal by network interface and communicated to connect, then using TCP (Transmission Control Protocol
Transmission control protocol) agreement carries out data transmission.The payment terminal and messaging parameter of different model be able to may be used in advance
Multiple transport protocols are packaged, when needing to carry out data manipulation to payment terminal, and intelligent terminal can be according to the payment of connection
Communication serial port number included in the terminal models and messaging parameter of terminal etc. selects corresponding host-host protocol to carry out data manipulation.
Step S504, according to host-host protocol and messaging parameter, the payment by the data processing module of matching to connection is whole
End performs data manipulation corresponding with execution action and execution object.
Intelligent terminal is obtained after host-host protocol corresponding with terminal models and messaging parameter, can be according to host-host protocol and communication
The information such as communication serial port number, baud rate in parameter carry out data manipulation to the payment terminal of connection, by with performing object
The data processing module matched somebody with somebody parses corresponding pending argument structure, obtains data manipulation instruction, the data processing module can root
Data manipulation corresponding with execution action and execution object is performed to the payment terminal of connection according to data manipulation instruction.
For example, user downloads boot files in the data processing interface selection of intelligent terminal, and the communication serial port number is selected to be
Serial ports 1, baud rate are 115200Bd/s, and the terminal models of the payment terminal of intelligent terminal detection connection are S80, the payment terminal
Set up and communicated to connect by RS232 serial ports and intelligent terminal, then can obtain and support RS232 serial ports corresponding with terminal models S80
The host-host protocol of communication, firmware layer message processing module can be according to the host-host protocol, and by serial ports 1 with 115200Bd/s speed
Boot files are sent to the payment terminal of connection by rate.
In the present embodiment, can be according to performing the data type that include of object, by the data that are matched with data type
Manage module and corresponding data manipulation is performed to the payment terminal of connection, the number that different software layer will be belonged to, different pieces of information is operated
It is integrated together according to processing function, different types of data manipulation directly can be performed to payment terminal, without respectively from difference
Software operated, it is easy to operate, and can effectively reduce the complexity of exploitation, reduce the wasting of resources.
As shown in fig. 6, in one embodiment, above-mentioned data processing method is further comprising the steps of:
Step S602, the mistake that corresponding data manipulation is performed to the payment terminal of connection is obtained by the pipeline being pre-created
Journey information.
Pipeline (pipe) is the communication mechanism between a kind of process, can be by the phase between a part of Sharing Memory Realization process
Mutual communication, when a process is toward write-in information in pipeline, another process can read the information from pipeline.Pipeline may include
Anonymous Pipes (anonymous pipes) and name pipeline (named pipes), Anonymous Pipes are than the expense needed for name pipeline
Lack, but the function of providing is also few, is generally used for the data transfer between parent process and subprocess.In the present embodiment, intelligence is led to
Terminal can reduce unnecessary resource overhead by calling CreatePipe function creation Anonymous Pipes.
The logical terminal of intelligence can be obtained by the pipeline of establishment from data processing process to be performed accordingly to the payment terminal of connection
Data manipulation procedural information, action that procedural information may include to be carrying out, the relevant information for performing object, data processing
Module performs progress msg, error message of data manipulation etc. according to data manipulation instruction, under the action being carrying out may include
Carry, inquire about, delete, rebuild file system etc., performing the relevant information of object may include to perform object, the storage road of execution object
The information such as footpath.The progress msg that data processing module performs data manipulation according to data manipulation instruction is used for the data for representing to perform
The performance of operation, such as having downloaded 50%, downloaded 70%, error message then refers to performing in process operation data
The mistake of appearance, such as serial ports opens failure, downloading data unsuccessfully.
In one embodiment, the data processing process of intelligent terminal can write procedural information according to default output format
Enter in pipeline, default output format can be X=Y forms, i.e. name and value pairs of form.For example, data processing process will
Procedural information dlboot.wr=50% writes pipeline, wherein, dlboot is represented to download boot files, and wr is represented boot
File writes the flash memory of payment terminal, and 50% represents that current download progress is 50%, and data processing process is by procedural information BP_
ERR_DL_BOOT_DATA writes pipeline, and BP_ERR_DL_BOOT_DATA represents to download boot files unsuccessfully etc..It is appreciated that
Ground, default output format is not limited to this, can also be other forms.
Step S604, resolving information, and be shown according to presetting method.
Intelligence leads to terminal after acquisition process information, can be transmitted procedural information to data by pipeline from data processing process
Interface is handled, data processing interface after reading process information, can be parsed from pipeline to procedural information, and according to default side
Formula is shown, and predetermined manner can be comprising forms such as progress bar, explanatory notes, for example, data processing interface reading process is believed
Dlboot.wr=50% is ceased, after parsing, then can show that downloading boot files completes 50% progress bar, or directly display " under
Carry boot files complete 50% " word, but not limited to this.
In one embodiment, when data processing module, which is performed, completes corresponding data manipulation, data processing process can
It will move out in code write-in pipeline, code will move out by pipeline and transmit to data processing interface.The parsing of data processing interface is read
Code is exited, the data processed result for performing and completing can be shown.
In the present embodiment, it can be obtained by pipeline and the process that the payment terminal of connection performs corresponding data manipulation is believed
Cease and be shown, facilitate user to understand the progress of data manipulation that performs, appear in the implementation status such as mistake and operating result.
As shown in fig. 7, in one embodiment, in step S330 analytic parameter orders, obtaining after execution object, also wrapping
Include following steps:
Step S702, according to execution object reference external treatment instrument.
In one embodiment, for some specific data manipulations by data processing process possibly can not perform, it is necessary to
Call specific external treatment work just to can perform to complete.When performing comprising information is extended in object, then intelligent terminal can pass through
Data processing process will be with performing the corresponding incoming extension message processing module of parameter of object, and by extending message processing module
The interface of external treatment instrument is called by the incoming external treatment instrument of parameter.
Step S704, will with performing the corresponding incoming external treatment instrument of parameter of object so that external treatment instrument according to
Parameter performs corresponding data manipulation to the payment terminal of connection.
, can be whole to the payment of connection according to parameter after the incoming parameter corresponding with performing object of external treatment operational reception
End performs corresponding data manipulation, and the data manipulation that can not be originally paid for data processing process passes through external treatment instrument
The interface of offer can be integrated by the progress of external treatment instrument, and extended mode is simple to operation, can effectively reduce the complexity of exploitation
Degree, reduces the wasting of resources.
Step S706, is obtained from external treatment instrument by the pipeline being pre-created and the payment terminal of connection is performed accordingly
Data manipulation procedural information.
The data processing process of intelligent terminal can call the pipeline being pre-created, and be obtained by pipeline from external treatment instrument
Payment terminal to connection performs the procedural information of corresponding data manipulation, and holding for external treatment instrument is recorded by procedural information
Market condition.
Step S708, parses the procedural information obtained from external treatment instrument, and be shown according to predetermined manner.
Intelligent terminal can be transmitted the procedural information obtained from external treatment instrument to data processing interface, number by pipeline
It can be parsed, and be entered according to predetermined manners such as progress bar, explanatory notes after reading process information from pipeline according to processing interface
Row displaying.
Step S710, when performing completion, display data result.
When data processing interface reads from pipeline and exited yard, payment terminal of the external treatment instrument to connection is represented
Data manipulation perform completion, can parse reading exit code and show perform complete data processed result, for example, receiving
A yard exit_done=ok is exited, expression performs completion, but not limited to this.It is to be appreciated that in addition to exiting code, it is also possible to its
Its exit instruction represents to perform completion, when data processing interface receives exit instruction, display data result.
In the present embodiment, external treatment instrument can be called to perform corresponding data manipulation to the payment terminal of connection, will
The data manipulation function progress of external treatment instrument is integrated, and integration mode is simple, directly can perform inhomogeneity to payment terminal
The data manipulation of type, it is easy to operate.
As shown in figure 8, there is provided a kind of data processing equipment, including generation module 810, construction mould in one embodiment
Block 820, parsing module 830 and performing module 840.
Generation module 810, for generating process task according to data processing operation.
Constructing module 820, the parameter command for constructing preset format according to process task.
Parsing module 830, for analytic parameter order, obtains performing object.
Performing module 840, for by the data processing module of the incoming matching of parameter corresponding with performing object, so that matching
Data processing module corresponding data manipulation is performed to the payment terminal of connection according to parameter.
Above-mentioned data processing equipment, process task is generated according to data processing operation, and default lattice are constructed according to process task
The parameter command of formula, analytic parameter order obtains performing object, and will with to perform the corresponding parameter of object incoming with performing object
The data processing module of matching, so that should be with performing the data processing module of object matching according to parameter to the payment terminal that is connected
Corresponding data manipulation is performed, different software layer will be belonged to, the data processing function of different pieces of information operation is integrated together, energy
It is enough that different types of data manipulation directly is performed to payment terminal, it is easy to operate without being operated respectively from different software,
And the complexity of exploitation can be effectively reduced, reduce the wasting of resources.
As shown in figure 9, in one embodiment, performing module 840 includes detection unit 842, memory cell 844, performed
Unit 846 and agreement acquiring unit 848.
Detection unit 842, the data type that object is included is performed for detecting.
Memory cell 844, for parameter corresponding with the execution object for belonging to data type to be stored in and data type
In corresponding pending argument structure.
Execution unit 846, for the data processing module by being matched with data type according to pending argument structure pair
The payment terminal of connection performs corresponding data manipulation.
Agreement acquiring unit 848, for obtaining corresponding host-host protocol according to terminal models and messaging parameter.
Execution unit 846, is additionally operable to according to host-host protocol and messaging parameter, by the data processing module of matching to connection
Payment terminal perform and execution action and the corresponding data manipulation of execution object.
In the present embodiment, can be according to performing the data type that include of object, by the data that are matched with data type
Manage module and corresponding data manipulation is performed to the payment terminal of connection, the number that different software layer will be belonged to, different pieces of information is operated
It is integrated together according to processing function, different types of data manipulation directly can be performed to payment terminal, without respectively from difference
Software operated, it is easy to operate, and can effectively reduce the complexity of exploitation, reduce the wasting of resources.
As shown in Figure 10, in one embodiment, above-mentioned data processing equipment, except including generation module 810, construction mould
Block 820, parsing module 830 and performing module 840, also including data obtaining module 850 and display module 860.
Data obtaining module 850, obtains for the pipeline by being pre-created and the payment terminal of connection is performed accordingly
The procedural information of data manipulation.
Display module 860, is shown for resolving information, and according to predetermined manner.
In the present embodiment, it can be obtained by pipeline and the process that the payment terminal of connection performs corresponding data manipulation is believed
Cease and be shown, facilitate user to understand the progress of data manipulation that performs, appear in the implementation status such as mistake and operating result.
As shown in figure 11, in one embodiment, above-mentioned data processing equipment, except including generation module 810, construction mould
Block 820, parsing module 830, performing module 840, data obtaining module 850 and display module 860, also including calling module 870
And afferent module 880.
Calling module 870, for according to execution object reference external treatment instrument.
Afferent module 880, for will be with performing the corresponding incoming external treatment instrument of parameter of object, so that external treatment work
Have and corresponding data manipulation is performed to the payment terminal of connection according to parameter.
Data obtaining module 850, is additionally operable to obtain the branch to connection from external treatment instrument by the pipeline being pre-created
Pay the procedural information that terminal performs corresponding data manipulation.
Display module 860, is additionally operable to the procedural information that parsing is obtained from external treatment instrument, and carry out according to predetermined manner
Displaying.
Display module 860, is additionally operable to when performing completion, display data result.
In the present embodiment, external treatment instrument can be called to perform corresponding data manipulation to the payment terminal of connection, will
The data manipulation function progress of external treatment instrument is integrated, and integration mode is simple, directly can perform inhomogeneity to payment terminal
The data manipulation of type, it is easy to operate.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of data processing method, including:
Process task is generated according to data processing operation;
The parameter command of preset format is constructed according to the process task;
The parameter command is parsed, obtains performing object;
By the data processing module of the incoming matching of parameter corresponding with the execution object, so that the data processing mould of the matching
Root tuber performs corresponding data manipulation according to the parameter to the payment terminal of connection.
2. according to the method described in claim 1, it is characterised in that it is described will incoming of parameter corresponding with the execution object
The data processing module matched somebody with somebody, so that the data processing module of the matching performs phase according to the parameter to the payment terminal of connection
The data manipulation answered, including:
Detection is described to perform the data type that object is included;
Parameter corresponding with the execution object for belonging to the data type is stored in corresponding with the data type pending
In argument structure;
By whole to the payment being connected according to the pending argument structure with the data processing module that the data type is matched
End performs corresponding data manipulation.
3. method according to claim 1 or 2, it is characterised in that the parameter corresponding with performing content includes performing
Action, execution object, terminal models and messaging parameter;
It is described so that the data processing module of the matching performs corresponding data according to the parameter to the payment terminal of connection
Operation, including:
Corresponding host-host protocol is obtained according to the terminal models and messaging parameter;
According to the host-host protocol and messaging parameter, the payment terminal of connection is performed by the data processing module of the matching
Data manipulation corresponding with execution action and execution object.
4. according to the method described in claim 1, it is characterised in that methods described also includes:
The procedural information that corresponding data manipulation is performed to the payment terminal of the connection is obtained by the pipeline being pre-created;
The procedural information is parsed, and is shown according to predetermined manner.
5. the method according to claim 1 or 4, it is characterised in that in the parsing parameter command, obtain execution pair
As after, methods described also includes:
According to the execution object reference external treatment instrument;
Will with the corresponding incoming external treatment instrument of parameter of the execution object so that the external treatment instrument is according to institute
State parameter and corresponding data manipulation is performed to the payment terminal of connection;
Obtained by the pipeline being pre-created from the external treatment instrument and corresponding number is performed to the payment terminal of the connection
According to the procedural information of operation;
The procedural information obtained from the external treatment instrument is parsed, and is shown according to predetermined manner;
When performing completion, display data result.
6. a kind of data processing equipment, it is characterised in that including:
Generation module, for generating process task according to data processing operation;
Constructing module, the parameter command for constructing preset format according to the process task;
Parsing module, for parsing the parameter command, obtains performing object;
Performing module, for by the data processing module of the incoming matching of parameter corresponding with the execution object, so that described
The data processing module matched somebody with somebody performs corresponding data manipulation according to the parameter to the payment terminal of connection.
7. device according to claim 6, it is characterised in that the performing module, including:
Detection unit, for detecting the data type that the execution object is included;
Memory cell, for parameter corresponding with the execution object for belonging to the data type to be stored in and the data type
In corresponding pending argument structure;
Execution unit, for the data processing module by being matched with the data type according to the pending argument structure pair
The payment terminal of connection performs corresponding data manipulation.
8. device according to claim 7, it is characterised in that the parameter corresponding with performing content includes performing moving
Make, perform object, terminal models and messaging parameter;
The performing module, also includes:
Agreement acquiring unit, for obtaining corresponding host-host protocol according to the terminal models and messaging parameter;
The execution unit, is additionally operable to, according to the host-host protocol and messaging parameter, pass through the data processing module of the matching
Payment terminal to connection performs data manipulation corresponding with execution action and execution object.
9. device according to claim 6, it is characterised in that described device also includes:
Data obtaining module, obtains for the pipeline by being pre-created and performs corresponding data to the payment terminal of the connection
The procedural information of operation;
Display module, is shown for parsing the procedural information, and according to predetermined manner.
10. device according to claim 9, it is characterised in that described device also includes:
Calling module, for according to the execution object reference external treatment instrument;
Afferent module, for will with the corresponding incoming external treatment instrument of parameter of the execution object so that the outside
Handling implement performs corresponding data manipulation according to the parameter to the payment terminal of connection;
Described information acquisition module, is additionally operable to obtain to the connection from the external treatment instrument by the pipeline being pre-created
Payment terminal perform the procedural information of corresponding data manipulation;
The display module, is additionally operable to the procedural information that parsing is obtained from the external treatment instrument, and enter according to predetermined manner
Row displaying;
The display module, is additionally operable to when performing completion, display data result.
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 true CN106952426A (en) | 2017-07-14 |
CN106952426B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018153064A1 (en) * | 2017-02-24 | 2018-08-30 | 百富计算机技术(深圳)有限公司 | Data processing method, terminal and non-volatile readable storage medium |
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 |
CN115357309A (en) * | 2022-10-24 | 2022-11-18 | 深信服科技股份有限公司 | Data processing method, device and system and computer readable storage medium |
Citations (7)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106952426B (en) * | 2017-02-24 | 2020-01-21 | 百富计算机技术(深圳)有限公司 | Data processing method and device |
-
2017
- 2017-02-24 CN CN201710104740.3A patent/CN106952426B/en active Active
- 2017-09-13 WO PCT/CN2017/101571 patent/WO2018153064A1/en active Application Filing
Patent Citations (7)
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 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018153064A1 (en) * | 2017-02-24 | 2018-08-30 | 百富计算机技术(深圳)有限公司 | Data processing method, terminal and non-volatile readable storage medium |
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 |
CN115357309A (en) * | 2022-10-24 | 2022-11-18 | 深信服科技股份有限公司 | Data processing method, device and system and computer readable storage medium |
CN115357309B (en) * | 2022-10-24 | 2023-07-14 | 深信服科技股份有限公司 | Data processing method, device, system and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106952426B (en) | 2020-01-21 |
WO2018153064A1 (en) | 2018-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106952426A (en) | Data processing method and device | |
CN106503589A (en) | The method of calibration of block chain Transaction Information correctness, apparatus and system | |
CN107491329A (en) | Docker mirror images construction method, equipment, storage medium and electronic installation | |
CN107436787B (en) | Method for processing resource, device, storage medium and electronic device | |
CN106951248A (en) | Add method, device and the readable storage medium storing program for executing of code | |
CN106445548A (en) | Test pack issuing method and device | |
CN107688538A (en) | A kind of script execution, device and computing device | |
CN107358439A (en) | Using method of payment, device and terminal device | |
CN106843976A (en) | Method and apparatus for generating image file | |
CN112034732B (en) | Semi-physical satellite simulation system and simulation method | |
CN107329916B (en) | A kind of USB device control method, device and calculate equipment | |
CN107239309A (en) | Patch generation method and device, update method, electronic equipment, storage medium | |
CN107748718A (en) | Applied program testing method, device and server | |
CN110480633B (en) | Method and device for controlling equipment and storage medium | |
CN107609953A (en) | The quick treating method and apparatus of order | |
CN108733614A (en) | Data transmission system, method and apparatus | |
EP1895794B1 (en) | Remote management system and method for portable electronic devices | |
CN104536884A (en) | Code testing method and device | |
CN104750772B (en) | Prevent the method and system that some projects are issued in Content Management System | |
CN109104481A (en) | file integrity detection method, file integrity detection device and terminal device | |
CN106981146A (en) | A kind of billing method based on many Golden Taxes disks | |
JP2002335320A (en) | System for automating test of mobile telephones | |
CN105162594B (en) | A kind of quick endorsement method and signature device | |
CN109298869A (en) | A kind of generation method and relevant apparatus of target channel packet | |
CN107220543A (en) | The method and apparatus for handling the service request of mobile terminal |
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 |