• 沒有找到結果。

4-1 System Appearance

Figure 41. The System Appearance

The above figure (Figure 41) shows the system appearance, the PCM-7130 is an ARM-based embedded system. A keypad and RFID reader is the two-tier identification function and the RFID tag is for entrance. The USB camera is used to image grabbing and the USB flash disk is used to image storage. A speaker can alarm when necessary.

Figure 42. The Connectors Appearance of System

Figure 42 shows the connector appearance, the IO connectors of this system are

PCMCIA wiresless card, USB connector, PS2 connector for keypad, Ethernet connector for local network (connect to internet via router in this experimental), console connector for a console computer and a RFID reader connection via the connector.

4-2 Entrance System

4-2-1 Grabbing Images and Showing

Figure 43. Grabbing Images and Showing on Screen

The above figure present the image grabs from a USB camera and shows on the screen. The speed of showing images was between 11 and 13 frames per second. In addition, the image showing on screen could work in motion detection mode, i.e. the images were showed when the motion was detected, figure 42, 43 present the situation.

Figure 44. No Images When No Motion Occured

Figure 45. Show the Images When Motion Detected

The image size is 320x240 showing in figure 44, and the display rate is 11~13 frame per sec.

4-2-2 Two-tier identification

USB camera

RFID Antana RFID Reader

Keypad PCM-7130

Figure 46. Appearance of Two-tier Identification

Figure 46 shows the appeaeance of two-tier identification.

Figure 47. The Demo of Two-tier Identification

Figure 47 shows the demo of two-tier identification, first, input the password via keypad, and second use tag via RDIF antenna.

Figure 48. The door open signal

Figure 48 shows the door open signal, this LED is on if the door has been open, the LED was used for simulating the door open signal was issued.

In the real case, it can control an electronic lock.

4-2-3 Auto Recoding

Figure 49. Recoding Server Message

Figure 49 shows the recoding server message, the sever receive the jpeg streams to ‘./temp1/’, when the client transmission finished, the connection would be down, the server than applies the ‘ffmpeg’ to encode the jpeg stream to a ‘3gp’ file in /home/gene which is a FTP directory with user

‘gene’. The server provides a FTP server and HTTP file server for users downloading. The users can download the recorded file via a browser or FTP client.

4-2-4 Cell Phone Remote Monitor

Figure 50. Remote Monitor by Cell Phone

Figure 50 shows the remote monitor by cell phone, the man uses the cell phone to watch the images which was grabs from PCM-7130 embedded system.

The following three figures present a cell phone downloading the recorded video form HTTP file server website and playing the recorded video.

Figure 51. Cell Phone Connects to HFS

Figure 52. Cell Phone Downloads a Record Video

Figure 53. Cell Phone Plays the Record Video

4-3 WiFi Broadcast

4-3-1 Configuration of PDA Wireless Network

Figure 54. PDA Wireless Configuration

Figure 54 shows the wireless options of PDA, the SSID must be

‘cssplab’, mode must be Ad-Hoc and Channel must set to 1 for connecting to PCM-7130 wireless network.

Figure 55. PDA Wireless Networking IP Configuration

Figure 55 shows the IP configuration of PDA wireless network. The IP domain is ‘192.168.0.’ that was same with PCM-7130 wireless networking.

The default gateway needs to set the PCM-7130 wireless IP for Ad-Hoc networking.

The following figure shows the PDA connects to MP3 broadcaster server. The URL is http://192.168.0.2:8000/MP3test.

Figure 56. Connects to MP3 Broadcaster Server via PDA

Figure 57. Playing the Broadcasting Music via PDA

Figure 57 presents the PDA plays the broadcasting music. The PDA would play the broadcasting music when the ‘play’ button was pressed.

4-4 Summary

The system RAM of embedded system is 64MB in this thesis. The Linux kernel and ramdisk (root file system) used 21 MB of system RAM when the embedded system started, therefore the free system memory is 43MB. The system RAM usage of other processes is shows as following tables:

Entrance System Processes Mem Used (KB) CPU Used (%)

Two-tier identification 210 < 0.1

Motion detection 30 < 0.1

Reading Images 6300 8

Displaying Images on Screen 1200 56

Auto Recording 250 60

SMS Sending 150 < 0.1

MySQL 11MB 12

Thttpd 2500 Depend on web pages

Webpage —PHP Simple WebCam 300 < 1

Webpage —PHP Administrator 4500 60

Table 8. The System Resource Usage of Entrance System

Table 8 show the system resource usage of entrance system, the total memory usage is 20MB. The system then has 20MB free memory for Linux kernel working.

The CPU usage is over 100% that would be solved by below methods:

1. Slowdown the displaying image rate when auto recording running:

The displaying rate is 11 frames per sec, to reduce the CPU usage, the displaying rate was slowed to 3 frames when the auto recording is running.

Cause of the displaying images to the screen is not important, when the images were recorded. The result of above condition was 80% CPU usage which small than 56+60.

2. PHP Administrator:

The PHP administrator is setting the family member database on the web, and user usually sets it before the entrance system start up. User still can use the PHP administrator when entrance system is running, but the system would slowdown.

MP3 Broadcast Processes Mem Used (KB) CPU Used (%)

Wireless Driver 1300 < 0.1

MP3 Broadcasting 1500 < 1

Darwin Streaming Server (Web) 10MB 70

Table 9. The System Resource Usage of MP3 Broadcasting

The CPU usage of MP3 Broadcasting is small than 1%, because the WiFi network is 11M bit per sec. that is bigger than MP3 compressing bit rate 128K or 192K. The Darwin Streaming Server include a web server, Perl script and web page, thus it need more memory space.

The entrance system and MP3 broadcasting can provide the service in the same time when the PHP Administrator and DSS had been executed. Thus the entrance system can run to protect the house and the family can enjoy the WiFi entertainment too.

Chapter 5 Conclusion and

相關文件