RE: TI-H: Re: gooooooooood morning!


[Prev][Next][Index][Thread]

RE: TI-H: Re: gooooooooood morning!




it ain't that simple - the cardreader spits out data as it is received, so
it depends on the speed of the card as it is swiped through the reader. so,
it is a variable rate. i need to poll the serial port for clock signals and
grab the data when the clock is set, i guess.

--nick

> -----Original Message-----
> From: owner-ti-hardware@lists.ticalc.org
> [mailto:owner-ti-hardware@lists.ticalc.org]On Behalf Of David Knaack
> Sent: Tuesday, January 23, 2001 1:20 PM
> To: ti-hardware@lists.ticalc.org
> Subject: TI-H: Re: gooooooooood morning!
>
>
>
> From: "Nick Foster" <zaphod@coe.neu.edu>
> > i have a magnetic card reader i ... liberated, and i
> > want to interface it to an rs-232 port. the magstripe
> > reader gives out TTL, with a clock and a data pin.
>
> Any idea at what rate the clock runs?
>
> If its something that approximates a standard rate of
> the serial port, you might be able to just directly
> connect it.  You might end up decoding the input data
> if its not RS232, which could be something of a pain
> in the ass.
>
> Alternately, if its not too fast, you could possibly
> hook it up to the parallel port.  Watch the clock
> input and poll the data line when necessary.
>
> > how would i write the C code to query the serial port and
> > convert this data into a usable form? it's purportedly ASCII
> > on the card, so that won't be an issue.
>
> If you are using windows, use the comm functions.  Unless
> you use the parallel port, then you'll have to go direct
> to the hardware (or write/find a device driver).  You just
> read and write the io ports, inp and outp in C, IIRC.
>
> DK
>
>
>




Follow-Ups: References: