Halo... may i know how those APDU command write in web appliation (asp.net)?
MyKad Application, Need to capture data, how?
MyKad Application, Need to capture data, how?
|
|
Mar 17 2008, 04:08 PM
|
![]()
Junior Member
29 posts Joined: Nov 2006 |
Halo... may i know how those APDU command write in web appliation (asp.net)?
|
|
|
|
|
|
Oct 25 2008, 12:19 AM
|
![]() ![]()
Junior Member
51 posts 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!
|
|
|
Oct 25 2008, 06:01 AM
|
![]() ![]() ![]() ![]()
Senior Member
502 posts Joined: Jan 2005 From: Selangor |
I don't have idea, because my family don't have have MyKid.
|
|
|
Oct 27 2008, 05:58 PM
|
![]() ![]()
Junior Member
51 posts Joined: Aug 2008 |
|
|
|
Oct 28 2008, 06:40 PM
|
![]() ![]()
Junior Member
133 posts 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! |
|
|
Nov 7 2008, 01:52 AM
|
![]() ![]()
Junior Member
51 posts Joined: Aug 2008 |
but xenon sample was able to work !
|
|
|
|
|
|
Feb 26 2009, 01:28 PM
|
![]()
Newbie
2 posts 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 |
|
|
Feb 26 2009, 05:47 PM
|
![]() ![]() ![]() ![]()
Senior Member
502 posts 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. |
|
|
Feb 27 2009, 11:20 AM
|
![]()
Newbie
2 posts 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!! |
|
|
Mar 31 2009, 10:41 AM
|
![]() ![]()
Junior Member
189 posts Joined: May 2007 |
xenon is great.. thanks for the coding.
|
|
|
Apr 2 2009, 11:14 AM
|
![]()
Junior Member
4 posts 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. This post has been edited by razinq: Apr 2 2009, 11:14 AM |
|
|
Apr 23 2009, 11:18 PM
|
![]() ![]() ![]()
Junior Member
328 posts 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
|
|
|
May 1 2009, 02:55 AM
|
![]() ![]()
Junior Member
51 posts 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.
|
|
|
|
|
|
Jun 12 2009, 04:56 PM
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
All Stars
65,371 posts 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 |
|
|
Aug 4 2009, 07:18 AM
|
![]() ![]() ![]() ![]()
Senior Member
618 posts 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 |
|
|
Nov 29 2009, 09:33 AM
|
![]() ![]()
Junior Member
65 posts 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 |
|
|
Dec 9 2009, 10:32 AM
|
![]() ![]()
Junior Member
162 posts 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 |
|
|
Mar 22 2010, 12:18 PM
|
![]() ![]() ![]() ![]()
Senior Member
618 posts Joined: Oct 2005 From: Puchong, Selangor |
i use ACR 38
|
|
|
Mar 23 2010, 08:30 AM
|
![]() ![]() ![]()
Junior Member
318 posts 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.
|
|
|
Jun 3 2010, 09:10 PM
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,270 posts Joined: May 2005 From: somewhere else |
anyone try install scr21u at win7 not?
my driver can't installed.. it said cannot start... |
| Change to: | 0.0225sec
0.86
6 queries
GZIP Disabled
Time is now: 24th December 2025 - 06:11 PM |