How to delete my avatar?
Reading smartcard with VisualBasic
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Visual Basic Programming > Reading smartcard with VisualBasic 3 March 2008 19:52:10

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Reading smartcard with VisualBasic

Fulcro 3 March 2008 19:52:10
 Hello.
I'm developing an app to store credits on smartcard, in order to make the
owner gain points for presents. I would to increase o decrease the credits
by ISO instructions passed by a Smartmouse/Phoenix cardreader to the card
itself. I wrote a simple procedure some time ago, but unfortunately its gone
lost for hard-disk problems... Now I'm collecting information on serial port
communications applied to smartcards but I can't find anything that really
help me...
I would:
- reset the card and receive the ATR, recognizing the card
- send ISO instructions to the card (e.: C1 16 00 00)
- receive the answer of the card e the Status Byte (e.: C1 16 00 00 2A
90 00)

I'm stuck on ATR request...
I'm using the MSCOMM control, and the code is:

MSComm1.CommPort = 1 'Com port 1
MSComm1.Settings = "9600,N,8,1"
MSComm1.InputLen = 0 'Max length for
receiving stream
MSComm1.PortOpen = True 'Open COM1

DataString = MSComm1.Input
For t = 1 To Len(DataString)
HexString = HexString + Right$("0" + Hex(Asc(Mid$(DataSt­ring, t, 1))) &
" ", 3)
Next t
List1.AddItem DataString
MSComm1.PortOpen = False


The string I'm tryng to receive is always empty...
Anyone has an example to show?
The programmers is a common Smartouse/Phoenix, the card is intended to be a
Goldcard (PIC16F84+24C16).
I'm testing the code with digital satellite cards, GSM cards and
custom-programmed cards., but I can't reach an answer from them!
Please help me...
Fulcro


Add comment
yurik 3 March 2008 19:52:10 permanent link ]
 I was wondering If you actually solved your problem, because I am doing exactly the same project with PIC16f84. Please respond as soon as possible.
Thanks in advance
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Visual Basic Programming > Reading smartcard with VisualBasic 3 March 2008 19:52:10

see also:
Synopsis 4 draft 1
S5 tr concern
Still about subroutines...
пройди тесты:
see also:
Harvest your surprise on Thanksgiving…
How to convert protected and…
MelodyCan YouTube Ripper

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .