enet_io

所属分类:TCP/IP协议栈
开发工具:C/C++
文件大小:1896KB
下载次数:11
上传日期:2014-10-20 16:36:02
上 传 者xioayuner
说明:  enet_io TI Cortex-M4系列 LWIP+TCP通信。 好的代码。
(enet_io TI Cortex-M4 LWIP+TCP)

文件列表:
enet_io\ccs\.ccsimportspec (1132, 2014-10-17)
enet_io\ccs\.ccsproject (320, 2014-10-17)
enet_io\ccs\.cproject (26624, 2014-10-17)
enet_io\ccs\.project (3024, 2014-10-17)
enet_io\ccs\.settings\org.eclipse.cdt.codan.core.prefs (62, 2014-10-17)
enet_io\ccs\Debug\enet_io.bin (161904, 2014-10-17)
enet_io\ccs\Debug\enet_io.out (914730, 2014-10-17)
enet_io\ccs\macros.ini_initial (26, 2014-10-17)
enet_io\ccs\target_config.ccxml (1084, 2014-10-17)
enet_io\cgifuncs.c (18395, 2014-10-17)
enet_io\cgifuncs.h (2158, 2014-10-17)
enet_io\ekc-lm4f232-rom.ld (6118, 2014-10-17)
enet_io\enet_io.c (32407, 2014-10-17)
enet_io\enet_io.ewd (16869, 2014-10-17)
enet_io\enet_io.ewp (23096, 2014-10-17)
enet_io\enet_io.icf (2575, 2014-10-17)
enet_io\enet_io.ld (1715, 2014-10-17)
enet_io\enet_io.sct (1632, 2014-10-17)
enet_io\enet_io.sgxx (5289, 2014-10-17)
enet_io\enet_io.uvopt (13487, 2014-10-17)
enet_io\enet_io.uvproj (18012, 2014-10-17)
enet_io\enet_io_ccs.cmd (2791, 2014-10-17)
enet_io\enet_io_sourcerygxx.ld (1928, 2014-10-17)
enet_io\ewarm\Exe\enet_io.bin (157352, 2014-10-17)
enet_io\ewarm\Exe\enet_io.out (791012, 2014-10-17)
enet_io\fs\404.htm (298, 2014-10-17)
enet_io\fs\about.htm (1835, 2014-10-17)
enet_io\fs\block.htm (505, 2014-10-17)
enet_io\fs\block.jpg (50426, 2014-10-17)
enet_io\fs\dk-tm4c129x.jpg (10720, 2014-10-17)
enet_io\fs\favicon.ico (1718, 2014-10-17)
enet_io\fs\index.htm (2217, 2014-10-17)
enet_io\fs\io_cgi.ssi (7709, 2014-10-17)
enet_io\fs\io_http.htm (2978, 2014-10-17)
enet_io\fs\javascript.js (4451, 2014-10-17)
enet_io\fs\javascript_load.js (394, 2014-10-17)
enet_io\fs\overview.htm (1555, 2014-10-17)
enet_io\fs\perror.htm (2881, 2014-10-17)
enet_io\fs\styles.css (1627, 2014-10-17)
enet_io\fs\ti.jpg (7156, 2014-10-17)
... ...

Ethernet-based I/O Control This example application demonstrates web-based I/O control using the Tiva Ethernet controller and the lwIP TCP/IP Stack. DHCP is used to obtain an Ethernet address. If DHCP times out without obtaining an address, a static IP address will be chosen using AutoIP. The address that is selected will be shown on the QVGA display allowing you to access the internal web pages served by the application via your normal web browser. Two different methods of controlling board peripherals via web pages are illustrated via pages labeled ``IO Control Demo 1'' and ``IO Control Demo 2'' in the navigation menu on the left of the application's home page. In both cases, the example allows you to toggle the state of the user LED on the board and set the speed of a graphical animation on the display. ``IO Control Demo 1'' uses JavaScript running in the web browser to send HTTP requests for particular special URLs. These special URLs are intercepted in the file system support layer (io_fs.c) and used to control the LED and animation. Responses generated by the board are returned to the browser and inserted into the page HTML dynamically by more JavaScript code. ``IO Control Demo 2'' uses standard HTML forms to pass parameters to CGI (Common Gateway Interface) handlers running on the board. These handlers process the form data and control the animation and LED as requested before sending a response page (in this case, the original form) back to the browser. The application registers the names and handlers for each of its CGIs with the HTTPD server during initialization and the server calls these handlers after parsing URL parameters each time one of the CGI URLs is requested. Information on the state of the various controls in the second demo is inserted into the served HTML using SSI (Server Side Include) tags which are parsed by the HTTPD server in the application. As with the CGI handlers, the application registers its list of SSI tags and a handler function with the web server during initialization and this handler is called whenever any registered tag is found in a .shtml, .ssi, .shtm or .xml file being served to the browser. In addition to LED and animation speed control, the second example also allows a line of text to be sent to the board for display on the LCD panel. This is included to illustrate the decoding of HTTP text strings. Note that the web server used by this example has been modified from the example shipped with the basic lwIP package. Additions include SSI and CGI support along with the ability to have the server automatically insert the HTTP headers rather than having these built in to the files in the file system image. Source files for the internal file system image can be found in the ``fs'' directory. If any of these files are changed, the file system image (io_fsdata.h) should be rebuilt by running the following command from the enet_io directory: ../../../../tools/bin/makefsfile -i fs -o io_fsdata.h -r -h -q For additional details on lwIP, refer to the lwIP web page at: http://savannah.nongnu.org/projects/lwip/ ------------------------------------------------------------------------------- Copyright (c) 2007-2013 Texas Instruments Incorporated. All rights reserved. Software License Agreement Texas Instruments (TI) is supplying this software for use solely and exclusively on TI's microcontroller products. The software is owned by TI and/or its suppliers, and is protected under applicable copyright laws. You may not combine this software with "viral" open-source software in order to form a larger program. THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. This is part of revision 2.0.1.11577 of the DK-TM4C129X Firmware Package.

近期下载者

相关文件


收藏者