Read data from RFID reader

Hi Experts,

How to read the data from a RFID reader in VB.Net?

Thanks in advance.
RadhaKrishnaKiJayaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

frankhelkCommented:
This is a bit too vague for a precise answer - it depends completely on the type of reader and the interface it uses. I could name several possible interfaces for such devices without really need to think about (serial RS232/RS458, Ethernet (socket, http/REST, OPC, ...), CANbus, Fieldbus, parallel, other industrial interfaces), and every brand may use different interface protocols ...

As far as the information in the question reaches, I would say

read the tech specs of the reader and find out the used interface and protocol
find some code examples and/or libraries on how to access that interface (and probably the needed interace hardware)
implement the needed code or use libraries provided by the reader's manufacturer/seller to access the interace with the nedded protocol and get the data
extract the data of interest from the received code as specified in the tech specs.
0
RadhaKrishnaKiJayaAuthor Commented:
Thank you very much for your answer. But I found some solution to it.
 Dim tcpClient As New TcpClient("192.145.1.80", "10001")
            Dim netStream As NetworkStream = TcpClient.GetStream()
            If netStream.CanRead Then
                ' Reads the NetworkStream into a byte buffer.
                Dim bytes(TcpClient.ReceiveBufferSize) As Byte
                ' Read can return anything from 0 to numBytesToRead.  
                ' This method blocks until at least one byte is read.
                netStream.Read(bytes, 0, CInt(TcpClient.ReceiveBufferSize))

                ' Returns the data received from the host to the console.
                Dim ReturnData As String = Encoding.ASCII.GetString(bytes)
                TextBox1.Text = ReturnData
                RaiseEvent TCPDataIn(ReturnData)
            Else
                Console.WriteLine("You cannot read data from this stream.")
                TcpClient.Close()
                ' Closing the tcpClient instance does not close the network stream.
                netStream.Close()
                Return
            End If
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frankhelkCommented:
Fine ... seems you did follow my instruction before I've posted them ;-)

Just a additional comment:

As far as I can see that solution needs to be started prior to using the reader ... that seems to be mostly sufficient in development environments, and it doesn't take care of long telegrams and protocol details.

For a practical solution I expect the reader to be configured for contacting the host if some RFID is scanned, and that would require an open socket and some event handler stuff.
0
RadhaKrishnaKiJayaAuthor Commented:
I could able to find the solution by myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.