473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

card reader for pocket pc

anyone got any examples of smart card reading for the pocket pc?
Nov 17 '05 #1
5 1794
What exactly are you trying to do? Just read/write a file to the card,
make sure the card is in, etc?

I've done it with an SD memory chip but not a card with an embedded
chip (smart card).

Brett

Nov 17 '05 #2
You might want to go through some archived posts to see if you're question
has already been answered...
http://groups-beta.google.com/groups...mpactframework

.... or, if you're question has not already been answered, then you may get a
guicker, more accurate, response if you post to one of the following
newsgroups...
microsoft.public.dotnet.framework.compactframework
microsoft.public.pocketpc.developer

--
Tim Wilson
..Net Compact Framework MVP

"Mortar" <a@b.com> wrote in message
news:42**************@nntp.broadband.rogers.com...
anyone got any examples of smart card reading for the pocket pc?

Nov 17 '05 #3

just want to read whats on the card
On 19 Jul 2005 08:37:17 -0700, "Brett Romero" <ac*****@cygen.com>
wrote:
What exactly are you trying to do? Just read/write a file to the card,
make sure the card is in, etc?

I've done it with an SD memory chip but not a card with an embedded
chip (smart card).

Brett


Nov 17 '05 #4
This only pertains to an SD memory card. Read from the card just as
you do from a desktop hard disk. Check if a directory exists on the
card, which you know should. If the directory isn't there, prompt the
user to insert the card. Poll that condition on a seperate thread and
prompt the user a certain number of times on the insert card condition.

Your file IO may look like this for a simple read of the first line:

public const string SD_CARD_LOCATION = @"\Storage Card";

if(Directory.Exists(SD_CARD_LOCATION))
{
StreamReader sr = null;
try
{
sr = new StreamReader(SD_CARD_LOCATION + @"\myFile");
currentDeviceId = sr.ReadLine().Trim();
}
catch(Exception)
{
}
finally
{
if(sr != null)
{
sr.Close();
}
}
}

Hope it helps.

Brett

Nov 17 '05 #5

Thanks but I'm already familiar with memory card read/writing. I
really need to know how to read from a smart card.

On 20 Jul 2005 03:17:00 -0700, "Brett Romero" <ac*****@cygen.com>
wrote:
This only pertains to an SD memory card. Read from the card just as
you do from a desktop hard disk. Check if a directory exists on the
card, which you know should. If the directory isn't there, prompt the
user to insert the card. Poll that condition on a seperate thread and
prompt the user a certain number of times on the insert card condition.

Your file IO may look like this for a simple read of the first line:

public const string SD_CARD_LOCATION = @"\Storage Card";

if(Directory.Exists(SD_CARD_LOCATION))
{
StreamReader sr = null;
try
{
sr = new StreamReader(SD_CARD_LOCATION + @"\myFile");
currentDeviceId = sr.ReadLine().Trim();
}
catch(Exception)
{
}
finally
{
if(sr != null)
{
sr.Close();
}
}
}

Hope it helps.

Brett


Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Billy Jacobs | last post by:
I have the following scenario. 1. I have a client-server application. 2. The server is running a service application. 3. The client sends and receives information to the service application...
3
by: Cherry | last post by:
I have an ID Innovation card reader that I am trying to connect to my Access database. The first problem is that when I swipe the card through the reader, it reads the id but it adds digits to the...
4
by: Lumpierbritches | last post by:
Thank you for all your help and assistance, it's greatly appreciated. Is there a way in Access, any version to capture the mag stripe information and place in appropriate textboxes? i.e. Lastname,...
4
by: Jerry Camel | last post by:
I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works great, except for the fact that no matter what field...
12
by: Jerry Camel | last post by:
Not sure if this is a good place to post this... I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works...
0
by: Simon Verona | last post by:
I'm starting to look to develop an interface to a smart card reader (to read/write the credit card style cards with a chip installed). I want this to be device independent so looking at the...
1
by: etalon25 | last post by:
Hi! I have a card reader hooked to a usb drive, and I need help on how to create a windows form with texboxes that would get the data from a card when it gets swiped in the card reader. Right now it...
1
by: =?Utf-8?B?S2F5?= | last post by:
I am running Windows XP and purchased a multi-media card reader - Aluratek AUCR200. When I plug it in and the new hardware wizard runs, it says "Cannot Install this Hardware. There was a problem...
1
by: tvnaidu | last post by:
I have USB CAC card reader, I am not getting any display, any debugging commands for USB card reader?. appreciated.
1
by: Robin Jain | last post by:
Hii I am using VB.Net 2005 I have some query which are as follow 1--How to find out that in which usb port my magnetic card reader is Connected ???? 2--How to get usb port number when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.