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

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

问题描述

我正在尝试用C语言编写程序以通过蓝牙发送/接收数据. 我参考了Albert Huang的书,其中有示例程序,也有很好的信息来源. 链接: https://people.csail.mit.edu/albert/bluez-intro/index.html ( https://people.csail.mit.edu中的示例4.2/albert/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).

任何人都做过类似的事情,或者可能是任何参考书.

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.

感谢您的帮助.

感谢您的时间和帮助.

推荐答案

还有更多资源可供您检查:

There are a few more resources which you could check:

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

使用蓝牙-DrDobbs .

用于Linux的蓝牙编程 .

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

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