Group members: 20135310 Chen Chaojan 20135305 Liao
I. Purpose of the experiment
- Mastering the method of writing the program
- Achieve the solidification of common algorithms in cryptography
Two. Experimental content
Select a common grouping algorithm or an asymmetric algorithm implementation, and debug in the arm development environment, burn write:
- Read this experiment program source code (PTHREAD.C), learning the use of terminal I/O functions, learning to apply multithreading programming to the reception and transmission of the serial port program
- Enter the/arm2410cl/exp/basic/02_pthread directory, run make generate Pthread program, use NFS to connect to the development host to run the experiment
Three. Read the code and compile
- Set up the experimental platform, the step with the experiment one (after the experimental platform is built, continue to use)
- Compiling the code in the virtual machine, generating the executable file
- Copy the experiment code to a shared folder
- Run in the HyperTerminal window./pthread
Compiling multithreaded code in a virtual machine
To the HyperTerminal window, enter the 03_tty directory and run the term
Error/dev/ttys0:no such file or directoryWorkaround:
[/mnt/yaffs]cd/dev
[/dev] ln–sf/dev/tts/0 ttyS0 (note letter case, number 0 or 1)
Run results
Four. The problems encountered in the experiment and the solving methods
Five. Experimental experience
This experiment understand the basic principle of multi-thread program design, learn the use of Pthread library function, understand the basic method of serial programming in Linux environment, master the main properties and setting method of terminal, familiar with the use of terminal I/O function, learn to use multithreading to complete the processing of serial port. Learned a lot of new concepts of knowledge, but also increased the need to learn a lot of unknown things. Experimental platform to build directly follow the platform of experimental one, there is no problem what difficult problem
Experimental report on basic experiment of information Security system Design (group)