简体   繁体   English

将使用 BER(基本编码规则)编码的文件解码并解析为 output 相关字段到 csv 没有 a.asn(ASN.1)模式?

[英]Decode and parse a file encoded with BER(Basic encoding rules) to output relevant fields to csv without a .asn (ASN.1) schema?

The files I have been given are sample CDR files(Call Detail Records)我得到的文件是示例 CDR 文件(呼叫详细记录)

SGSN / GGSN data format: ASN.1 Basic Encoding Rules (BER). SGSN/GGSN 数据格式:ASN.1 基本编码规则 (BER)。

The files have no extensions and I do not have a schema to work with.这些文件没有扩展名,我没有可以使用的架构。 How can I approach this?我该如何处理?

To a certain extent it is possible to decode any valid BER encoded data without having the ASN.1 schema.在一定程度上,无需 ASN.1 模式就可以解码任何有效的 BER 编码数据。

Try decoding the file using the unber tool from the asn1c project or this online decoder.尝试使用asn1c项目中的unber工具或在线解码器解码文件。

Vasil is correct that, to a degree, BER can be decoded without a schema. Vasil 是正确的,在某种程度上,BER 可以在没有模式的情况下进行解码。 However, if the schema uses implicit tags, you won't get very far until you have blocks of data that you have no idea how to interpret.但是,如果架构使用隐式标记,那么在您拥有不知道如何解释的数据块之前,您不会走得太远。 You will very likely need to either get the schema files or use a tool that has the appropriate schema definitions built-in.您很可能需要获取架构文件或使用内置了适当架构定义的工具。

If the files follow 3GPP 32.297 and 32.298, those specifications are freely available and you may be interested in https://www.3gpp.org/ftp/Specs/archive/32_series/32.298/ASN.1/如果文件遵循 3GPP 32.297 和 32.298,这些规范是免费提供的,您可能对https 感兴趣://www.3gpp.org/ftp/Specs/archive/32_series/32.298/ASN.1/

My company has a visual editor that can handle 32.297 CDR files.我公司有一个可视化编辑器,可以处理 32.297 个 CDR 文件。 You can get a trial at: https://www.obj-sys.com/products/asn1ve/index.php .您可以在以下位置进行试用: https://www.obj-sys.com/products/asn1ve/index.php It comes with some CDR specs built in, so you might not need to get the schemas yourself.它内置了一些 CDR 规范,因此您可能不需要自己获取模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM