mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 18:47:33 -05:00
Add Motorola Failsoft LC opcode $02 (#2104)
This is broadcast on channels when a site is in failsoft operation (site controller has failed or too few channels are functional to operate in trunking mode).
This commit is contained in:
@@ -1984,6 +1984,9 @@ public class P25P1DecoderState extends DecoderState implements IChannelEventList
|
|||||||
case MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE:
|
case MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE:
|
||||||
//Voice Channel Update message - indicates calls in-progress on another channel - ignored
|
//Voice Channel Update message - indicates calls in-progress on another channel - ignored
|
||||||
break;
|
break;
|
||||||
|
case MOTOROLA_FAILSOFT:
|
||||||
|
//Ignore - there's nothing we can do with failsoft
|
||||||
|
break;
|
||||||
case MOTOROLA_TALKER_ALIAS_HEADER:
|
case MOTOROLA_TALKER_ALIAS_HEADER:
|
||||||
case MOTOROLA_TALKER_ALIAS_DATA_BLOCK:
|
case MOTOROLA_TALKER_ALIAS_DATA_BLOCK:
|
||||||
//Inore - we'll pickup the talker alias from the assembler in the MessageProcessor.
|
//Inore - we'll pickup the talker alias from the assembler in the MessageProcessor.
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public enum LinkControlOpcode
|
|||||||
|
|
||||||
MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_USER("MOTOROLA GROUP REGROUP VOICE CHANNEL USER", 0),
|
MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_USER("MOTOROLA GROUP REGROUP VOICE CHANNEL USER", 0),
|
||||||
MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE("MOTOROLA GROUP REGROUP VOICE CHANNEL UPDATE", 1),
|
MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE("MOTOROLA GROUP REGROUP VOICE CHANNEL UPDATE", 1),
|
||||||
|
MOTOROLA_FAILSOFT("MOTOROLA FAILSOFT", 2),
|
||||||
MOTOROLA_GROUP_REGROUP_ADD("MOTOROLA GROUP REGROUP ADD", 3),
|
MOTOROLA_GROUP_REGROUP_ADD("MOTOROLA GROUP REGROUP ADD", 3),
|
||||||
MOTOROLA_GROUP_REGROUP_DELETE("MOTOROLA GROUP REGROUP DELETE", 4),
|
MOTOROLA_GROUP_REGROUP_DELETE("MOTOROLA GROUP REGROUP DELETE", 4),
|
||||||
MOTOROLA_UNIT_GPS("MOTOROLA UNIT GPS", 6),
|
MOTOROLA_UNIT_GPS("MOTOROLA UNIT GPS", 6),
|
||||||
@@ -241,6 +242,8 @@ public enum LinkControlOpcode
|
|||||||
return MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_USER;
|
return MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_USER;
|
||||||
case 1:
|
case 1:
|
||||||
return MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE;
|
return MOTOROLA_GROUP_REGROUP_VOICE_CHANNEL_UPDATE;
|
||||||
|
case 2:
|
||||||
|
return MOTOROLA_FAILSOFT;
|
||||||
case 3:
|
case 3:
|
||||||
return MOTOROLA_GROUP_REGROUP_ADD;
|
return MOTOROLA_GROUP_REGROUP_ADD;
|
||||||
case 4:
|
case 4:
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import io.github.dsheirer.module.decode.p25.phase1.message.lc.l3harris.LCHarrisT
|
|||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.l3harris.LCHarrisUnknownOpcode42;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.l3harris.LCHarrisUnknownOpcode42;
|
||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.l3harris.LCHarrisUnknownOpcode43;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.l3harris.LCHarrisUnknownOpcode43;
|
||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaEmergencyAlarmActivation;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaEmergencyAlarmActivation;
|
||||||
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaFailsoft;
|
||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupGroupDelete;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupGroupDelete;
|
||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupRegroupAdd;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupRegroupAdd;
|
||||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupRegroupVoiceChannelUpdate;
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola.LCMotorolaGroupRegroupVoiceChannelUpdate;
|
||||||
@@ -175,6 +176,8 @@ public class LinkControlWordFactory
|
|||||||
case L3HARRIS_UNKNOWN:
|
case L3HARRIS_UNKNOWN:
|
||||||
return new UnknownLinkControlWord(message);
|
return new UnknownLinkControlWord(message);
|
||||||
|
|
||||||
|
case MOTOROLA_FAILSOFT:
|
||||||
|
return new LCMotorolaFailsoft(message);
|
||||||
case MOTOROLA_GROUP_REGROUP_ADD:
|
case MOTOROLA_GROUP_REGROUP_ADD:
|
||||||
return new LCMotorolaGroupRegroupAdd(message);
|
return new LCMotorolaGroupRegroupAdd(message);
|
||||||
case MOTOROLA_GROUP_REGROUP_DELETE:
|
case MOTOROLA_GROUP_REGROUP_DELETE:
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* *****************************************************************************
|
||||||
|
* Copyright (C) 2014-2024 Dennis Sheirer, 2024 Ilya Smirnov
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
* ****************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
package io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola;
|
||||||
|
|
||||||
|
import io.github.dsheirer.bits.CorrectedBinaryMessage;
|
||||||
|
import io.github.dsheirer.identifier.Identifier;
|
||||||
|
import io.github.dsheirer.module.decode.p25.phase1.message.lc.LinkControlWord;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Failsoft operation.
|
||||||
|
*/
|
||||||
|
public class LCMotorolaFailsoft extends LinkControlWord
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Constructs a Link Control Word from the binary message sequence.
|
||||||
|
*
|
||||||
|
* @param message
|
||||||
|
*/
|
||||||
|
public LCMotorolaFailsoft(CorrectedBinaryMessage message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Identifier> getIdentifiers()
|
||||||
|
{
|
||||||
|
return Collections.EMPTY_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(" MOTOROLA FAILSOFT:");
|
||||||
|
sb.append(" MSG:").append(getMessage().toHexString());
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user