mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-11 08:07:24 -05:00
Compare commits
15 Commits
v0.3.0-bet
...
v0.3.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbc6e508bd | ||
|
|
f9b6e67b00 | ||
|
|
a628800a71 | ||
|
|
25f71a76c4 | ||
|
|
5fe8ccd478 | ||
|
|
069f951a86 | ||
|
|
dab6df7836 | ||
|
|
89da46b63c | ||
|
|
5f2ce2a9f2 | ||
|
|
7a0b377971 | ||
|
|
5dbe0ecce3 | ||
|
|
6647c581a6 | ||
|
|
a2ab5bfa95 | ||
|
|
ed486440b8 | ||
|
|
13464e01fc |
@@ -7,7 +7,7 @@
|
||||
<property name="major" value="0"/>
|
||||
<property name="minor" value="3"/>
|
||||
<property name="patch" value="0"/>
|
||||
<property name="release" value="-beta8"/>
|
||||
<property name="release" value="-beta10"/>
|
||||
<property name="filename" value="sdrtrunk_${major}.${minor}.${patch}${release}"/>
|
||||
|
||||
<!-- Build properties -->
|
||||
|
||||
@@ -90,7 +90,8 @@ public class AudioChannelPanel extends JPanel
|
||||
|
||||
private void init()
|
||||
{
|
||||
setLayout(new MigLayout("align center center, insets 0 0 0 0", "[][][align right]0[grow,fill]", ""));
|
||||
setLayout(new MigLayout("align center center, insets 0 0 0 0",
|
||||
"[][][align right]0[grow,fill]", ""));
|
||||
setBackground(mBackgroundColor);
|
||||
|
||||
mMutedLabel.setFont(mFont);
|
||||
@@ -109,7 +110,7 @@ public class AudioChannelPanel extends JPanel
|
||||
|
||||
mTo.setFont(mFont);
|
||||
mTo.setForeground(mValueColor);
|
||||
add(mTo);
|
||||
add(mTo,"wmin 10lp");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -159,30 +160,40 @@ public class AudioChannelPanel extends JPanel
|
||||
* does not occur on the Swing event thread -- wrap any calls to this
|
||||
* method with an event thread call.
|
||||
*/
|
||||
private void updateLabel(JLabel valueLabel, String value, JLabel aliasLabel, Alias alias)
|
||||
private void updateLabel(JLabel textLabel, String value, JLabel iconLabel, Alias alias)
|
||||
{
|
||||
if(value != null)
|
||||
{
|
||||
|
||||
if(alias != null)
|
||||
{
|
||||
valueLabel.setText(alias.getName());
|
||||
aliasLabel.setIcon(mIconManager.getIcon(alias.getIconName(), 18));
|
||||
iconLabel.setIcon(mIconManager.getIcon(alias.getIconName(), 18));
|
||||
|
||||
String aliasName = alias.getName();
|
||||
|
||||
//Truncate label if length exceeds 33 characters - hack!
|
||||
if(aliasName.length() > 33)
|
||||
{
|
||||
textLabel.setText(aliasName.substring(0,30) + "...");
|
||||
}
|
||||
else
|
||||
{
|
||||
textLabel.setText(aliasName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
valueLabel.setText(value);
|
||||
aliasLabel.setIcon(null);
|
||||
iconLabel.setIcon(null);
|
||||
textLabel.setText(value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
valueLabel.setText("-----");
|
||||
aliasLabel.setIcon(null);
|
||||
iconLabel.setIcon(null);
|
||||
textLabel.setText("-----");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Processes audio metadata to update this panel's display values
|
||||
*/
|
||||
|
||||
@@ -33,8 +33,7 @@ public class AudioChannelsPanel extends JPanel
|
||||
|
||||
public AudioChannelsPanel(IconManager iconManager, SettingsManager settingsManager, IAudioController controller)
|
||||
{
|
||||
// setLayout(new MigLayout("insets 0 0 0 0", "[][grow,fill][][grow,fill]", "[grow,fill]"));
|
||||
setLayout(new MigLayout("insets 0 0 0 0", "[][sg,grow,fill][][sg,grow,fill]", "[grow,fill]"));
|
||||
setLayout(new MigLayout("insets 0 0 0 0", "[][sg abc,grow,fill][][sg abc,grow,fill]", "[grow,fill]"));
|
||||
|
||||
setBackground(Color.BLACK);
|
||||
|
||||
@@ -44,7 +43,7 @@ public class AudioChannelsPanel extends JPanel
|
||||
|
||||
for(int x = 0; x < outputs.size(); x++)
|
||||
{
|
||||
add(new AudioChannelPanel(iconManager, settingsManager, outputs.get(x)), "growx");
|
||||
add(new AudioChannelPanel(iconManager, settingsManager, outputs.get(x)));
|
||||
|
||||
if(x < outputs.size() - 1)
|
||||
{
|
||||
|
||||
@@ -63,13 +63,11 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
private Listener<CallEvent> mCallEventListener;
|
||||
|
||||
private ChannelModel mChannelModel;
|
||||
private ChannelProcessingManager mChannelProcessingManager;
|
||||
private DecodeConfiguration mDecodeConfiguration;
|
||||
private RecordConfiguration mRecordConfiguration;
|
||||
private String mSystem;
|
||||
private String mSite;
|
||||
private String mAliasListName;
|
||||
private CallEvent mPreviousDoNotMonitorCallEvent;
|
||||
|
||||
/**
|
||||
* Monitors call events and allocates traffic decoder channels in response
|
||||
@@ -77,7 +75,6 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
* traffic channel allocations.
|
||||
*
|
||||
* @param channelModel containing channels currently in use
|
||||
* @param channelProcessingManager
|
||||
* @param decodeConfiguration - decoder configuration to use for each
|
||||
* traffic channel allocation.
|
||||
* @param recordConfiguration - recording options for each traffic channel
|
||||
@@ -88,7 +85,6 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
* in the pool
|
||||
*/
|
||||
public TrafficChannelManager(ChannelModel channelModel,
|
||||
ChannelProcessingManager channelProcessingManager,
|
||||
DecodeConfiguration decodeConfiguration,
|
||||
RecordConfiguration recordConfiguration,
|
||||
String system,
|
||||
@@ -97,7 +93,6 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
int trafficChannelPoolSize)
|
||||
{
|
||||
mChannelModel = channelModel;
|
||||
mChannelProcessingManager = channelProcessingManager;
|
||||
mDecodeConfiguration = decodeConfiguration;
|
||||
mRecordConfiguration = recordConfiguration;
|
||||
mSystem = system;
|
||||
@@ -120,7 +115,6 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
|
||||
mCallEventListener = null;
|
||||
mDecodeConfiguration = null;
|
||||
mPreviousDoNotMonitorCallEvent = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -197,21 +191,7 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
|
||||
long frequency = callEvent.getFrequency();
|
||||
|
||||
/* Check the from/to aliases for do not monitor priority */
|
||||
if(isDoNotMonitor(callEvent))
|
||||
{
|
||||
callEvent.setCallEventType(CallEventType.CALL_DO_NOT_MONITOR);
|
||||
|
||||
if(isSameCallEvent(mPreviousDoNotMonitorCallEvent, callEvent))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
mPreviousDoNotMonitorCallEvent = callEvent;
|
||||
}
|
||||
}
|
||||
else if(frequency > 0)
|
||||
if(frequency > 0)
|
||||
{
|
||||
Channel channel = getChannel(callEvent.getChannel(), new TunerChannel(Type.TRAFFIC,
|
||||
frequency, mDecodeConfiguration.getDecoderType().getChannelBandwidth()));
|
||||
@@ -330,31 +310,6 @@ public class TrafficChannelManager extends Module implements ICallEventProvider,
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for aliases that contain a do not follow/process priority.
|
||||
*
|
||||
* @param event
|
||||
* @return - true if there is an alias that has a do not process alias id
|
||||
*/
|
||||
private boolean isDoNotMonitor(CallEvent event)
|
||||
{
|
||||
Alias to = event.getToIDAlias();
|
||||
|
||||
if(to != null && to.hasCallPriority() && to.getCallPriority() == Priority.DO_NOT_MONITOR)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Alias from = event.getFromIDAlias();
|
||||
|
||||
if(from != null && from.hasCallPriority() && from.getCallPriority() == Priority.DO_NOT_MONITOR)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Listener<DecoderStateEvent> getDecoderStateListener()
|
||||
{
|
||||
|
||||
@@ -222,7 +222,7 @@ public class DecoderFactory
|
||||
|
||||
if(channelType == ChannelType.STANDARD)
|
||||
{
|
||||
modules.add(new TrafficChannelManager(channelModel, channelProcessingManager, decodeConfig,
|
||||
modules.add(new TrafficChannelManager(channelModel, decodeConfig,
|
||||
channel.getRecordConfiguration(), channel.getSystem(), channel.getSite(),
|
||||
(aliasList != null ? aliasList.getName() : null), mptConfig.getTrafficChannelPoolSize()));
|
||||
}
|
||||
@@ -263,7 +263,7 @@ public class DecoderFactory
|
||||
|
||||
if(channelType == ChannelType.STANDARD)
|
||||
{
|
||||
modules.add(new TrafficChannelManager(channelModel, channelProcessingManager, decodeConfig,
|
||||
modules.add(new TrafficChannelManager(channelModel, decodeConfig,
|
||||
channel.getRecordConfiguration(), channel.getSystem(), channel.getSite(),
|
||||
(aliasList != null ? aliasList.getName() : null), p25Config.getTrafficChannelPoolSize()));
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class LJ1200DecoderState extends DecoderState
|
||||
super(aliasList);
|
||||
|
||||
mAddressAttribute = new AliasedStringAttributeMonitor(Attribute.SECONDARY_ADDRESS_TO,
|
||||
getAttributeChangeRequestListener(), getAliasList(), AliasIDType.LOJACK);
|
||||
getAttributeChangeRequestListener(), getAliasList(), AliasIDType.SITE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -315,6 +315,8 @@ public class P25DecoderState extends DecoderState
|
||||
*/
|
||||
public void registerCallEvent(P25CallEvent event)
|
||||
{
|
||||
String channel = event.getChannel();
|
||||
|
||||
if(mChannelCallMap.containsKey(event.getChannel()))
|
||||
{
|
||||
P25CallEvent previousEvent = mChannelCallMap.remove(event.getChannel());
|
||||
@@ -1557,6 +1559,7 @@ public class P25DecoderState extends DecoderState
|
||||
break;
|
||||
case IDENTIFIER_UPDATE_NON_VUHF:
|
||||
case IDENTIFIER_UPDATE_VHF_UHF_BANDS:
|
||||
case IDENTIFIER_UPDATE_TDMA:
|
||||
IdentifierUpdate iu = (IdentifierUpdate)tsbk;
|
||||
|
||||
if(!mBands.containsKey(iu.getIdentifier()))
|
||||
@@ -2735,6 +2738,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(pgvcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(pgvcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(pgvcg.getPriority());
|
||||
details.append(pgvcg.isEncryptedChannel() ? " ENCRYPTED" : "");
|
||||
@@ -2742,7 +2746,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.PATCH_GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (pgvcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(pgvcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -2775,8 +2779,9 @@ public class P25DecoderState extends DecoderState
|
||||
{
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.PATCH_GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (gvcgu.isTDMAChannel1() ? " TDMA" : ""))
|
||||
.details((gvcgu.isEncrypted() ? "ENCRYPTED " : ""))
|
||||
.channel(channel)
|
||||
.details((gvcgu.isTDMAChannel1() ? "TDMA " : "") +
|
||||
(gvcgu.isEncrypted() ? "ENCRYPTED " : ""))
|
||||
.frequency(gvcgu.getDownlinkFrequency1())
|
||||
.to(to)
|
||||
.build();
|
||||
@@ -2801,8 +2806,9 @@ public class P25DecoderState extends DecoderState
|
||||
{
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.PATCH_GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel2 + (gvcgu.isTDMAChannel2() ? " TDMA" : ""))
|
||||
.details((gvcgu.isEncrypted() ? "ENCRYPTED " : ""))
|
||||
.channel(channel2)
|
||||
.details((gvcgu.isTDMAChannel2() ? "TDMA " : "") +
|
||||
(gvcgu.isEncrypted() ? "ENCRYPTED " : ""))
|
||||
.frequency(gvcgu.getDownlinkFrequency2())
|
||||
.to(to2)
|
||||
.build();
|
||||
@@ -2866,6 +2872,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(gdcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(gdcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(gdcg.getPriority()).append(" ");
|
||||
details.append(gdcg.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -2873,7 +2880,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.DATA_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (gdcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(gdcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -2904,6 +2911,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(gvcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(gvcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(gvcg.getPriority()).append(" ");
|
||||
details.append(gvcg.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -2911,7 +2919,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (gvcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(gvcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -2928,8 +2936,7 @@ public class P25DecoderState extends DecoderState
|
||||
}
|
||||
break;
|
||||
case GROUP_VOICE_CHANNEL_GRANT_UPDATE:
|
||||
GroupVoiceChannelGrantUpdate gvcgu =
|
||||
(GroupVoiceChannelGrantUpdate)message;
|
||||
GroupVoiceChannelGrantUpdate gvcgu = (GroupVoiceChannelGrantUpdate)message;
|
||||
|
||||
channel = gvcgu.getChannel1();
|
||||
from = null;
|
||||
@@ -2942,6 +2949,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(gvcgu.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(gvcgu.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(gvcgu.getPriority()).append(" ");
|
||||
details.append(gvcgu.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -2949,7 +2957,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(gvcgu.getChannel1() + (gvcgu.isTDMAChannel1() ? " TDMA" : ""))
|
||||
.channel(gvcgu.getChannel1())
|
||||
.details(details.toString())
|
||||
.frequency(gvcgu.getDownlinkFrequency1())
|
||||
.from(from)
|
||||
@@ -2977,6 +2985,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(gvcgu.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(gvcgu.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(gvcgu.getPriority()).append(" ");
|
||||
details.append(gvcgu.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -2984,7 +2993,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event2 = new P25CallEvent.Builder(CallEventType.GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(gvcgu.getChannel2() + (gvcgu.isTDMAChannel2() ? " TDMA" : ""))
|
||||
.channel(gvcgu.getChannel2())
|
||||
.details(details.toString())
|
||||
.frequency(gvcgu.getDownlinkFrequency2())
|
||||
.to(gvcgu.getGroupAddress2())
|
||||
@@ -3016,6 +3025,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(gvcgue.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(gvcgue.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(gvcgue.getPriority()).append(" ");
|
||||
details.append(gvcgue.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -3023,7 +3033,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.GROUP_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (gvcgue.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(gvcgue.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3053,6 +3063,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(idcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(idcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(idcg.getPriority()).append(" ");
|
||||
details.append(idcg.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -3060,7 +3071,7 @@ public class P25DecoderState extends DecoderState
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.DATA_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (idcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(idcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3090,13 +3101,14 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(sdcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(sdcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append(sdcg.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
details.append(sdcg.getSessionMode().name());
|
||||
|
||||
P25CallEvent event = new P25CallEvent.Builder(CallEventType.DATA_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (sdcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(sdcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3128,6 +3140,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(tivcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(tivcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(tivcg.getPriority()).append(" ");
|
||||
details.append(tivcg.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -3137,7 +3150,7 @@ public class P25DecoderState extends DecoderState
|
||||
P25CallEvent event = new P25CallEvent.Builder(
|
||||
CallEventType.TELEPHONE_INTERCONNECT)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (tivcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(tivcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3170,6 +3183,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(tivcgu.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(tivcgu.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(tivcgu.getPriority()).append(" ");
|
||||
details.append(tivcgu.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -3179,7 +3193,7 @@ public class P25DecoderState extends DecoderState
|
||||
P25CallEvent event = new P25CallEvent.Builder(
|
||||
CallEventType.TELEPHONE_INTERCONNECT)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (tivcgu.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(tivcgu.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3209,6 +3223,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(uuvcg.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(uuvcg.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(uuvcg.getPriority()).append(" ");
|
||||
details.append(uuvcg.isEncryptedChannel() ? " ENCRYPTED " : "");
|
||||
@@ -3217,7 +3232,7 @@ public class P25DecoderState extends DecoderState
|
||||
P25CallEvent event = new P25CallEvent.Builder(
|
||||
CallEventType.UNIT_TO_UNIT_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (uuvcg.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(uuvcg.getDownlinkFrequency())
|
||||
.from(from)
|
||||
@@ -3247,6 +3262,7 @@ public class P25DecoderState extends DecoderState
|
||||
else
|
||||
{
|
||||
StringBuilder details = new StringBuilder();
|
||||
details.append(uuvcgu.isTDMAChannel() ? "TDMA " : "");
|
||||
details.append(uuvcgu.isEmergency() ? "EMERGENCY " : "");
|
||||
details.append("PRI:").append(uuvcgu.getPriority()).append(" ");
|
||||
details.append(uuvcgu.isEncryptedChannel() ? "ENCRYPTED " : "");
|
||||
@@ -3255,7 +3271,7 @@ public class P25DecoderState extends DecoderState
|
||||
P25CallEvent event = new P25CallEvent.Builder(
|
||||
CallEventType.UNIT_TO_UNIT_CALL)
|
||||
.aliasList(getAliasList())
|
||||
.channel(channel + (uuvcgu.isTDMAChannel() ? " TDMA" : ""))
|
||||
.channel(channel)
|
||||
.details(details.toString())
|
||||
.frequency(uuvcgu.getDownlinkFrequency())
|
||||
.from(from)
|
||||
|
||||
@@ -41,7 +41,7 @@ public class IdentifierUpdateTDMA extends IdentifierUpdate
|
||||
|
||||
sb.append( " ID:" + getIdentifier() );
|
||||
sb.append( " BASE:" + getBaseFrequency() );
|
||||
sb.append( " BW:" + getBandwidth() );
|
||||
sb.append( " BANDWIDTH:" + getBandwidth() );
|
||||
sb.append( " SPACING:" + getChannelSpacing() );
|
||||
sb.append( " OFFSET:" + getTransmitOffset() );
|
||||
sb.append( " TYPE:" + getChannelType().toString() );
|
||||
@@ -137,7 +137,7 @@ public class IdentifierUpdateTDMA extends IdentifierUpdate
|
||||
|
||||
sb.append( mAccessType.name() );
|
||||
sb.append( " BANDWIDTH:" + mBandwidth );
|
||||
sb.append( " SLOT/CARRIER:" + mSlotsPerCarrier );
|
||||
sb.append( " TIMESLOTS PER CARRIER:" + mSlotsPerCarrier );
|
||||
sb.append( " VOCODER:" + mVocoder.name() );
|
||||
|
||||
return sb.toString();
|
||||
|
||||
Reference in New Issue
Block a user