Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 cannot be realized, the Java card application will eventually run on the real card, and the algorithm used in some applications is implemented by hardware, but for this kind of java card application, it cannot be debugged when using the virtual card program of

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

Embodiment 1

[0035] Embodiment 1 of the present application provides a Java card debugging protocol conversion method, such as figure 1 As shown, it is applied in the Java card debugging protocol conversion agent, and the method includes:

[0036] Step 110, in response to receiving the APDU instruction of the Java application program, the Java card debugging protocol conversion agent splits the APDU instruction into multiple DPDUs and sends them 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 by Java code, which can provide a corresponding API interface externally, can receive instructions in APDU format sent by a Java application program, and can be connected to a physical card reader through a PCSC interface. Thereby realizing the purpose of communicating with the Java Card; wherein, ...

Embodiment 2

[0065] Embodiment 2 of the present application shows the working method of the debugging system, such as figure 2 , 3 , Shown in 4,5, wherein, debugging system comprises Java card, Java card debugging protocol conversion agent and Java debugging tool;

[0066] figure 2 After the Java card debugging protocol conversion agent receives the APDU command sent by the Java application, it starts the session, sends the data header command (apdu header) to the smart card, and receives the response returned by the smart card (including returning res=6102 / 9600 / 9400 / 9210) Process line diagram.

[0067] image 3 After the Java card debugging protocol conversion agent sends the data header instruction to the smart card, and returns a response 6102 / 9210, the Java card debugging protocol conversion agent respectively executes the flow diagram of the corresponding operation.

[0068] Figure 4 After the Java card debugging protocol conversion agent sends the data header command to the s...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More