RL-ARM User's Guide (MDK v4)RL-RTX RL-FlashFS RL-TCPnet RL-CAN RL-USB Example Programs RTX_ex1 Traffic Example SD_File MSD_File File_ex1 HTTP_demo Telnet_demo TFTP_demo Library Reference Appendix
The HTTP_demo example program shows you how to use the Web Server application to control the Embedded system. It is configured for several different evaluation boards. This example is in the \ARM\Boards\<vendor>\<name>\RL\TCPnet folder.
This example is configured to run on the Local Area Network (LAN). In order to run it, the network parameters like IP address, network mask, default gateway, and DNS Server IP address must be specified. You can specify these parameters in the following way:
Now you must connect a network cable and a JTAG cable for ULINK®. Then compile and link this example, download it to the target, and run it. This example downloads through the ULINK adapter from your computer to the target hardware SRAM or Flash memory, and it executes from there.
Testing the HTTP_demo
When you start the HTTP_demo example, you can connect to the embedded Web Server from your local computer using a web browser. Since user authentication is enabled by default, you must provide a username and a password when connecting. The default username is admin, and it has no password. Just press enter to connect.
If the username and password are not correct, the Web Server displays a warning page.
After a successful login, the default page (index.htm) is shown. From here several pages can be selected.
The Network Settings page allows you to change the network parameters. After the parameters are changed, the new settings are active immediately. So be careful when making changes because your example might stop responding.
The System Settings page allows you to change the system authentication password. After a new value is entered, you are immediately prompted for a new username and password to access the web pages on the embedded server. It is not possible to change the username dynamically. It can be changed in the Net_Config.c configuration file.
The LED page allows you to control the status of the LED diodes on the evaluation board. You can switch them on and off, or enable or disable the running lights.
The LCD page allows you to change the text displayed on the LCD module of the evaluation board.
The AD page displays the voltage of analog input. You must enable the Periodic update on the page to watch the change of analog voltage in real time.
The Button page displays the status of push buttons on the evaluation board. You must enable the Periodic update on the page to watch the status change in real time.
The Language page displays the language preferences of your browser. You can use this information in your own application to support multi-language web pages.
The Statistics page displays the online status of TCP sockets. This web page refreshes every 5 seconds and displays the current status of all TCP sockets.
of your data.