58
README_shell.md
Normal file
58
README_shell.md
Normal file
@@ -0,0 +1,58 @@
|
||||
#### 自测试-广播触发
|
||||
// 增加日志输出空间
|
||||
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 "200011" --ei v2xType 20011 --es alertContent "测试外部传入数据" --es ttsContent "测试TTS"
|
||||
// 关闭顶部弹窗
|
||||
adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow false --es tag "20008"
|
||||
|
||||
// 控制红绿灯
|
||||
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.mogo.mock --ei oper 46
|
||||
|
||||
// 小智语音
|
||||
adb shell am broadcast -a com.zhidao.auto.txz.receiver --es text "欢迎乘坐’蘑菇车联‘无人驾驶小巴车" --ei speakType 5
|
||||
|
||||
Reference in New Issue
Block a user