The invention discloses a method for receiving broadcast transmission protocol of Bluetooth iBeacon intelligent hardware data acquisition based on the data, in the intelligent hardware side, including adding proprietary protocol in the iBeacon protocol, the intelligent hardware equipment acquisition data embedded into a custom field iBeacon frame of the device, and broadcast packets to be matched with with the intelligent hardware devices on the same UUID data receiver and analyzing the collected data. On the other hand, the invention also provides a method for the implementation of the intelligent hardware equipment and receiving data on the mobile terminal; the invention ensures that the data communication is simple and effective; responsible for the intelligent hardware data acquisition does not need to request to connect to the host side, but the way the broadcast data in the broadcast range of Bluetooth, Bluetooth data can be automatically connected to send in the end, the host will be on data automatically, the user experience comfortable and smooth, without interruption, data receiving and processing in the host background, especially suitable for long transmission connection monitoring system.
【技术实现步骤摘要】
基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法
本专利技术涉及蓝牙通信息
,具体为一种基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法。
技术介绍
蓝牙技术是一种无线技术标准,可实现固定设备、移动设备和个人域网之间的短距离数据交换,低功耗蓝牙(简称BLE)属于蓝牙最新4.0标准,在智能硬件,尤其是可穿戴设备领域大量应用,IOS7.0和Android4.3版本之上的系统都已经全面支持,亦使其成为智能设备与手机连接的主要协议之一。现有的基于蓝牙传输系统的技术中,手机与智能设备都需要通过BLE协议连接,即有一个握手的过程,双方知道对方后,才可以传输数据,这样就存在以下缺点:a),连接易丢失:蓝牙属于无线连接,受环境和距离影响,连接丢失概率较大;尤其是需要长连接监控的设备(例如智能体温计,需要长时间连接,间隔读取体温)、相对位置不固定的设备(例如实时计步器,设备随着运动位置一直改变),一旦连接丢失,会造成数据丢失,用户体验下降;如果没有自动重连机制,还需要人工交互重新连接。b).功耗上升:连接状态下,相对于未连接状态,功耗是 ...
【技术保护点】
一种基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:在智能硬件设备侧,包括在iBeacon协议中添加私有协议,将智能硬件设备采集的数据嵌入到该设备的iBeacon帧的自定义字段,并广播数据包以被匹配有与该智能硬件设备相同UUID的数据接收端接收并解析所述采集的数据。
【技术特征摘要】
1.一种基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:在智能硬件设备侧,包括在iBeacon协议中添加私有协议,将智能硬件设备采集的数据嵌入到该设备的iBeacon帧的自定义字段,并广播数据包以被匹配有与该智能硬件设备相同UUID的数据接收端接收并解析所述采集的数据。2.根据权利要求1所述的基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:所述智能硬件设备采集的数据的类型写入iBeacon协议的Major字段,采集的数据的数值写入iBeacon协议的Minor字段;且其iBeacon协议的UUID与数据接收端的UUID相同。3.根据权利要求2所述的基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:所述私有协议的定义为:Major:KeyMinor:Value其中Major字段中存放Key值,Key表示采集数据的类型;Minor字段中相应的存放其Key对应的值,Value表示采集数据的数值。4.一种基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:在数据接收端,包括将数据接收端iBeacon协议的UUID匹配为与智能硬件设备的UUID相同,以能够直接接收所述智能硬件设备广播的数据包;其数据包iBeacon帧的自定义字段按照添加的私有协议嵌入有智能硬件设备采集的数据以使主机端能够根据该私有协议解析出来。5.根据权利要求4所述的基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:所述智能硬件设备采集的数据的类型写入iBeacon协议的Major字段,采集的数据的数值写入iBeacon协议的Minor字段。6.根据权利要求5所述的基于蓝牙iBeacon广播协议传输智能硬件采集数据到数据接收端的方法,其特征在于:所述私有协议的定义为:Major:KeyMinor:Value其中M...
【专利技术属性】
技术研发人员:郭岗,揭进琦,艾景华,
申请(专利权)人:北京米萌智能科技有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。