patents.google.com

CN105868082A - Non-contact CPU card communication monitor - Google Patents

  • ️Wed Aug 17 2016

CN105868082A - Non-contact CPU card communication monitor - Google Patents

Non-contact CPU card communication monitor Download PDF

Info

Publication number
CN105868082A
CN105868082A CN201610381652.3A CN201610381652A CN105868082A CN 105868082 A CN105868082 A CN 105868082A CN 201610381652 A CN201610381652 A CN 201610381652A CN 105868082 A CN105868082 A CN 105868082A Authority
CN
China
Prior art keywords
mcu
unit
cpu card
command
decoding
Prior art date
2016-06-01
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
Application number
CN201610381652.3A
Other languages
Chinese (zh)
Other versions
CN105868082B (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.)
Guangdong Chutian Dragon Smart Card Co ltd
Original Assignee
Guangdong Chutian Dragon Smart Card 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.)
2016-06-01
Filing date
2016-06-01
Publication date
2016-08-17
2016-06-01 Application filed by Guangdong Chutian Dragon Smart Card Co ltd filed Critical Guangdong Chutian Dragon Smart Card Co ltd
2016-06-01 Priority to CN201610381652.3A priority Critical patent/CN105868082B/en
2016-08-17 Publication of CN105868082A publication Critical patent/CN105868082A/en
2019-04-02 Application granted granted Critical
2019-04-02 Publication of CN105868082B publication Critical patent/CN105868082B/en
Status Active legal-status Critical Current
2036-06-01 Anticipated expiration legal-status Critical

Links

  • 238000004891 communication Methods 0.000 title claims abstract description 22
  • 230000004044 response Effects 0.000 claims abstract description 25
  • 238000001914 filtration Methods 0.000 claims abstract description 6
  • 230000008859 change Effects 0.000 claims description 3
  • 230000005540 biological transmission Effects 0.000 abstract description 7
  • 230000002452 interceptive effect Effects 0.000 abstract description 4
  • 238000011161 development Methods 0.000 abstract description 3
  • 238000005516 engineering process Methods 0.000 abstract description 2
  • 238000012544 monitoring process Methods 0.000 abstract description 2
  • 238000012545 processing Methods 0.000 description 4
  • 230000007246 mechanism Effects 0.000 description 3
  • 238000000034 method Methods 0.000 description 3
  • 230000003993 interaction Effects 0.000 description 2
  • 230000008569 process Effects 0.000 description 2
  • 238000012360 testing method Methods 0.000 description 2
  • 238000013459 approach Methods 0.000 description 1
  • 238000013461 design Methods 0.000 description 1
  • 238000010586 diagram Methods 0.000 description 1
  • 230000006870 function Effects 0.000 description 1
  • 238000012795 verification Methods 0.000 description 1

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3031Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Communication Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A non-contact CPU card communication monitor relates to the communication monitoring technology of the non-contact CPU card. The non-contact CPU card communication monitor solves the problems that an existing non-contact CPU card communication monitor is serious in data loss and low in precision due to poor real-time performance. The decoding module of the invention is embedded with a filtering unit and a decoding unit; the filtering unit is used for judging whether the amplitude of the carrier signal changes within n continuous ETU time, and if so, the carrier signal is sent to the decoding unit for decoding; the decoding unit sends the decoded data to an internal memory of the MCU through an SSC interface of the MCU; the MCU restores the data in the memory into command-response pairs, stores the command-response pairs in the cache unit and uploads the command-response pairs to the PC in the non-interactive time slot. The invention filters useless signals, uses DMA transmission and develops large-capacity cache in the MCU, so that the monitor precision can reach more than 95 percent, and the invention is suitable for the development of non-contact CPU card reader-writer.

Description

非接触式CPU卡通讯监测器Non-contact CPU card communication monitor

技术领域 technical field

本发明涉及非接触式CPU卡的通讯监测技术。 The invention relates to the communication monitoring technology of a non-contact CPU card.

背景技术 Background technique

