修改 decard 接口,调用 dc_pro_commandlinkEXT 接口
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 7348392..b119efb 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.3 (/usr/local/bin/python2.7)" project-jdk-type="Python SDK" />
+  <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.5 (/usr/local/bin/python2.7)" project-jdk-type="Python SDK" />
 </project>
 
diff --git a/.idea/pyutils.iml b/.idea/pyutils.iml
index a34a857..cb7a849 100644
--- a/.idea/pyutils.iml
+++ b/.idea/pyutils.iml
@@ -5,5 +5,12 @@
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
   </component>
+  <component name="PyDocumentationSettings">
+    <option name="myDocStringFormat" value="Plain" />
+  </component>
+  <component name="TestRunnerService">
+    <option name="projectConfiguration" value="Unittests" />
+    <option name="PROJECT_TEST_RUNNER" value="Unittests" />
+  </component>
 </module>
 
diff --git a/tcutils/pyDecard.py b/tcutils/pyDecard.py
index a8cece3..5baa54c 100644
--- a/tcutils/pyDecard.py
+++ b/tcutils/pyDecard.py
@@ -153,10 +153,13 @@
 

     def _do_apdu(self, command):

         response = create_string_buffer('\000' * 256)

-        resplen = c_char('\000')

+        # resplen = c_char('\000')

+        resplen = c_int('\000')

         if self.card_mode == 'contactless':

             py_decard.dll_handle.dc_pro_commandlink.restype = c_short

-            ret = py_decard.dll_handle.dc_pro_commandlink(py_decard.device_handle, len(command),

+            # ret = py_decard.dll_handle.dc_pro_commandlink(py_decard.device_handle, len(command),

+            #                                       command, byref(resplen), response, 7, 56)

+            ret = py_decard.dll_handle.dc_pro_commandlinkEXT(py_decard.device_handle, len(command),

                                                   command, byref(resplen), response, 7, 56)

         else:

             ret = py_decard.dll_handle.dc_cpuapdu(py_decard.device_handle, len(command),