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
166 stars 89 forks source link

Filter RE data item on CAT62 #201

Open echecazz opened 2 years ago

echecazz commented 2 years ago

Hi, I'm trying to filter RE data item on cat62:

CAT062:IRE:SIC sic CAT062:IRE:TYP typ

but it doesn't work.. could you help please?

dsalantic commented 2 years ago

You have to put those two lines in a file (e.g. filter.txt), then call decoder as "asterix --filter filter.txt".

echecazz commented 2 years ago

You have to put those two lines in a file (e.g. filter.txt), then call decoder as "asterix --filter filter.txt".

Thank you for your answer. Yes, I use the txt for filtering, my txt contains the following lines:

CAT062:I070:ToT time
CAT062:I105:Lat lat CAT062:I105:Lon lon CAT062:I245:TId id
CAT062:I340:SIC sic CAT062:I340:TYP typ CAT062:IRE:SIC sic2 CAT062:IRE:TYP typ2

The output file contains all fields except IRE items (I verified they exist in Asterix recording).

If I don't use any filter, in the output file IRE items are shown correctly as in the following example:

{"id":1, "cat":62, "length":120, "crc":"B5423983", "timestamp":49352833.000000, "hexdata":".........", "CAT062":{ .......... ..........

"IRE":{
    "CSN":[{
    "SAC":34,
    "SIC":33,
    "spare":0,
    "TYP":8}]},
     .............
     .............

I don't know if I use wrong sintax or maybe it's a software bug...?