网站大量收购独家精品文档,联系QQ:2885784924

808 communication protocol.doc

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
808 communication protocol.doc

Wp-808 Wrist Activity Tracker Communicate Protocal Communicate illustrate Lower computer: Bluetooth Pedometer Upper computer: PC, smart phone with Bluetooth 4.0 or greater Communicate way: serial communicate Baud rate: 115200 Bit/s Illustrate: 8 data bit + 1 stop bit Packets≤ 200 byte Data Format Command Length of packets Packets CRC Checksum 1 byte 1 byte N bytes 1 byte Command Byte send by upper computer Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Bit7、bit6 is for read and write 11YY YYYY means read; 10YY YYYY means write Bit5、bit4: for whether the return value is correct YY10 YYYY means the return value correct YY00 YYYY means the return value is error Bit3、bit2、bit1、bit0 is for detail value Checksum The calculation for CRC: XOR all packet bytes For example, if the data packet is: A1 A2 A3 A4...... A13 A14 A15 CRC, then, CRC CRC A3^A4^A5^ ...... ^A13^A14^15 Setting the name of Bluetooth on device This Command is Special : Byte 1 2 3 4 5 6 7 8 … … Data T T M : R E N - … … Structure of data:TTM:REN- Fixed + Name Bluetooth , Length of Name 15 Bytes For example:TTM:REN-WP808 means upper class setting name WP-808 to Bluetooth of lower computer After the computer received If format is correct, lower computer will feedback: “ TTM:OK\r\n\0” If format is error, lower computer will feedback: “TTM:ERP\r\n\0” upper computer resend, 3 times at most Setting password of lower computer 1 2 3 4 5 6 7 Command Length Password Check 0x85 0x04 0xYY 0xYY 0xYY 0xYY CRC For example :0x81 0x04 ‘1’‘2’‘3’‘4’ CRC means upper class setting password 1234 to lower computer. After data has been received lower computer received If CRC check is correct, lower computer feedback: 0x25 0x00 CRC; If CRC check is Error, lower computer feedback: 0x05 0x00 CRC; Which means the received data is incorrect, upper class resend, but no more than 3 times. Bluetooth Connecting: 1 2 3 4 5 6 7 8 9 10 Command Length Time Check 0xC2 0x07 AA BB CC DD EE FF GG CRC AA: Year BB: Month CC: Da

您可能关注的文档

文档评论(0)

wgvi + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档