
In the news... |
||
| "I was impressed with the collection of nearly two-dozen example applications. They encompass everything from the simplest Hello World demo to e-mail, Telnet, PPP, UDP, FTP, and much more. There's just no better way to learn how to do something than to see how it's done, and the examples will prove to be a helpful starting point for your own application." - Tom Cantrell | ![]() |
|

A very simple "Hello World" application intended to demonstrate the use of the NetBurner Make environment and download tools. The program will simply print "Hello World" out the debug serial port. This application does not support networking.

The PPP example shows how to setup and use a modem for a PPP connection. It supports both incoming and outgoing calls. The default modem AT command set if for a ZOOM 56k modem, but you may use any modem by modifying the AT initialization string in the code.
Telnet into the NetBurner board and communicate with a device attached to a serial port. The difference between these two examples is that the SerialBurner example adds a web page to allow device configuration. To use this sample:
Tcp2Serial Application: Anything you type on the serial terminal appears in the Telnet window, and everything you type in the Telnet window appears on the serial terminal.
SerialBurner Application: You first need to configure the baudrate and TCP port via the configuration web page. To accomplish this, use your web browser and type in the board's IP address in the URL field. Once connected, follow the instructions on the web page to perform any necessary configuration.
The telnetcmd example shows how to setup and use a command parser that authenticates users and responds to commands from the serial ports and Telnet connections.
It demonstrates:
The TicTacToe example is a multipurpose application.
It demonstrates:
Will not run on an SB72
The NewDemo example is a version of TicTacToe with more graphics and a Java Applet.
It demonstrates:
This sample application consists of two parts: the code to run on the NetBurner board, and a sample Java application that runs on a host computer (e.g. PC). Before you run this application, you need to have installed Java 1.2 or higher. The NetBurner board code is located in the nburn\examples\udp\nndk_code directory, and the host computer code is located in the nburn\examples\udp\pcjava directory.
Steps:
This example will create an FTP Server running on the NetBurner board. The FTP Server will start up and wait for a FTP client connection. The FTP Server provides two
functions:
When you create a project with web services, the HTML files and images are stored in a subdirectory named "html". This example shows how to expose the files that were in the project's html subdirectory as a read-only file system for access via FTP.
This is an advanced application and requires in-depth knowledge of FTP and FTP applications. A significant part of the complexity involved concerns navigating and displaying file names and directories.
The "FTPD code update" example program is an example of how to use a FTP server to allow application firmware updates via FTP.
To run the example:
>ftp 10.1.1.21
Connected to 10.1.1.21.
220 Welcome to the NetBurner FTP server.
User (10.1.1.21:(none)): asdf
331 User name okay, need password.
Password:
230 User logged in, proceed.
ftp> ls
200 Port Command okay.
125 Data connection already open; transfer starting.
UserFlash.s19
UserFlash.bin
Application_APP.s19
226 Closing data connection. Listing complete.
ftp: 51 bytes received in 0.00Seconds 51000.00Kbytes/sec.
The file name we are interested in is "Application_APP.s19". Uploading an image file with this file name will program that application into flash memory.
Choose any valid image file to upload. In this example we will use tictactoe_APP.s19.
The full path of the image file should be \nburn\bin\tictactoe_APP.s19. Copy tictactoe_APP.s19
to the directory you started ftp.exe, and change the name to Application_APP.s19.
For example, if I am in a directory called \myproject, I could use the command "copy \nburn\tictactoe_APP.s19 Application_APP.s19".
If tictactoe_APP.s19 is not in \nburn\bin, you will need to build it by going to the \nburn\examples\tictactoe directory and running "make".
Now that you have the file Application_APP.s19 in the same directory you are running
ftp.exe from, at the ftp> prompt type "put Application_APP.s19". After this command
executes the tictactoe application will be programmed in flash. However, the
board is still running the ftp application in SDRAM, so you won't see a change
until the board reboots.
ftp> put Application_APP.s19
200 Port Command okay.
125 Data connection already open; transfer starting.
226 Closing data connection. File transfer complete.
ftp: 184620 bytes sent in 1.16Seconds 159.16Kbytes/sec.
ftp> quit
221 Service closing control connection.
The NTPClient example will connect to a NTP server to obtain time information.The following must be set up correctly for this example to function correctly:
The fast network download capability of NetBurner devices is the quickest and easiest way to download applications into the NetBurner board. Some of the example programs were specifically designed to demonstrate applications that do not support network services. If you load one of these example programs into the NetBurner board, the next application will have to be downloaded using the serial monitor.