Trying to get OpenPCD working
Ivan Frank
ivan.frank at gmx.de
Sat Jan 3 18:48:36 UTC 2009
Hello.
I try to get my Open-PCD device to work.
I installed Fedora 10 in a Virtual Machine and followed the "Getting start" and...
1. After I connected the USB-Interface and called "lsusb" I get:
Bus 002 Device 002: ID 16c0:076b VOTI OpenPCD 13.56MHz RFID Reader
and in details:
Bus 002 Device 002: ID 16c0:076b VOTI OpenPCD 13.56MHz RFID Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 8
idVendor 0x16c0 VOTI
idProduct 0x076b OpenPCD 13.56MHz RFID Reader
bcdDevice 0.30
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 57
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 255
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 255
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 1
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 1
iInterface 0
Device Status: 0x0000
(Bus Powered)
My output is different from the Wiki-code
2. I installed this libs/tools (The version numbers i copied from the "Package Manager for GNOME". Maybe the several libs/tools are a part of Fedora10 distribution):
- automake-1, automake14-1.4p6-17, automake15-1.5-25, automake16-1.6.3-14 and automake17-1.7.8
- libtool-1.5.26-4, libtool
- libusb-0.1.12-20, libusb-devel-0.1.12-20, libusb1-0.9.3-0.1, libusb1-devel-0.9.3-0.1
- libcurl-7.18.2-9, libcurl-devel-7.18.2-9
3. After installing librfid i tried to run the librfid-tool:
[root at opcd-fed-host utils]# ./librfid-tool -s
lt-librfid-tool - (C) 2005-2008 by Harald Welte
This program is Free Software and has ABSOLUTELY NO WARRANTY
initializing librfid
opening reader handle OpenPCD, CM5x21
No OpenPCD found
No Omnikey Cardman 5x21 found
After reconnecting the USB-Devise i get:
[root at opcd-fed-host utils]# ./librfid-tool -s
lt-librfid-tool - (C) 2005-2008 by Harald Welte
This program is Free Software and has ABSOLUTELY NO WARRANTY
initializing librfid
opening reader handle OpenPCD, CM5x21
scanning for RFID token...
[root at opcd-fed-host utils]#
Next runs fails again:
initializing librfid
opening reader handle OpenPCD, CM5x21
No OpenPCD found
No Omnikey Cardman 5x21 found
Run with another parameter also not worked.
I tried to print a handle: 1st run the handle is legal, else the handle is = 0
The same behaviour is by using the opcd_test -tool:
first run after reconnecting the OpenPCD device:
[root at opcd-fed-host host]# ./opcd_test -n
opcd_test - OpenPCD Test and Debug Program
(C) 2006 by Harald Welte <laforge at gnumonks.org>
TX: (8): 03 01 00 01 00 00 00 00
SERIAL: (4): af ca f2 59
each next run...
[root at opcd-fed-host host]# ./opcd_test -n
opcd_test - OpenPCD Test and Debug Program
(C) 2006 by Harald Welte <laforge at gnumonks.org>
TX: (8): 03 01 00 01 00 00 00 00
The same behaviour is on a Ubuntu8.10-VM, real Ubuntu, real Fedora10.
I tried to run the librfid on a Windows Machine (WinXP Pro SP3 German), it is nearly the same behaviour. After the reconnect the device works (but not always) sometimes the handle is NULL and this produce a exception.
By Using a Live Boot CD it works fine. (also in a VM)
What is wrong here?
Ivan
--
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
More information about the openpcd-devel
mailing list