The basic experiment of information security system design five: Simple embedded WEB Server Experiment (20135229,20135234)

Source: Internet
Author: User

Beijing Institute of Electronic Technology (BESTI)

Real Inspection report

Course: Information Security system Design class: 1352

Name: Matchianglussong No.: 20135234 20135229

Score: Instructor: Lou Jia Peng Experimental Date: 2015.11

Experiment level: Preview degree: Experiment time: 15:30-17:00

Instrument Group: Compulsory/Elective: compulsory test number: 05

Experiment name: Simple embedded WEB server experiment

Experimental purposes and Requirements: (1) Mastering the process of implementing a simple WEB server in the ARM Development Board.

(2) Learn the SOCKET network programming on the ARM Development Board.

(3) Learn the use of the signal () function under Linux.

Experimental instrument:

Name

Model

Number

Embedded development Platform

Up-netarm2410-cl

1

PC Machine

1

Experimental content:

Learn how to use the socket for communication programming, understand the overall design of an actual network communication application, read the relevant content of the HTTP protocol, and learn how to use several important network functions.

Read HTTPD. C source code. Add some additional features on this basis. Test the functionality of an embedded WEB server using a browser on a PC computer.

Experimental steps:

1. Read and understand the source code
Enter the/HOME/BC//ARM2410CL/07_HTTPD directory,

Read and understand source code using VI editor or other editor

2. Compiling the application
Run make to produce an executable file httpd

[Email protected]/]# cd/home/bc//arm2410cl/07_httpd/

[[email protected] 07_httpd]# make

Armv4l-unknown-linux-gcc-dhttpd_document_root=\ "/mnt/yaffs\"-c-o httpd.o httpd.c

Armv4l-unknown-linux-gcc-dhttpd_document_root=\ "/mnt/yaffs\"-c-o copy.c armv4l-unknown-linux-gcc-o. /BIN/HTTPD httpd.o copy.o-lpthread armv4l-unknown-linux-gcc-o httpd httpd.o copy.o-lpthread

3. Download and debug
Download the HTTPD to the Development Board using the NFS service and copy the test page for debugging

Enter the following code in HyperTerminal

[/mnt/yaffs] mount-t nfs-o nolock 192.168.0.56:/arm2410cl/host

[/mnt/yaffs]cd/host/exp/basic/07_httpd/

[/HOST/EXP/BASIC/07_HTTPD]./HTTPD

4. Native Test
Enter http://192.168.0.121 in the desktop browser

(/192.168.0.121 is the IP address of the Up-cup S2410 Lab Board)

The basic experiment of information security system design five: Simple embedded WEB Server Experiment (20135229,20135234)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.