The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

How to send apdu to JCIDE through socket interface .

JCIDE is an Integrated Development Environment designed specifically for the Java Card programming language.

Moderators: product, kuafu

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Jul 04, 2019 11:31 pm

1. connect to JCIDE

2. send connectcad cmd to JCIDE

3. send apud cmd to JCIDE
well

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Jul 04, 2019 11:32 pm

An android demo.
You do not have the required permissions to view the files attached to this post. Please login first.
well

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Jul 04, 2019 11:45 pm

c++ demo
You do not have the required permissions to view the files attached to this post. Please login first.
well

zhyihui2100
Posts: 1
Joined: Wed Mar 06, 2019 10:32 pm
Points :12
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by zhyihui2100 » Mon Sep 30, 2019 3:28 am

kuafu wrote:
Thu Jul 04, 2019 11:45 pm
c++ demo
Thank you for your guidance. but I found a trouble that every time I start debugging at JCIDE. the port is different every time. the setting at Tool->IDE options -> Run/Debug -> Configuration -> Used port is useless.
could you show me the communication protocol based on socket ?

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Oct 10, 2019 11:05 pm

Use port is the port of jcvm . It not about the socket interface . We using it to debug the jcvm. It's actual internal port. You didn't need to set it.
Socket interface is the two port .
If you connect to JCIDE on pc. You can using pc/sc interface, it's better. The socket interface is design to support mobile app.
You do not have the required permissions to view the files attached to this post. Please login first.
well

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Oct 10, 2019 11:10 pm

zhyihui2100 wrote:
Mon Sep 30, 2019 3:28 am
kuafu wrote:
Thu Jul 04, 2019 11:45 pm
c++ demo
Thank you for your guidance. but I found a trouble that every time I start debugging at JCIDE. the port is different every time. the setting at Tool->IDE options -> Run/Debug -> Configuration -> Used port is useless.
could you show me the communication protocol based on socket ?
What is about pc/sc interface .
https://baike.baidu.com/item/PC%2FSC/1666826
viewtopic.php?f=3&t=3
https://cn.bing.com/search?q=pc%2Fsc&en ... ORM=BESBTB
We register a virtual card reader to windows . So Windows think JCIDE is a card reader . So you can connect to JCIDE with PC/SC interface .
well

kuafu
Posts: 196
Joined: Thu Jun 25, 2015 2:09 am
Points :2303
Contact:

Re: How to send apdu to JCIDE through socket interface .

Post by kuafu » Thu Oct 10, 2019 11:26 pm

zhyihui2100 wrote:
Mon Sep 30, 2019 3:28 am
kuafu wrote:
Thu Jul 04, 2019 11:45 pm
c++ demo
Thank you for your guidance. but I found a trouble that every time I start debugging at JCIDE. the port is different every time. the setting at Tool->IDE options -> Run/Debug -> Configuration -> Used port is useless.
could you show me the communication protocol based on socket ?
If you just want to send simple apdu to JCIDE, not test case that you build .
You can using some apdu tool to send apdu .
viewtopic.php?f=3&t=2043
well

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 0 guests

JavaCard OS : Disclaimer