librfid and openpcd problems
Kn1ght L0rd
kn1ghtl0rd.01 at gmail.com
Thu Jul 12 15:11:34 UTC 2007
Hello Everyone,
I'm new to the mailing list and I am having a problem setting up my OpenPCD
using librfid. My first problem is compiling the openPCD-test application.
Here is what I get when I run the make:
cc -Wall -I../firmware/include -o opcd_presence.o -c opcd_presence.c
opcd_presence.c:38:23: error: curl/curl.h: No such file or directory
opcd_presence.c: In function 'main':
opcd_presence.c:47: error: 'CURL' undeclared (first use in this function)
opcd_presence.c:47: error: (Each undeclared identifier is reported only once
opcd_presence.c:47: error: for each function it appears in.)
opcd_presence.c:47: error: 'curl' undeclared (first use in this function)
opcd_presence.c:48: error: 'CURLcode' undeclared (first use in this
function)
opcd_presence.c:48: error: expected ';' before 'res'
opcd_presence.c:50: warning: implicit declaration of function
'curl_easy_init'
opcd_presence.c:57: warning: implicit declaration of function
'curl_easy_setopt'
opcd_presence.c:57: error: 'CURLOPT_URL' undeclared (first use in this
function)
opcd_presence.c:58: error: 'CURLOPT_POST' undeclared (first use in this
function)
opcd_presence.c:87: error: 'CURLOPT_POSTFIELDS' undeclared (first use in
this function)
opcd_presence.c:88: error: 'res' undeclared (first use in this function)
opcd_presence.c:88: warning: implicit declaration of function
'curl_easy_perform'
opcd_presence.c:104: warning: implicit declaration of function
'curl_easy_cleanup'
make: *** [opcd_presence.o] Error 1
Ok, my second problem is using the librfid-tool. Here is the output I get
when I run the -s command:
lt-librfid-tool - (C) 2006 by Harald Welte
This program is Free Software and has ABSOLUTELY NO WARRANTY
initializing librfid
opening reader handle
No Omnikey Cardman 5121 found
No OpenPCD found either
When I do the lsusb I see this:
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 002: ID 16c0:076b
Bus 001 Device 001: ID 0000:0000
And then when I do the -v -d on the device I see this:
Bus 001 Device 002: ID 16c0:076b
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
idProduct 0x076b
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)
^[[A 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
cannot read device status, Operation not permitted (1)
I noticed that none of this matches what is on the site. Any help would be
greatly appreciated. I am running this on and openSUSE 10.2 install.
Thanks
Kn1ghtl0rd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openpcd.org/pipermail/openpcd-devel/attachments/20070712/bb391d60/attachment.htm
More information about the openpcd-devel
mailing list