Design and Implementation of Video Monitoring System for Deer Shed Based on Embedded Technology

Min Zhang, Wu Yu-hua, Ji Li, Shijun Li2017 · DOI

Abstract

This paper presents the design and implementation of an embedded video monitoring system specifically tailored for deer farming. By leveraging ARM9-based hardware and the Video for Linux 2 (V4L2) framework, the system provides real-time surveillance of deer sheds to prevent animal panic and fighting. This technological intervention aims to reduce economic losses resulting from injury, death, or stress-induced abortions in sensitive deer populations.

Introduction

Deer farming is a significant agricultural industry in China, yet it often lacks the scientific automation found in international markets. Deer are highly sensitive animals; sudden disturbances can trigger panic, leading to fighting, trampling, and spontaneous abortions. Traditional manual monitoring is labor-intensive and often insufficient for large-scale operations. The challenge lies in creating a cost-effective, reliable, and real-time monitoring infrastructure that can operate in a farm environment (the "deer shed") and transmit data to a central management platform for immediate intervention.

System Architecture

The proposed system utilizes a hardware-software co-design based on embedded Linux to provide a scalable monitoring solution.

Hardware Design

The core of the system is the S3C2440 (ARM920T) processor. As illustrated in the hardware block diagram, the processor interfaces with several critical components to facilitate real-time monitoring:

  • Video Capture: USB cameras connected directly to the embedded terminal.
  • Storage & Memory: A combination of SDRAM for runtime operations and Nor/Nand Flash for system storage.
  • Connectivity: A DM9000 network controller to interface with external networks via a gateway.
  • User Interface: A touch screen for local monitoring and a serial port/USB2 for developer debugging.
Hardware block diagram of the S3C2440-based embedded system.

Network Topology and Deployment

The system is designed with a distributed architecture to support multiple monitoring sites. As shown in the deployment diagram, multiple "deer shed" terminals feed into a single application platform via a central gateway. This structure ensures that the system is scalable for larger agricultural operations, allowing managers to observe deer living conditions remotely on a PC.

System deployment diagram showing the connection between multiple deer sheds, the gateway, and the central application platform.

Software Implementation (V4L2)

The core of the video capture logic utilizes the V4L2 (Video for Linux 2) driver framework. The implementation follows a specialized six-step workflow for efficient video processing:

  1. Device Initialization: Opening the device file descriptor in "blocking mode" to ensure full data transmission.
  2. Capability Querying: Verifying if the hardware supports video/audio input.
  3. Format Configuration: Setting parameters like PAL/NTSC standards, height, and width.
  4. Memory Mapping (mmap): This is a critical optimization. By mapping the kernel-space frame buffer directly to user space, the system avoids expensive data replication (zero-copy), allowing for faster frame capture on the ARM9 processor.
  5. Queue Management: Managing a circular buffer where the driver pushes data and the application reads it.
  6. Stream Control: Handling the VIDIOC_STREAMOFF command to safely stop collection.

Key Insights and Discussion

  • Efficiency through Zero-Copy: The emphasis on using the mmap() function highlights the constraints of embedded systems. By minimizing CPU overhead, the authors enable the relatively modest ARM9 processor to handle real-time video streams effectively.
  • Behavioral Welfare Monitoring: While video surveillance is common, this system highlights the specific biological needs of deer as the primary driver for design, moving beyond simple security to "behavioral welfare" monitoring.
  • Scalability: The gateway-based approach allows for a robust distributed system, though its effectiveness remains tied to the reliability of the network connection in rural environments.

Conclusion

The authors successfully integrated the ARM9 development board with Linux-based V4L2 drivers to create a stable video pipeline. This system allows for real-time identification of "panic" or "fighting" events, enabling timely intervention to prevent economic loss. Future work may involve implementing automated computer vision to detect distress signals and upgrading to more modern ARM architectures to support higher-resolution video and edge analytics.

Summary updated

Abstract

This paper designs the deer shed video monitoring system based on embedded. By using the embedded technology and video coding technology, applying the real-time camera to collect deer shed on-site information, and then via the video coding technology, analysing and displaying the received video data, real-time monitoring deer's living surroundings, to prevent the emergence of deer Panic, frightening, fighting and other accidents, timely and effectively avoid the economic losses caused by deer's abortion, death, squeezing and so on.
BibTeX
@misc{zhang2017design,
  author = {Min Zhang and WU Yu-hua and Ji Li and Shijun Li},
  title = {{Design and Implementation of Video Monitoring System for Deer Shed Based on Embedded Technology}},
  year = {2017},
  doi = {10.2991/msmee-17.2017.87},
}
Figure