Design and Implementation of a TD_SCDMA Video ... - Science Direct

3 downloads 0 Views 181KB Size Report
Qingdao University of Science and Technology, Qingdao 266061, China. Abstract .... serial communication port of wireless module TM1902. One way is by ...
Available online at www.sciencedirect.com Available online at www.sciencedirect.com

Physics Procedia

Physics Procedia Procedia Engineering 00 (2011) 000–000 29 (2012) 1066 – 1070 www.elsevier.com/locate/procedia

2012 International Workshop on Information and Electronics Engineering (IWIEE)

Design and Implementation of a TD_SCDMA Video Monitoring System Based on Android Chongyu Wei*, Luwei Zhao Qingdao University of Science and Technology, Qingdao 266061, China

Abstract This paper introduces a design of a video monitoring system based on TD_SCDMA. The system is mainly composed of a video data acquisition and processing unit circuitry, a wireless module hardware circuitry and a network subsystem. The hardware design of the system is based on high performance chip 88AP310. The software design of the system is based on Android OS.

© 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license. Key words: Android OS; TD_SCDMA; 88AP310; H.263; IPP; TM1902

1.

Preface

TD_SCDMA technology has been in great development and its applications are getting more widely used. The system introduced in this paper uses the TD_SCDMA technology to achieve real-time and high-speed video data wireless transmission. H.263 encoding technology is used for the raw video data compression, which gives a compression ration of 30:1. Android operating system (OS) is an open-source OS designed for mobile based on Linux platform, which is composed of OS core, middleware, user interface and application software. Android OS is widely used in kinds of intelligent mobile devices. The video monitoring system mainly consists of the following several parts: Pan Tilt and Zoom(PTZ) control unit, video data acquisition and processing unit, data transmission networks subsystem and User monitoring terminals. This video monitoring technology can not only solve image transmission, remote control, field signal collection, but also can offer high quality monitoring image and convenient monitoring mode. Principal technologies used in this system are as follows: embedded system based on ARM10 microprocessor and Android OS, the technology of combining networks, video data compression and real-time video monitor. 2. Architecture of The Video Monitor System *

 * Corresponding author. Tel.: 18663972876 E-mail address: [email protected].

1877-7058 © 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license. doi:10.1016/j.proeng.2012.01.090

Chongyu Wei and Luwei Zhao / Procedia Engineering 29 (2012) 1066 – 1070 Chongyu Wei, Luwei Zhao/ Physics Procedia 00 (2011) 000–000

2

2.1 Overall Structure for Hardware System The Overall Hardware Structure of the System is showed in Fig1. This TD_SCDMA video monitor system is mainly composed of a video data acquisition and processing unit, TD_SCDMA network and User hand-held devices. The video data acquisition and processing unit mainly consists of a camera, a PTZ controller, a core panel circuitry based on 88AP310 (an application processor from Marvell) and a wireless modem (TM1902, a module from Hisense) based on TD_SCDMA. The core panel focuses on the video data acquisition, compression and data encapsulation. The processed data will be transmitted into the wireless modem. The user hand-held device is used mainly as the monitoring terminal. However, it can also be used to send PTZ control signals to the video data acquisition and processing unit to control the motion of the PTZ. Camera Core Panel PTZ Control

Wireless Module Control

TD_SCDMA Network

Subscriber Hand-hold Devices

Fig.1 Architecture of Video Monitor System

2.2 signal flow There are two signal flows in this video monitoring system. The first one is the video signal flow from the camera to user hand-held devices by the way of TD-SCDMA and Internet. Another one is the command signal flow from user hand-held devices to PTZ. Video signal flow: CCD camera - -> H263 video compression - -> encapsulation streaming media --> TD_SCDMA wireless modem -- > TD_SCDMA network - - > video management server - -> TD_SCDMA network - -> hand-held devices - ->video monitoring software player. PTZ Control signal flow: video monitoring software PTZ control button - -> user hand-held devices RF modules - - > TD_SCDMA network - ->monitor center - - > TD_SCDMA network --> the RF communication module of TM1902 --> the base-band communication modules of TM1902 --> streaming media control signal - -> packets unpack - -> PTZ decoder -- > PTZ control and image processing. 3.

