vector BLF 文件读写

1 BLF文件格式

文件头部包含内容

TYPE变量说明
FileStatisticssignatureDWORD , 信号量
statisticsSizeDWORD , sizeof(FileStatistics)
applicationIdBYTE, applicat ion ID(usually CANoe)
applicationMajorBYTE , application major number (usually 0)
applicationMinorBYTE , application minor number (usually 0)
applicationBuildBYTE , application build number (usually 0)
apiMajorBYTE , BL API major number (e.g. 3)
apiMinorBYTE , BL API minor number (e.g. 9)
apiBuildBYTE , BL API major number (e.g. 6)
apiPatchBYTE , BL API patch number (e.g. 3)
fileSizeULONGLONG ,文件大小 以字节记
uncompressedFileSizeULONGLONG ,解压缩文件大小
objectCountDWORD ,number of objects
objectsReadDWORD ,number of objects read
measurementStartTimeSYSTEMTIME ,测量开始时间
lastObjectTimeSYSTEMTIME ,最后一个对象的时间
reserved[18]DWORD
LogContainerobjectFlagsDWORD,object flags (usually BL_OBJ_FLAG_TIME_ONE_NANS)
reservedWORD
objectVersionWORD, object specific version (usually 0)
uncompressedFileSizeULONGLONG,解压文件大小
compressedFileSizestd::streamsize,压缩文件大小
compressedFilechar *,压缩文件内容 ,存储压缩后的can object

can message 内容

TYPE变量说明
ObjectHeaderBasesignatureDWORD , 目标信号
headerSizeWORD ,sizeof object header ,取决于header的类型
headerVersionWORD ,object header 的类型(objectheader 有两种版本,以下只解释version 1)
objectSizeDWORD ,can object的大小
objectTypeDWORD ,can object的类型
ObjectHeaderobjectFlagsDWORD ,object 时间戳的单位 :10微妙或1ns
reserved‘[’2]BYTE
objectVersionWORD ,object specific version,必须设为0
objectTypeDWORD ,can object的类型
objectTimeStampULONGLONG,can object在 objectFlags给出单位上的时间戳
CanMessagechannelWORD ,通道数
flagsBYTE , Bit 0: TX 、Bit 5: NERR、Bit 6: WU、 Bit 7: RTR
dlcBYTE
idDWORD
data’['8]BYTE

2 BLF文件写入流程

Created with Raphaël 2.2.0 开始 TCP/IP获取的can报文,获取系统时间, 创建uncompressedFile 写入can msg 是否达到单个 logcontainer 存储上限? 记录报文数量、时间戳 、进行打包压缩、 记录压缩前后文件的大小 创建logcontainer、写入状态值及压缩文件 是否达单个blf文件的存储上限? 创建FileStatistics,写入各个状态值 创建blf文件并设置其读写状态, 按位写入 FileStatistics、logcontainer 结束 yes no yes no

3 注意事项

  1. 注意各帧报文timstamp与filestatistics上lastObjectTime参数的对应设置
  2. blf文件中measurementStartTime 与lastObjectTime的时间间隔不宜过短 ,以小于1ms为例。
    以上两种情况均容易产生在canoe解析时发生 Warning: The configured time interval is outside the logging file’s scope .
InstallShield PackageForTheWeb Password Cracker (C)thewd@hotmail.com ------------------------------------------------------------------------------ Usage: ISpftw [/longPassword] [/ignoreLength] [/dumpHeaders] target installation that has been distributed using PackageForTheWeb [/longPassword] (PFTW v2.03+) used to attempt recovery of long passwords (28-54 characters) (requires a certain knowledge about the files contained within the cabinet) e.g. cabinet contains test.txt, test1.txt, test2.txt and test3.txt files a) Number Of Files : 4 b) Filenames Length : 45 c) Size Of First File : 4 d) Number Of Chunks : 1 e) Is Compressed? : Yes Notes ===== a) the number of files within the cabinet b) the total length of all the filenames (including directories), i.e. \test.txt \1\test1.txt \2\test2.txt \3\test3.txt = 9 + 12 + 12 + 12 = 45 c) the uncompressed size of the first file in the cabinet (in bytes) d) the number of data chunks used (depends on the size of the files) i.e. once a certain number of bytes have been compressed a new data chuck is created, but this value isn't fixed (depends on source) e) whether the cabinet data has been compressed (usually yes) Even if you don't know all the required information, by looking at the password recovered you may be able to guess the incorrect characters [/ignoreLength] (PFTW v2.03+) ignores the password length determined by this utility, because certain character combinations in the password can return the wrong value [/dumpHeaders] (PFTW v2.03+) dumps the encrypted and decrypted packagefortheweb file headers. Can be used to analyse the length and validity of the password and to determine which characters are invalid ------------------------------------------------------------------------------ Note: Supports InstallShield P
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值