1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6 <TITLE>NET sample demo programs</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10 11<h1>NET Sample Demos</h1> 12 13<h2>Location</h2> 14<p> 15<code>$REVOLUTION_EXT_ROOT/build/demos/netdemo</code> 16</p> 17 18<H2>Compilation</H2> 19<p> 20Move to the <code>$REVOLUTION_EXT_ROOT/build/demos/netdemo</code> directory, and enter type <code>make</code>. An executable file (<code>.elf</code> file) will be generated in the path <code>$REVOLUTION_EXT_ROOT/RVL/bin/demos/netdemo/</code>. 21</p> 22 23<H2>Execution</H2> 24<p> 25Change to the <code>$REVOLUTION_EXT_ROOT/RVL/bin/demos/netdemo</code> directory and do the following: 26</p> 27 28<ul> 29<li>To simply execute a program, run the <code>ndrun</code> script using the <code>.elf</code> file as the argument.</li> 30<li>To debug using CodeWarrior, do one of the following:</li> 31<ul> 32<li>Execute <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li> 33<li>Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag and drop the <code>.elf</code> file.</li> 34<li>If the <code>.elf</code> file is associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file.</li> 35</ul> 36 37</ul> 38 39<H2>Description</H2> 40<p> 41<TABLE border="1"> 42 <TBODY> 43 <TR> 44<TD width="120"><EM><STRONG><CODE>sostartup</CODE></STRONG></EM></TD> 45<TD width="520">This demo displays the network error codes that appear when the <CODE>SOStartup</CODE> function is called in the background and an error occurs.</TD> 46 </TR> 47 <TR> 48<TD width="120"><EM><STRONG><CODE>digest</CODE></STRONG></EM></TD> 49<TD width="520">This demo tests the appropriateness of the various hash algorithms.</TD> 50 </TR> 51 <TR> 52<TD width="120"><EM><STRONG><CODE>crypto</CODE></STRONG></EM></TD> 53<TD width="520">This demo tests the appropriateness of AES encryption.</TD> 54 </TR> 55 <TR> 56<TD width="120"><EM><STRONG><CODE>macaddr</CODE></STRONG></EM></TD> 57<TD width="520">This demo gets the MAC address of the Wi-Fi module.</TD> 58 </TR> 59 </TBODY> 60</TABLE> 61</p> 62 63<H2>See Also</H2> 64<p><a href="../toc.html" target="contents_detail">NET API</a></p> 65 66<H2>Revision History</H2> 67<P> 682007/09/06 Added the <CODE>sostartup</CODE> demo.<BR>2007/01/12 Corrected the path.<BR>2006/12/07 Initial version. 69</P>