Hardware Circuitry Design

3.1 video data acquisition and processing unit Analysis The detailed hardware circuitry is showed as the left part of Fig.2. The video data acquisition and processing unit consists of two parts, the main control circuit based on 88AP310 chip for video data processing and the video data acquisition cell. The central processor 88AP310 is a new kind of ARM10 embedded processor, which provides on-chip system design based on the Xscale processor. 88AP310 will meet different designs for hand-held devices and cellular mobile phones. The central processor 88AP310 connects register composed of a 1G DDR_SDRAM and a 2G NAND by data bus, address bus and chipselect signals. The DDR_SDRAM stores temporary data (the raw video signal, H.263 decoding data, PTZ control signal and so on). The NAND FLASH stores system configuration data and software data for system operation. There are several segments playing a crucial role in video data transmission, such as high compression ratio, high-speed signals procession of DDR_SDRAM, high-capacity video data

1067

1068

Chongyu WeiWei, and Luwei Zhao / Physics ProcediaProcedia Engineering 29 (2012) 1066 – 1070 Chongyu 00 (2011) 000–000

transmission of TD_SCDMA network and so on. A camera OV7670 is connected to the central processor 88AP310 via the data bus and control bus. Image process programming function is completed with SCCB interface. A PTZ 2-pin 485 interface is connected to the UART2 interface of 88AP310 through a MAX485 chip, which is used to match the voltage level of the signals between the CPU and RS485. LP3972 is a programmable power management chip with multi-functions, which is responsible for providing various stable power for central processor 88AP310 and some other devices. The input voltage of the LP3972 is 12V. It can output several voltages from 0.725V to 3.3V by programming.   3.2 Wireless Module Hardware circuitry Analysis The Wireless modem is connected to 88AP310 via serial bus and control bus. The wireless module is composed of a TUSB1105 for USB external transceiver, a current limit switch MAX1693 and a USIM used for establishing communication to user hand-held devices. In order to meet the requirements of intelligent low-power consumption, 88AP310 provides two ways to Wake up TM1902 by using UART1 serial communication port of wireless module TM1902. One way is by hardware control flow, the other way is by four lines auxiliary GPIO to finish sleep or wake-up function between 88AP310 and TM1902. Six lines USB 1.1 interface (port3) of 88AP310 connects to the four lines USB 1.1 of wireless module TM1902. This connection will complete video and control signal transmissions. The wireless modem TM1902 supports TD_SCDMA HSDPA/EDGE two-mode operation, DBB and RF of which mainly focus on the data conversion between base-band and RF. The video data will be modulated onto a high frequency carrier suitable for transmitting in TD-SCDMA band (2010-2025MHz). The high frequency signal can be uploaded to TD_SCDMA network by 384Kbps. LCD TM028HDH24

PMIC LP3972

ABB TUSB1105

NAND Flash Device_2G

Android OS H.263codec

LPDDR SDRAM

Encapsulatio

MAX1693

TM1902 DBB

RF

USIM UART Camera OV7670

PTZ Control

GPIO

MCp

Fig.2 Detailed Hardware Connection of TD_SCDMA Video Monitor System

4. Software Design 4.1 H.263 Codec Analisis The master clock of 88AP310 can reach 624 MHz, under which the chip can support the highest video VGA data 30fps. Under the controlling of application program, 88AP310 acquires video data from the camera via JNI by calling HAL dynamic library function, and then compress the video data via JNI calling h. 263 function. IPP Based GStreamer Plug-ins are developed under the following environment,

3

1069

