資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO.Ports;
namespace?串口通信
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????SerialPort?sp?=?new?SerialPort();
????????public?static?string?strPortName;
????????public?static?string?strBaudRate;
????????public?static?string?strDataBits;
????????public?static?string?strStopBits;
????????bool?isOpen?=?true;
????????void?sp_DataReceived(object?senderSerialDataReceivedEventArgs?e)//定義一個接收數據的函數
????????{
????????????//將byte數據轉換成字符串窗口顯示
????????????int?count?=?sp.BytesToRead;
????????????byte[]
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????34816??2020-01-04?22:18??串口通信\.vs\串口通信\v15\.suo
?????文件??????12800??2019-12-24?23:05??串口通信\串口通信\bin\Debug\串口通信.exe
?????文件??????30208??2019-12-24?23:05??串口通信\串口通信\bin\Debug\串口通信.pdb
?????文件???????4223??2019-12-24?23:24??串口通信\串口通信\Form1.cs
?????文件??????12323??2019-12-24?23:22??串口通信\串口通信\Form1.Designer.cs
?????文件???????5817??2019-12-24?23:22??串口通信\串口通信\Form1.resx
?????文件???????1209??2019-12-24?21:43??串口通信\串口通信\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6897??2019-12-23?22:06??串口通信\串口通信\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????42??2019-12-23?22:04??串口通信\串口通信\obj\Debug\串口通信.csproj.CoreCompileInputs.cache
?????文件????????856??2019-12-24?21:52??串口通信\串口通信\obj\Debug\串口通信.csproj.FileListAbsolute.txt
?????文件????????847??2019-12-24?21:44??串口通信\串口通信\obj\Debug\串口通信.csproj.GenerateResource.cache
?????文件???????9084??2019-12-23?22:04??串口通信\串口通信\obj\Debug\串口通信.csprojAssemblyReference.cache
?????文件??????12800??2019-12-24?23:05??串口通信\串口通信\obj\Debug\串口通信.exe
?????文件????????180??2019-12-24?21:44??串口通信\串口通信\obj\Debug\串口通信.Form1.resources
?????文件??????30208??2019-12-24?23:05??串口通信\串口通信\obj\Debug\串口通信.pdb
?????文件????????180??2019-12-23?22:58??串口通信\串口通信\obj\Debug\串口通信.Properties.Resources.resources
?????文件????????493??2019-12-23?22:03??串口通信\串口通信\Program.cs
?????文件???????1322??2019-12-23?22:03??串口通信\串口通信\Properties\AssemblyInfo.cs
?????文件???????2837??2019-12-23?22:03??串口通信\串口通信\Properties\Resources.Designer.cs
?????文件???????5612??2019-12-23?22:03??串口通信\串口通信\Properties\Resources.resx
?????文件???????1099??2019-12-23?22:03??串口通信\串口通信\Properties\Settings.Designer.cs
?????文件????????249??2019-12-23?22:03??串口通信\串口通信\Properties\Settings.settings
?????文件???????3382??2019-12-23?22:58??串口通信\串口通信\串口通信.csproj
?????文件???????1135??2019-12-23?22:04??串口通信\串口通信.sln
?????目錄??????????0??2019-12-23?22:04??串口通信\.vs\串口通信\v15\Server\sqlite3
?????目錄??????????0??2019-12-23?22:04??串口通信\.vs\串口通信\v15\Server
?????目錄??????????0??2019-12-23?22:03??串口通信\串口通信\obj\Debug\TempPE
?????目錄??????????0??2019-12-23?22:04??串口通信\.vs\串口通信\v15
?????目錄??????????0??2019-12-23?23:33??串口通信\串口通信\bin\Debug
?????目錄??????????0??2019-12-24?21:44??串口通信\串口通信\obj\Debug
............此處省略14個文件信息
評論
共有 條評論