bluez

“Failed to encrypt the connection” with BlueZ peripheral and iOS

微笑、不失礼 提交于 2021-01-28 11:24:00
问题 I'm trying to make a raspberry pi bluetooth peripheral, so I try running the BlueZ example "example-gatt-server" and "example-advertising" at the same time. Then communicate it with my phone. But I got "Failed to encrypt the connection, the connection has timed out unexpectedly." on my iOS with nrf connect app. I'm using iOS 14, BlueZ 5.50, Raspberry Pi 4, Raspberry Pi OS Stretch 回答1: Instead of using ready made examples, I recommend that you create your own GATT server and then advertise as

I cannot list up the BLE devices in the neighbourhood of my Raspberry Pi (python, btmgmt)

谁说我不能喝 提交于 2021-01-27 18:52:27
问题 I want to scan the ble devices in the environment of my Raspberry, by using a python script called from a cron script. But when I do this in cron (I mean I added to sudo crontab -e), I allways end up with an empty list. when I am logged in as pi user - btmgmt works (only) fine with su permissions: pi@Pluto:~ $ btmgmt find Unable to start discovery. status 0x14 (Permission Denied) pi@Pluto:~ $ sudo btmgmt find Discovery started hci0 type 7 discovering on hci0 dev_found: 77:F8:D7:8A:1E:E5 type

Segmentation fault when calling sdp_record_register()

醉酒当歌 提交于 2021-01-27 15:42:35
问题 I'm trying to register my Bluetooth service in SDP using BlueZ. I follow this tutorial. Code compiles successfully but when I run it, I get a segmentation fault (even with the code copy-pasted from the tutorial). Part of stack trace: { "address": 140382101864854 , "build_id": "a629c43f58d471aa12e35d3e63ee264c514a21ac" , "build_id_offset": 86422 , "function_name": "sdp_device_record_register_binary" , "file_name": "/lib64/libbluetooth.so.3" } , { "address": 140382101865504 , "build_id":

continue advertising after connection bluez

此生再无相见时 提交于 2021-01-01 07:53:27
问题 I have setup advertising in bluez using hcitool The device sow up as expected. The setup is done as follow: #advertising sudo hcitool -i hci0 cmd 0x08 0x0008 18 02 01 06 02 0a 00 11 07 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e 00 00 00 00 00 00 00 #scan response sudo hcitool -i hci0 cmd 0x08 0x0009 0d 0c 09 6f 6f #setup advertising interval sudo hcitool -i hci0 cmd 0x08 0x0006 80 02 c0 03 00 00 00 00 00 00 00 00 00 07 00 #turn advertising on sudo hcitool -i hci0 cmd 0x08 0x000a 01 After

continue advertising after connection bluez

我的梦境 提交于 2021-01-01 07:52:41
问题 I have setup advertising in bluez using hcitool The device sow up as expected. The setup is done as follow: #advertising sudo hcitool -i hci0 cmd 0x08 0x0008 18 02 01 06 02 0a 00 11 07 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e 00 00 00 00 00 00 00 #scan response sudo hcitool -i hci0 cmd 0x08 0x0009 0d 0c 09 6f 6f #setup advertising interval sudo hcitool -i hci0 cmd 0x08 0x0006 80 02 c0 03 00 00 00 00 00 00 00 00 00 07 00 #turn advertising on sudo hcitool -i hci0 cmd 0x08 0x000a 01 After

continue advertising after connection bluez

别等时光非礼了梦想. 提交于 2021-01-01 07:50:01
问题 I have setup advertising in bluez using hcitool The device sow up as expected. The setup is done as follow: #advertising sudo hcitool -i hci0 cmd 0x08 0x0008 18 02 01 06 02 0a 00 11 07 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e 00 00 00 00 00 00 00 #scan response sudo hcitool -i hci0 cmd 0x08 0x0009 0d 0c 09 6f 6f #setup advertising interval sudo hcitool -i hci0 cmd 0x08 0x0006 80 02 c0 03 00 00 00 00 00 00 00 00 00 07 00 #turn advertising on sudo hcitool -i hci0 cmd 0x08 0x000a 01 After

advertise custom service uuid with bluez 5.4x

余生颓废 提交于 2021-01-01 06:44:23
问题 I am writing a custom service over BLE to transmit custom characteristics. It has it's own UUID such as '8E400001-B5A3-F393-E0A9-E50E24DCCA9E'. I have found that a particular android app (BLE client) I wish to support requires that a custom service UUID is included in the advertising packet. However our peripheral is running via bluez 5.43 on debian and I cannot figure out how to put this UUID in the advertising packet. I think it will be something like: hcitool -i hci0 cmd 0x08 0x0008 .... ?

Bluez blotoothctl scan vs hcitool scan

99封情书 提交于 2020-12-13 03:40:47
问题 I'm running bluez 5.50 on a Raspberry Pi (both Buster and Stretch). I have a ble sensor device that advertises data only when a button on the sensor device is pressed. So advertisements are asynchronous and there are no periodic advertisements in between (and all packets are unique, no duplicates). I'm having an issue with Bluez though where once a packet is received, Bluez seems to not report any additional packets from the device for the next approximately 11 seconds (very occasionally the

Bluez BLE peripheral advertise custom characteristic with ADV data

℡╲_俬逩灬. 提交于 2020-12-07 15:00:14
问题 Is there a sample app that allows advertising custom UUID and characteristics and with specific ADV data? Bluez has less documentation. Any help is appreciated. 回答1: Which version of BlueZ do you have? With newer versions of BlueZ (e.g. 5.50) you can use bluetoothctl from the command line to do this as follows:- #bluetoothctl [bluetooth]# menu advertise [bluetooth]# uuids 0x1800 0x1801 0x1802 [bluetooth]# name MyDevice [bluetooth]# data 0 01 02 03 [bluetooth]# back [bluetooth]# advertise on

微软准备用 AI 来测试 Windows 10 更新

与世无争的帅哥 提交于 2020-10-20 16:31:18
微软准备用 AI 来测试 Windows 10 更新 问题百出的 Windows 10 更新过程并不是什么新鲜事。此前,微软依靠一大批测试人员在真实硬件上测试 Windows 10 功能更新,但现在正在考虑采用一种新的 AI/ML 模式,在更多的硬件、软件和驱动程序组合上测试流行的驱动程序。 来源: cnbeta Linux 5.9.1 内核已解决“Bleeding Tooth”漏洞 BleedingTooth 漏洞(CVE-2020-12351)的 CVSS 评分为 8.3。它影响 Linux 4.8 内核及以上版本,可在开源 BlueZ 协议栈中找到,最坏的后果是带来远程代码执行攻击,研究人员发现该漏洞的攻击代码至少可以在 Ubuntu 20.04 LTS 上工作。 来源: cnbeta Linux 5.10 的 XFS 解决了 2038 年问题 现在 XFS 支持到 2486 年的时间戳。他们重构了时间戳和 inode 编码函数,将时间戳处理为 64 位纳秒计数器,并进行位移以增加有效大小。这使得 XFS 可以很好地通过 2038 年问题(以秒为单位存储 1970 年以来的时间将不再适合于一个有符号的 32 位整数,因而被封装)。 来源: phoronix 来源: oschina 链接: https://my.oschina.net/u/4263597/blog