RF-遥控器远程调试

0x0 上位机状态
cpp 复制代码
1.成品模式下测试流程分为哪几种状态呢?在这个状态下[上位机程序]和[下位机]或者用户进行什么样的沟通交流呢?


①Configuration Status  在这个状态下用户可以进行配置选项的修改和保存,程序工作前的准备操作
②Testing Status            
    (1)serial port recognition status [上位机程序]去识别有没有[下位机dongle]设备的存在
    
    (2)scan  prepare connect status [上位机程序]发送一系列的指令去获取遥控器的MAC地址(遥控器[必须]在5s内进入广播模式)
    
    (3)connect status                       [上位机程序]通过发送一系列的指令去[连接RC和获取遥控器版本信息]
    
     (4) audio button test status        
③Test Stop Deal Status 清除配对信息,和断开连接,保存测试结果
④Program exit Status   程序进行退出前的资源释放等处理
0x1 现象分析

测试中出现遥控器连接不上

0x2 日志分析

可能的情况:

①RC没有进行广播行为

②RC有广播行为,但是与dongle距离太远或者中间有障碍物,导致了数据在指定时间内无法通过蓝牙传输给dongle
连接不上的日志

cpp 复制代码
INFO  2023-11-25T16:11:12.900 C(click behavior): Start Test 
INFO  2023-11-25T16:11:12.900 C: Entering Testing Status
 
INFO  2023-11-25T16:11:12.900 V(Func Rc): Enter serial port recognition status true false 
INFO  2023-11-25T16:11:12.901 C: 成品模式 true 
DEBUG 2023-11-25T16:11:12.901 C: have already identified it. 
INFO  2023-11-25T16:11:12.901 C: End of serial port recognition status ret [ 0 ] 
 
INFO  2023-11-25T16:11:12.901 C: Enter scan prepare connect status 
DEBUG 2023-11-25T16:11:12.904 C: WriteData( "reset\r\n" ) 
DEBUG 2023-11-25T16:11:13.686 P: m_buffer data: "ff000200000001" 
DEBUG 2023-11-25T16:11:13.686 C: recv(reset) 
DEBUG 2023-11-25T16:11:13.688 C: WriteData( "clear_bond 0\r\n" ) 
DEBUG 2023-11-25T16:11:13.695 P: m_buffer data: "ff00020009000a" 
DEBUG 2023-11-25T16:11:13.695 C: recv(clear_bond_0) 
DEBUG 2023-11-25T16:11:13.696 C: WriteData( "scan_start\r\n" ) 
DEBUG 2023-11-25T16:11:13.698 P: m_buffer data: "ff000200020003" 
DEBUG 2023-11-25T16:11:13.698 C: recv(scan_start) 
WARN  2023-11-25T16:11:18.703 C(m_scanCheck): m_scanCheck failed, scan_stop, and stopTest. 
DEBUG 2023-11-25T16:11:18.706 P: m_buffer data: "ff000200030004" 
ERROR 2023-11-25T16:11:18.706 C(Remote control does not have pairing behavior): End of scan prepare connect status 
 
DEBUG 2023-11-25T16:11:18.707 C: recv(scan_stop) 
DEBUG 2023-11-25T16:11:18.712 C: End of Test Stop Deal Status
 
INFO  2023-11-25T16:11:25.870 V(close behavior) Entering Program exit status

连接的上的日志

cpp 复制代码
INFO  2023-11-25T16:14:10.965 C(click behavior): Start Test 
INFO  2023-11-25T16:14:10.966 C: Entering Testing Status
 
INFO  2023-11-25T16:14:10.966 V(Func Rc): Enter serial port recognition status true false 
INFO  2023-11-25T16:14:10.966 C: 成品模式 true 
DEBUG 2023-11-25T16:14:10.967 C: have already identified it. 
INFO  2023-11-25T16:14:10.967 C: End of serial port recognition status ret [ 0 ] 
 
