C 语言中的蓝牙编程 - 安全连接和数据传输 [英] Bluetooth programming in C - Secure Connection and Data transfer

查看:113
本文介绍了C 语言中的蓝牙编程 - 安全连接和数据传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用 C 语言编写程序以通过蓝牙发送/接收数据.我得到了 Albert Huang 的一本书的参考,其中有示例程序和很好的信息来源.链接:https://people.csail.mit.edu/albert/bluez-intro/index.html(https://people.csail.mit.edu/中的示例4.2albert/bluez-intro/x502.html) 显示了使用套接字编程的 RFCOMM 连接.还有没有办法使用设备的蓝牙名称而不是 BD 地址进行连接?在这里,我看不到如何为通过蓝牙连接的通信设置 PIN 或身份验证.有没有办法实现它.由于没有身份验证过程,套接字连接是否足够安全?

I am trying write program in C to send/receive data over bluetooth. I got a reference to a book by Albert Huang which has sample programs and also good source of information. Link: https://people.csail.mit.edu/albert/bluez-intro/index.html The example 4.2 in (https://people.csail.mit.edu/albert/bluez-intro/x502.html) shows the RFCOMM connection using socket programming. Also is there a way to connect using Bluetooth name of the device instead of BD address ? Here I dont see how to set up PIN or authentication for the communication over bluetooth connection. Is there a way to implement it. Also is the socket connection secured enough as there is no authentication process?

我正在使用 debian 机器和 Bluez 包进行开发.我要实现的拓扑是 - 1 个主服务器/服务器连接到 N(根据蓝牙协议规范最多 7 个)客户端,这些客户端可以是任何嵌入式简单芯片计算机,并且应该能够通信,直到连接被任何一个(源或客户).

I am using debian machine and Bluez package for my development. Topology I am trying to achieve is - 1 Master/server connected to N(max 7 as per bluetooth protocol spec) clients which may be any embeded simple chip computer and should be able to communicate untill the connection is terminated by either one(source or client).

有没有人做过类似的事情或者可能是任何参考/s.

Has anyone done something similar or may be any reference/s.

我发现关于 SO 的引用很少,但所有内容都指向我在书中描述的内容.我找不到与我正在寻找的内容相似的任何内容.

I found few refernces on SO but everything pointed me back to the same as described in the book.I couldn't find anything similar to what I was looking for.

感谢任何帮助.

感谢您的时间和帮助.

推荐答案

您可以查看更多资源:

诺基亚研究中心开发的 Linux 蓝牙协议栈.

使用蓝牙 - DrDobbs.

Linux 的蓝牙编程.

这篇关于C 语言中的蓝牙编程 - 安全连接和数据传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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