| | |
| | | }) |
| | | .install(); |
| | | |
| | | |
| | | |
| | | |
| | | CrashHandler crashHandler = CrashHandler.getInstance(); |
| | | crashHandler.init(getApplicationContext()); |
| | | AYSdk.getInstance().init(getApplicationContext()); |
| | |
| | | MyLog.i("开始初始化数据发送地图/车辆/mcu升级文件/考试状态="+type); |
| | | ExamPlatformData.getInstance().setExamType(type); |
| | | // OneTimeWorkRequest examStatausOutWorker = OneTimeWorkRequest.from(ExamStatusOutWorker.class); |
| | | sendMapInfo(); |
| | | sendVechileInfo(); |
| | | // sendMapInfo(); |
| | | // sendVechileInfo(); |
| | | sendRouteExam(); |
| | | // DataInitKt.MCUUpgrade(getApplicationContext()); |
| | | DataInitKt.sendExamLights(getApplicationContext()); |
| | |
| | | int enter_status = -1; |
| | | @Override |
| | | public void callBackMsg(final int cmd, String json) { |
| | | String strConent = String.format("收到命令[%d],Json内容为%s,线程号=%d,时间=%s", cmd, json,Thread.currentThread().getId(),Utils.formatTimeYYMMDDHHmmSSSSS(System.currentTimeMillis())); |
| | | if (strConent.equalsIgnoreCase(lastStr)){ |
| | | if (cmd!=11 && cmd!=14){ |
| | | String strConent = String.format("收到命令[%d],Json内容为%s,线程号=%d,时间=%s", cmd, json,Thread.currentThread().getId(),Utils.formatTimeYYMMDDHHmmSSSSS(System.currentTimeMillis())); |
| | | if (strConent.equalsIgnoreCase(lastStr)){ |
| | | |
| | | }else{ |
| | | }else{ |
| | | |
| | | MyLog.d(TAG,strConent ); |
| | | lastStr = strConent; |
| | | MyLog.d(TAG,strConent ); |
| | | lastStr = strConent; |
| | | } |
| | | } |
| | | |
| | | switch (cmd) { |
| | | case Constant.ID_SM_BLUETOOTH_BRIEF: |
| | | CEventCenter.dispatchEvent(Constant.BIND_CONNECT_RTK_TOPIC,cmd,0,json); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | MyLog.i("收到命令13="+json); |
| | | |
| | | CThreadPoolExecutor.runInBackground(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | |
| | | examStatus.setMap_id(mapId); |
| | | examStatus.setMap_item(type); |
| | | WorkRoomDataBase.getWorkRoomDataBase(getApplicationContext()).getExamStatusDao().insert(examStatus); |
| | | CEventCenter.dispatchEvent(Constant.BIND_EXAM_STATUS_TOPIC,cmd,0,examStatus); |
| | | } |
| | | }); |
| | | // Data exam_enter_exitdata = new Data.Builder().putString(Constant.exam_enter_exitdata,json).build(); |