非接触式CPU卡读写器在开发过程中,需要采用非接触式CPU卡通讯监测器检测ISO14443通讯信道中的原始信号,还原读写器与卡片间的命令-响应对,为读写器或卡片设计开发及测试人员在产品调试和测试过程中提供数据参考。目前市场上常见的非接触式CPU卡通讯监测器,其内部的MCU边还原命令-响应对边通过USB上传数据,这种处理机制由于实时性差导致数据丢失严重,监测器的精度仅能达到80%~85%。 In the development process of the non-contact CPU card reader, it is necessary to use the non-contact CPU card communication monitor to detect the original signal in the ISO14443 communication channel, restore the command-response pair between the reader and the card, and provide the reader or Card design, development and testing personnel provide data reference during product debugging and testing. At present, the common non-contact CPU card communication monitor on the market, its internal MCU restores the command-response and uploads data through USB. Due to the poor real-time performance of this processing mechanism, the data loss is serious, and the accuracy of the monitor can only reach 80. %~85%.

发明内容 Contents of the invention

本发明的目的是为了解决现有的非接触式CPU卡通讯监测器由于实时性差导致数据丢失严重,进而降低精度的问题,提供一种高精度的非接触式CPU卡通讯监测器。 The purpose of the present invention is to provide a high-precision non-contact CPU card communication monitor in order to solve the problem that the existing non-contact CPU card communication monitor has serious data loss due to poor real-time performance and further reduces precision.

本发明所述的非接触式CPU卡通讯监测器,包括接收电路、解码模块和MCU; The non-contact CPU card communication monitor of the present invention includes a receiving circuit, a decoding module and an MCU;

解码模块内嵌入解码单元,解码单元用于将接收电路接收到的载波信号进行解码; A decoding unit is embedded in the decoding module, and the decoding unit is used to decode the carrier signal received by the receiving circuit;

MCU内嵌入命令-响应对还原单元,用于对解码单元发来的数据还原为命令-响应对; An embedded command-response pair restoration unit in the MCU is used to restore the data sent by the decoding unit to a command-response pair;

解码单元将解码后的数据通过MCU的SSC接口发送给MCU内部的存储单元,即MCU的内存; The decoding unit sends the decoded data to the storage unit inside the MCU through the SSC interface of the MCU, that is, the memory of the MCU;

MCU内部嵌入有缓存单元,命令-响应对还原单元将内存中存储的数据还原为命令-响应对,并将所述命令-响应对存储在缓存单元中,在非交互时隙内将缓存单元中存储的命令-响应对上传至PC。 A cache unit is embedded inside the MCU. The command-response pair restoration unit restores the data stored in the memory into a command-response pair, and stores the command-response pair in the cache unit. Stored command-response pairs are uploaded to the PC.

本发明所述的非接触式CPU卡通讯监测器,其硬件结构与常规的非接触式CPU卡通讯监测器相同,本发明主要通过两个途径解决数据丢失的问题: The non-contact CPU card communication monitor of the present invention, its hardware structure is identical with conventional non-contact CPU card communication monitor, the present invention mainly solves the problem of data loss by two approaches:

1、使用DMA传输,提高实时性。MCU的SSC接口具备DMA传输功能,所谓DMA传输,即为:信号通过接收端口后直接存储到内存。这个过程不需要MCU介入,节省了MCU的处理周期,使MCU具有更多的时间来将FPGA发来的数据还原成命令-响应对。 1. Use DMA transmission to improve real-time performance. The SSC interface of the MCU has a DMA transmission function. The so-called DMA transmission means that the signal is directly stored in the memory after passing through the receiving port. This process does not require the intervention of the MCU, which saves the processing cycle of the MCU and enables the MCU to have more time to restore the data sent by the FPGA into command-response pairs.

2、大缓存存储处理完的数据。由于USB传输数据实时性差,MCU边还原命令-响应对边上传的处理机制将会导致一定的数据丢失,所以本发明采用的应对措施是在MCU中开辟大容量的缓存,用来存储命令-响应对,在非交互时隙内再将命令-响应对上送给PC。经多次反复验证,这种处理机制十分稳定,且基本无数据丢失。 2. The large cache stores the processed data. Due to the poor real-time performance of USB transmission data, the processing mechanism of MCU restoring command-response to side upload will cause certain data loss. Yes, send the command-response pair up to the PC in the non-interactive time slot. After many repeated verifications, this processing mechanism is very stable, and there is basically no data loss.

附图说明 Description of drawings

