Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing to RFID tags

807603Oct 28 2004 — edited Jan 29 2008
I am working on an RFID project. I have been able to read from the tags successfully using javax.comm API, but writing has become an issue.

All the communication part with the RFID reader has to be done in binary format.
The RFID readers protocol specifies that if I want to get the version of the Reader, then the request has to be sent like this..

Request: 0x02 0x00 0x01 0x00

and the response will be

Response: 0x02 0x00 0x01 0xnn 0xXX 0xYY 0xZZ 0xvv 0x0D 0x0A (name of
reader) 0x0D 0x0A (Version string) 0x0D 0x0A


I am sure sure how I can implement this...what type of outputStream would be the best choice.
Should I write the command individually in byte or send a byteArray.

Please Suggest.

Thanks in advance...








Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2008
Added on Oct 28 2004
12 comments
364 views