資源簡介
RS232通訊
代碼片段和文件信息
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;
using?System.IO.Ports;
using?System.Text.Regularexpressions;
///?
///?Sample?program?to?connect?SR?series?readers?with?RS-232C?cable.
///?
namespace?SrRs232cSample
{
????public?partial?class?Form1?:?Form
????{
????????//private?const?Byte?STX?=?0x02;
????????//private?const?Byte?ETX?=?0x03;
????????//private?const?Byte?CR?=?0x0d;
????????//private?const?int?SERIAL_PORT_COUNT?=?1;????//?Number?of?COM?ports?used
????????//private?const?int?RECV_DATA_MAX?=?10240;
????????//private?const?bool?binaryDataMode?=?false;??//?Whether?using?binary?data?mode
????????//private?SerialPort[]?serialPortInstance;????//?Array?to?store?instances?of?COM?ports?used
????????///?
????????///?Constructor
????????///?
????????public?Form1()
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-03-20?19:49??RS232C\
?????目錄???????????0??2020-03-20?19:49??RS232C\.vs\
?????目錄???????????0??2020-03-20?19:49??RS232C\.vs\SrRs232cSample\
?????目錄???????????0??2020-03-20?19:49??RS232C\.vs\SrRs232cSample\v14\
?????文件???????43008??2019-12-12?18:01??RS232C\.vs\SrRs232cSample\v14\.suo
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\
?????文件????????5331??2019-12-12?15:21??RS232C\SrRs232cSample\Form1.Designer.cs
?????文件???????16988??2019-12-12?15:52??RS232C\SrRs232cSample\Form1.cs
?????文件????????6213??2019-12-12?15:21??RS232C\SrRs232cSample\Form1.resx
?????文件?????????506??2015-06-29?11:36??RS232C\SrRs232cSample\Program.cs
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\Properties\
?????文件????????1458??2015-06-29?11:36??RS232C\SrRs232cSample\Properties\AssemblyInfo.cs
?????文件????????3306??2015-06-29?11:36??RS232C\SrRs232cSample\Properties\Resources.Designer.cs
?????文件????????5612??2015-06-29?11:36??RS232C\SrRs232cSample\Properties\Resources.resx
?????文件????????1212??2015-06-29?11:36??RS232C\SrRs232cSample\Properties\Settings.Designer.cs
?????文件?????????249??2015-06-29?11:36??RS232C\SrRs232cSample\Properties\Settings.settings
?????文件????????5393??2015-06-29?11:36??RS232C\SrRs232cSample\SrRs232cSample.csproj
?????文件?????????144??2015-06-29?11:36??RS232C\SrRs232cSample\app.config
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\bin\
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\bin\Debug\
?????文件???????12288??2019-12-12?15:42??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.exe
?????文件?????????144??2015-06-29?11:36??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.exe.config
?????文件???????28160??2019-12-12?15:42??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.pdb
?????文件???????22688??2020-03-20?19:50??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.vshost.exe
?????文件?????????144??2015-06-29?11:36??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.vshost.exe.config
?????文件?????????490??2018-09-15?15:29??RS232C\SrRs232cSample\bin\Debug\SrRs232cSample.vshost.exe.manifest
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\obj\
?????目錄???????????0??2020-03-20?19:49??RS232C\SrRs232cSample\obj\Debug\
?????文件????????1452??2019-12-12?13:53??RS232C\SrRs232cSample\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6785??2020-03-20?19:50??RS232C\SrRs232cSample\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????180??2019-12-12?15:21??RS232C\SrRs232cSample\obj\Debug\SrRs232cSample.Form1.resources
............此處省略9個文件信息
- 上一篇:三可變編碼器觸發(C#源碼)
- 下一篇:C# 串口控制(打開/關閉)
評論
共有 條評論