Skip to content

TransmitterPDU data appears to be misinterpreted.  #62

@HalRules

Description

@HalRules

I’ve been getting a “Malformed Packet" message from the TransmitterPdu Class that I believe is interpreting the data incorrectly.

The Modulation Parameter length field (as listed in the online DIS Data Dictionary) should represent the SIZE of parameter data and not the parameter COUNT.

Specifically, IEEE 1278.1 states that the field “shall specify the length in octets of the modulation parameters that follow this field”.

This aligns with data that I have been reviewing. While it’s true that modulation parameter fields are supposed to be 2 bytes, it appears as though the data is interpreted differently depending on the modulation type in practice.

I’ve seen no data that includes Antenna Parameters, but it appears to me as though the Antenna Pattern Length Field should also represent total data size instead of the number of antenna patterns.

"This field shall specify the length in octets of the Antenna Pattern Parameters field. "

I would suggest the following changes:
antennaPatternCount should be changed to antennaPatternSize
modulationParameterCount should be changed to modulationParameterSize
mod_bytes should always be 1 (or removed altogether)
I haven’t any data to confirm, but I think “range(0, self.antennaPatternCount)” should probably be changed to “range(0, self.antennaPatternCount//39)” as well.

I've made not specific changes myself other than to change mod_bytes to 1 when it has a value larger than 2 so that I can interpret the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions