-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":947,"versionName":"2109081949","enabled":true,"outputFile":"ICSer_V947_2109081949_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V947_2109081949_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":951,"versionName":"2109101758","enabled":true,"outputFile":"ICSer_V951_2109101758_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V951_2109101758_release.apk","properties":{}}]
\ No newline at end of file
ICLogger.e("AP06 format error!");
connection.send(BPXX_REPLY(ds, CMD_TYPE.BP06, cmdlist[1], false));
}
-
-
}
public void handleAP07(Runtime ds, Connection connection, String cmd) {
public static byte[] BP34_Raw(String senderNumb, String packetTime, String recordtimelenHex, int count, int index, int datalen, byte[] amrdata) {
+ ICLogger.d("senderNumb ==> " + senderNumb);
//recordtimelenHex 是yyyymmddhhmmss的,为了兼容其它协议,就不变了,自己修正一下放进现在的协议
-//(03C80106357593060153353BP34,13026618172,170413163300,2710,6,1,700,数据)
-//BP34:命令字符
-//1:亲情号码 (0表示发给所有人)
-//170413163300:YYMMDDHHMMSS格式的年月日时分秒,设备录音时间
-//2710(0x2710):语音文件录音时长10000ms
-//6:语音包分包总数
-
+ //(03C80106357593060153353BP34,13026618172,170413163300,2710,6,1,700,数据)
+ //BP34:命令字符
+ //1:亲情号码 (0表示发给所有人)
+ //170413163300:YYMMDDHHMMSS格式的年月日时分秒,设备录音时间
+ //2710(0x2710):语音文件录音时长10000ms
+ //6:语音包分包总数
Runtime runtime = (CoreService.getInstance() == null) ? null : CoreService.getInstance().getRuntime();
-
/*
( CHAR 1
%04X HEX_STRING 4
int durationInt = Integer.parseInt(recordtimelenHex, 16);
long duration = durationInt * 1000;
if (runtime == null) return null;
+ if (TextUtils.isEmpty(senderNumb) || "-1".equals(senderNumb)) {
+ senderNumb = "0";
+ }
StringBuffer sb = new StringBuffer(CMDHEADER).append("0000").append("0106").append(runtime.IMEI());
sb.append(cmdMap.get(CMD_TYPE.BP34))
//往后的是消息内容
- .append(CMDSPLIT).append("0")//要发给谁
+ .append(CMDSPLIT).append(senderNumb)//要发给谁
.append(CMDSPLIT).append(packetTime.substring(2))//时间
//.append(CMDSPLIT).append(TimeUtil.getSystemTimeYYMMDDHHMMSS())//时间
.append(CMDSPLIT).append(Long.toHexString(duration))
sentbuf[len - 1] = ')';
ICLogger.d(new String(sentbuf));
return encrepteMsgBytes(sentbuf);
-
}
public void sendVoicePackage(int duration, String remoteNum, String content, String voiceId) {
//创建voiceConent并添加到数据
if (remoteNum == null || remoteNum.isEmpty()) {
- remoteNum = "123";
+ remoteNum = "-1";
}
+ ICLogger.d("remoteNum =====> " + remoteNum);
final VoiceContent voiceContent = VoiceContent.placeHolderOut(CONTACT_CATEGORY_GROUP, remoteNum, String.format("%04X", duration), content, 1, 3);
// 把voiceContent拆解成1024的分包
Util.parseToVoicePacketSent(voiceContent, 900);
CoreService.getInstance().getConnection()
.DeliverCMDMessageToSystem("SentVoicePacket", "");
}
-
}
public boolean handleCmd(CMD_TYPE type, String cmd) {