[8.1.0_new_ota]OTA2.0

This commit is contained in:
xuxinchao
2025-06-23 17:28:02 +08:00
parent dbf2b08dd7
commit 132cfcccbb
2 changed files with 56 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ class OTAUpgradeDialog(context: Context) :
// ToastUtils.showShort("立即升级命令发送失败")
// }
val query: JSONObject = JSONObject()
val query = JSONObject()
query.put("cmd","ASK_PAD_UPGRADE_RES")
query.put("token",OTAUpgradeConfig.token)
query.put("allow_upgrade",true)
@@ -69,10 +69,11 @@ class OTAUpgradeDialog(context: Context) :
// }
//不允许OTA升级
val query: JSONObject = JSONObject()
query.put("cmd","PAD_NOT_ALLOW_UPGRADE_REASON")
val query = JSONObject()
query.put("cmd","ASK_PAD_UPGRADE_RES")
query.put("token",OTAUpgradeConfig.token)
query.put("data","自动驾驶中")
query.put("allow_upgrade",false)
query.put("reason","")
Log.i("xuxinchao",query.toString())
CallerAutoPilotControlManager.sendOtaPadMsgQuery(query.toString())