This section presents the basic steps to set up an execution environment for the CapNFC project. The first section shows how to install virtual COM port drivers to retrieve a simple output of received messages. The following section shows how to develop applications on the microcontroller. The last section shows an exemplary Java application that accesses the board’s virtual COM port and parses its output.
1. Virtual COM-Port communication with the CapNFC Transceiver
First download Virtual COM port installation www.ftdichip.com and install the VCP Drivers.
Installation of Virtual COM port(VCP) drivers can be done by downloading the installation file from the website http://www.ftdichip.com/Drivers/VCP.htm where you can choose the drivers based on your operating system. You can also install the file from the executable file available in the comments section of the given link. Connect the device to the USB port,the LED on the device should glow to indicate its active. VCP drivers can be enabled by going to Start >> right click on computer option >> go to manage >> go to device manager >> go to Ports (COM and LPT) >> right click on the available option and click on the properties. There you can click on update driver software and then install the driver software by giving the path name. After the driver is installed proceed to the PUTTY installation.
Installation of PUTTY to configure the USB port can be done by downloading ”‘putty.exe” file at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. Since the USB port has to be configured to connect a USB to serial converter, we need to connect the device to the USB port and configure it using PUTTY terminal. Before configuration we need to know the port number to enter into the putty terminal. We repeat the same steps as given in the figure 2 and note down the COM number to enter it in the PUTTY terminal. After entering the COM number by choosing serial option in PUTTY and enter the speed value as given in the figure 2, we click on open in PUTTY terminal to open the COM port.
2. Firmware Development for CapNFC Tags and Transceivers
In order to program your transceiver board, or the tag, a simply MSP430 Launchpad board is required. It provides an SPI-by-wire interface to program both boards. Simple connect the TST and RST pin to the corresponding pins on either of the two boards instead to the microcontroller on the Launchpad. Now you are ready for CapNFC programming!
Texas Instruments(TI) controlSUITE can be downloaded from the TI website http://www.ti.com/tool/controlsuite where you can click on the ”‘Get Software” button. You need to create an User account at TI website to download this software. You can also download the technical document and have a brief introduction on TI controlSUITE by looking at the video given in the above mentioned website.
Installation of TI code composer studio can be done either from controlSUITE folder by running the controlSUITE application or by downloading the file from the following website http://processors.wiki.ti.com/index.php/Download_CCS. You can download the software by clicking on the windows installer button given on the website and then filling out the download approval form from TI. After you submit the form you get a confirmation from TI, you can download and install code composer studio.
After CCS has been installed,you can make use of TI Resource Explorer and then import the project from the folder you have written your project. Click on import project button and then add the project folder and press finish button as shown in the figure 3.
After the project folder is imported, go to project tab and click on build all option as shown in the figure 4 or right click on project file and select build project. The project is burnt into the controller after build is finished as shown in the figure 5.