<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[libnfc developers community - Pynfc: Python wrapper for libnfc]]></title>
	<link rel="self" href="http://www.libnfc.org/community/feed/atom/topic/149/"/>
	<updated>2010-04-28T11:59:56Z</updated>
	<generator>PunBB</generator>
	<id>http://www.libnfc.org/community/topic/149/pynfc-python-wrapper-for-libnfc/</id>
		<entry>
			<title type="html"><![CDATA[Re: Pynfc: Python wrapper for libnfc]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/post/990/#p990"/>
			<content type="html"><![CDATA[<p>Hi Mike,<br />pynfc is great work! <br />I am looking for something like your code for a while.<br />I downloaded and compiled it and the example works well. but I can not select a MifareUltralight tag.</p><p>import pynfc<br />nfc = pynfc.nfc_initiator()<br />nfc.connect()<br />nfc.select_tag(pynfc.NM_ISO14443A_106,&quot;&quot;)</p><br /><p>-&gt; get segmentation fault<br />what is the &quot;data&quot; parameter in select_tag() for?</p><p>in meantime I found a way not go into the segmentation foault:<br />here the console output:<br />&gt;&gt;&gt; import pynfc<br />&gt;&gt;&gt; nfc = pynfc.nfc_initiator()<br />&gt;&gt;&gt; nfc.connect()<br />True<br />&gt;&gt;&gt; nfc.select_tag(pynfc.NM_ISO14443A_106, &quot;\x00&quot;)<br />&gt;&gt;&gt; nfc.get_name()<br />&#039;ACS ACR 38U-CCID 00 00 / ACR122U102 - PN532 v1.4 (0x07)\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb9\x00\x00\x00\xd0\xe32\x00\x80\xbc!\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d\x00&quot;\\e[1;5D&quot;\x00 backward-word\x00&quot;\\e[5C&quot;\x00 forward-word\x00&quot;\\e[5D&quot;\x00 backward-word\x00&quot;\\e\\e[C&quot;\x00 forward-word\x00&quot;\\e\\e[D&quot;\x00 backward-word\x00\x00$if&#039;</p><p>but it don&#039;t deliver the </p><p>regards Thomas</p>]]></content>
			<author>
				<name><![CDATA[thomasrichter]]></name>
				<uri>http://www.libnfc.org/community/user/116/</uri>
			</author>
			<updated>2010-04-28T11:59:56Z</updated>
			<id>http://www.libnfc.org/community/post/990/#p990</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Pynfc: Python wrapper for libnfc]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/post/836/#p836"/>
			<content type="html"><![CDATA[<p>Hi everybody,</p><p>Just to let you know that I&#039;ve started a project called pynfc, designed to offer python bindings for the libnfc code.&nbsp; They currently offer good support transceiving both bits and bytes in an intuitive fashion as both initiator and responder.&nbsp; It comes with a small amount of example code that will offer a Mifare read request for a block, and verify the that the returned tag nonce is as expected.</p><p>It currently doesn&#039;t offer the full support that libnfc does, most notably it works primarily with 14443A tags only (although adding support for other card types shouldn&#039;t be difficult, I don&#039;t really have any others to test out).&nbsp; It also currently won&#039;t allow choosing which reader to read from, since that was all added in libnfc-1.3.3 and I haven&#039;t had time to catch up on it.&nbsp; 5:)</p><p>Requirements:<br />&gt;= python-2.6<br />&gt;= libnfc-1.3.1</p><p>Website &amp; Bug tracker:<br /><a href="http://pynfc.googlecode.com/">http://pynfc.googlecode.com/</a></p><p>If you&#039;d like to help work on the code, or have any problems with it, do feel free to get in touch with me (or file a bug report).&nbsp; Hope it&#039;s of some use...</p><p>Mike&nbsp; 5:)</p>]]></content>
			<author>
				<name><![CDATA[ikelos]]></name>
				<uri>http://www.libnfc.org/community/user/40/</uri>
			</author>
			<updated>2010-03-01T15:33:36Z</updated>
			<id>http://www.libnfc.org/community/post/836/#p836</id>
		</entry>
</feed>

