| | |
| | | import com.fgkj.bres.FileDataParseInfo_Interface;
|
| | | import com.fgkj.bres.RES_Crc16;
|
| | | import com.fgkj.data.ComBase;
|
| | | import com.fgkj.data.ComFn;
|
| | |
|
| | | /**
|
| | | * FBS充放电数据解析
|
| | |
| | | }else {
|
| | | parse_result = PARSE_RESULT_FILEERROR;
|
| | | }
|
| | | System.out.println("FFFFFF");
|
| | | while(true)
|
| | | {
|
| | | if(testDataInfo.checkDataHead(fis))
|
| | |
| | | public boolean setData(byte[] databuf) {
|
| | | boolean flag = true;
|
| | | //System.out.println(databuf.length + "===" + BYTE_LEN);
|
| | | //System.out.println(ComFn.bytesToHexString(databuf, databuf.length));
|
| | | System.out.println(ComFn.bytesToHexString(databuf, databuf.length));
|
| | | ByteBuffer bf = ByteBuffer.allocate(databuf.length + dataType.length);
|
| | | bf.order(ByteOrder.LITTLE_ENDIAN);
|
| | | bf.position(0);
|
| | |
| | |
|
| | | public static void main(String[] args) {
|
| | | TestDataInfo info = new TestDataInfo();
|
| | | info.readFileData("D:\\桌面文件备份\\公司各种设备资料\\FBS存储文件解析/M2021-06-22 13.08.40.MCP");
|
| | | info.readFileData("C:\\Users\\DELL\\Desktop\\新建文件夹 (2)\\电池组1\\M2024-12-26 09.03.26.MCP");
|
| | | // info.readFileData("C:\\Users\\DELL\\Documents\\WeChat Files\\wxid_wwepud71epso21\\FileStorage\\File\\2024-12\\M2024-12-25 10.39.13.MCP");
|
| | | //info.readFileData("D:\\桌面文件备份\\公司各种设备资料\\FBS存储文件解析/M2021-06-22 13.12.45.MCH");
|
| | | //info.readFileData("D:\\桌面文件备份\\公司各种设备资料\\FBS存储文件解析/M2021-08-13 09.40.06.MCP");
|
| | |
|