为了提高视频监控系统的实时性,提出了一种基于TMS320DM642实时内核DSP/BIOS的多线程调度软件框架实现方式,采用多线程的优先级BIOS下静态配置和信号灯(SEM)、邮箱(MBX)等多通信模块API函数动态调用的方法,并结合串口硬件中断来响应外部控制事件,实现了整个视频监控系统多线程之间的相互通信和数据共享,多种通信模块配合实时的完成了系统多线程的合理调度。在满足系统实时性和可靠性需求的前提下,经林区现场实验验证,此监控系统具有较高的准确性和实效性,系统设计和资源分配正确合理。
Aiming at improving the real-time ability in a video monitoring system,an implementation software framework of multi-threading scheduling based on TMS320DM642's DSP/BIOS was proposed.Combining with serial hardware interrupts in response to external control events,communication and data sharing among threads were achieved by the static priority configuration for multiple threads under BIOS and dynamic calling of modules' API such as semaphore(SEM) and mailbox(MBX).The reasonable multi-threading scheduling was realized in conjunction with multiple communication modules.Under the precondition of meeting the requirements of real-time and reliability,the monitoring system has higher accuracy and efficiency through the forest field tests.The system design and rational distribution of resources are correct and reasonable.