Using 2 or more readers

Supporting Visual Studio on Windows
littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Using 2 or more readers

Postby littlesun1990 » Tue Apr 24, 2012 3:52 am

Hi ... Currently my program will run 2 and more readers.

I meet some problem when i retrieve reader's serial number from the reader.

lblreaderserialno.Text = phidgetRFID.ID()

in my lblreaderserialno.Text i do get the value but if i plug in 2 readers at the same time to my laptop.

How i know which serial number is belongs to which reader?

Please help me.

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: Using 2 or more readers

Postby burley » Tue Apr 24, 2012 7:41 am

Unfortunately there is only one way of doing this currently in a consistent manner. You need to use some sort of convention when connecting your devices to the system i.e. always use the device with the lowest serial number for task A.

If you are using a Mac or Linux system (I assume you aren't since you are using VB.NET) you can use the label property to do this in a much nicer fashion, though the setting the label is not currently available on Windows computers.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Re: Using 2 or more readers

Postby littlesun1990 » Tue Apr 24, 2012 10:24 am

If i plug in 2 readers. In here how can i active both reader together? As far as i know, i can only activate one reader per time. Is it any solution of this?

Can i do

phidgetRFID = New Phidgets.RFID

phidgetRFID.open()

2 time ? So i represent the two reader connection is open.

littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Re: Using 2 or more readers

Postby littlesun1990 » Tue Apr 24, 2012 10:29 am

And i check the phidgets getting started pdf, from there i found

Working with multiple Phidgets
Multiple Phidgets of the same type can easily be run inside the same program. In our case, it
requires another PhidgetInterfaceKit instance to be defined and initialized. The new instance can then
be set up, opened and used in the same process as the previous one.
If the application needs to distinguish between the devices, open can be called with the serial
number of a specific Phidget.

What mean PhidgetInterfaceKit?
Got any example?

Sorry for taking your time because i just receive phidget device few weeks ago and start to research on it to do my Final Year Project.

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: Using 2 or more readers

Postby erik » Tue Apr 24, 2012 12:31 pm

PhidgetInterfaceKit is simply a different product. You would use the PhidgetRFID, but that example is using the PhidgetInterfaceKit.

You will need to give them both a different name when you initialize them.

Code: Select all

phidgetRFID1 = new Phidget.RFID;
phidgetRFID2 = new Phidget.RFID;

phidgetRFID1.open(1341);
phidgetRFID2.open(7767);


The different numbers will be the different serial numbers on each RFID that you are using. There is a sticker on the bottom of the board that will tell you which serial number.

littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Re: Using 2 or more readers

Postby littlesun1990 » Thu Apr 26, 2012 6:14 am

How can i detect how many readers is connect to my laptop ?
Is there a possible to use coding to detect it?

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: Using 2 or more readers

Postby burley » Thu Apr 26, 2012 7:18 am

Try using the Phidget manager. It can return a list of every Phidget device attached to the machine.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Re: Using 2 or more readers

Postby littlesun1990 » Mon May 21, 2012 7:38 am

How to use the devices member inside the manager ? Can you show me some sample code ? i got phidget website . After i will i no really understand it.
I am trying to list out all detected reader' serialnumber in a textbox.

Can you show some example please. I am new in vb

littlesun1990
Phidgetsian
Posts: 8
Joined: Tue Apr 24, 2012 3:45 am
Contact:

Re: Using 2 or more readers

Postby littlesun1990 » Tue May 22, 2012 3:27 am

Hi . I manage to use the devices function.

I am trying to scan a tag on reader A.

Can i get the reader serial number when a tag is scan ?


Return to “VB .NET”

Who is online

Users browsing this forum: Google [Bot] and 1 guest