图1为实施方式一所述的非接触式CPU卡通讯监测器的原理框图。 FIG. 1 is a functional block diagram of the non-contact CPU card communication monitor described in the first embodiment.

具体实施方式 detailed description

具体实施方式一:结合图1说明本实施方式,本实施方式所述的非接触式CPU卡通讯监测器,包括接收电路、解码模块和MCU。解码模块通常采用FPGA或DSP实现,本实施方式采用FPGA实现。 Specific Embodiment 1: This embodiment is described with reference to FIG. 1 . The non-contact CPU card communication monitor described in this embodiment includes a receiving circuit, a decoding module and an MCU. The decoding module is usually realized by FPGA or DSP, and this embodiment adopts FPGA.

解码模块内嵌入过滤单元和解码单元; A filtering unit and a decoding unit are embedded in the decoding module;

过滤单元用于判断解码模块接收到的载波信号幅度在连续n个ETU时间内是否发生变化,并在判断结果为是时,将所述载波信号发送给解码单元进行解码,在判断结果为否时重新启动过滤单元,n为大于1的整数; The filter unit is used to judge whether the amplitude of the carrier signal received by the decoding module changes within the continuous n ETU time, and when the judgment result is yes, the carrier signal is sent to the decoding unit for decoding, and when the judgment result is no Restart the filter unit, n is an integer greater than 1;

解码单元用于将接收电路接收到的载波信号进行解码; The decoding unit is used to decode the carrier signal received by the receiving circuit;

解码单元将解码后的ISO14443二进制编码数据通过MCU的SSC接口发送给MCU内部的存储单元,即MCU的内存; The decoding unit sends the decoded ISO14443 binary coded data to the internal storage unit of the MCU through the SSC interface of the MCU, that is, the memory of the MCU;

MCU内嵌入命令-响应对还原单元,用于将内存中存储的数据还原为命令-响应对,并将所述命令-响应对存储在缓存单元中,在非交互时隙内将缓存单元中存储的命令-响应对上传至PC。 An embedded command-response pair restoration unit in the MCU is used to restore the data stored in the memory to a command-response pair, and store the command-response pair in the cache unit, and store the command-response pair in the cache unit during the non-interactive time slot. The command-response pairs are uploaded to the PC.

FPGA的解码速度远高于MCU,能够进一步保证数据传输的实时性。 The decoding speed of FPGA is much higher than that of MCU, which can further ensure the real-time performance of data transmission.

过滤单元能够过滤掉接收电路抓取到的无用信号,提高信号纯度。交易过程中,非接触式读写器的载波信号(磁场)一直贯穿整个交易周期,但是非接触式读写器与IC卡间的数据交互并不是时时刻刻都在进行。当交互产生时,载波信号的幅度是不断变化的,而非交互时,载波信号幅度则不会变化,也就是所谓的无用信号。由于接收电路无法智能滤除该信号,最后这种无用信号流入解码模块。无用信号和有用信号的区别是,无用信号在持续若干个ETU的时间内(通常在2个以上ETU时间内),载波信号幅度无变化。基于该特点,在解码模块内嵌入过滤单元,很容易区分出无用信号,从而只对有用信号进行ISO14443解码,使得解码模块向MCU发送的数据为纯度后的数据,进一步提高了监测器的精度。 The filtering unit can filter out useless signals captured by the receiving circuit and improve signal purity. During the transaction, the carrier signal (magnetic field) of the non-contact reader-writer runs through the entire transaction cycle, but the data interaction between the non-contact reader-writer and the IC card is not carried out all the time. When interaction occurs, the amplitude of the carrier signal is constantly changing, but when it is not interactive, the amplitude of the carrier signal does not change, which is the so-called useless signal. Since the receiving circuit cannot intelligently filter out this signal, this useless signal finally flows into the decoding module. The difference between the unwanted signal and the useful signal is that the amplitude of the carrier signal does not change when the unwanted signal lasts for several ETUs (usually more than 2 ETUs). Based on this feature, the filter unit is embedded in the decoding module to easily distinguish useless signals, so that only useful signals are decoded to ISO14443, so that the data sent by the decoding module to the MCU is pure data, which further improves the accuracy of the monitor.

