简体   繁体   English

Android程序连接蓝牙设备

[英]Android program to connect Bluetooth devices

我有一个名为FEIG OBID iScan-HF读取器的蓝牙设备,它将通过蓝牙连接到PC并在读取HF标签时发送数据。我已将该设备与Android手机配对并生成了类似00:07:80:9C:C9的代码: B9现在通过我的Andriod程序如何连接到该设备并将数据从该设备 (FEIG)获取到android设备。请提供任何android源代码进行连接并获取数据。

A few years ago I also tried to connect using bluetooh on my PC and send data to a terminal and also to a bluetooh module and I managed to do that using the following example: 几年前,我还尝试使用PC上的bluetooh进行连接,并将数据发送到终端以及bluetooh模块,我设法使用以下示例进行操作:

Bluetooh chat example 蓝牙聊天示例

(of course you need to adapt it to your needs) (当然,您需要对其进行调整)

The example above contains a server and a client that will send and receive messages/data using bluetooh connection, it will also show you how to search for devices and pair them. 上面的示例包含一个服务器和一个客户端,它们将使用蓝牙连接发送和接收消息/数据,还将向您展示如何搜索设备并进行配对。

I also found this example and I think it will also be useful to see and understand. 我也找到了这个示例,并且我认为它对于查看和理解也很有用。 Android--Bluetooth-Connection-Code-Sample Android的-蓝牙连接的代码示例

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM