一种多线程实时数据处理装置及方法
文献类型:专利
作者 | 贾春萍![]() ![]() ![]() |
发表日期 | 2012-06-06 |
专利国别 | 中国 |
专利号 | CN102486740A |
专利类型 | 发明 |
产权排序 | 1 |
权利人 | 中国科学院沈阳自动化研究所 |
其他题名 | Multithreading real-time data processing device and method |
中文摘要 | 本发明涉及一种多线程实时数据处理装置及方法,根据通信接口类型和数量进行相应的初始设置;创建并启动多个线程;定义并调用各个线程的回调函数;各个线程回调函数进行实时通信数据的接收或发送操作;如果通信数据的通信协议中有校验或加密措施,则线程回调函数对通信数据进行解算及校对操作;通过各个线程回调函数对实时通信数据进行处理、显示及保存操作;如果通信计数器达到指定值,则清理数据接收、发送缓冲区;如果通信结束,则结束并删除线程,关闭各个初始化过的端口;装置的主控模块具有多个PCI扩展槽及USB端口,通过通信接口模块与下位机进行实时数据传输。本发明有利于主控模块与多种类型的下位机通信,提高数据处理的效率和准确性。 |
是否PCT专利 | 否 |
英文摘要 | The invention relates to a multithreading real-time data processing device and a multithreading real-time data processing method. The method comprises the following steps: performing corresponding initial setting according to the type and the quantity of communication interfaces creating and starting multiple threads defining and calling a callback function of each of the threads receiving or sending real-time communication data by the callback function of each of the threads if a verifying or encrypting measure exists in a communication protocol of the communication data, performing resolving and checking operations on the communication data by the callback function of each of the threads performing processing, displaying and storing operations on the real-time communication data by the callback function of each of the threads if a communication counter reaches a designated value, cleaning a data receiving/sending buffer area and if the communication is ended, ending and deleting the threads and closing all initialized ports. A master control module of the device is provided with a plurality of PCI (Peripheral Component Interconnect) expansion slots and USB (Universal Serial Bus) ports. Real-time data transmission is performed between the master control module and a lower computer through a communication interface module. The method and the device provided by the invention are beneficial to the communication between the master control module and various lower computers, the efficiency and the accuracy of data processing are increased. |
申请日期 | 2010-12-03 |
语种 | 中文 |
专利申请号 | CN201010572330.X |
专利代理 | 沈阳科苑专利商标代理有限公司 21002 |
源URL | [http://ir.sia.cn/handle/173321/13517] ![]() |
专题 | 沈阳自动化研究所_光电信息技术研究室 |
推荐引用方式 GB/T 7714 | 贾春萍,朱丹,佟新鑫,等. 一种多线程实时数据处理装置及方法. CN102486740A. 2012-06-06. |
入库方式: OAI收割
来源:沈阳自动化研究所
浏览0
下载0
收藏0
其他版本
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。