Network Video Capture and Short MessageService System Based on Embedded Linux NAME:KATTA RAVI .
Introduction By using camera, video will be captured and the data will be sent to embedded web server. The video is monitored through web browser and an alarm will be raised through SMS using GSM network in video surveillance systems.
Applications: intelligent anti-theft intelligent home medical treatment
Hardware and Software USB camera module Mini2440 development board S3C2440A with ARM920t core Ethernet interface GSM module 256mb NAND Flash Operating system on PC: - Ubuntu 10.04 Operating system on target board: - Qtopia with Linux kernel 2.6.32 Video 4 Linux Arm-Linux-GCC-4.4.3
ARM 920T features 32-bit ARM and 16-bit Thumb instruction set Harvard Architecture 5-stage pipelining 16kb-Data cache and 16-kb-instruction cache 32-bit registers MMU support
Linux Application System structure: o The application system structure of Linux includes applications, kernel, drivers, root file system, interface and network protocols.
Linux Application System structure: o Create a cross-compiler environment: -Install the UBUNTU 10.04 development platform on the PC, and use cross compiler arm-Linux-gcc-4.4.3 to compile Linux- 2.6.32 kernel. o Boot Loader(U-BOOT&vivi): -When system starts, the starting 4K bytes of code in Nand Flash is loaded into the SRAM. o Driver transplantation - There are two driver models direct compile loading driver file
Compiling the Kernel o compile the kernel into the linux-2.6.12 directory o Type make menuconfig 1. Choose Multimedia devices ---> <*>Video For Linux, load Video For Linux Module 2. Choose USB support ---> <*>Support for Host-side USB --USB Host Controller Drivers <*>OHCI Host HCD support 3. Choose USB Multimedia devices ---> <*>USB SPCA5XX Sunplus/Vimicro/Sonix jpeg Cameras 4. Make; make zImage 5. Save settings, and then exit.
Video capture based on V4L Video 4 Linux provides a range of programming and data interface functions for a variety of devices in Linux. Equipment can be opened, captured, read and turned off by calling these functions. When an application operates the device file, Linux kernel will access interface functions provided by the driver program through the file_operations structure.
o open the video device file video_fd=open（“/dev/video 0”，O_RDWR）o We can obtain the image frame buffer information by calling the video_vm(). ioctl(video_fd,VIDIOCGMBUF,&video_vm)o Equipment information by calling video_capability() ioctl(video_fd,VIDIOCGCAP,&video_capability ）o image attributes by calling video_picture() ioctl (video_fd ,VIDIOCGPICT,&video_picture ）