[模拟器司机屏发送数据]
This commit is contained in:
yangyakun
2026-04-17 16:20:29 +08:00
parent 63a14fb7de
commit 9662cac761

View File

@@ -36,6 +36,7 @@ import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
import com.mogo.eagle.core.function.call.map.CallerMapRomaListener
import com.mogo.eagle.core.function.call.map.CallerVisualAngleManager
import com.mogo.eagle.core.function.call.och.CallerOchBizFunctionCall4EagleManager
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
import com.mogo.eagle.core.utilcode.util.ActivityUtils
@@ -46,8 +47,11 @@ import com.mogo.och.common.module.biz.birdge.BridgeManager
import com.mogo.och.common.module.biz.media.MediaManager
import com.mogo.och.common.module.biz.media.data.MediaItem
import com.mogo.och.common.module.biz.order.OrderManager
import com.mogo.och.common.module.constant.OchCommonConst
import com.mogo.och.common.module.debug.location.MogoLocationExit
import com.mogo.och.common.module.manager.loop.BizLoopManager
import com.mogo.och.common.module.manager.socket.lan.bean.BusinessType
import com.mogo.och.common.module.manager.socket.lan.bean.TaskDetailsMsg
import com.mogo.och.common.module.view.DebugFloatWindow
import com.zhjt.mogo.adas.data.bean.AutopilotStatistics
import mogo.telematics.pad.MessagePad
@@ -88,6 +92,7 @@ object DebugDataDispatch {
const val mediaStationMedia = "stationMedia"
const val startAutopilot = "startAutopilot"
const val taskManager = "taskManager"
const val mockLanSocketRecycler = "mockLanSocketRecycler"
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "video" --ei add 2 --es url "rtmp://liteavapp.qcloud.com/live/liteavdemoplayerstreamid"
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "location" --es path "1111/11111"
@@ -110,6 +115,7 @@ object DebugDataDispatch {
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "vlmMessage" --es message "前方100米有道路施工施工长度100米影响第1、2车道通行。" --ei id 128 --ef time 1880.0
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "vlmImage" --ef time 1880.0
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "stationMedia"
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "mockLanSocketRecycler"
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "startAutopilot" --ei startType 0
// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "taskManager" --ei startType 0 --ei indexStation 3
@@ -126,6 +132,15 @@ object DebugDataDispatch {
}
when (type) {
mockLanSocketRecycler -> {
val test = """
{"loginStatus":1,"routesResult":{"carModel":"","contrailSaveTime":0,"contrailSaveTimeDPQP":0,"csvFileMd5":"","csvFileMd5DPQP":"","csvFileUrl":"","csvFileUrlDPQP":"","description":null,"lineId":599,"lineType":0,"name":"日照路线","runningDur":null,"sites":[{"blackPoints":[],"drivingStatus":1,"gcjLat":35.415598215570135,"gcjLon":119.5672437999642,"introduction":"","isLeaving":false,"isPlayTts":false,"lat":35.4159636,"lon":119.5619282,"name":"万平口二号门","nameKr":null,"passPoints":[],"pointType":0,"seq":1,"siteId":2237,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":1,"gcjLat":35.42508993381021,"gcjLon":119.57061731633829,"introduction":"","isLeaving":false,"isPlayTts":true,"lat":35.425452664666736,"lon":119.56530882358173,"name":"万平口三号门","nameKr":null,"passPoints":[],"pointType":0,"seq":2,"siteId":2230,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":1,"gcjLat":35.42789752698308,"gcjLon":119.57172358693678,"introduction":"","isLeaving":false,"isPlayTts":true,"lat":35.42825955320252,"lon":119.56641733292894,"name":"开元森泊乐园东门","nameKr":null,"passPoints":[],"pointType":0,"seq":3,"siteId":2231,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":1,"gcjLat":35.42965006565593,"gcjLon":119.57241326575509,"introduction":"","isLeaving":false,"isPlayTts":true,"lat":35.43001162948568,"lon":119.56710837593442,"name":"海洋公园","nameKr":null,"passPoints":[],"pointType":0,"seq":4,"siteId":2232,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":1,"gcjLat":35.4298883896066,"gcjLon":119.5673148330974,"introduction":"","isLeaving":false,"isPlayTts":true,"lat":35.43024230685599,"lon":119.56199792414594,"name":"啤酒海鲜演艺广场","nameKr":null,"passPoints":[],"pointType":0,"seq":5,"siteId":2233,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":2,"gcjLat":35.423815445495705,"gcjLon":119.56504380207225,"introduction":"","isLeaving":true,"isPlayTts":true,"lat":35.424170582431444,"lon":119.55972176882035,"name":"七彩活力乐园","nameKr":null,"passPoints":[],"pointType":0,"seq":6,"siteId":2234,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":3,"gcjLat":35.414575023544536,"gcjLon":119.56483592968372,"introduction":"","isLeaving":false,"isPlayTts":false,"lat":35.414937342862615,"lon":119.55951431818669,"name":"开元名都大酒店","nameKr":null,"passPoints":[],"pointType":0,"seq":7,"siteId":2235,"tag":0,"videoList":null},{"blackPoints":[],"drivingStatus":3,"gcjLat":35.41507372147241,"gcjLon":119.56679371308033,"introduction":"","isLeaving":false,"isPlayTts":false,"lat":35.41543882408331,"lon":119.56147704544072,"name":"万平口二号门","nameKr":null,"passPoints":[],"pointType":0,"seq":8,"siteId":2236,"tag":0,"videoList":null}],"status":0,"taskId":8784531,"taskTime":1776328254000,"txtFileMd5":"","txtFileMd5DPQP":"","txtFileUrl":"","txtFileUrlDPQP":"","writeVersion":1776329091789}} """.trimIndent()
val msg = TaskDetailsMsg(test, BusinessType.shuttle)
val message = GsonUtils.toJson(msg)
ThreadUtils.getIoPool().submit{
CallerTelematicListenerManager.invokeReceivedMsg(OchCommonConst.BUSINESS_STRING,message.toByteArray())
}
}
taskManager -> {
val type = intent.getIntExtra("startType", 0)
val indexStation = intent.getIntExtra("indexStation", 0)