Serial-Programming-CSharp
所属分类:Windows编程
开发工具:C#
文件大小:0KB
下载次数:0
上传日期:2020-12-29 09:23:56
上 传 者:
sh-1993
说明: 使用C#和Dot-Net FrameWork编程串行端口,
(Programming the Serial Port using C# and Dot Net FrameWork,)
文件列表:
LICENSE (1088, 2020-12-29)
_1_C#_Source_Only/ (0, 2020-12-29)
_1_C#_Source_Only/RTS_DTR_Control.cs (5705, 2020-12-29)
_1_C#_Source_Only/SerialPort_Read.cs (8947, 2020-12-29)
_1_C#_Source_Only/SerialPort_Write.cs (8140, 2020-12-29)
_2_Dotnet_FW4.5/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/App.config (182, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/PC_Receives_DotnetFramework_4-5.csproj (3851, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/PC_Receives_DotnetFramework_4-5.csproj.user (542, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/PC_Receives_DotnetFramework_4-5.sln (1142, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/Properties/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/Properties/AssemblyInfo.cs (1433, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/Source/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/Source/SerialPort_Read.cs (8826, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/PC_Receives_DotnetFramework_4-5.application (1919, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/PC_Receives_DotnetFramework_4-5.exe (7680, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/PC_Receives_DotnetFramework_4-5.exe.config (182, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/PC_Receives_DotnetFramework_4-5.exe.manifest (3540, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/PC_Receives_DotnetFramework_4-5.pdb (24064, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/app.publish/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/bin/Debug/app.publish/PC_Receives_DotnetFramework_4-5.exe (8672, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache (7030, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.application (1919, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.csproj.CoreCompileInputs.cache (41, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.csproj.FileListAbsolute.txt (4247, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.csprojAssemblyReference.cache (1887, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.exe (7680, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.exe.manifest (3540, 2020-12-29)
_2_Dotnet_FW4.5/PC_Receives_DotnetFramework_4-5/obj/Debug/PC_Receives_DotnetFramework_4-5.pdb (24064, 2020-12-29)
_2_Dotnet_FW4.5/PC_Transmits_DotnetFramework_4-5/ (0, 2020-12-29)
_2_Dotnet_FW4.5/PC_Transmits_DotnetFramework_4-5/App.config (182, 2020-12-29)
_2_Dotnet_FW4.5/PC_Transmits_DotnetFramework_4-5/PC_Transmits_DotnetFramework_4-5.csproj (2322, 2020-12-29)
_2_Dotnet_FW4.5/PC_Transmits_DotnetFramework_4-5/PC_Transmits_DotnetFramework_4-5.sln (1144, 2020-12-29)
... ...
## Programming the Serial Port using C#(CSharp) on NET Core and Dot Net Framework
![](https://www.xanthium.in/sites/default/files/site-images/serial-prog-Csharp/serial-communication-net-core-dotnet-linux-windows.jpg)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
- The code uses the SerialPort class from .Net Framework/NET Core 3.1
- Code opens up a Serial port on Windows PC for communiating with a Microcontroller board (MSP430 Launchpad/ATmega328P).
- Code transmits and receives between PC and Micro Conntroller
- The code also shows how to control the **RTS and DTR pins of the serial Port**
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
## Online Tutorial
- [Serial Programming tutorial using C sharp (C#) on Windows](https://www.xanthium.in/Serial-Programming-using-Csharp-on-Windows)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
## Details
- Code can be compiled using
- **Microsoft Visual Studio Community**
- Code will work with traditional serial ports as well USB Serial Converters.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
## ScreenShot of the Program
- ![](https://www.xanthium.in/sites/default/files/site-images/serial-prog-Csharp/reading-serial-port-csharp-dotnet-core.jpg)
- Program Receiving the data transmitted from ATmega328P Microcontroller (Lauchpad board).
- ![](https://www.xanthium.in/sites/default/files/site-images/serial-prog-Csharp/serial-port-program-tutorial-net-core-framework.jpg)
- Code running on NET Core 3.1
## Devices used
- [USB to Serial / RS485 Converter](https://www.xanthium.in/ft232-based-usb-to-serial-rs485-converter-industrial-scientific-applications)
- ![](https://www.xanthium.in/sites/default/files/site-images/usb2rs485-v2-2-product-page/ft232-usb-rs485-converter-v2-2-610px.png)
近期下载者:
相关文件:
收藏者: