Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

SCardTransmit returns "invalid parameters ERROR 80100004"

JavaCard Applet Development Related Questions and Answers.
lutajc
Posts: 9
Joined: Mon May 02, 2016 11:11 pm
Points :110
Contact:

SCardTransmit returns "invalid parameters ERROR 80100004"

Post by lutajc » Thu Apr 13, 2017 11:30 pm

Hello guys,

I have just finished an application for SmartCard. And this application performs well under T=0 protocol, but for T=1 SCardTransmit function returns "invalid parameters ERROR 80100004" . Does the vector have the same format for both protocols ?

My code:

Code: Select all

public void Trasmision()
{
    **Byte[] vectorSend = { 0x00, 0xa4, 0x04, 0x00, 0x00, 0x6f, 0x65 };**
    UInt32 inT2 = (UInt32)vectorSend.Length;
    vectorIn = new Byte[254];
    UInt32 inT = (UInt32)vectorIn.Length;
    IntPtr PT1 =GetPciT0() ;
    this.rTransmit = SCardTransmit(this.hContext, GetPciT1(), vectorSend, inT2, request, vectorIn, inT);
}


cheers,
lutajc

User avatar
BrooksIQ
Posts: 18
Joined: Mon Jun 15, 2015 11:12 pm
Points :182
Contact:

Re: SCardTransmit returns "invalid parameters ERROR 80100004"

Post by BrooksIQ » Fri Apr 14, 2017 5:46 am

Do you have SCARD_PROTOCOL_T1 in your SCardConnect call?
Your mind will answer most questions if you learn to relax and wait for the answer---William S. Burroughs

User avatar
BrooksIQ
Posts: 18
Joined: Mon Jun 15, 2015 11:12 pm
Points :182
Contact:

Re: SCardTransmit returns "invalid parameters ERROR 80100004"

Post by BrooksIQ » Fri Apr 14, 2017 6:13 am

Another thing is Byte[] vectorSend command maybe wrong. It seems that LC is wrong.

You can try to send
>> 0x00, 0xa4, 0x04, 0x00, 0x02, 0x6f, 0x65, 0x00
Your mind will answer most questions if you learn to relax and wait for the answer---William S. Burroughs

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 31 guests

JavaCard OS : Disclaimer