Video transmission design based on Hi3510 and wireless transmission module

Publisher:温馨生活Latest update time:2011-01-23 Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In recent years, data transmission in the field of embedded wireless networking is mostly based on 802.x or WI-FI technology, and is implemented with wireless network cards or wireless routers. At present, there are also embedded related designs based on mobile phone wireless data transmission, but most of them are monitoring designs based on 2.5G technology SMS mode. On this basis, a video image transmission system based on 3G wireless transmission module under embedded Linux system is designed. The SOC high-performance video codec Hi3510 is adopted, which has powerful video processing functions and realizes real-time encoding and transmission of D1 picture quality. Therefore, this system design realizes video transmission on 3G mobile network.

1 Overall design of the system
Hi3510 is selected as the encoding process of video data, and DTM6211 wireless module is selected to send and process video data. Figure 1 is a block diagram of the working principle of the system. Its overall working principle is: the data collected by the camera is input into the main mode TW2834 chip through the PAL CVBS signal, and after A/D conversion, it is transmitted by BT. 656 interface receives the signal converted into CIF format, and
stores the received image data into the external memory SDROM through the AHB bus; Hi3510 reads the video data in the external memory, performs H. 264 encoding, including intra-frame prediction, inter-frame prediction, DCT transformation, quantization, entropy coding, etc., and stores the encoded raw code stream in the peripheral device; the video data in the peripheral device is sent to the wireless module through the USB port via the test board, and the UDP data transmission setting control work of the wireless module is controlled by sending AT commands through the RS232 interface of Hi3510 via the test board, and then the wireless module encapsulates the data into an IP data packet that conforms to the UDP format, and finally sends it to the network using the PS service.



2 System Hardware Design
2.1 Video Processing Module

The video processing module collects video signals from the remote camera. The analog video signals are input into TW2834 in the CVBS signal format. TW2834 is a video controller with built-in PAL/NTSC video decoder, color controller and PAL/NTSC video encoder, which mainly completes the conversion of analog signals to digital signals. After decoding, the converted digital signals are input into the Hi3510 processor through the BT656 interface for H.264 encoding.
The video processing module uses Hi3510, which is a video compression chip based on the H.264BP algorithm. It adopts a multi-core highly integrated SoC architecture of ARM+DSP+hardware acceleration engine. It has powerful video processing functions, can realize real-time encoding of DVD quality, can adapt to various network environments, ensure the clarity and real-time performance of the picture, and the low-bitrate H.264 encoding technology greatly reduces the network storage space, and ensures network security by integrating DES/3DES encryption and decryption hardware engines. Figure 2 is the logic block diagram of Hi3510.


Hi3510 contains a series of video codec coprocessors to improve the speed of encoding and decoding. The video codec part completes the image motion estimation/compensation, DCT/IDCT transformation, quantization/inverse quantization, zigzag scanning and loop filtering. Finally, the encoded video data is stored in the external memory SDROM.
2.2 Video transmission module
Figure 3 is the internal principle block diagram of the wireless transmission module. DTM6211 is a 60-pin 0.5mm pitch board-to-board connector and an antenna connector. The cable matching the antenna connector can be connected to the antenna MHF Plug Cable Assembly. The serial communication uses RS232, which can be connected to the Hi3510 serial port. The module uses a 5-wire connection method and hardware flow control is enabled by default. The USB interface can be used as a communication port and a debugging port. As a USB Device, it follows the USB2.0 protocol specification and supports the maximum rate of FULL SPEED (12 Mb/s). The transmission part uses the SMA (FEMALE) interface to feed the antenna, and the external antenna uses a rod antenna.

The DTM6211 interface has two UART interfaces, and UART1 is used as the AT command receiving port of Hi3510, and the transmission speed is set to 115 200 b/s. The UART1 signal definition is shown in Table 1. The USB interface of the module is used as a communication port for the transmission of video data, and its interface signal definition is shown in Table 2.


