Welcome Guest ( Log In | Register )


5 Pages < 1 2 3 4 5 >Bottom
Bump Topic Add Reply RSS Feed New Topic New Poll

Outline · [ Standard ] · Linear+

> MyKad Application, Need to capture data, how?

views
     
830808
post Mar 17 2008, 04:08 PM

New Member
*
Group: Junior Member
Posts: 29

Joined: Nov 2006


Halo... may i know how those APDU command write in web appliation (asp.net)?


Fazli_Super
post Oct 25 2008, 12:19 AM

Getting Started
**
Group: Junior Member
Posts: 51

Joined: Aug 2008
Hi Xenon, any idea how to read a mykid card? got a project to accomplish, but don't how to achieve this, i try your scdump it's work in windows, i am trying to make it work in Linux fedora, thanks!
xenon
post Oct 25 2008, 06:01 AM

On my way
****
Group: Senior Member
Posts: 501

Joined: Jan 2005
From: Selangor

I don't have idea, because my family don't have have MyKid.
Fazli_Super
post Oct 27 2008, 05:58 PM

Getting Started
**
Group: Junior Member
Posts: 51

Joined: Aug 2008
QUOTE(xenon @ Oct 25 2008, 06:01 AM)
I don't have idea, because my family don't have have MyKid.
*
thanks for your answer, if i got the way then i will share it here.
لادن
post Oct 28 2008, 06:40 PM

Getting Started
**
Group: Junior Member
Posts: 133

Joined: Oct 2008
From: Waziristan, FATA



There are no MyKad data capture in market, only readers.

Please seek:
- http://smartcard.msc.com.my/Downloads.aspx?cat=myk
- http://www.wintek.com.my/SDK.html
- http://www.mykadpro.net/

Good luck!
Fazli_Super
post Nov 7 2008, 01:52 AM

Getting Started
**
Group: Junior Member
Posts: 51

Joined: Aug 2008
but xenon sample was able to work !
jacq09
post Feb 26 2009, 01:28 PM

New Member
*
Group: Newbie
Posts: 2

Joined: Feb 2009


Hi xenon,

Great job on the winscard code, really helped me a lot.

I have a problem here, i want to write the same code for reading mykad using vb.net. I got the connection, reader name and the ATR working, but i just couldn't get the rest. Could you please help me out here? I know it's been a long time since you've posted this post, but i'm bumped. I got -2146435068 for ReturnCode and my RxBuf returns all 0. Could you look through the code below n point out where i got it wrong? Appreciate it!

CODE

Public Sub checkCard()
           Dim SendRequest As SCARD_IO_REQUEST
           Dim RecvRequest As SCARD_IO_REQUEST
           Dim sTemp As String
           Dim icount As Integer

           SendRequest.dwProtocol = SCARD_PROTOCOL_T0
           SendRequest.cbPciLength = Len(SendRequest)
           RecvRequest.dwProtocol = SCARD_PROTOCOL_T0
           RecvRequest.cbPciLength = Len(RecvRequest)
           TxBuf = New Byte() {&H0, &HA4, &H4, &H0, &HA, &HA0, &H0, &H0, &H0, &H74, &H4A, &H50, &H4E, &H0, &H10}
           RxBufLen = 256

           ReturnCode = winSCard.SCardTransmit(hCard, SendRequest, TxBuf(0), 15, RecvRequest, RxBuf(0), RxBufLen)
           appendlog()
           filewriter.WriteLine("Return Code : " + ReturnCode)
           sTemp = ""
           For icount = 0 To 14
               sTemp = sTemp + Format(Hex(TxBuf(icount)), "") + " "
           Next icount
           filewriter.WriteLine("Send Buffer : " + sTemp)
           sTemp = ""
           For icount = 0 To RxBufLen - 1
               sTemp = sTemp + Format(Hex(RxBuf(icount)), "") + " "
           Next icount
           filewriter.WriteLine("Receive Buffer : " + sTemp)
           closeLog()
End Sub


xenon
post Feb 26 2009, 05:47 PM

On my way
****
Group: Senior Member
Posts: 501

Joined: Jan 2005
From: Selangor

-2146435068 = 0x80100004 = SCARD_E_INVALID_PARAMETER

winSCard.SCardTransmit(hCard, SendRequest, TxBuf(0), 15, RecvRequest, RxBuf(0), RxBufLen)
I'm not sure how winSCard is implemented here. I suspect buffer pointers are not passed correctly. Be sure that they are addresses, not values. I can't comment much because I do not know Visual Basic syntax.

