Java card debugging protocol conversion method and conversion agent thereof

A technology of protocol conversion and java application, which is applied in the field of Java cards, can solve problems such as inability to realize real-card debugging and debugging, and achieve the effects of facilitating function expansion, reducing development, and increasing versatility

Pending Publication Date: 2020-07-17
JIANGSU HENGBAO INTELLIGENT SYST TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since the real Java card can only receive data conforming to the ISO-7816 and ISO-14443 protocols
The above method directly selects JDWP format data interaction, so it can only be debugged in the virtual card exe program
The real card debugging canno

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Java card debugging protocol conversion method and conversion agent thereof
  • Java card debugging protocol conversion method and conversion agent thereof
  • Java card debugging protocol conversion method and conversion agent thereof

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0034] Example one

[0035] The first embodiment of the application provides a Java card debugging protocol conversion method, such as figure 1 As shown, applied in the Java Card debugging protocol conversion agent, the method includes:

[0036] Step 110: In response to receiving the APDU instruction of the Java application, the Java Card debugging protocol conversion agent splits the APDU instruction into multiple DPDUs and sends it to the Java Card, receives the breakpoint trigger returned by the Java Card, generates a breakpoint event and notifies Java Debugging tools

[0037] In the embodiment of this application, the Java card debugging protocol conversion agent is implemented in Java code, can provide corresponding API interfaces, can receive instructions in APDU format sent by Java applications, and can be connected to a physical card reader through a PCSC interface. So as to achieve the purpose of communicating with the Java card; among them, the Java card can be a physical ...

Example Embodiment

[0064] Example two

[0065] The second embodiment of the application shows the working method of the debugging system, such as figure 2 , 3 , 4 and 5, where the debugging system includes a Java card, a Java card debugging protocol conversion agent and a Java debugging tool;

[0066] figure 2 After receiving the APDU command sent by the Java application program for the Java card debugging protocol conversion agent, the session is started, the data header command (apdu header) is sent to the smart card, and the smart card returns the response (including the operation of returning res=6102 / 9600 / 9400 / 9210) Process line graph.

[0067] image 3 After the Java Card Debugging Protocol Conversion Agent sends a data header instruction to the smart card and returns a response 6102 / 9210, the Java Card Debugging Protocol Conversion Agent executes the corresponding operation flow chart.

[0068] Figure 4 After sending the data header command to the smart card for the Java Card debugging protoco...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Java card debugging protocol conversion method and a conversion agent thereof. The method comprises the following steps: in response to a received APDU instruction of a Javaapplication program, a Java card debugging protocol conversion agent splits the APDU instruction into a plurality of DPDUs, sends the DPDUs to a Java card, receives breakpoint triggering returned by the Java card, generates a breakpoint event and notifies a Java debugging tool; and in response to the received debugging instruction DPDU sent by the Java debugging tool program, the Java card debugging protocol conversion agent sends the debugging instruction DPDU to the Java card and receives corresponding debugging information returned by the Java card. By adopting the Java card debugging protocol conversion agent and the conversion method provided by the invention, joint debugging of Java card applications dynamically downloaded on a real card can be realized, an application program for calling a hardware algorithm can be debugged, function extension of a debugging tool program is facilitated, development is reduced, and universality is improved.

Description

technical field [0001] The application relates to the field of Java card technology, in particular to a Java card debugging protocol conversion method and a conversion agent thereof. Background technique [0002] Currently, the Java Card technology has become increasingly mature, and the Java Card applications are richer and more diverse. The Java Card applications can be divided into pre-loaded applications and dynamically downloaded applications. Developers of Java Card applications need a better way to debug Java Card applications. The absolute address of the pre-loaded application on the Java card running platform has been determined, and the bytecode jpc calculation of the C debugger can be used to confirm the bytecode position of the upper-layer application, and the Java program logic can be viewed. For applications downloaded after dynamics, the upper-layer Java IDE (need to develop Java card plug-in) + virtual card can be used to debug Java card applications. In th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36G06K7/10
CPCG06F11/3656G06F11/3664G06K7/10297
Inventor 车成弟曹炜
Owner JIANGSU HENGBAO INTELLIGENT SYST TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products