Lowyat.NET Forums

Welcome Guest ( Log In | Register )

LYN wins Intel-Lenovo-Tangs Blogathon challenge. Thank you everybody!
3 Pages < 1 2 3 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> MyKad Application, Need to capture data, how?

830808
post Mar 17 2008, 04:08 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #41


Newbie
*

Group: Junior Member
Posts: 29
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Nov 2006





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

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fazli_Super
post Oct 25 2008, 12:19 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #42


Newbie
*

Group: Junior Member
Posts: 48
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xenon
post Oct 25 2008, 06:01 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #43


On my way
****

Group: Senior Member
Posts: 500
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2005
From: Selangor





I don't have idea, because my family don't have have MyKid.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fazli_Super
post Oct 27 2008, 05:58 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #44


Newbie
*

Group: Junior Member
Posts: 48
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
لادن
post Oct 28 2008, 06:40 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #45


Getting Started
**

Group: Junior Member
Posts: 133
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fazli_Super
post Nov 7 2008, 01:52 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #46


Newbie
*

Group: Junior Member
Posts: 48
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Aug 2008




but xenon sample was able to work !
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacq09
post Feb 26 2009, 01:28 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #47


Newbie
*

Group: New Member
Posts: 2
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xenon
post Feb 26 2009, 05:47 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #48


On my way
****

Group: Senior Member
Posts: 500
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacq09
post Feb 27 2009, 11:20 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #49


Newbie
*

Group: New Member
Posts: 2
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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!!


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ROCKEY
post Mar 31 2009, 10:41 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #50


Getting Started
**

Group: Junior Member
Posts: 119
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: May 2007




xenon is great.. thanks for the coding.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
razinq
post Apr 2 2009, 11:14 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #51


Newbie
*

Group: New Member
Posts: 4
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
christ_0205
post Apr 23 2009, 11:18 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #52


Getting Started
**

Group: Junior Member
Posts: 222
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fazli_Super
post May 1 2009, 02:55 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #53


Newbie
*

Group: Junior Member
Posts: 48
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
cybpsych
post Jun 12 2009, 04:56 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #54


---------------------
*******

Group: Senior Member
Posts: 4,988
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ttwangsa
post Aug 4 2009, 07:18 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #55


On my way
****

Group: Senior Member
Posts: 596
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

3 Pages < 1 2 3
Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 23rd November 2009 - 01:58 PM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)