ZylSerialPort.NET 1.83 .NET 组件 库
ZylSerialPort.NET 是一个基于线程、事件驱动、异步/同步串口的.NET 组件库。
使用 ZylSerialPort.NET 组件可以轻松地通过串行端口连接与外部设备进行通信,例如调制解调器、条形码阅读器、GSM 模块等。
您也可以将它与 USB、IrDA 和蓝牙设备一起使用,因为这些设备有一个驱动程序可以将输入从 USB、IrDA 或蓝牙端口重定向到虚拟串行端口(您可以在系统/设备管理器/端口中检查它)。如果您的 USB 设备未提供此类驱动程序,则使用其供应商提供虚拟串行端口驱动程序的 USB 控制器,例如FTDI 或使用 USB/RS-232 适配器。
如果连接中断,您可以设置为在设备再次可用时自动重新连接。
ZylSerialPort.NET 是 100% 使用 C# 使用 .Net 框架和 API 调用编写的。
它解决了 .NET System.IO.Ports.SerialPort 实现中存在的问题,如拔出 USB 设备、自动重新连接、ObjectDisposedException 等。它不是 .NET SerialPort 类的克隆,它于 2004 年发布,比 System 早一年.IO.Ports.SerialPort 于 2005 年随 .NET Framework 2.0 一起推出,但其用法非常相似。
演示版功能齐全,但它会显示一个唠叨对话框(当然,许可版本不会有一个唠叨对话框)。该软件包包括适用于 Visual Studio 2013、2017、2019、2022、Winforms 和 WPF 的 C# 和 VB.NET 的演示程序。还包括一个帮助文件,或者您可以使用联机文档。
支持的操作系统:
Windows 2000/XP/Server2003/Vista/Server2008/7/8/Server2012/10/11
适用于:.NET Framework 2.0(演示:VS 2013)、.NET Framework 3.5(演示:VS 2013)、. NET Framework 4.0(演示:VS 2013)、.NET Framework 4.5(演示:VS 2013)、.NET Framework 4.6(演示:VS 2017)、.NET Standard 2.0(演示:VS 2017)、.NET Framework 4.8(演示: VS 2019)、.NET Core(通过.NET Standard)、.NET Framework 5.0(演示:VS 2019)、.NET Framework 6.0(演示:VS 2022)、.NET Framework 7.0(演示:VS 2022)]
ZylSerialPort.NET is a thread based, event driven, asynchronous / synchronous serial port .NET component library.
Use ZylSerialPort.NET component to easily communicate with external devices on serial port connection, such as modems, bar code readers, GSM modules and others.
You can use it also with USB, IrDA and Bluetooth devices, because these devices have a driver that redirects the input from the USB, IrDA or Bluetooth port to a virtual serial port (you can check it in System/Device Manager/Ports). If your USB device is not provided with such a driver, then use a USB controller whose vendor provides a virtual serial port driver, such as FTDI or use a USB/RS-232 adapter.
If the connection is interrupted, you can set to auto-reconnect when the device is available again.
ZylSerialPort.NET is written 100% in C# using .Net framework and API calls.
It solves the problems the .NET System.IO.Ports.SerialPort implementation has, like unplugged USB devices, automatic reconnect, ObjectDisposedException, etc. It's not a clone of the .NET SerialPort class, it was released in 2004, one year before System.IO.Ports.SerialPort was launched with the .NET Framework 2.0 in 2005, but it's usage is very similar.
The demo version is fully functional, but it displays a nag dialog (the licensed version will, of course, not have a nag dialog). The package includes demo programs for C# and VB.NET for Visual Studio 2013, 2017, 2019, 2022, Winforms and WPF. A help file is also included or you can use the online documentation.
Supported Operating Systems:
Windows 2000/XP/Server2003/Vista/Server2008/7/8/Server2012/10/11
Available for: .NET Framework 2.0 (demos: VS 2013), .NET Framework 3.5 (demos: VS 2013), .NET Framework 4.0 (demos: VS 2013), .NET Framework 4.5 (demos: VS 2013), .NET Framework 4.6 (demos: VS 2017), .NET Standard 2.0 (demos: VS 2017), .NET Framework 4.8 (demos: VS 2019), .NET Core (through .NET Standard), .NET Framework 5.0 (demos: VS 2019), .NET Framework 6.0 (demos: VS 2022), .NET Framework 7.0 (demos: VS 2022)