串口通信广泛应用于各种控制环境,在视频监控领域中通过Linux串口通信实现ARM与DSP双处理器之间的信息数据交互是关注的热点之一。针对海康威视的IP视频模块(IPMOD),提出了Linux下双处理器系统通信的实现技术:(1)采用I/O重定向的文件共享技术,使原IP视频模块开发板硬件仅有的一个控制台串行口成为普通串行通信口,实现了IP模块和TMS320DM642之间的双向串行通信;(2)采用异步非阻塞I/O的通信模式,提高I/O的读写和CPU的执行效率。
Serial communication is widely used in a variety of control environments.In video surveillance application the information and data interaction between two processors of ARM and DSP through Linux serial communication is one of the hot research interests.Based on IP video module(IPMOD) from Hikvision,this paper presents the implementation of a communication approach between two processors in Linux system:(1) By using I/O redirected file-sharing technique the only RS232 console port which the development board hardware of the module has is modified into a normal serial port and is used to realise bidirectional communication between the IPMOD and the TMS320DM642;(2) By using asynchronous non-blocking mode of I/O access the efficiency of I/O read/write and CPU executions is improved.