8
Copyright © 2011 Future Technology Devices International Limited
Document Reference No.: FT_000550
Vinco Ethernet MP3 RTCShield Datasheet 1.0
Clearance No.: FTDI#256
4 Firmware
Firmware libraries and sample applications code to demonstrate using this Shield with the Vinco
baseboard are available for download with the VNC2 IDE from Toolchain revision 1.4.2 onwards (VNC2
tools). Please refer to section 3 of AN_142 Vinculum-II Tool Chain Getting Started Guide or section 4 of
AN_138 Vinculum-II Debug Interface on how to load, build, program and debug the sample applications
on the VNC2 device.
4.1 Ethernet Sample Application
There are 2 ethernet sample applications called TCP.vproj and UDP.vproj. Both applications
demonstrarate the use of the Ethernet library and the Vinco Shield.
4.1.1 TCP Sample Application
The “TCP” application turns the Vinco board into a TCP server that accepts incoming connections. When a
connected client sends a message “On!” to the Vinco board, the on-board LED1 is turned on and a
message “LED On!” is sent back to the client. When the client sends a message “Off!” to the Vinco board,
the on-board LED1 is turned off and a message “LED Off!” is sent back to the client.
Setup:This application uses the Ethernet/MP3/RTC shield mated with the Vinco module and a Host PC
installed with the VNC2 IDE. The Vinco module consists of a J7 connector which connects with the
VNC2 debugger/programmer module, (also available from FTDI), this allows the IDE running on the PC to
communicate with the VNC2 debugger port. The debugger module can also be used to load/program the
ROM file created by the IDE into the VNC2 Flash memory.
Depending on the local network configuration, an Ethernet switch or router may be needed to connect the
Ethernet/MP3/RTC Shield to the network via CN1, RJ45 Ethernet connector. The PC should also be
installed with a TCP client software (such as Tera Term) and connected to the network to send messages
to the board. If Tera Term is used, the settings should be set as follow:
Host: < The IP address of the Ethernet shield in the network >
Service: Other
TCP port: 80
Protocol: IPv4
Please note that no external circuit is needed to run this application
4.1.2 UDP Sample Application
The “UDP” sample application configures the Vinco board to accept incoming UDP connection. When a
peer sends a message "On" to the Vinco board, the on-board LED1 is turned on and the message "LED
On!" is sent back to the sender. When the peer sends the message "Off" to the Vinco board, the on-board
LED1 is turned off and the message "LED Off!" is send back to the sender.
Setup:This application uses the Ethernet/MP3/RTC shield mated with the Vinco module and a Host PC
installed with the VNC2 IDE. The Vinco module consists of a J7 connector which connects with the
VNC2 debugger/programmer module, (also available from FTDI), this allows the IDE running on the PC to
communicate with the VNC2 debugger port. The debugger module can also be used to load the rom file
created by the IDE into the VNC2 chip.
Depending on the local network configuration, an Ethernet switch or router may be needed to connect the
Ethernet/MP3/RTC Shield to the network via CN1, RJ45 Ethernet connector. The PC should also be
installed with a UDP client software (such as UDP Win Chat) and connected to the network to send
messages to the board. Please note that no external circuit is needed to run this application.