- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 2016Synchronverter-based Control Strategies for Three-phase PWM Rectifiers.pdf
- 2016_ASME Journal_Separation Control of Axial Compressor Cascade by Fluidic-Based Excitations.pdf
- 2016_china science_Research and development on transonic compressor of.pdf
- 2016_Design of a Centrifugal Compressor with Low Specific Speed for Automotive Fuel Cell.pdf
- 2016_Improved Performance Model of Turbocharger Centrifugal Compressor.pdf
- 2016_Progress in Natural Science_Unsteady Cooperative Flow Type in Axial Compressor.pdf
- 2016_Receptance coupling for end mills.pdf
- 2016_Research and Design of a Centrifugal Compressor for Fuel Cell Turbocharger.pdf
- 2016_UCL_UPC_Chinese_Simp.pdf
- 2016南京青奥会志愿者语言培训教程.pptx
- G技术融合下的工业互联网平台:低时延高可靠通信在设备控制中的应用前景报告.docx
- 2025年全球市场场强仪 GIR3480中文总体规模、主要生产商、主要地区、产品和应用细分研究报告.docx
- 2024-2025学年小学科学六年级下册大象版(2024)教学设计合集.docx
- 数字文化与娱乐产业数字内容创作平台发展分析报告.docx
- 湖南省常德芷兰实验学校2024-2025学年下学期期中考试八年级数学试卷[含答案].pdf
- 2025年全球市场超薄铜箔 GIR3480中文总体规模、主要生产商、主要地区、产品和应用细分研究报告.docx
- 体育赛事赞助品牌推广策略:赞助商品牌形象优化与传播策略研究报告.docx
- 2025年个人信息保护合规管理体系在个人信息保护行业发展趋势预测报告.docx
- 湖南省宁远县第一中学崇德学校2024--2025学年七年级下学期期中数学试卷[含答案].pdf
- 体育产业与文化融合趋势下的产业链优化路径研究报告.docx
文档评论(0)