采用过滤无用信号、使用DMA传输以及在MCU内开辟大容量缓存三个措施,本实施方式所述的监测器精度能够达到95%以上,理想情况(指符合ISO14443规范的标准读写器及IC卡)下可达到100% 。 With the three measures of filtering useless signals, using DMA transmission and opening up a large-capacity cache in the MCU, the accuracy of the monitor described in this embodiment can reach more than 95%. ) can reach 100%.

Claims (6)

1.非接触式CPU卡通讯监测器,包括接收电路、解码模块和MCU; 1. Non-contact CPU card communication monitor, including receiving circuit, decoding module and MCU; 解码模块内嵌入解码单元,解码单元用于将接收电路接收到的载波信号进行解码; A decoding unit is embedded in the decoding module, and the decoding unit is used to decode the carrier signal received by the receiving circuit; MCU内嵌入命令-响应对还原单元,用于对解码单元发来的数据还原为命令-响应对; An embedded command-response pair restoration unit in the MCU is used to restore the data sent by the decoding unit to a command-response pair; 其特征在于, It is characterized in that, 解码单元将解码后的数据通过MCU的SSC接口发送给MCU内部的存储单元,即MCU的内存; The decoding unit sends the decoded data to the storage unit inside the MCU through the SSC interface of the MCU, that is, the memory of the MCU; MCU内部嵌入有缓存单元,命令-响应对还原单元将内存中存储的数据还原为命令-响应对,并将所述命令-响应对存储在缓存单元中,在非交互时隙内将缓存单元中存储的命令-响应对上传至PC。 A cache unit is embedded inside the MCU. The command-response pair restoration unit restores the data stored in the memory into a command-response pair, and stores the command-response pair in the cache unit. Stored command-response pairs are uploaded to the PC. 2.根据权利要求1所述的非接触式CPU卡通讯监测器,其特征在于,解码模块内还嵌入过滤单元,用于判断解码模块接收到的载波信号幅度在连续n个ETU时间内是否发生变化,并在判断结果为是时,将所述载波信号发送给解码单元进行解码,在判断结果为否时重新启动过滤单元,n为大于1的整数。 2. The non-contact CPU card communication monitor according to claim 1, characterized in that, a filtering unit is also embedded in the decoding module for judging whether the carrier signal amplitude received by the decoding module occurs within the continuous n ETU time change, and when the judgment result is yes, the carrier signal is sent to the decoding unit for decoding, and when the judgment result is no, the filter unit is restarted, and n is an integer greater than 1. 3.根据权利要求2所述的非接触式CPU卡通讯监测器,其特征在于,n=2。 3. The non-contact CPU card communication monitor according to claim 2, characterized in that n=2. 4.根据权利要求2所述的非接触式CPU卡通讯监测器,其特征在于,所述的缓存单元的容量为50KB。 4. The non-contact CPU card communication monitor according to claim 2, wherein the capacity of the buffer unit is 50KB. 5.根据权利要求2所述的非接触式CPU卡通讯监测器,其特征在于,所述的解码模块采用FPGA实现。 5. The non-contact CPU card communication monitor according to claim 2, characterized in that, said decoding module is realized by FPGA. 6.根据权利要求2所述的非接触式CPU卡通讯监测器,其特征在于,所述的解码模块采用DSP实现。 6. The non-contact CPU card communication monitor according to claim 2, wherein the decoding module is realized by DSP.

CN201610381652.3A 2016-06-01 2016-06-01 non-contact CPU card communication monitor Active CN105868082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610381652.3A CN105868082B (en) 2016-06-01 2016-06-01 non-contact CPU card communication monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610381652.3A CN105868082B (en) 2016-06-01 2016-06-01 non-contact CPU card communication monitor

Publications (2)

Publication Number Publication Date
CN105868082A true CN105868082A (en) 2016-08-17
CN105868082B CN105868082B (en) 2019-04-02

Family

ID=56675742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610381652.3A Active CN105868082B (en) 2016-06-01 2016-06-01 non-contact CPU card communication monitor

Country Status (1)

