Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - JustinIO.
Search - JustinIO. - List
串口通讯类库,功能强大,
Update : 2008-10-13 Size : 2.79kb Publisher : 111111

using System using System.Runtime.InteropServices namespace JustinIO { ?class CommPort { ??public string PortNum ??public int BaudRate ??public byte ByteSize ??public byte Parity // 0-4=no,odd,even,mark,space ??public byte StopBits // 0,1,2 = 1, 1.5, 2 ??public int ReadTimeout ?? ??//comm port win32 file handle ??private int hComm = -1 ?? ??public bool Opened = false ?? ??//win32 api constants ??? private const uint GENERIC_READ = 0x80000000 ??? private const uint GENERIC_WRITE = 0x40000000 ??? private const int OPEN_EXISTING = 3 ?? ??? private const int INVALID_HANDLE_VALUE = -1 -using System using System.Runtime.InteropServices Namespace JustinIO {? Class CommPort { ? ? Public string PortNum? ? Public int BaudRate? ? Public byte ByteSize? ? Public byte Parity // 0-4=no, odd, even, mark, space? ? Public byte StopBits // 0,,1,2 = 1, 1.5, 2? ? Public int ReadTimeout? ? ? ? //comm port win32 file handle? ? Private int hComm = -1? ? ? ? Public bool Opened = false? ? ? ? //win32 api constants? ? ? Private const uint GENERIC_READ = 0x80000000? ? ? Private const uint GENERIC_WRITE = 0x40000000? ? ? Private const int OPEN_EXISTING = 3? ? ? ? ? Private const int INVALID_HANDLE_VALUE = -1? ?
Update : 2008-10-13 Size : 8.93kb Publisher : liucheng

原本.net1.1都是采用justinIO.cs的,它调用的是winAPI,可能存在不同设备的兼容性问题。现在.net2直接在system.io.port下面有serialPort了,这样可以直接用。 鉴于.net2和.netCF2对于threading有不同的用法,所以两个版本都做了,分别是PC+.net2和wm5sp+.netcf2的。 由于smartphone的蓝牙都是默认com6和com7的,所以如果这个程序大家想用作蓝牙串行,在你们的桌面端蓝牙配置的时候要注意把虚拟串口重新定义到com6。具体做法以IVT Bluesoleil为例子,装好蓝牙驱动程序以后,会在设备管理器里面多出几个串行口;而IVT默认的串行口是com10/11,这样就要把设备管理器com10/11的高级属性里面的端口重新强制定义到com6/7,这样就可以了。因为我做蓝牙串行,所以程序代码中都采用了COM6, 9600, 8, N, 1 的通信格式。 本论坛也有cpp的smartphone串行程序,大家可以搜索一下。那个也不错,我调试的时候smartphone采用这个来调试的。
Update : 2008-10-13 Size : 26.32kb Publisher : 何辉

DL : 0
csharp 串口 操作函数集 打开,关闭串口.设置串口参数.
Update : 2008-10-13 Size : 3.8kb Publisher : donhwa

DL : 0
串口通信的实例dll,可以实现open、write、read、close方法,方便实用。
Update : 2008-10-13 Size : 455byte Publisher :

与串口通信的关键类-Serial Communication with the key category
Update : 2008-10-13 Size : 2.71kb Publisher : 赵斗合

与串口通信的关键类-Serial Communication with the key category
Update : 2025-02-17 Size : 2kb Publisher : 赵斗合

串口通讯类库,功能强大,
Update : 2025-02-17 Size : 2kb Publisher : 111111

using System using System.Runtime.InteropServices namespace JustinIO { ?class CommPort { ??public string PortNum ??public int BaudRate ??public byte ByteSize ??public byte Parity // 0-4=no,odd,even,mark,space ??public byte StopBits // 0,1,2 = 1, 1.5, 2 ??public int ReadTimeout ?? ??//comm port win32 file handle ??private int hComm = -1 ?? ??public bool Opened = false ?? ??//win32 api constants ??? private const uint GENERIC_READ = 0x80000000 ??? private const uint GENERIC_WRITE = 0x40000000 ??? private const int OPEN_EXISTING = 3 ?? ??? private const int INVALID_HANDLE_VALUE = -1 -using System using System.Runtime.InteropServices Namespace JustinIO {? Class CommPort { ? ? Public string PortNum? ? Public int BaudRate? ? Public byte ByteSize? ? Public byte Parity // 0-4=no, odd, even, mark, space? ? Public byte StopBits // 0,,1,2 = 1, 1.5, 2? ? Public int ReadTimeout? ? ? ? //comm port win32 file handle? ? Private int hComm =-1? ? ? ? Public bool Opened = false? ? ? ? //win32 api constants? ? ? Private const uint GENERIC_READ = 0x80000000? ? ? Private const uint GENERIC_WRITE = 0x40000000? ? ? Private const int OPEN_EXISTING = 3? ? ? ? ? Private const int INVALID_HANDLE_VALUE =-1? ?
Update : 2025-02-17 Size : 9kb Publisher : liucheng

原本.net1.1都是采用justinIO.cs的,它调用的是winAPI,可能存在不同设备的兼容性问题。现在.net2直接在system.io.port下面有serialPort了,这样可以直接用。 鉴于.net2和.netCF2对于threading有不同的用法,所以两个版本都做了,分别是PC+.net2和wm5sp+.netcf2的。 由于smartphone的蓝牙都是默认com6和com7的,所以如果这个程序大家想用作蓝牙串行,在你们的桌面端蓝牙配置的时候要注意把虚拟串口重新定义到com6。具体做法以IVT Bluesoleil为例子,装好蓝牙驱动程序以后,会在设备管理器里面多出几个串行口;而IVT默认的串行口是com10/11,这样就要把设备管理器com10/11的高级属性里面的端口重新强制定义到com6/7,这样就可以了。因为我做蓝牙串行,所以程序代码中都采用了COM6, 9600, 8, N, 1 的通信格式。 本论坛也有cpp的smartphone串行程序,大家可以搜索一下。那个也不错,我调试的时候smartphone采用这个来调试的。
Update : 2025-02-17 Size : 60kb Publisher : 何辉

DL : 0
csharp 串口 操作函数集 打开,关闭串口.设置串口参数.-CSharp serial operation function sets to open, close the serial port. set serial parameters.
Update : 2025-02-17 Size : 4kb Publisher : donhwa

DL : 0
此为实现串口编程的实例,直接提供了源代码,可放心下载-port
Update : 2025-02-17 Size : 95kb Publisher : acui

DL : 0
此为实现串口编程的实例,直接提供了源代码,可放心下载(This example for the realization of serial programming, directly provides the source code, you can rest assured Download)
Update : 2025-02-17 Size : 3kb Publisher : cnvij
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.