mobile 5 蓝牙虚拟串口通信类
来源:互联网 发布:西门子plc编程软件 编辑:程序博客网 时间:2024/04/30 01:20
在mobile上通常处理蓝牙通讯的时候(比如蓝牙打印机,GPS and so on),我们基本上是用虚拟串口的方式进行蓝牙通讯。即:将蓝牙设备虚拟成一个COM。在代码中就可以对这个COM的读写数据,就是对外部蓝牙设备的操作,至于如何虚拟串口在此不再赘述。
下面共享一个操作串口的类。供大家参考。
public SerialPort Port = new System.IO.Ports.SerialPort();
//Create a New SerialPort
public bool Com_Create()
//Open SerialPort
public bool Com_Open(string sCom)
//Close SerialPort
public bool Com_Close()
//Send data to SerialPort
public bool WriteData(byte[] byteStr)
// Recieve from SerialPort
public string ReadData()
//Create a New SerialPort
public bool Com_Create()
//Open SerialPort
public bool Com_Open(string sCom)
//Close SerialPort
public bool Com_Close()
//Send data to SerialPort
public bool WriteData(byte[] byteStr)
// Recieve from SerialPort
public string ReadData()
HUST:Eric
- mobile 5 蓝牙虚拟串口通信类
- mobile 5 蓝牙虚拟串口通信类
- Wince蓝牙虚拟串口通信(server & client)
- windows下蓝牙虚拟串口通信
- 蓝牙虚拟串口操作
- 车载蓝牙串口通信
- 蓝牙串口通信
- win10开启蓝牙虚拟串口
- windows mobile 蓝牙点对点通信
- 关于Android蓝牙串口通信
- android ndk 虚拟串口通信
- 创建虚拟串口并通信
- PDA蓝牙串口与PC蓝牙串口通信
- Linux虚拟串口 及 Qt串口通信
- Linux虚拟串口 及 Qt串口通信
- Wince蓝牙虚拟串口问题点
- Thinkpad T550 蓝牙虚拟串口服务失败
- S60串口通信方法(USB,蓝牙)
- Jobster裁员引起的思考
- buffon针的概率算法
- 变化的职场,变化的你
- 太严肃的网络招聘
- 猎头经验 - 客户谈判高级技巧
- mobile 5 蓝牙虚拟串口通信类
- 上班这点事
- 极限猎头 (Extreme Headhunting)
- 面试经验 - 你是否说得太多?
- 对于直接地址栏输入的中文参数 在UTF-8系统中的接收,编码的问题.
- ubuntu更改apache2 (/var/www) 目录
- Monster 又涨价了
- 为什么优秀候选人(高级人才)会同意接受新职位?
- 2007年的招聘趋势(加拿大)