2.3 Module Hardware Connection
Hi3510 and DTM6211 are connected through a test board. The main function of the test board is to connect the USB and UART ports of Hi3510 and DTM6211, which plays a role of physical interface conversion and also serves as a storage for USIM cards. For the connection between USB and UART, just connect the USB port and RS232 interface of the Hi3510 board to the corresponding interface of the test board, and directly plug the DTM6211 pin interface into the test board. The hardware circuit of the main part of the USIM card in the test board is shown in Figure 4.


The RF interface of the DTM62ll module includes an antenna connector, which is connected to the external antenna through a cable. The antenna connector uses I-PEX's 20279-001E-01, and the connecting cable uses Suzhou Wanxu Electronics HM5A-12289-A1DE's 50 mm long double-terminal cable. The antenna connector end Plug Cable Assembly uses MHFⅡPlug Cable Assembly.

3 System Software Design
3.1 Operating System and Driver Design

Hi3510's embedded Linux-2.6.14 kernel operating system is selected. Before development, it is necessary to build a development environment. You can install a Fedoral 9.0 server, build a cross compiler, and install the SDK package. SDK is a software development tool based on the Hi3510 video evaluation board. It contains various tools used in Linux-related application development and is the most basic platform software for user development. Bootloader uses uboot-1.1.4 to initialize the hardware device and download the Linux kernel through the network port. The kernel can be customized by making menuconfig, removing irrelevant parts of the system, reducing the kernel, and finally using the mkimage tool to make the configured kernel into an image file, which can be downloaded to Hi3510 through the network port.
The wireless transmission module can realize its driver part in the kernel by reconfiguring the kernel Usb Serial Driver option, but the PID and VID of the Usb Driver need to be set as the ID of this module, and recompile to support the wireless transmission module.
The steps to change the ID are as follows:
First enter linux-2.6.14\drivers\usb\serial, open the file option. c, and define two macros in it (VID of DTM6211: 0x1AB7 PID: Ox6000):


3.2 Video processing software design
The video processing software mainly performs H. 264 compression, the parameters involved in the encoding need to be configured by calling the API provided by the SDK, including the picture group length (GOP), encoding frame rate (frames/second), quantization parameter (maxqp), bit rate (b/s) and user data insertion, and then the compressed raw stream is sent to the USB port. In order to improve the compression rate, the GOP is set to 15; in order to reduce network data traffic, the encoding rate is set to 8 frames/second; the value of the quantization parameter is selected between 30 and 40. The overall design process is shown in Figure 5.


Regarding the configuration of the camera, open() opens the /dev/misc/tw2834dev camera device file, completes the selection of normal as PAL format and mode as GIF format; configures the input common attributes, first opens the video encoder, and closes the video input channel, then completes the settings of the working mode as slave mode, the interface type of VIU and A/D converter BT656, the channel distribution mode 4-way CIF, BT656 as field mode, and the video memory consumption as 1Ox1 024x1 024.
After VSTART enters the channel number, a thread needs to be created to complete the subsequent data storage and forwarding, using the pthread_create() function, and then executing the thread venc_start(). The core program is as follows:


3.3 Wireless module control design
The wireless module DTM6211 provides a TCP/IP protocol stack, which can use the PS service channel to send IP packets and use AT instructions to configure and control the TCP/IP protocol stack. The APP processor is used to configure the TCP/IP related environment and register the UDP port. The APP processor sends the data to be sent directly to the module, which encapsulates the data into an IP packet that conforms to the UDP format and then sends it to the 3G network using the PS service channel. The control flow is shown in Figure 6.


The power-on initialization part mainly completes the activation of the SIM card, TCP/IP protocol stack and network registration; the activation scene mobile part mainly completes the parameter settings of PDP and context, including configuring the use of IP protocol, applying for an uplink speed of 1.5 MB/s, and establishing a packet transmission route for the user plane. After completing the above initialization work, it is necessary to establish a listening port number of 13000, specify the destination address 218.18.141.79 and port number 3000 to send data in UDP mode, and finally specify the number of bytes to be sent. After the data is sent, the UDP port number and other related resources are released.

