Hi hiviah, thanks for your answer.
Sadly, I'm still struggling to receive the ndef message.
I cannot get opensc to work, because libpcsc-lite does not seem to support my reader.
Code:
00000008 configfile.l:298:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000088 readerfactory.c:978:RFInitializeReader() Attempting startup of ADRB 00 00 using /usr/lib/pcsc/drivers/serial/libccidtwin.so
00000078 readerfactory.c:868:RFBindFunctions() Loading IFD Handler 3.0
00000029 ifdhandler.c:1840:init_driver() Driver version: 1.4.9
00000486 ifdhandler.c:1857:init_driver() LogLevel: 0x0003
00000008 ifdhandler.c:1868:init_driver() DriverOptions: 0x0000
00000089 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: /dev/ttyUSB0
00001413 ccid_serial.c:744:OpenSerialByName() Set serial port baudrate to 115200 and correct configuration
00001751 ccid_serial.c:252:ReadSerial() Got 0x00
00000009 ccid_serial.c:767:OpenSerialByName() Get firmware failed. Maybe the reader is not connected
00000363 ifdhandler.c:117:CreateChannelByNameOrChannel() failed
00000011 readerfactory.c:1009:RFInitializeReader() Open Port 0x0 Failed (/dev/ttyUSB0)
00000005 readerfactory.c:312:RFAddReader() ADRB init failed.
00000011 readerfactory.c:529:RFRemoveReader() UnrefReader() count was: 1
00000006 readerfactory.c:1029:RFUnInitializeReader() Attempting shutdown of ADRB 00 00.
00000004 readerfactory.c:905:RFUnloadReader() Unloading reader driver.
00000034 pcscdaemon.c:525:main() pcsc-lite 1.8.6 daemon ready.
I've asked Identive for the pcsc driver (I'm unable to find it on their website.).
Rfidiot seems to work with libnfc, but also fails
Code:
$ rfidiot-cli.py -d -R READER_LIBNFC apdu 00 a4 04 00 07 "D2760000850101" "00" apdu 00 a4 00 0c 02 "E104" "" apdu 00 b0 00 00 "" "" 00
*** Warning - no pyscard installed or pcscd not running
2013-07-11 19:13:04,356: DEBUG - Loading libnfc.so.4
2013-07-11 19:13:04,357: DEBUG - libnfc libnfc-1.7.0-rc7-39-g18fe330
2013-07-11 19:13:04,357: DEBUG - NFC Readers:
LibNFC ver libnfc-1.7.0-rc7-39-g18fe330 devices (1):
No: 0 arygon:/dev/ttyUSB0 00V6.6
2013-07-11 19:13:04,609: DEBUG - Connecting to NFC reader number: None
2013-07-11 19:13:04,725: DEBUG - Opened NFC reader arygon:/dev/ttyUSB0 00V6.6
2013-07-11 19:13:04,726: DEBUG - Initing NFC reader
2013-07-11 19:13:04,893: DEBUG - Configuring NFC reader
rfidiot-cli v0.1 (using RFIDIOt v1.0e)
2013-07-11 19:13:05,153: DEBUG - Powered down field
2013-07-11 19:13:05,183: DEBUG - Powered up field
Reader: LibNFC arygon:/dev/ttyUSB0 00V6.6
Sending APDU: 00A4040007D276000085010100
In send_apdu - for libnfc: 00A4040007D276000085010100
2013-07-11 19:13:05,183: DEBUG - Sending 13 byte APDU: 00a4040007d276000085010100
2013-07-11 19:13:05,226: DEBUG - APDU rxlen = -2
2013-07-11 19:13:05,226: ERROR - Error sending/receiving APDU
Traceback (most recent call last):
File "/usr/local/bin/rfidiot-cli.py", line 155, in <module>
if card.send_apdu('','','','',cla,ins,p1,p2,lc,data,le):
File "/usr/local/lib/python2.7/dist-packages/rfidiot/RFIDIOt.py", line 1466, in send_apdu
self.data = result[0:-4]
TypeError: 'int' object has no attribute '__getitem__'
2013-07-11 19:13:05,229: DEBUG - Deconfiguring NFC reader
2013-07-11 19:13:05,289: DEBUG - Disconnected NFC reader
So i tried to 'manually' send the apus with libnfc's "nfc_initiator_transceive_bytes", because the manual says "The contact-less (NFC) mode of operation is automatically enabled when the device is not plugged into the USB port. In NFC mode, the device exposes a ISO14443A interface, supporting the ISO14443-4 (T=CL) protocol. The command set is identical to the CCID mode of operation." Should this work?
Unitl now, I have had no success, but I'm working on it.