nRF52832-BLE-Gateway

所属分类:数据挖掘/数据仓库
开发工具:C
文件大小:2799KB
下载次数:0
上传日期:2018-11-01 04:36:43
上 传 者sh-1993
说明:  BLE_Gateway作为中心工作,扫描外围设备,然后分析ADV_DATA和SCAN_RESP_DATA,然后发送到UART。
(BLE_Gateway working as Central, scans Peripheral and then analysis ADV_DATA and SCAN_RESP_DATA, then sends to UART.)

文件列表:
LICENSE (11357, 2018-11-01)
nRF5_SDK_14.2.0_17b948a (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_advertising (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_advertising\ble_advertising.c (23889, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_advertising\ble_advertising.h (19306, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_db_discovery (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_db_discovery\ble_db_discovery.c (40068, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_db_discovery\ble_db_discovery.h (12694, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm\ble_dtm.c (40419, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm\ble_dtm.h (13898, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm\ble_dtm_hw.h (4019, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm\ble_dtm_hw_nrf51.c (4639, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_dtm\ble_dtm_hw_nrf52.c (4631, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_racp (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_racp\ble_racp.c (3219, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_racp\ble_racp.h (7656, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_radio_notification (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_radio_notification\ble_radio_notification.c (3446, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_radio_notification\ble_radio_notification.h (3446, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.c (16207, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.h (2934, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.c (15628, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.h (3792, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_tx_buffer.c (5144, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\ancs_tx_buffer.h (4128, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\nrf_ble_ancs_c.c (25147, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ancs_c\nrf_ble_ancs_c.h (35634, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ans_c (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ans_c\ble_ans_c.c (22413, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_ans_c\ble_ans_c.h (22607, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_bas (0, 2018-11-01)
nRF5_SDK_14.2.0_17b948a\components\ble\ble_services\ble_bas\ble_bas.c (11618, 2018-11-01)
... ...

# nRF52832-Gateway ## 一、功能概述 BLE_Gateway模块(以下简称BLE_Gateway)扫描周围的BLE设备广播,获取BLE设备广播数据中的有效信息,通过串口发送到主MCU, 另外可通过串口接收的AT指令查询和配置BLE_Gateway。 串口波特率115200bps,8位数据位,1位停止位,无校验位,无硬件流控。 ## 二、BLE广播有效信息分析 BLE_Gateway获取广播中的设备名称、RSSI和MAC地址,广播中必须包含设备名称才会将解析出来的有效信息通过串口发送给主MCU。 ## 三、用户自定义设备名称过滤规则 BLE_Gateway也支持自定义设备名称过滤规则,最多支持20组,每组过滤规则有3个字符,详细介绍见串口AT指令章节。 ## 四、串口AT指令 BLE_Gateway支持的AT指令如下表所示。 |命令|说明| |---|---| |AT|测试串口通信 |AT+RESET|复位模块 |AT+MAC|查询模块MAC地址 |AT+VER|查询模块版本信息 |AT+FILTER|配置设备名称过滤规则使能 |AT+USER|配置具体的设备名称过滤规则 所有AT指令(包括命令和响应)必须"AT"作为开头,以回车新行()结尾,为描述方便,文档中被有意忽略了。 ### 4.1 AT测试串口通信 |查询命令|响应|参数说明| |---|---|---| |AT?|AT:OK|无参数 ### 4.2 AT+RESET复位模块 |设置命令|响应|参数说明| |---|---|---| |AT+RESET|AT+RESET:OK|无参数 ### 4.3 AT+MAC查询模块MAC地址 |查询命令|响应|参数说明| |---|---|---| |AT+MAC?|AT+MAC:\|模块MAC地址(16进制字符串,12 Bytes) ### 4.4 AT+VER查询模块版本信息 |查询命令|响应|参数说明| |---|---|---| |AT+VER?|AT+VER:\,\,\|\ 硬件版本
\ 协议栈固件版本
\ 应用软件版本 ### 4.5 AT+FILTER 配置设备名称过滤规则使能 |设置命令|响应|参数说明|应用示例| |---|---|---|---| |AT+FILTER=\|发送成功 AT+FILTER:OK
参数错误 AT+FILTER:ERP|\ 过滤规则使能,
1:使能,0:禁用|AT+FILTER=1
表示使能用户自定义过滤规则 ### 4.6 AT+USER配置用户自定义广播过滤规则 |设置命令|响应|参数说明|应用示例| |---|---|---|---| |AT+USER=\,\,\|发送成功 AT+USER:OK
参数错误 AT+USER:ERP|\ 自定义规则序号,最多20条,数值0~19有效
\ 自定义规则使能,1:使能,0:禁用
\ 设备名称过滤关键词,长度3字节|AT+USER=0,1,abc
表示自定义规则序号为0,
使能该自定义规则,
过滤关键字为"abc"

近期下载者

相关文件


收藏者