CroatiaControlLtd / asterix

Asterix is utility used to read and parse EUROCONTROL ASTERIX protocol data from stdin, file or network multicast stream and print it to standard output in text, XML or JSON format. Source can be used to generate Wireshark dissector for ASTERIX protocol. All ASTERIX categories are defined through XML definition file.
GNU General Public License v2.0
169 stars 90 forks source link

Category 21 edition/version 2.1 #199

Open rdoradoindra opened 2 years ago

rdoradoindra commented 2 years ago

Hello,

I have ASTERIX data of category 21 edition 2.1. I would like to know how decode a specify edition, in this case 2.1. (If is possible).

Cat 21 edition 2.1

hexstr = '150063f71b7b6bd3a70414470101000d4c011f718bff83c90fb8c556ffc1e49339ceb82a9ce82a9cb817c831f315b0120fb405c840000007f393182a9cf25161b6dc26a003c5c80010b301f7c359400c007e0c0004000e04044c7e0c07c40858'

Asterix_pkt = bytearray.fromhex(hexstr)

Many thanks

marius190 commented 2 years ago

Hi,

You can use asterix.parse() I think. See this post:

https://github.com/CroatiaControlLtd/asterix/issues/195