Do you have something that looks like this?
CODE
   Declare Function SCardTransmit Lib "winscard.dll" _
      (ByVal hCard As Int32, ByRef pioSendPci As SCARD_IO_REQUEST, _
      ByVal pbSendBuffer As Byte(), ByVal cbSendLength As Int32, _
      ByRef pioRecvPci As SCARD_IO_REQUEST, ByVal pbRecvBuffer As Byte(), _
      ByRef pcbRecvLength As Int32) As Int32


Another thing you can check is the value of hCard, make sure it is some valid value.
jacq09
post Feb 27 2009, 11:20 AM

New Member
*
Group: Newbie
Posts: 2

Joined: Feb 2009


Thanks xenon, for your reply. I found out what went wrong though. The only difference I find with ur scdump.c code and mine is i send 2 different variable for the SCARD_IO_REQUEST and yours send the same. So it shud look like this.

QUOTE
winSCard.SCardTransmit(hCard, Request, TxBuf(0), 15, Request, RxBuf(0), RxBufLen)


And that got all the data from MyKad!! Superb!!



ROCKEY
post Mar 31 2009, 10:41 AM

Getting Started
**
Group: Junior Member
Posts: 189

Joined: May 2007
xenon is great.. thanks for the coding.
razinq
post Apr 2 2009, 11:14 AM

New Member
*
Group: Junior Member
Posts: 4

Joined: Dec 2005


yeah ... xenon rock.
From his scdump file, now im producing the java applet to read mykad from the web.
No need activeX. all platform can read with this applet.

notworthy.gif notworthy.gif notworthy.gif

This post has been edited by razinq: Apr 2 2009, 11:14 AM
christ_0205
post Apr 23 2009, 11:18 PM

Casual
***
Group: Junior Member
Posts: 327

Joined: May 2006
From: Kuala Lumpur


Anyone have the full software to generate the data if yes can anyone share with me thanks in advance
Fazli_Super
post May 1 2009, 02:55 AM

Getting Started
**
Group: Junior Member
Posts: 51

Joined: Aug 2008
no free lunch bang! already have the code and you can just get a smart card reader and read it. want extra, please hire people do for you then, or i think they are many expert and free lance in low yat.
cybpsych
post Jun 12 2009, 04:56 PM

---------------------
*********
Group: All Stars
Posts: 45,270

Joined: Jan 2003
just to update: IRIS Corp Bhd's smartcard and smart PDA units are available RETAIL @ Cash&Carry IT, Amoda building, KL.

it's just in opposite of Berjaya Times Square, and right after you come down from the overhead bridge smile.gif
ttwangsa
post Aug 4 2009, 07:18 AM

On my way
****
Group: Senior Member
Posts: 618

Joined: Oct 2005
From: Puchong, Selangor


i'm trying to do a dot net library for the smart card reader.
i'll post it when/(if?) its ready.


Added on August 8, 2009, 7:48 amok i've put it at github.
git@github.com:blacksnow666/jpnreader.git

its done in vb dot net

This post has been edited by ttwangsa: Aug 8 2009, 07:48 AM
abigoroth
post Nov 29 2009, 09:33 AM

Getting Started
**
Group: Junior Member
Posts: 65

Joined: Mar 2006
From: Alor Setar


hi xenon n all ppl here,
I want to get a mykad reader for my project.
any recommendded smartcard reader device to buy? seller, model, brand + comment

thx

phlwnbertopeng
post Dec 9 2009, 10:32 AM

Getting Started
**
Group: Junior Member
Posts: 162

Joined: Apr 2008
From: Indonesia


tricubes bro,u just try to get Secure or TCR 30,its cheap,no need to buy SDK,thanks


Added on December 9, 2009, 10:40 amI can develop any applications for MyKad,please check my website. Thanks

This post has been edited by phlwnbertopeng: Dec 9 2009, 10:40 AM
ttwangsa
post Mar 22 2010, 12:18 PM

On my way
****
Group: Senior Member
Posts: 618

Joined: Oct 2005
From: Puchong, Selangor


i use ACR 38
aliqueamyrei
post Mar 23 2010, 08:30 AM

Casual
***
Group: Junior Member
Posts: 317

Joined: Nov 2006
From: Piyu Piyu Piyu



Uh. Xenon is so cool. I am still not be able to code or read those hex and code stuff. Basic prog ok la.
lms2005
post Jun 3 2010, 09:10 PM

Regular
******
Group: Senior Member
Posts: 1,177

Joined: May 2005
From: somewhere else
anyone try install scr21u at win7 not?

my driver can't installed.. it said cannot start...

5 Pages < 1 2 3 4 5 >Top


Bump Topic Add ReplyOptions New Topic
 

Switch to:
| Lo-Fi Version
0.0892sec    1.77    6 queries    GZIP Disabled
Time is now: 20th June 2019 - 01:38 AM