mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 17:47:32 -05:00
P25 P1 MBE ESS order (#2273)
* Modified P25P1 MBE ESS order. ESS will now be populated after LDU2, not at the beginning of LDU2 * Added a version field and incremented it to '2' to signify a breaking change in the order of P25P1 ESS placement.
This commit is contained in:
@@ -36,7 +36,7 @@ import java.util.List;
|
|||||||
* radio identifiers.
|
* radio identifiers.
|
||||||
*/
|
*/
|
||||||
@JsonRootName("mbe_call")
|
@JsonRootName("mbe_call")
|
||||||
@JsonPropertyOrder({"protocol", "call_type", "from", "to", "encrypted", "frames"})
|
@JsonPropertyOrder({"protocol", "version", "call_type", "from", "to", "encrypted", "system", "site", "frames"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class MBECallSequence
|
public class MBECallSequence
|
||||||
{
|
{
|
||||||
@@ -77,6 +77,15 @@ public class MBECallSequence
|
|||||||
mProtocol = protocol;
|
mProtocol = protocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the version number for the mbe file structure.
|
||||||
|
* Should be incremented only on breaking structural changes, not minor additions.
|
||||||
|
*/
|
||||||
|
@JsonProperty("version")
|
||||||
|
public Integer getVersion()
|
||||||
|
{
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this sequences contains any audio frames
|
* Indicates if this sequences contains any audio frames
|
||||||
|
|||||||
@@ -152,10 +152,6 @@ public class P25P1CallSequenceRecorder extends MBECallSequenceRecorder
|
|||||||
{
|
{
|
||||||
process((LDU1Message)lduMessage);
|
process((LDU1Message)lduMessage);
|
||||||
}
|
}
|
||||||
else if(lduMessage instanceof LDU2Message)
|
|
||||||
{
|
|
||||||
process((LDU2Message)lduMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
List<byte[]> voiceFrames = lduMessage.getIMBEFrames();
|
List<byte[]> voiceFrames = lduMessage.getIMBEFrames();
|
||||||
|
|
||||||
@@ -170,6 +166,10 @@ public class P25P1CallSequenceRecorder extends MBECallSequenceRecorder
|
|||||||
baseTimestamp += 20;
|
baseTimestamp += 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(lduMessage instanceof LDU2Message)
|
||||||
|
{
|
||||||
|
process((LDU2Message)lduMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void process(LinkControlWord lcw)
|
private void process(LinkControlWord lcw)
|
||||||
|
|||||||
Reference in New Issue
Block a user