Country Link
CN (1) CN105868082B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201340660Y (en) * 2009-01-23 2009-11-04 厦门蓝斯通信有限公司 Public transport intelligent terminal
CN103744807A (en) * 2013-12-04 2014-04-23 西安诺瓦电子科技有限公司 Memory card access control system based on programmable logic device
US20140237277A1 (en) * 2013-02-20 2014-08-21 Dominic S. Mallinson Hybrid performance scaling or speech recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201340660Y (en) * 2009-01-23 2009-11-04 厦门蓝斯通信有限公司 Public transport intelligent terminal
US20140237277A1 (en) * 2013-02-20 2014-08-21 Dominic S. Mallinson Hybrid performance scaling or speech recognition
CN103744807A (en) * 2013-12-04 2014-04-23 西安诺瓦电子科技有限公司 Memory card access control system based on programmable logic device

Also Published As

Publication number Publication date
CN105868082B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US9563251B2 (en) 2017-02-07 Representing a cache line bit pattern via meta signaling
CN104851069A (en) 2015-08-19 Cable apparent image defect detection device
CN103634263A (en) 2014-03-12 Continuous-phase frequency-shift keying digital demodulation device and demodulation method implemented by same
CN106528482A (en) 2017-03-22 Parallel communication method based on microcontroller and FPGA
CN105868082A (en) 2016-08-17 Non-contact CPU card communication monitor
CN104281082A (en) 2015-01-14 Partial discharge signal collecting method and system
CN204721490U (en) 2015-10-21 A kind of pavement crack detection system based on FPGA and 4G network
CN108614798B (en) 2021-05-07 PCIe link elastic buffer circuit
CN213458074U (en) 2021-06-15 Optical rolling fingerprint collecting device
CN207319244U (en) 2018-05-04 Low-power consumption radio frequency exploration card circuit
CN204178365U (en) 2015-02-25 Transformational structure between LBE bus and isa bus
CN105868673A (en) 2016-08-17 Low-power-consumption radio frequency card reading circuit
CN203338347U (en) 2013-12-11 An interface circuit of a fault detection device for a computer motherboard
CN204906391U (en) 2015-12-23 Revise miller code information source decoding circuit
CN204028955U (en) 2014-12-17 A kind of novel intelligent read write line
CN104991856A (en) 2015-10-21 Information recording apparatus and information recording method
CN202662293U (en) 2013-01-09 On-line and off-line detecting system for secure digital (SD)/multimedia card (MMC)
CN204204082U (en) 2015-03-11 IC-card sheet texture recognition module
CN204374968U (en) 2015-06-03 A kind of folding card reader
CN205176878U (en) 2016-04-20 Fast scan identification system based on two -dimensional code
CN103593629B (en) 2016-09-14 A kind of board identification encryption device
CN205375517U (en) 2016-07-06 Fingerprint and two discernment data acquisition devices of radio frequency
CN204695318U (en) 2015-10-07 Network security controller of computer
CN204833494U (en) 2015-12-02 Special cabinet of formula student of unblanking of punching card
CN204733276U (en) 2015-10-28 A kind of based on DSP break in traffic rules and regulations supervisory control system

Legal Events

Date Code Title Description
2016-08-17 C06 Publication
2016-08-17 PB01 Publication
2016-09-14 C10 Entry into substantive examination
2016-09-14 SE01 Entry into force of request for substantive examination
2016-11-16 CB03 Change of inventor or designer information

Inventor after: Su Chen

Inventor after: Jiang Quming

Inventor after: Peng Haoyi

Inventor after: Guo Shuchao

Inventor after: Yu Yanxiong

Inventor after: Chen Ping

Inventor after: Zhu Weiping

Inventor after: Wu Liang

Inventor before: Su Chen

Inventor before: Yu Yanxiong

Inventor before: Chen Ping

Inventor before: Zhu Weiping

2016-11-16 COR Change of bibliographic data
2019-03-01 CB02 Change of applicant information

Address after: 523697 Zhuweitian Yifa Industrial Zone, Fenggang Town, Dongguan City, Guangdong Province

Applicant after: Chu Tianlong Co., Ltd.

Address before: 523697 Zhuweitian Yifa Industrial Zone, Fenggang Town, Dongguan City, Guangdong Province

Applicant before: Guangdong Chutian Dragon Smart Card Co., Ltd.

2019-03-01 CB02 Change of applicant information
2019-04-02 GR01 Patent grant
2019-04-02 GR01 Patent grant