资源简介
从这里下的,现在好像访问不了了,共享一下。
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
相关资源
- C#实现简单的Web打印控件
- 最新Trimble全站仪串口通讯
- c# 委托、父窗体传值到子窗体DEMO,完
- halcon C#交互式绘图InteractiveROI
- C#获取并连接wifi(基于NativeWifi)
- C# HTTP Get Post Demo
- C#对接中控指纹仪live20r Demo
- C#使用 谷歌身份认证器(GoogleAuthent
- VTODemo
- ArcGIS Runtime SDK for .NET
- ZLG DBC_demo
- focas demo
- excel转化成datatable 并加载到datagridvi
- CSharp language specification 5.0中文(C# 语
- C# 资源管理器(支持右键菜单)
- C# 钢琴 (PianoDemo)
- C# 套打Demo
-
C# 开发BHO(Browser Helper ob
ject)插件 - optical-reader(OID)
- c# + sqlite demo(增删改查)
- C# 8 Code sample:Using declarations(ef-cor
- Eslaticsearch 操作(EasyElasticSearch)
- Autofac(IoC依赖注入容器)Demo
- 计算不规则格网土方量计算 Calculati
- HMI-with-WPF-part-3-Communication-with-multipl
- C# 调用BarTender打印条码DEMO
- C# 使用GDI+绘制漂亮的ToolTip控件
- Rony.DotNetCore.Solution.zip
- 汉王人脸通SDK v3.0 c#接收互联网数据
- C#调用Lucene方法-实现快速搜索
评论
共有 条评论