Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Webserver.txt 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /** \file
  2. *
  3. * This file contains special DoxyGen information for the generation of the main page and other special
  4. * documentation pages. It is not a project source file.
  5. */
  6. /** \mainpage uIP Powered Webserver Project
  7. *
  8. * \section Sec_Compat Project Compatibility:
  9. *
  10. * The following list indicates what microcontrollers are compatible with this project.
  11. *
  12. * \li Series 7 USB AVRs (AT90USBxxx7)
  13. *
  14. * \section Sec_Info USB Information:
  15. *
  16. * The following table gives a rundown of the USB utilization of this project.
  17. *
  18. * <table>
  19. * <tr>
  20. * <td><b>USB Mode:</b></td>
  21. * <td>Dual Mode Host/Device</td>
  22. * </tr>
  23. * <tr>
  24. * <td><b>USB Class:</b></td>
  25. * <td>Communications Device Class (CDC) \n
  26. * Mass Storage Device</td>
  27. * </tr>
  28. * <tr>
  29. * <td><b>USB Subclass:</b></td>
  30. * <td>Remote NDIS (Microsoft Proprietary CDC Class Networking Standard) \n
  31. * Bulk-Only Transport</td>
  32. * </tr>
  33. * <tr>
  34. * <td><b>Relevant Standards:</b></td>
  35. * <td>Microsoft RNDIS Specification \n
  36. * USBIF Mass Storage Standard \n
  37. * USB Bulk-Only Transport Standard \n
  38. * SCSI Primary Commands Specification \n
  39. * SCSI Block Commands Specification</td>
  40. * </tr>
  41. * <tr>
  42. * <td><b>Supported USB Speeds:</b></td>
  43. * <td>Full Speed Mode</td>
  44. * </tr>
  45. * </table>
  46. *
  47. * \section Sec_Description Project Description:
  48. *
  49. * Simple HTTP webserver project. This project combines the LUFA library with the uIP TCP/IP full network stack and FatFS
  50. * library to create a RNDIS host capable of serving out HTTP web pages to multiple hosts simultaneously. This project
  51. * demonstrates how the libraries can be combined into a robust network enabled application, with the addition of a RNDIS
  52. * network device.
  53. *
  54. * To use this project, plug the USB AVR into a computer, so that it enumerates as a standard Mass Storage and RNDIS composite
  55. * device. Load HTML files onto the disk, so that they can be served out to clients -- the default file to serve should be called
  56. * <i>index.htm</i>. Filenames must be in 8.3 format for them to be retrieved correctly by the webserver, and the total
  57. * requested file path must be equal to or less than the maximum URI length (\see \ref Sec_Options). Supply the included INF
  58. * file when requested on Windows machines to enable the RNDIS interface, and allow the files to be viewed on a standard web-browser
  59. * using the IP address 10.0.0.2.
  60. *
  61. * When attached to a RNDIS class device, such as a USB (desktop) modem, the system will enumerate the device, set the
  62. * appropriate parameters needed for connectivity and begin listening for new HTTP connections on port 80 and TELNET
  63. * connections on port 23. The device IP, netmask and default gateway IP must be set to values appropriate for the RNDIS
  64. * device being used for this project to work if the DHCP client is disabled (see \ref Sec_Options) - otherwise, the device
  65. * will query the network's DHCP server for these parameters automatically.
  66. *
  67. * When properly configured, the webserver can be accessed from any HTTP web browser by typing in the device's statically or
  68. * dynamically allocated IP address. The TELNET client can be accessed via any network socket app by connecting to the device
  69. * on port 23 on the device's statically or dynamically allocated IP address.
  70. *
  71. * \section Sec_Options Project Options
  72. *
  73. * The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
  74. *
  75. * <table>
  76. * <tr>
  77. * <th><b>Define Name:</b></th>
  78. * <th><b>Location:</b></th>
  79. * <th><b>Description:</b></th>
  80. * </tr>
  81. * <tr>
  82. * <td>ENABLE_TELNET_SERVER</td>
  83. * <td>AppConfig.h</td>
  84. * <td>When defined, this enables the TELNET server in addition to the HTTP webserver, which listens for incoming connections
  85. * and processes user commands.</td>
  86. * </tr>
  87. * <tr>
  88. * <td>ENABLE_DHCP_CLIENT</td>
  89. * <td>AppConfig.h</td>
  90. * <td>When defined, this enables the DHCP client for dynamic IP allocation of the network settings from a DHCP server.</td>
  91. * </tr>
  92. * <tr>
  93. * <td>ENABLE_DHCP_SERVER</td>
  94. * <td>AppConfig.h</td>
  95. * <td>When defined, this enables the DHCP server for dynamic IP allocation of the network settings to a DHCP client.</td>
  96. * </tr>
  97. * <tr>
  98. * <td>DEVICE_IP_ADDRESS</td>
  99. * <td>AppConfig.h</td>
  100. * <td>IP address that the webserver should use when connected to a RNDIS device (when ENABLE_DHCP_CLIENT is not defined).</td>
  101. * </tr>
  102. * <tr>
  103. * <td>DEVICE_NETMASK</td>
  104. * <td>AppConfig.h</td>
  105. * <td>Netmask that the webserver should use when connected to a RNDIS device (when ENABLE_DHCP_CLIENT is not defined).</td>
  106. * </tr>
  107. * <tr>
  108. * <td>DEVICE_GATEWAY</td>
  109. * <td>AppConfig.h</td>
  110. * <td>Default routing gateway that the webserver should use when connected to a RNDIS device (when ENABLE_DHCP_CLIENT
  111. * is not defined).</td>
  112. * </tr>
  113. * <tr>
  114. * <td>MAX_URI_LENGTH</td>
  115. * <td>AppConfig.h</td>
  116. * <td>Maximum length of a URI for the Webserver. This is the maximum file path, including subdirectories and separators.</td>
  117. * </tr>
  118. * <tr>
  119. * <td>SERVER_MAC_ADDRESS</td>
  120. * <td>AppConfig.h</td>
  121. * <td>MAC address of the server used when sending Ethernet packets onto the bus.</td>
  122. * </tr>
  123. * </table>
  124. */