I am creating a project that uses an HID OEM75 as the access point for the locking mechanism. We are working with an Arduino Duemilanove (ATmega 328) to control our security and (apparently). (I know that there is too much security in any RFID chip.)
I am currently struggling to get the bytes from the card reader through SPI.
The card reader is in autonomous reading mode, which means that it reads a card, Arduino sends a signal to the card (which separates the SDI from the current line), which is the card reader with the transfer cycle To activate the slave tells Arduino to pull the selection line. This is where I have to walk into trouble, I can not understand how can I get Arduino to read the bytes coming out of the card reader without sending any command bytes in the card reader?
The default command structure, SPI.transfer (0x00), sends a byte (in this case dummy byte 0x00) and then accepts a byte from the source, but because our source is operating automatically , It will not accept the dummy byte (and it actually messed up its operation).
It's just for the word: How can we accept the use of Arduino's SPI library without sending a string of bytes from the slave source, by sending the bytes from the master source?
If I am not mistaken, then changing the slave to a dummy byte, using the SPI bus Incoming byte USB HID host driver for Windows.
Comments
Post a Comment