Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


I need to Send and read Hex codes to a RS-232 RFID card writer/reader.

So when i have send a 'Read' command the RFID reader, it gives the result of what is in the RFID card.

I also need to 'poll' every second to see if there is a card in the reader. If there is a card i need to send a read command so i can read out the data in the card.

Can anyone give me the best solution how to send and read Hex data thru RS232 ports

The code's i need to send/receive are Hex format.


Thanks


Didier
Posted

1 solution

There is no such thing as "Hex format". You read and write byte values.

RFID devices like that usually have an SDK available for them that takes care of the low-level stuff you're asking about. Contact the manufacturer of the reader/writer for more information.

If not, you'd use the SerialPort class to read and write values to the serial port the device is connected to.

You can find examples of such here[^]. Just don't expect to find examples specific to your device.
 
Share this answer
 
Comments
Luiey Ichigo 2-May-13 10:25am    
I also have the develop a money changing note module to give change for any exceed payment. My module manufacturer don't give me SDK but they give test program and D-Level spec. It's hard to program it. Takes 3 days to understand and 1 week development
Dave Kreskowiak 2-May-13 17:04pm    
First, you're responding to a two and half year old post.

Second, you're response has absolutely nothing to do with this post or my response.

Third, don't try and hyjack another post. If you have a question (I didn't see one in what you wrote), go to the Discussions menu and pick the forum that best suits your question and post it there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900