CN104639290B - Communication data processing method and processing device for finance device - Google Patents

Communication data processing method and processing device for finance device Download PDF

Info

Publication number
CN104639290B
CN104639290B CN201510045249.9A CN201510045249A CN104639290B CN 104639290 B CN104639290 B CN 104639290B CN 201510045249 A CN201510045249 A CN 201510045249A CN 104639290 B CN104639290 B CN 104639290B
Authority
CN
China
Prior art keywords
data
communication
frame
noise
communication data
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.)
Expired - Fee Related
Application number
CN201510045249.9A
Other languages
Chinese (zh)
Other versions
CN104639290A (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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201510045249.9A priority Critical patent/CN104639290B/en
Publication of CN104639290A publication Critical patent/CN104639290A/en
Application granted granted Critical
Publication of CN104639290B publication Critical patent/CN104639290B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of communication data processing method and processing device for finance device.Methods described includes:Communication data is obtained from communication interface, wherein, the communication data has the uniform data structure for including defining symbol;The communication data is stored to Data buffer;Log-on data analyzes thread, symbol is defined according to described in the noise data in the Data buffer is carried out into filtration treatment.Using the present invention, the noise data in communication data can be filtered with fast accurate, prevent its interference to normal data communication, it is possible to reduce the phenomenon for the shutdown that reports an error, improve the operational paradigm of machine.

Description

Communication data processing method and processing device for finance device
Technical field
The present invention relates to technical field of financial equipment, at a kind of communication data for finance device Manage method and device.
Background technology
Finance device(Such as ATM)Each functional module between each other when being communicated, in normal communication data In would generally be mingled with some noise datas.Producing the situation of these noise datas includes:Led due to abnormal contact communication interface Cause, due to communication interface nearby has an interference source and cause, due to LAN is connected with external equipment when communication network it is unstable and Cause, caused due at least one party's failure in data communication both sides or caused due to artificial transmission invalid data Etc..These irregular governed noise datas can disturb normal data communication, and mechanical disorder can be also caused when serious.
In the prior art, in order to solve the problem that noise data, typically resist in the enterprising Row noise data of hardware The specific design of interference, and simply simply verified on software, mistake is reported if detecting wrong data and is performed Shutdown is handled.Based on the prior art, accidental wrong data can not be detected in real time, causes once to identify wrong data When, that is, stop machine operation, this measure undoubtedly reduces the operational paradigm of finance device.
The content of the invention
In order to solve the above-mentioned technical problem, at it is an object of the invention to provide a kind of communication data for finance device Manage method and device.
In order to reach the purpose of the present invention, the present invention is realized using following technical scheme:
A kind of communication data processing method for finance device, including:
Communication data is obtained from communication interface, wherein, the communication data has the uniform data structure for including defining symbol;
The communication data is stored to Data buffer;And
Log-on data analyzes thread, and symbol is defined according to described in and carries out the noise data in the Data buffer at filtering Reason.
Preferably, the data structure of the communication data is:Frame head define symbol, frame code value, reserved bit, frame data length, Frame data, frame check and, postamble define symbol, wherein, the frame code value, reserved bit, frame data length, frame data and frame check With in the Data buffer communication data carry out multiple check processing.
Preferably, the step of noise data in the Data buffer is carried out filtration treatment by symbol bag is defined according to described in Include:
Symbol is defined according to the frame head and postamble defines symbol and determines communication data;And
Data in the Data buffer in addition to the communication data are defined as noise data;
Filtration treatment is carried out to the noise data.
Preferably, the communication data in the Data buffer carries out multiple check processing, and determines the communication Data be correct data after, the communication data is recorded to the first data logging, and send it to upper-layer service and enter Row processing.
Preferably, the communication data processing method for finance device also includes:
The noise data is recorded to the second data logging.
Preferably, the communication data processing method for finance device also includes:
According to an at least fault verification strategy, it is accidental wrong data or fault data to judge the noise data;With And
When it is determined that the noise data is fault data, halt instruction is sent.
Preferably, the fault verification strategy is:
Judge that the noise data is accidental according to the number that the noise data is received within first scheduled time Wrong data or fault data, when the number that the noise data is received in first scheduled time reaches the first threshold value When, then judge the noise data for bug.
Preferably, the fault verification strategy is:
Judge that the noise data is accidental according to the amount of capacity of the noise data received within second scheduled time Wrong data or fault data, when the amount of capacity of the noise data received within second scheduled time reaches the second threshold value When, then it is assumed that the noise data is bug..
Preferably, second threshold value is configured as the amount of capacity equal to the Data buffer.
A kind of communication data processing for finance device, including:
Communication module, for obtaining communication data from communication interface, wherein, the communication data has including defining symbol Uniform data structure;
Data buffer, for data storage;
Buffer module, for the communication data to be stored to Data buffer;And
Data analysis threading models, the noise data in the Data buffer was carried out for defining symbol according to described in Filter is handled.
Using the present invention, the noise data in communication data can be filtered with fast accurate, prevents it from leading to normal data The interference of news, it is possible to reduce the phenomenon for the shutdown that reports an error, improve the operational paradigm of machine.
Brief description of the drawings
Fig. 1 is a kind of communication data process flow schematic diagram for finance device that the present embodiment provides;
Fig. 2 is communication data correctness checking procedure schematic diagram in the present embodiment;
Fig. 3 is the schematic flow sheet that noise data filtration treatment is carried out in the present embodiment;
Fig. 4 is a kind of communication data process flow schematic diagram for finance device that preferred embodiment provides;
Fig. 5 is a kind of communication data process flow schematic diagram for finance device that preferred embodiment provides;
Fig. 6 is a kind of communication data processing illustrative view of functional configuration for finance device that the present embodiment provides.
The realization, functional characteristics and excellent effect of the object of the invention, below in conjunction with specific embodiment and accompanying drawing do into The explanation of one step.
Embodiment
Technical scheme of the present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, so that this The technical staff in field can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention It is fixed.
With reference to shown in figure 1, a kind of communication data processing method for finance device is present embodiments provided, including it is as follows Specific steps:
S10, from communication interface communication data is obtained, wherein, the communication data has and includes defining the uniform data of symbol Structure.
S20, the communication data stored to Data buffer.
ATM finance devices are the equipment that multi-chip mutually assists work, and the communication interface species between chip is more, such as Generally include:UART(Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmission Device), SPI(Serial Peripheral Interface, Serial Peripheral Interface (SPI)), CAN(Controller Area Network, controller LAN), LAN(Local Area Network, LAN), MCBSP(Multichannel Buffered Serial Port, multichannel buffer serial port), DSPLINK etc., the data transfer mode of these communication interfaces is led to It is often inconsistent, such as CAN is the transmission means using CAN bags, i.e., once can transmit or read a CAN bag, DSPLINK is by the way of internal memory mapping, i.e., a frame or N frame data once can be read, and SPI and UART are to use byte The transmission means of stream, i.e., one or several bytes once can be read.
As can be seen here, have plenty of in these communication interfaces using block data-transmission mode, i.e., once only pass a frame or N frame numbers According to having plenty of using Stream Data Transmission pattern, i.e., once only pass several bytes to several frame data, in the present embodiment, be These transmission means are all abstracted into Stream Data Transmission pattern by unified communication interface, the present invention.At the beginning of data communication, in advance Data buffer is established, the data read from communication interface are all first cached in the Data buffer, in the present embodiment, described In the data read from communication interface, unified data structure is all pre-defined for normal communication data, in the number According to defining symbol defined in structure, it is described define symbol and be used for follow-up noise data judge and filtering.
In the present embodiment, the data structure of the communication data is:Frame head defines symbol 0xFF, frame code value, reserved bit, frame number According to length, frame data, frame check and, postamble define symbol 0xFE, wherein, the frame code value, reserved bit, frame data length, frame number According to this and frame check and in the Data buffer communication data carry out multiple check processing.For example, one complete Communication data see the table below it is shown:
Frame head defines symbol 0xFF Frame code value Reserved bit Frame data length Frame data Frame check and Postamble defines symbol,0xFE
In the present embodiment, with reference to shown in figure 2, the frame code value, reserved bit, frame data length, frame data and frame are utilized Verify and a complete checks process of multiple check processing is carried out to the communication data in the Data buffer including as follows Step:
Step 1, find first frame head define symbol and postamble define symbol, afterwards to frame head define accord with and postamble define symbol Between data field data carry out correction judgement, to judge whether it is correct frame data.
Whether step 2, judgment frame code value are legal, such as legal, then continue executing with step 3, be otherwise determined as illegal frame number According to.
Can step 3, judgment frame data length value and frame code value correspond, if, then step 4 is continued executing with, Otherwise it is determined as illegal frame data.
Step 4, the verification for calculating frame data parts and with frame check and whether consistent, it is such as consistent, then continue executing with step 5, otherwise it is determined as illegal frame data.
Step 5, determine that the communication data is the correct frame data of a frame.
S30, log-on data analysis thread, symbol is defined according to described in and carried out the noise data in the Data buffer Filter is handled.
The data in Data buffer are analyzed and processed using data analysis thread, in the present embodiment, the number Data storage is read from Data buffer according to analysis thread and parsing data are separately carried out, so as to improve treatment effeciency.
In the present embodiment, with reference to shown in figure 3, the data analysis thread defines symbol by the Data buffer according to described in In noise data carry out filtration treatment strategy be:
S301, according to the frame head define symbol and postamble define symbol and determine communication data
S302, the data in the Data buffer in addition to the communication data are defined as noise data.
S303, filtration treatment is carried out to the noise data.
In preferred embodiment, the communication data in the Data buffer carries out multiple check processing, and determines institute Communication data is stated after correct data, the communication data to be recorded to the first data logging, and send it to upper strata Business is handled.Such as:After receiving reset command, in addition to being recorded to the first data logging, also go to hold using it Row resets operation.
In preferred embodiment, with reference to shown in figure 4, the communication data processing method for finance device also includes:
S40, the noise data recorded to the second data logging.
The noise data is recorded to the second data logging, is available for attendant's real time inspection, and is follow-up Data statistic analysis provides data and supported.
In preferred embodiment, with reference to shown in figure 5, the communication data processing method for finance device also includes:
S50, a foundation at least fault verification strategy, it is accidental wrong data or number of faults to judge the noise data According to;
S60, when it is determined that the noise data is fault data, send halt instruction.
In a kind of embodiment, the fault verification strategy can be:It is described according to being received within first scheduled time The number of noise data judges that the noise data is accidental wrong data or fault data, is inscribed when first scheduled time When receiving the number of the noise data and reaching the first threshold value, then judge the noise data for bug.
In another embodiment, the fault verification strategy can also be:According to what is received within second scheduled time The amount of capacity of noise data judges that the noise data is accidental wrong data or fault data, when in the second pre- timing When the amount of capacity of the noise data of interior reception reaches the second threshold value, then it is assumed that the noise data is bug.At this In embodiment, second threshold value is preferably configured as the amount of capacity equal to the Data buffer.
With the above-mentioned communication data processing method for finance device accordingly, the present embodiment additionally provides one kind and is used for The communication data processing of finance device, with reference to shown in figure 6, described device includes:
Communication module 10, for obtaining communication data from communication interface, wherein, the communication data has including defining symbol Uniform data structure;
Buffer module 20, for the communication data to be stored to Data buffer 30.
Data buffer 30, for data storage, wherein, the data include normal communication data and various noises Data.
Data analysis threading models 40, the noise data in the Data buffer is carried out for defining symbol according to described in Filtration treatment.
Implement the communication data for being used for finance device according to the communication data processing for finance device Processing method illustrates, and refers to described above, and here is omitted.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.

Claims (9)

  1. A kind of 1. communication data processing method for finance device, it is characterised in that including:
    Communication data is obtained from communication interface, wherein, the communication data has the uniform data structure for including defining symbol;
    The communication data is stored to Data buffer;And
    Log-on data analyzes thread, symbol is defined according to described in the noise data in the Data buffer is carried out into filtration treatment; The data structure of the communication data is:Frame head define symbol, frame code value, reserved bit, frame data length, frame data, frame check and, Postamble defines symbol, wherein, the frame code value, reserved bit, frame data length, frame data and frame check and for the data Communication data in buffer pool carries out multiple check processing.
  2. 2. it is used for the communication data processing method of finance device as claimed in claim 1, it is characterised in that defined according to described in The step of noise data in the Data buffer is carried out filtration treatment by symbol includes:
    Symbol is defined according to the frame head and postamble defines symbol and determines communication data;
    Data in the Data buffer in addition to the communication data are defined as noise data;And
    Filtration treatment is carried out to the noise data.
  3. 3. it is used for the communication data processing method of finance device as claimed in claim 1, it is characterised in that to the data Communication data in buffer pool carries out multiple check processing, and after determining that the communication data is correct data, will described in Communication data is recorded to the first data logging, and is sent it to upper-layer service and handled.
  4. 4. it is used for the communication data processing method of finance device as claimed in claim 1, it is characterised in that also include:
    The noise data is recorded to the second data logging.
  5. 5. it is used for the communication data processing method of finance device as claimed in claim 4, it is characterised in that also include:
    According to an at least fault verification strategy, it is accidental wrong data or fault data to judge the noise data;And
    When it is determined that the noise data is fault data, halt instruction is sent.
  6. 6. it is used for the communication data processing method of finance device as claimed in claim 5, it is characterised in that the fault verification Strategy is:
    Judge that the noise data is accidental mistake according to the number that the noise data is received within first scheduled time Data or fault data, when the number that the noise data is received in first scheduled time reaches the first threshold value, then Judge the noise data for bug.
  7. 7. it is used for the communication data processing method of finance device as claimed in claim 5, it is characterised in that the fault verification Strategy is:
    Judge that the noise data is accidental mistake according to the amount of capacity of the noise data received within second scheduled time Data or fault data, when the amount of capacity of the noise data received within second scheduled time reaches the second threshold value, It is bug then to think the noise data.
  8. 8. it is used for the communication data processing method of finance device as claimed in claim 7, it is characterised in that second thresholding Value is configured as the amount of capacity equal to the Data buffer.
  9. A kind of 9. communication data processing for finance device, it is characterised in that including:
    Communication module, for obtaining communication data from communication interface, wherein, the communication data has the unification for including defining symbol Data structure;
    Data buffer, for data storage;
    Buffer module, for the communication data to be stored to Data buffer;And
    Data analysis threading models, the noise data in the Data buffer is carried out at filtering for defining symbol according to described in Reason;
    The data structure of the communication data is:Frame head defines symbol, frame code value, reserved bit, frame data length, frame data, frame school Test and, postamble define symbol, wherein, the frame code value, reserved bit, frame data length, frame data and frame check and for institute The communication data stated in Data buffer carries out multiple check processing.
CN201510045249.9A 2015-01-29 2015-01-29 Communication data processing method and processing device for finance device Expired - Fee Related CN104639290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510045249.9A CN104639290B (en) 2015-01-29 2015-01-29 Communication data processing method and processing device for finance device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510045249.9A CN104639290B (en) 2015-01-29 2015-01-29 Communication data processing method and processing device for finance device

Publications (2)

Publication Number Publication Date
CN104639290A CN104639290A (en) 2015-05-20
CN104639290B true CN104639290B (en) 2018-03-02

Family

ID=53217652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510045249.9A Expired - Fee Related CN104639290B (en) 2015-01-29 2015-01-29 Communication data processing method and processing device for finance device

Country Status (1)

Country Link
CN (1) CN104639290B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845516A (en) * 2006-04-12 2006-10-11 重庆邮电学院 Optical burst switched network performance and fault monitoring method
CN101170484A (en) * 2006-10-23 2008-04-30 深圳市吉孚通信科技有限公司 A switching chip and switching device based on non compression transmission protocol
CN101382968A (en) * 2008-10-17 2009-03-11 北京航空航天大学 Advanced synthesis type aviation electronic simulation system and simulation method thereof
CN101527823A (en) * 2009-04-10 2009-09-09 南京大学 Network video monitoring system based on FPGA chaotic encryption
CN102098131A (en) * 2009-12-15 2011-06-15 航天科工惯性技术有限公司 Dynamic parameter configuration-based general framing and de-framing method for serial port data frames
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845516A (en) * 2006-04-12 2006-10-11 重庆邮电学院 Optical burst switched network performance and fault monitoring method
CN101170484A (en) * 2006-10-23 2008-04-30 深圳市吉孚通信科技有限公司 A switching chip and switching device based on non compression transmission protocol
CN101382968A (en) * 2008-10-17 2009-03-11 北京航空航天大学 Advanced synthesis type aviation electronic simulation system and simulation method thereof
CN101527823A (en) * 2009-04-10 2009-09-09 南京大学 Network video monitoring system based on FPGA chaotic encryption
CN102098131A (en) * 2009-12-15 2011-06-15 航天科工惯性技术有限公司 Dynamic parameter configuration-based general framing and de-framing method for serial port data frames
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data

Also Published As

Publication number Publication date
CN104639290A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN112653738B (en) Internet of things network debugging system and method
CN102355278B (en) Highly-reliable receiving device for transponder information and transponder information receiving method
CN100576935C (en) Embedded set top box debugging, method of testing
DE112012005311T5 (en) Methods, Systems, and Computer Readable Media for Reducing the Impact of Detecting Downlink Control Information (DCI) in LTE PDCCH Data (Long Term Evolution Physical Downlink Control Channel Data)
CN1838011A (en) Intelligent management apparatus and management method for distributed control network based on CAN bus
CN106991065A (en) Method by USB host computers with being communicated with CAN and/or LIN bus apparatus
CN103746840B (en) Method and system for automatic checking of software version information of network equipment
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN108614765B (en) Method for acquiring embedded software test data in target machine
CN108231132B (en) NAND flash memory verification device and verification system
CN104639290B (en) Communication data processing method and processing device for finance device
CN106776346A (en) The method of testing and device of CCMTS equipment
CN105117332B (en) A kind of detection method of stack overflow position
CN109241074A (en) Check data automatic processing method, device, computer equipment and storage medium
CN106209509A (en) A kind of MVB monitor
CN106642590A (en) Air conditioner control method and bilateral protocol converter
CN107391374A (en) Middleware automatic checking method
CN107426039A (en) The method and system that a kind of daily record is reported and received
CN105554496B (en) Multi signal passage automatic checkout system and method
CN116306398A (en) Verification platform of multi-channel IO interface IP and stopping algorithm thereof
CN109582584A (en) A kind of BMC Smashclp method for automatically testing functions and device
CN112249088A (en) Method for mutual diagnosis and data synchronization of double-display system, double-display system and train
CN110798371A (en) Testing method of private communication protocol
US9621339B1 (en) Host devices and data transmission methods
CN101753375B (en) Device for debugging UDP network packet in avionics simulation environment and method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180302

Termination date: 20220129