Files
MoGoEagleEye/README_shell.md
donghongyu 01fc438a61 [Change]
修复弹窗提示bug
The specified child already has a parent. You must call removeView() on the child's parent first.

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
2022-03-24 14:26:39 +08:00

61 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#### 自测试-广播触发
// 增加日志输出空间
adb logcat -G 100m
adb shell
setprop debug.mogo.root 1
exit
adb root
adb remount
adb shell
adb 过滤日志
adb logcat -v time > /tmp/padlog/0915obu.txt
adb -s 192.168.1.37:5555 logcat -v time > /tmp/padlog/0915obu.txt
adb -s 192.168.1.37:5555 logcat -v time | grep "com.mogo.launcher.f"
// 获取地图存储的自车轨迹,可以使用工具进行绘制
adb pull /sdcard/Android/data/com.mogo.launcher.f/log/20211022
// (新的HMI)使用命令行触发 V2X 预警场景
// 顶部弹窗场景,控制展示
adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200012" --ei v2xType 20012 --es alertContent "测试外部传入数据2" --es ttsContent "测试TTS2"
// 关闭顶部弹窗
adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow false --es tag "200011"
// 控制红绿灯
adb shell am broadcast -a com.hmi.v2x.trafficlight --ez trafficLightIsShow true --ei trafficLightCheckType 1
adb shell am broadcast -a com.hmi.v2x.trafficlight --ez trafficLightIsShow false
// 控制限速
adb shell am broadcast -a com.hmi.v2x.limitingvelocity --ez limitingVelocityIsShow true --ei limitingVelocitySpeed 60
adb shell am broadcast -a com.hmi.v2x.limitingvelocity --ez limitingVelocityIsShow false
// 控制OBU场景自测 obuStates 1-添加2-删除0-更新 ,obuEventDirection 事件方向
adb shell am broadcast -a com.obu.test_trigger --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2A01 --ei obuEventDirection 0x11
// 控制OBU 模拟自车位置
adb shell am broadcast -a com.obu.test_trigger_recognized
//与Rsu相关
// 红绿灯 0不可用1红灯2绿灯3黄灯
adb shell am broadcast -a com.obu.test_light_recognized --ei obuStates 1 --ei lightLevel 1 --ei obuLevel 3 --ei obuType 0x2B09 --ei rtiType 0x2
// 道路危险情况预警
adb shell am broadcast -a com.obu.test_light_recognized --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2B06 --ei rtiType 0x7
// 弱势交通参与者
adb shell am broadcast -a com.obu.test_light_recognized --ei obuStates 1 --ei obuLevel 3 --ei obuType 0X2B02 --ei ptcInfo 0x1
// (旧版本)使用命令行触发各种测试场景演示
adb shell am broadcast -a com.v2x.test_panel_control --ei sceneType 1
adb shell am broadcast -a com.v2x.test_panel_control --ez TextPanelOpenStatus true --ei TextPanelOpenType 11
// 调用应用内的模拟
adb shell am broadcast -a com.mogo.mock --ei oper 46
// 小智语音
adb shell am broadcast -a com.zhidao.auto.txz.receiver --es text "欢迎乘坐’蘑菇车联‘无人驾驶小巴车" --ei speakType 5