蓝牙配对使用C的bluez Linux上 [英] Bluetooth pairing in C blueZ on Linux

查看:3374
本文介绍了蓝牙配对使用C的bluez Linux上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到如何在使用蓝牙的BlueZ库用C语言编写的程序配对蓝牙设备在Linux上的任何引用。我已经能够做到(在设备发现)一HCI级查询与thier RS​​SI水平相处设备,但目前我坚持这一点。我看到一个建议使用DBUS的API为的bluez简单的代理 - ?但有什么办法避免这种情况,只是使用一些C水平从方法的BlueZ

I cannot find any reference on how to pair a bluetooth device on linux in a program written in C using the BlueZ Bluetooth libraries. I already managed to do a HCI level query to get devices along with thier RSSI levels (during the device discovery) but currently I am stuck with this. I saw a suggestion to use the DBUS api for the blueZ-simple-agent - but is there any way to avoid this and just use some C level methods from BlueZ?

推荐答案

一个非常酷的书,我发现这里在这方面帮了我:
http://people.csail.mit.edu/rudolph/Teaching/Articles /BTBook.pdf

A really cool book that I found here helped me in this area: http://people.csail.mit.edu/rudolph/Teaching/Articles/BTBook.pdf

它在c和建立,配对等。我想尝试并使用它来启动在iPad蓝牙经典(SPP)连接,但不认为核心有我需要的东西的Python示例。

It has examples in c and python of setting up, pairing etc. I wanted to try and use it to start a bluetooth classic (spp) connection on the ipad but don't think the kernel has the things that I need.

这篇关于蓝牙配对使用C的bluez Linux上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