首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏python3

    Linux(RaspberryPi)上通

    IanHarvey/bluepy.git $ cd bluepy $ python setup.py build $ sudo python setup.py install 官方示例代码 import btle class MyDelegate(btle.DefaultDelegate): def __init__(self, params): btle.DefaultDelegate : # ... perhaps check cHandle # ... process 'data' # Initialisation ------- p = btle.Peripheral 在arduino上只是接收到’B’字符后开始发送数据 from bluepy import btle from bluepy.btle import DefaultDelegate import time handleNotification(self,cHandle,data): print("notify from "+str(cHandle)+str(data)+"\n") dev=btle.Peripheral

    1.4K20发布于 2020-01-03
  • 来自专栏orientlu

    Linux 端蓝牙调试工具

    /usr/bin/python from __future__ import print_function import sys import binascii import btle import os ble_conn = None class MyDelegate(btle.DefaultDelegate): def __init__(self, conn): btle.DefaultDelegate ble_connect(devAddr): global ble_conn if not devAddr is None and ble_conn is None: ble_conn = btle.Peripheral (devAddr, btle.ADDR_TYPE_PUBLIC) ble_conn.setDelegate(MyDelegate(ble_conn)) print("connected disconnected") if __name__ == '__main__': ble_mac == "66:55:44:33:22:11" # scan scanner = btle.Scanner

    5.3K30发布于 2018-09-13
  • 来自专栏FreeBuf

    深入浅出低功耗蓝牙(BLE)协议栈(实战篇)

    (5)ubertooth-btle ubertooth-btle - passive Bluetooth Low Energy monitoring Usage: -h this help In get/set mode no capture occurs. ubertooth-btle -f -ctest.pcap抓包&保存到本地 使用这条命令我们可以把设备捕获到的数据包保存到本地,完成后可导入 Edit → Preferences → Protocols → DLT_USER → Edit → New 在payload protocol中输入btle ? ? 使用规则过滤数据包:参考Capturing BLE in Wireshark btle.data_header.length > 0 || btle.advertising_header.pdu_type

    3.8K20发布于 2020-12-09
  • 来自专栏Linux兵工厂

    Linux下搭建UbertoothOne环境

    - Set runtime path of "/usr/local/bin/ubertooth-util" to "" -- Installing: /usr/local/bin/ubertooth-btle -- Set runtime path of "/usr/local/bin/ubertooth-btle" to "" -- Installing: /usr/local/bin/ubertooth-dfu runtime path of "/usr/local/bin/ubertooth-debug" to "" -- Installing: /usr/local/share/man/man1/ubertooth-btle

    3.2K40编辑于 2023-02-28
  • 来自专栏FreeBuf

    使用Ubertooth监听蓝牙通信

    对抓包接口进行设置 点击右下角 ‘Manage Interfaces’ 对接口进行管理 切换到 ‘Pipes’ 选项卡 保存设置,选中 ‘/tmp/pipe’ 并点击开始 此时,在终端中运行命令:ubertooth-btle 这里有一点需要注意,“mkfifo /tmp/pipe” 命令需要在所有步骤前进行,即先创建pipe这个文件,再设置wireshark读取,最后用Ubertooth-btle命令写入,顺序错了是会不成功的 点击左下角的 “+” 添加一条记录,在DLT处选择DLT=147,Payload protocol部分双击修改,填入btle,点击OK保存。 此时显示就正常了。 ? 这是修复过的样子: ?

    2.8K50发布于 2019-07-17
  • 来自专栏安富莱嵌入式技术分享

    ONiO发布RISC-V版本能量搜集单片机ONiO.zero,无需供电即可运行

    (2)该器件还有一个BTLE发射器,具有可编程的输出功率(-40至0dBm),能够在低至850mV的电压下工作。

    49720发布于 2020-02-13
  • 来自专栏云深之无迹

    大疆特洛TELLO手柄盖世小鸡Gamesir-T1D蓝牙连接破解DIY

    下面给出读取的测试代码: from __future__ import print_function import struct import time from bluepy.btle import ='\r') # break from __future__ import print_function import struct import time from bluepy.btle

    6.9K30发布于 2020-12-03
  • 来自专栏Python项目实战

    智能戒指:小小指环,大大未来

    以下是一个示例代码,展示如何通过蓝牙模块与智能戒指通信(以Python和BLE库为例):from bluepy.btle import Peripheral, UUID# 连接智能戒指device_address

    49210编辑于 2025-04-02
  • 来自专栏VRPinea

    寒冷的冬天,快来这些VR健身游戏中火热一下!

    该应用还支持蓝牙心率监控器,包括BTLE心率监测器Polar H10以及XOSS光学臂环。

    91310发布于 2019-12-11
  • 来自专栏陈冠男的游戏人生

    BLE空口抓包方案对比

    然后点击 捕获 -> 选项 (忽略截图是windows平台的) 点击管理接口 新建管道 /tmp/pipe 点击开始抓包,新开一个终端,插入 ubertooth one 后输入 ubertooth-btle

    3.6K31编辑于 2022-11-11
  • 来自专栏FreeBuf

    深入浅出低功耗蓝牙(BLE)协议栈

    BTLE有40个频道(也称为信道),按37在第一个,后面有0-36,然后是第39信道。 由于篇幅限制,协议栈的具体实现将在后续内容中进行讲解。 ?

    5.9K32发布于 2020-12-08
  • 来自专栏5G

    史上最全-5G可使用的波形有哪些?

    请注意,GMSK的较低复杂度解调器通常用于低功率设备,如BTLE。 图1: MSK PSD 图2:GPMSK PSD 单载波QAM 如前所述,可以使用更高阶的QAM来实现单载波波形的更高频谱效率。

    1.5K10编辑于 2024-04-09
领券