线程安全的.NET平台串口通信程序设计研究  被引量:4

Serial Communication Programming of Thread-safe Based on .NET Platform

在线阅读下载全文

作  者:彭伟[1] 

机构地区:[1]武汉城市职业学院电子信息工程学院,湖北武汉430064

出  处:《湖北工业大学学报》2012年第2期34-39,共6页Journal of Hubei University of Technology

基  金:湖北省教育科学立项课题(2009B349)

摘  要:介绍.NET串口通信类SerialPort相关技术,提出了在RS-232通信程序设计中出现线程异常的原因,通过对delegate、Thread及BackgroundWorker相关技术的研究,给出了基于C#开发环境,解决线程安全问题的程序设计方法,所设计的主控计算机程序与以PIC18F452微控制器为核心的控制板之间通过串口实现了8通道A/D转换数据的传输与图文显示测试,为.NET环境下的串口通信程序设计提供了重要参考.This paper described relevant technologies on.NET serial communication class SerialPort,and presented the cause of thread exception in RS232 communication programming.Based on C# development environment,a programming method was designed to solve thread safe problems.Between the designed master control computer program and the control panel that has PIC18F452 microcontroller as the core,8 channel A/D conversion transmission and graphical display test were implemented,which provides an important reference for.NET serial communication programming.

关 键 词:线程 安全 串口通信 .NET RS-232 委托 后台工作者 PIC 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论] TP274[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象