資源簡介
從這里下的,現在好像訪問不了了,共享一下。
http://www.orcs.sebsoft.com/index.php/79-vision/72-how-to-acquire-data-by-c-from-bluetooth-4-bluetooth-low-energy-ti-ble-keyfob-ti-sensor-tag

代碼片段和文件信息
/*******************************************************************************
Filename:???????CommManager.cs
Author:?????????$Author:?hphan?$
Revised:????????$Date:?2008-01-08?11:33:37?-0800?(Tue?08?Jan?2008)?$
Revision:???????$Revision:?16162?$
Copyright?(c)?2005-2010?by?Texas?Instruments?Incorporated?All?Rights?Reserved.
Permission?to?use?reproduce?copy?prepare?derivative?works
modify?distribute?perform?display?or?sell?this?software?and/or
its?documentation?for?any?purpose?is?prohibited?without?the?express
written?consent?of?Texas?Instruments?Incorporated.
********************************************************************************/
using?System;
using?System.Text;
using?System.Drawing;
using?System.IO.Ports;
using?System.Windows.Forms;
namespace?CommManager
{
????public?delegate?void?FP_ReceiveDataInd(Byte[]?data?uint?length);
????class?CommunicationManager
????{
????????#region?Enumerations
????????public?enum?TransmissionType?{?Text?Hex?}
????????private?enum?MessageType?{?Incoming?Outgoing?Normal?Warning?Error?};
????????#endregion
????????#region?Variables
????????//?COM?parameters
????????public?SerialPort?comPort?=?new?SerialPort();
????????private?const?string?ErrorStr?=?“Error“;
????????/*?Rx?data?handler?method?*/
????????private?FP_ReceiveDataInd?fp_rxDataInd;
????????public?FP_ReceiveDataInd?RxDataInd
????????{
????????????get?{?return?fp_rxDataInd;?}
????????????set?{?fp_rxDataInd?=?value;?}
????????}
????????/*?Misc?*/
????????private?Color[]?MessageColor?=?{?Color.Blue?Color.Green?Color.Black?Color.Orange?Color.Red?};
????????#endregion
????????#region?Properties
????????private?string?_baudRate?=?string.Empty;
????????public?string?BaudRate
????????{
????????????get?{?return?_baudRate;?}
????????????set?{?_baudRate?=?value;?}
????????}
????????private?string?_parity?=?string.Empty;
????????public?string?Parity
????????{
????????????get?{?return?_parity;?}
????????????set?{?_parity?=?value;?}
????????}
????????private?string?_stopBits?=?string.Empty;
????????public?string?StopBits
????????{
????????????get?{?return?_stopBits;?}
????????????set?{?_stopBits?=?value;?}
????????}
????????private?string?_dataBits?=?string.Empty;
????????public?string?DataBits
????????{
????????????get?{?return?_dataBits;?}
????????????set?{?_dataBits?=?value;?}
????????}
????????private?string?_portName?=?string.Empty;
????????public?string?PortName
????????{
????????????get?{?return?_portName;?}
????????????set?{?_portName?=?value;?}
????????}
????????private?TransmissionType?_transType;
????????public?TransmissionType?CurrentTransmissionType
????????{
????????????get?{?return?_transType;?}
????????????set?{?_transType?=?value;?}
????????}
????????private?Handshake?_handShake?=?Handshake.None;
????????public?Handshake?HandShake
????????{
????????????get?{?return?_handShake;?}
????????????set?{?_handShake?=?value;?}
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-21?23:06??BLETIDemo\
?????文件????????1512??2013-06-21?12:27??BLETIDemo\app.config
?????目錄???????????0??2013-03-28?22:37??BLETIDemo\bin\
?????目錄???????????0??2013-06-21?21:53??BLETIDemo\bin\Debug\
?????目錄???????????0??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\
?????目錄???????????0??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\Application?Files\
?????目錄???????????0??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\Application?Files\BleTIDemo_1_0_0_9\
?????文件????????1512??2013-06-21?12:27??BLETIDemo\bin\Debug\app.publish\Application?Files\BleTIDemo_1_0_0_9\BleTIDemo.exe.config.deploy
?????文件??????584704??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\Application?Files\BleTIDemo_1_0_0_9\BleTIDemo.exe.deploy
?????文件????????3887??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\Application?Files\BleTIDemo_1_0_0_9\BleTIDemo.exe.manifest
?????文件???????84286??2013-06-21?21:43??BLETIDemo\bin\Debug\app.publish\Application?Files\BleTIDemo_1_0_0_9\stico.ico.deploy
?????文件????????2065??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\BleTIDemo.application
?????文件????????9167??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\publish.htm
?????文件??????428544??2013-06-21?21:53??BLETIDemo\bin\Debug\app.publish\setup.exe
?????文件??????263680??2012-09-25?19:03??BLETIDemo\bin\Debug\BleHealthDemo.exe
?????文件????????1520??2011-08-01?09:59??BLETIDemo\bin\Debug\BleHealthDemo.exe.config
?????文件??????437760??2012-09-25?19:03??BLETIDemo\bin\Debug\BleHealthDemo.pdb
?????文件???????11592??2012-09-25?19:03??BLETIDemo\bin\Debug\BleHealthDemo.vshost.exe
?????文件????????1520??2011-08-01?09:59??BLETIDemo\bin\Debug\BleHealthDemo.vshost.exe.config
?????文件????????2031??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.application
?????文件??????584704??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.exe
?????文件????????1512??2013-06-21?12:27??BLETIDemo\bin\Debug\BleTIDemo.exe.config
?????文件????????3888??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.exe.manifest
?????文件??????488960??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.pdb
?????文件????????2031??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.vshost.application
?????文件???????11592??2013-06-24?13:59??BLETIDemo\bin\Debug\BleTIDemo.vshost.exe
?????文件????????1512??2013-06-21?12:27??BLETIDemo\bin\Debug\BleTIDemo.vshost.exe.config
?????文件????????3888??2013-06-24?13:57??BLETIDemo\bin\Debug\BleTIDemo.vshost.exe.manifest
?????文件???????84286??2013-06-21?21:43??BLETIDemo\bin\Debug\stico.ico
?????目錄???????????0??2013-01-24?20:47??BLETIDemo\bin\Release\
?????文件????????1520??2011-08-01?09:59??BLETIDemo\bin\Release\BleHealthDemo.exe.config
............此處省略132個文件信息
- 上一篇:股票數據接口庫NTuShare
- 下一篇:C#CHART時間做X軸可放大縮小.zip
評論
共有 條評論