This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

NFC Reader with RaspberryPi GPIO

If you read my postings about NFC Reader, you know that I use an USB TTL module for the communication with my NFC Reader (UART mode). If you don't own such a module, it's not a big problem to connect the reader with GPIO pins of your RaspberryPi.

How?

Change /boot/cmdline.txt, from:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1

to

dwc_otg.lpm_enable=0 console=tty1

Change /etc/inittab, from:

#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

to

#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Reboot your Pi.

Connect the Reader with following PINs:

GND -> PIN 6
TxD -> PIN 10 (= GPIO 15)
RxD -> PIN 8 (= GPIO 14)
VCC -> PIN 1 (3,3V) or PIN2 (5,5V)

(GPIO PIN overview)

Use serial port with the name /dev/ttyAMA0 for RxTx and configure RxTx e.g. -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0.

Successfully tested with eNFC.

Vaadin 7 beta11 javadoc

Vaadin 7 is still in beta phase. Thats not really a problem, but you don't find a source and/or javadoc archive? Maybe the archives are available, but I couldn't find them!

The source code is available here and in README.TXT you'll find a link to Git of v7.

The heads section contains a link to beta11. Download a snapshot from there and you'll get most source files.

To generate your own javadoc, you'll need some library (jar) files. Simply download complete Vaadin 7.0.0 beta11 archive. This archive contains a lib directory.

Let's create the javadoc

Extract your downloaded source snapshot (e.g. D:\Temp\vaadin-7.0.0.beta11) and create a libs sub-directory. Extract all libraries from beta archive into this directory. Download additional libraries: Portlet API, Servlet API and GWT. (you'll need gwt-servlet.jar and gwt-user.jar). Copy all jar files into the libs directory.

I used following ant task to generate my javadoc:

<target name="vaadin.javadoc">
  <property name="vaadin" location="D:/temp/vaadin-7.0.0.beta11"/>
  <property name="doc" location="${vaadin}/javadoc"/>
  <property name="doc.src" location="${vaadin}/allsrc"/>
  <delete dir="${doc}" />
  <delete dir="${doc.src}" />
  <copy todir="${doc.src}">
    <fileset dir="${vaadin}/client/src/" />
    <fileset dir="${vaadin}/server/src" />
    <fileset dir="${vaadin}/shared/src" />
  </copy>
  <javadoc packagenames="*"
            sourcepath="${doc.src}"
            destdir="${doc}"
            author="false"
            version="false"
            use="true"
            windowtitle="Vaadin 7.0.0 beta 11 (temporary)"
            source="1.6"
            encoding="UTF-8">
    <classpath>
      <fileset dir="${vaadin}/libs">
        <include name="**/*.jar" />
      </fileset>
    </classpath>
    <doctitle>
      <![CDATA[<h1>Vaadin 7.0.0 beta 11 (temporary)</h1>]]>
    </doctitle>
    <bottom>
      <![CDATA[Manually built]]>
    </bottom>
      <link href="http://docs.oracle.com/javase/6/docs/api/" />
      <link href="http://java.sun.com/j2ee/1.4/docs/api/" />
      <link href="http://google-web-toolkit.googlecode.com/svn/javadoc/latest/" />
    </javadoc>
    <jar destfile="${vaadin}/vaadin-7.0.0-beta11-javadoc.jar">
      <zipfileset dir="${doc}" />
    </jar>

Customize the "location" parameter of the properties and use jdk6 or jdk7 to execute the task.

Source code is available in allsrc directory and javadoc is available in javadoc directory or as zip archive.

Good luck and have fun ;-)