资源简介
从这里下的,现在好像访问不了了,共享一下。
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
相关资源
- PEBrowse Professional Interactive 9.3.3 老朽痴
- practical-test-driven-development-c#7
- C# Spire.XLS 无限制 附加使用Demo
- [C#] C# 6.0 Cookbook 4th Edition (英文版)
- mvc的action返回图片
- CefSharp.v75.1.143.0浏览器Demo的完全WPF版
- XPTable-winform很强大的表格控件
- BleSolution.zip
- Applications = Code + Markup (英文版)
- NPOI操作C# ExcelToDataTable DataTableToExce
- C#图片加文字水印和图片水印源码DE
- 编程在测绘中的应用之不规则三角网
- TCP/IP Sockets in C#: Practical Guide for Prog
- 支付宝线下扫码支付(VS2005WINFORM简易
- C#使用 MQTTnet 快速实现 MQTT 通信 Demo
- C# DataTable生成excel并将excel添加附件发
- C#的Chart 控件Demo
- c#asp.net表格Html数据模板转换Pdf文件
- DotNetChartingZedGraphMSChart折线图,柱状图
- C#多线程Demo
- zedGraph_demo_5.1.2
- C#高固运动控制卡demo源码.rar
- 虹软人脸识别ArcFace 2.1 (C# 修改官方
- C#读取mat文件csmatio.zip
- 科诚(GoDex)打印机二次开发Demo
- winform(c#)集成所有opencv功能demo
- DotSpatial下添加栅格并进行渲染处理
- ASP.NET SignalR编程实战(附书中完整D
- Essential C# 7.0 6th Edition.pdf
- Effective C#(covers C# 6.0).pdf
评论
共有 条评论