This document discusses a network video capture and short message service system based on embedded Linux. The system uses a USB camera on a Mini2440 development board to capture video and send it to an embedded web server. An alarm can be raised through SMS using a GSM network if motion is detected in the video surveillance. The hardware includes a USB camera, Mini2440 board with ARM920t processor, Ethernet interface, GSM module, and flash memory. The software uses Linux with a Qtopia distribution, Video 4 Linux for capturing video, and SMS services for alerts.
1. Network Video Capture and Short Message
Service System Based on Embedded Linux
NAME:KATTA RAVI
.
2. 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.
3. Applications:
intelligent anti-theft
intelligent home
medical treatment
4. 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
7. 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
8. Linux Application System structure:
o The application system structure of Linux includes
applications, kernel, drivers, root file system, interface and
network protocols.
9. 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
10. 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.
11. 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.
13. 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 )