INFO  2023-11-25T16:14:10.967 C: Enter scan prepare connect status 
DEBUG 2023-11-25T16:14:10.968 C: WriteData( "reset\r\n" ) 
DEBUG 2023-11-25T16:14:11.744 P: m_buffer data: "ff000200000001" 
DEBUG 2023-11-25T16:14:11.744 C: recv(reset) 
DEBUG 2023-11-25T16:14:11.746 C: WriteData( "clear_bond 0\r\n" ) 
DEBUG 2023-11-25T16:14:11.754 P: m_buffer data: "ff00020009000a" 
DEBUG 2023-11-25T16:14:11.754 C: recv(clear_bond_0) 
DEBUG 2023-11-25T16:14:11.754 C: WriteData( "scan_start\r\n" ) 
DEBUG 2023-11-25T16:14:11.757 P: m_buffer data: "ff000200020003" 
DEBUG 2023-11-25T16:14:11.757 C: recv(scan_start) 
DEBUG 2023-11-25T16:14:11.792 P: m_buffer data: "ff010d00cf000701007bae304d4920524388ff012300df000701007bae30e5b0" 
DEBUG 2023-11-25T16:14:11.792 scan_ret data: "cf000701007bae304d49205243" 
DEBUG 2023-11-25T16:14:11.792 C: curRssi -49 m_rssiVal -50 
DEBUG 2023-11-25T16:14:11.792 C: rc_mac_addr_type[ "00" ]  rc_mac_addr[ "30:ae:7b:00:01:07" ] rc_ble_name[ "MI RC" ] 
DEBUG 2023-11-25T16:14:11.793 C: WriteData(scan_stop) 
INFO  2023-11-25T16:14:11.795 C(Remote control pairing behavior): End of scan prepare connect status 
 
INFO  2023-11-25T16:14:11.796 C: Enter connect status 
DEBUG 2023-11-25T16:14:11.796 C: recv(scan_stop) 
DEBUG 2023-11-25T16:14:11.796 C: WriteData( "connect 00 30:ae:7b:00:01:07\r\n" ) 
DEBUG 2023-11-25T16:14:11.872 P: m_buffer data: "ff0009000400000701007bae306d" 
DEBUG 2023-11-25T16:14:11.873 C: recv(connect) 
DEBUG 2023-11-25T16:14:12.877 C: WriteData(sw_get) 1 
DEBUG 2023-11-25T16:14:12.882 P: m_buffer data: "ff000200060007" 
DEBUG 2023-11-25T16:14:12.882 C: recv(sw_get) 
DEBUG 2023-11-25T16:14:13.242 P: m_buffer data: "ff040700412e342e302e3871" 
DEBUG 2023-11-25T16:14:13.245 C: rc_software_version[ "A408" ] 
INFO  2023-11-25T16:14:13.245 C: End of connect status 
 
INFO  2023-11-25T16:14:13.245 C: Enter function(audio button) test status 
INFO  2023-11-25T16:15:22.132 V(close behavior) Entering Program exit status
0x3 解决方案
相关推荐
v***91302 分钟前
PostgreSQL 中进行数据导入和导出
大数据·数据库·postgresql
HIT_Weston3 分钟前
45、【Ubuntu】【Gitlab】拉出内网 Web 服务:http.server 分析(二)
前端·http·gitlab
c***21295 分钟前
oracle使用PLSQL导出表数据
数据库·oracle
laocooon5238578866 分钟前
win下制作一个简单的Cmake,完成运行效果
linux·运维·服务器
q***333713 分钟前
Spring boot启动原理及相关组件
数据库·spring boot·后端
北顾南栀倾寒13 分钟前
[杂学笔记]HTTP与HTTPS的区别、HTTPS进行TLS握手的过程、HTTPS如何防止中间人攻击、HTTP1.1与HTTP2.0的区别、TCP的拥塞控制
linux·服务器
合作小小程序员小小店14 分钟前
桌面开发,在线%医院管理%系统,基于vs2022,c#,winform,sql server数据
开发语言·数据库·sql·microsoft·c#
拾忆,想起21 分钟前
Dubbo服务超时与重试策略配置指南:构建 resilient 微服务架构
服务器·网络·微服务·云原生·架构·dubbo
十一.36625 分钟前
79-82 call和apply,arguments,Date对象,Math
开发语言·前端·javascript
霍格沃兹测试开发学社-小明30 分钟前
测试左移2.0:在开发周期前端筑起质量防线
前端·javascript·网络·人工智能·测试工具·easyui