4 Conclusion
The Hi351O+Linux solution is adopted. Its built-in SDK development package reduces the difficulty of application development. At the same time, Hi3510 itself adopts the technology of ARM+DSP+hardware acceleration engine, has powerful video processing functions, and has the advantages of low cost and low development difficulty. With the DTM62ll wireless transmission module, the data is packaged in UDP through AT instructions, and finally the video data packet is sent to the 3G network. The test results show that the uplink transmission rate of data is 150-200 KB/s due to the influence of network environment. This system can be used for remote network monitoring applications. Compared with the SMS monitoring method of 2.5G technology, users can obtain more effective information.

Keywords:MCU Reference address:Video transmission design based on Hi3510 and wireless transmission module

Previous article:Buck Switching Regulator AP1510 and Its Application
Next article:RL512G signal amplifier circuit

Recommended ReadingLatest update time:2024-11-17 00:33

Detailed explanation of the working principle of P0 port of 51 single chip microcomputer
Three-state gate: Three-state gate buffer: 51 MCU P0 port input buffer Output drive of P0 port: push-pull structure composed of two MOS tubes When P0 port is used as IO line input state: ① read pin; ② read latch; P0 port is used as address/data multiplexing port When the P0 port is used as an IO line output,
[Microcontroller]
Detailed explanation of the working principle of P0 port of 51 single chip microcomputer
Microcontroller Basics: Differences among data, idata, xdata, pdata, and code in Keil
Many MCU beginners and even some experienced engineers have never understood what data, idata, xdata, pdata, and code are. Recently, I saw an article about the problems of data, idata, xdata, pdata, and code in Keil, and I would like to share it with you. In terms of data storage type, the 8051 series has on-chip an
[Microcontroller]
STC12C5604AD voltage alarm detection module schematic diagram and MCU source program
Voltage detection module Circuit diagram: 【A brief description】 Dimensions: Length 88mmX Width 45mmX Height 15mm 2. Main chip: STC12C5604AD 3. Working voltage: DC 12V Features: 1. Detection analog voltage range 0~10V (range can be expanded according to customer needs) 2. Digital tube display range 0~9.999 3. Four-
[Microcontroller]
STC12C5604AD voltage alarm detection module schematic diagram and MCU source program
Write a single-chip counter program to count pulses
Write a program with the following functional requirements: when the level of the P1.0 pin changes positively, count the input pulses of P1.1; when the level of the P1.2 pin changes negatively, stop counting and write the count value into R0 and R1 (the high bit is stored in R1 and the low bit is stored in R0). Answer
[Microcontroller]
51 MCU implements multiple software timers based on one timer
A software timer is a timer simulated by a program. One hardware timer can simulate thousands of software timers, so that when the program needs to use more timers, it will not be limited by the lack of hardware resources. This is an advantage of software timers, that is, the number is unlimited. However, since the so
[Microcontroller]
51 MCU implements multiple software timers based on one timer
Precautions for welding of MCU learning board
Pay attention to the following points during the welding process: 1. Pay attention to the positive and negative polarity of electrolytic capacitors, light-emitting diodes, and buzzers. The long pins of the three are connected to the positive pole and the short pins are connected to the negative pole. If they are conne
[Microcontroller]
How to use the AT89S51 watchdog function
  In the initialization of the program, first write 01EH and then write 0E1H to the watchdog register (WDTRST address is 0A6H). This activates the watchdog.     ORG 0000H      LJMP begin Begin:     MOV 0A6H,#01EH ;Send 1E first     MOV 0A6H,#0E1H ;Send E1 later     ;Activate the watchdog in program initialization
[Microcontroller]
Design of coding, decoding and display experimental circuit based on 51 single chip microcomputer
0 Introduction In daily digital logic circuit experiments, the coding, decoding and display experimental circuit is a comprehensive application of the three circuits of coding, decoding and display. It plays an important role in the digital logic experimental circuit. During the experiment, the display result of
[Microcontroller]
Design of coding, decoding and display experimental circuit based on 51 single chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号