在Matlab中解析时间戳和Hex文件
我有一个 txt 文件,其中包含时间戳、十六进制数据和编码代码。 我需要解析十六进制数据并将其插入文件中。 这是该文件的一个示例:
15:25:21 0000 04 24 E8 03 04 00 B0 04 00 00 5B AA 44 04 24 E8 .$è...°...[ªD.$è
0010 03 04 00 B0 04 00 00 5B AA 44 04 24 E8 03 04 00 ...°...[ªD.$è...
0020 B0 04 00 00 5B AA 44 04 24 E8 03 04 00 B0 04 00 °...[ªD.$è...°..
0030 00 5B AA 44 04 24 E8 03 04 00 B1 04 00 00 5A AA .[ªD.$è...±...Zª
0040 44 04 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 D.$è...±...ZªD.$
0050 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 E8 03 04 è...±...ZªD.$è..
0060 00 B1 04 00 00 5A AA 44 04 24 E8 03 04 00 B1 04 .±...ZªD.$è...±.
0070 00 00 5A AA 44 04 24 E8 03 04 00 B1 04 00 00 5A ..ZªD.$è...±...Z
0080 AA 44 04 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 ªD.$è...±...ZªD.
0090 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 E8 03 $è...±...ZªD.$è.
我在解析它时遇到问题,我能够将(订单)解析为获取时间戳单元格、十六进制单元格(对于每个值)和编码单元格的列,但无法获取完整的十六进制值价值观。 我需要提取 04...03.. 等等。 有什么帮助吗?
I have a txt file that contains a timestamp, hex data, and encoded code.
I need to parse just the hex data and insert it in a file.
Here it is a n example of the file:
15:25:21 0000 04 24 E8 03 04 00 B0 04 00 00 5B AA 44 04 24 E8 .$è...°...[ªD.$è
0010 03 04 00 B0 04 00 00 5B AA 44 04 24 E8 03 04 00 ...°...[ªD.$è...
0020 B0 04 00 00 5B AA 44 04 24 E8 03 04 00 B0 04 00 °...[ªD.$è...°..
0030 00 5B AA 44 04 24 E8 03 04 00 B1 04 00 00 5A AA .[ªD.$è...±...Zª
0040 44 04 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 D.$è...±...ZªD.$
0050 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 E8 03 04 è...±...ZªD.$è..
0060 00 B1 04 00 00 5A AA 44 04 24 E8 03 04 00 B1 04 .±...ZªD.$è...±.
0070 00 00 5A AA 44 04 24 E8 03 04 00 B1 04 00 00 5A ..ZªD.$è...±...Z
0080 AA 44 04 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 ªD.$è...±...ZªD.
0090 24 E8 03 04 00 B1 04 00 00 5A AA 44 04 24 E8 03 $è...±...ZªD.$è.
I have a problem parsing it, I was able to parse (orders) as columns getting the timestamp cell, hex cells (for each value) and encoded cell, but getting stuck to get the full hex values.
I need to extract just the 04... 03.. etc etc.
Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论