Hello,
I'm currently working on a project which involves a serial port RFID Reader.
I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class.
I'm doing this just to ensure that the code works and when i'm done with this i will modify the code for an iPAQ (the Reader works on COM7 on iPAQ).
The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read.
When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything.
I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix this problem as soon as possible!
Thanks a lot,
Socrates

RFID Reader Project
MarkSPA
Getting "reader model" means that connection properties are right, but some readers want a specific command to read RFID tags.
Timotei
Socrates Kapetaneas
I had the same problem: sending and receiving to/from a serial device didn't work on my ipaq rx1950. The problem was solved very simple; i used a serial autosync-cable from HP (FA122A), but this cable is a nullmodem-cable (crossed-wiring to conncet directly two computers) so I couldn't send or receive anything from my external serial device. Using a serial-throug cable made it possible to send and receive.
Because such serial-through cables with the HP 22-pin-jack are rare and expensive, i plugged two nullmodem cables together with a gender-changer: crossing twice == serial through :)
yours,
ulric
jmsigler2
Wow. Sorting through that will be tough. You are very brave and I commend you. Have you tried getting the RFID reader working on a PC It will help take the CF to RS-232 out of the mix so you can narrow down the problem to the connection of the port.
BTW have you ever considered just buying a CF RFID reader Socket makes some and they have decent APIs. You can check them out here. Also if you ever happen to want to move over an SD reader then (obligatory self-promotion) you can check out our product here
Lou Searles
The RFID Reader is RS-232. I have a CF card which has a cable that converts to RS-2323 and i have connected the Reader there.
I tried using DataReceived event, ReadByte and ReadChar but nothing happens.
When i modify the ReadTimeout to infinite the program halts (obviously he waits for data to arrive and data never arrive) and when i set it to a value of for example 3000 (3 sec) it just throws me a timeout exception after 3 sec.
The only thing that i managed to do is that when i set RtsEnable to TRUE (BytesTo Read become 9 as i said before) and then use ReadExisting() i take a value of "PC-V2.2" which is the version of the RFID Reader. This particular string is the first that appears in every packet of bytes that the reader sends (the reader sends 32bytes three times in 1 sec).
Is there any command or a property of SerialPort class that i must change (like RtsEnable) in order to start receiving the packets
Thanks for your help,
Socrates