LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i connect my rfid reader with labview via tcp/ip

Hi,

i have a RFID Reader FEIG LRU 3000 and i want to control it via Labview. How can I build this communication?

0 Kudos
Message 1 of 10
(5,567 Views)

You will need to register with the vendor web site, and download the device documentation or programmer's guide (not the brochure).

 

LabVIEW has TCP/IP and UDP functions to get you talking, but you need to understand the communication protocol used by the reader.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 10
(5,518 Views)

I am registered and all documents and programmer*s guide are downloaded.

 

I know TCP / IP and UDP functions.I could not build up connection with the sample Codes of NI. 

 

What I need to understand exactly abaut the communication protocol used by the Reader

The device/Dreiver is installed on my PC. A connection is possible with the company software via USB and TCP / IP over Network.

 


But with Labview I can not build a connection with TCP/IP functions. 

0 Kudos
Message 3 of 10
(5,498 Views)

Hi!

I guess you have to open a connection with the reader and then exchange commands and answers with it.

Of course you need to know the communicaton protocol.

Is there no info on the manuals?

What's in the programmer's manual?

 

Marco

 

 

0 Kudos
Message 4 of 10
(5,493 Views)

Exactly, I would like to exchange data between the reader and the PC. There is also a small demo program on the web page for reading and writing of transponders.
It is a DLL file.

 

Also there is a very detailed manual for the communication protocol and host commands. There are protocols such as [0x1] to [0x95]. But I do not understand the content. There are protocols for Reader Conrol and Configuration, protocols for Host commands. The manual is in the notes.

Can I integrate and expand the DLL file?

 

Thank you very much

0 Kudos
Message 5 of 10
(5,472 Views)

Here is the structure. All DLL`s are downloaded.

0 Kudos
Message 6 of 10
(5,448 Views)

Hi ChE61,

 

there is a way to call DLL's

I Hope the following links can help you

 

Calling a C-built DLL in LabVIEW to Generate and Sort an Array of Numbers

http://zone.ni.com/devzone/cda/epd/p/id/1513

 

Calling C/C++ DLLs Containing Simple and Complex Datatypes from LabVIEW

https://decibel.ni.com/content/docs/DOC-9079

0 Kudos
Message 7 of 10
(5,422 Views)

The DLL is not the way to go.  You will not find it any easier to use that, then to implement the communication protocol yourself.

 

Start on pages 18 and 19 of the document.  The protocol frame is described there.

 

Length = n  This should be the total number of byte in your message

COM-ADDR  This is the address of the reader you want to talk to

CONTROL-BYTE  This is the command you want to send

DATA  This is the data that goes along with the command

LSB CRC16  This is the least significant byte ofthe checksum

MSB CRC16  This is the most significant byte of the checksum

 

The pages following page 19 explain all of this, including how to calculate the CRC16

 

What you need to do is develop a vi that builds your command message from a set of inputs.  Obviously, length will be the last value, since you don;t know the message length until you have your data ready.

 

You will make heavy use of the Numeric/Conversion and Numeric/Data Manipulation palettes to do all of this.  You will also need to cast string data as U8 arrays in many cases where plain text must be sent.

 

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 8 of 10
(5,409 Views)

Thank you all. I'm working on a vi.

You've helped me. I'm trying to replicate the protocol Frame as vi and passed via NI-VISA on device.
I will report back
, if there are many problems.

0 Kudos
Message 9 of 10
(5,365 Views)

Hi,

Ni VISA did not work. I have produced the connection with TCP / IP functions. Just TCP / IP client.

0 Kudos
Message 10 of 10
(5,273 Views)