Chongyu Wei andWei, Luwei ZhaoZhao/ / Procedia Engineering (2012)000–000 1066 – 1070 Chongyu Luwei Physics Procedia 0029(2011)

4

one is Platforms that support the PXA310 Processor, the other is Operating System based on Linux core. Function mvl_h263dec is IPP H.263 decode element, and mvl_h263enc is IPP H.263 encode elemen 4.2 USB driver Design TM1902 module works as a wireless modem. The Wireless module is used as a serial USB device, so it requires wireless module identification by the USB drivers of the Android OS. USB device can be connected into USB bus driver list by calling usb_register () function of the driver registration function bus_add_driver (), which is in device driver initialization function usb_serial_init (). If a device inserted, USB bus scans device for device enumeration and reads the device descriptor. After finishing the initialization of Hub device, OS will use a thread function hub_thread () to monitor on port changes. Once a device inserts, function hub_proc_connect_change () is called to notify system which port and which Hub inserted a device. And then device descriptor and equipment information are accessed by calling sub_new_device (). Finally, device_add () assigns the corresponding drive to the device. 4.3 Process of Controling Wireless Modem

On

Driver Initialization

310 Send Data

Check out Device

Suspend

Y

Device Driver Match

Wake-up TM1902

Hand-up

Set MUX Bus Open Device Send Data PPP Dial-up Networking

TM1902 Sleep

N Stop Send Data

Close

Y TM1902 Sleep

Send AT Instructions to Select Sleep or Wake-up Mode

Fig.3. Flowchart for Wireless Module TM1902 There is a flow diagram about the workflow of wireless modem TM1902.When TM1902 is powered on, usb_serial () operates driver initialization and detects TM1902 device, then the driver for converting USB to serial port will be matched. At this moment, the system will call serial_probe () to complete TM1902 device initialization and mux channel Settings. Right now, the driver can virtual out two virtual ports, one is used for transferring the PPP instructions, and another is used for transmitting AT instructions. There are two kinds of communication ports for TM1902, one is a USB port, and one is a

1070

ChongyuWei, Wei and Luwei / Procedia Engineering (2012) 1066 – 1070 Chongyu Luwei ZhaoZhao / Physics Procedia 00 (2011)29000–000

UART port. In this TD_SCDMA video monitoring system, a USB port is selected as the communication port for TM1902. The following work is focused on accessing Internet by PPP dial-up and sending AT instructions to select the models of TM1902, such as sleep model, wake-up model and so on. If there is no video data to be sent, after opening the serial interface, 310 USB host will send suspend command to the USB device of TM1902 which will be hung to wait for next time wake-up signal. If 310 application processors have data to send to TM1902, TM1902 will be waked-up by UART and send the video data to wireless module. Once the subscriber compels to stop sending data by sending stop control signals, the wireless device TM1902 will be closed and then be in the sleep model. 5.

Epilogue

The system introduced in this paper is a real-time, high speed, high quantity video transmission system. The raw 30fps QCIF data can be compressed to 120Kbps after video data coding and packing. This transmission rate is far below 384Kbps, which makes video data transmission in TD_SCDMA network to become a reality. Embedded Android OS establishes a reliable mobile software platform. The designed system can be used in home, workshop and office area. References [1] Marvell_PXA3xx_Design_Guide_.pdf February 13, 2009 [2] Marvell MarvellPXA310 Handheld Platform Development Kit January 25, 2008 [3] Hisense TM1902 User design manual

2009

[4]Fengsheng Yang Android application development revelation Machinery industry press January, 2010 [5] Zhiyong Hou

Design and implementationof the identity authentication system Based on the SIM card, Beijing University

of posts and telecommunications 2008 29-43 [6] Li Zhang, LiHong Xu, ChengLin Xu

Design and implementation of digital video VCR based on embedded Linux ,

Miniature computer application, 2005 [7] Yijun Xing

Design and development for Mobile identity authentication service system Beijing university of posts and

telecommunications 2008 24-29

5

Suggest Documents