mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-22 21:55:39 -05:00
DMR: Code Tweaks to Hytera OTA Encryption; #373
Clarify -H O:0:0 option in usage; DMR: Fix PDU TGT and SRC value swaps in some locations YSF: Fix Full Rate Voice;
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
Build Version: AW 2026-47-ga6ea60b
|
Build Version: AW 2026-83-gdad6d6c
|
||||||
MBElib Version: 1.3.4
|
MBElib Version: 1.3.4
|
||||||
CODEC2 Support Enabled
|
CODEC2 Support Enabled
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ Advanced Decoder options:
|
|||||||
-H C:256:20029736A5D91042C923EB0697484433005EFC58A1905195E28E9C7836AA2DB8'
|
-H C:256:20029736A5D91042C923EB0697484433005EFC58A1905195E28E9C7836AA2DB8'
|
||||||
|
|
||||||
-H <hex> Manually Enter Hytera OTA Encryption 32 Char Hex Key (see example below)
|
-H <hex> Manually Enter Hytera OTA Encryption 32 Char Hex Key (see example below)
|
||||||
-H O:0:0 no keystream application, but check for Hytera OTA Encryption and DMRA EP Late Entry IV.
|
-H O:0:0 Skip Encrypted Signalling, force pseudo call info, and check DMRA EP Late Entry IV.
|
||||||
-H O:128:17bfe59b29a06136fb7d3811fd1a4904 for 128-bit RC4 OTA Key Setup
|
-H O:128:17bfe59b29a06136fb7d3811fd1a4904 for 128-bit RC4 OTA Key Setup
|
||||||
|
|
||||||
-R <dec> Manually Enter dPMR or NXDN EHR Scrambler Key Value (Decimal Value)
|
-R <dec> Manually Enter dPMR or NXDN EHR Scrambler Key Value (Decimal Value)
|
||||||
|
|||||||
@@ -1347,8 +1347,8 @@ void dmr_block_assembler (dsd_opts * opts, dsd_state * state, uint8_t block_byte
|
|||||||
kid = state->payload_keyid;
|
kid = state->payload_keyid;
|
||||||
else kid = state->payload_keyidR;
|
else kid = state->payload_keyidR;
|
||||||
|
|
||||||
char enc_str[200]; memset (enc_str, 200, sizeof(enc_str));
|
char enc_str[200]; memset (enc_str, 0, sizeof(enc_str));
|
||||||
sprintf (enc_str, "DATA TGT: %lld; SRC: %lld; ENC PDU; ALG: %02X; KID: %02X;", state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], alg, kid);
|
sprintf (enc_str, "DATA TGT: %lld; SRC: %lld; ENC PDU; ALG: %02X; KID: %02X;", state->dmr_lrrp_target[slot], state->dmr_lrrp_source[slot], alg, kid);
|
||||||
sprintf (state->dmr_lrrp_gps[slot], "%s", enc_str);
|
sprintf (state->dmr_lrrp_gps[slot], "%s", enc_str);
|
||||||
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], enc_str, slot);
|
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], enc_str, slot);
|
||||||
}
|
}
|
||||||
@@ -1417,8 +1417,8 @@ void dmr_block_assembler (dsd_opts * opts, dsd_state * state, uint8_t block_byte
|
|||||||
//dump to event history
|
//dump to event history
|
||||||
if (mnis_type != 0x11 && mnis_type != 0x01) //if not LRRP or LOCN
|
if (mnis_type != 0x11 && mnis_type != 0x01) //if not LRRP or LOCN
|
||||||
{
|
{
|
||||||
char mnis_str[200]; memset (mnis_str, 200, sizeof(mnis_str));
|
char mnis_str[200]; memset (mnis_str, 0, sizeof(mnis_str));
|
||||||
sprintf (mnis_str, "MNIS TGT: %lld; SRC: %lld;", state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot]);
|
sprintf (mnis_str, "MNIS TGT: %lld; SRC: %lld;", state->dmr_lrrp_target[slot], state->dmr_lrrp_source[slot]);
|
||||||
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], mnis_str, slot);
|
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], mnis_str, slot);
|
||||||
}
|
}
|
||||||
else if (mnis_type == 0x11 || mnis_type == 0x01) //LRRP or LOCN
|
else if (mnis_type == 0x11 || mnis_type == 0x01) //LRRP or LOCN
|
||||||
@@ -1427,8 +1427,8 @@ void dmr_block_assembler (dsd_opts * opts, dsd_state * state, uint8_t block_byte
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char unk_str[200]; memset (unk_str, 200, sizeof(unk_str));
|
char unk_str[200]; memset (unk_str, 0, sizeof(unk_str));
|
||||||
sprintf (unk_str, "DATA TGT: %lld; SRC: %lld; Unknown PDU Format;", state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot]);
|
sprintf (unk_str, "DATA TGT: %lld; SRC: %lld; Unknown PDU Format;", state->dmr_lrrp_target[slot], state->dmr_lrrp_source[slot]);
|
||||||
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], unk_str, slot);
|
watchdog_event_datacall (opts, state, state->dmr_lrrp_source[slot], state->dmr_lrrp_target[slot], unk_str, slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1585,7 +1585,7 @@
|
|||||||
printf (" -H C:256:20029736A5D91042C923EB0697484433005EFC58A1905195E28E9C7836AA2DB8' \n");
|
printf (" -H C:256:20029736A5D91042C923EB0697484433005EFC58A1905195E28E9C7836AA2DB8' \n");
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
printf (" -H <hex> Manually Enter Hytera OTA Encryption 32 Char Hex Key (see example below)\n");
|
printf (" -H <hex> Manually Enter Hytera OTA Encryption 32 Char Hex Key (see example below)\n");
|
||||||
printf (" -H O:0:0 no keystream application, but check for Hytera OTA Encryption and DMRA EP Late Entry IV.\n");
|
printf (" -H O:0:0 Skip Encrypted Signalling, force pseudo call info, and check DMRA EP Late Entry IV.\n");
|
||||||
printf (" -H O:128:17bfe59b29a06136fb7d3811fd1a4904 for 128-bit RC4 OTA Key Setup\n");
|
printf (" -H O:128:17bfe59b29a06136fb7d3811fd1a4904 for 128-bit RC4 OTA Key Setup\n");
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
printf (" -R <dec> Manually Enter dPMR or NXDN EHR Scrambler Key Value (Decimal Value)\n");
|
printf (" -R <dec> Manually Enter dPMR or NXDN EHR Scrambler Key Value (Decimal Value)\n");
|
||||||
|
|||||||
@@ -1039,7 +1039,7 @@ void processYSF(dsd_opts * opts, dsd_state * state)
|
|||||||
for (m = 14; m >= 0; m--)
|
for (m = 14; m >= 0; m--)
|
||||||
imbe_fr[n][m] = imbe_vch[k++];
|
imbe_fr[n][m] = imbe_vch[k++];
|
||||||
}
|
}
|
||||||
for (m = 7; m >= 0; m--)
|
for (m = 6; m >= 0; m--)
|
||||||
imbe_fr[7][m] = imbe_vch[k++];
|
imbe_fr[7][m] = imbe_vch[k++];
|
||||||
|
|
||||||
//fake it as P25p1 and sent to processMBEFrame
|
//fake it as P25p1 and sent to processMBEFrame
|
||||||
|
|||||||
Reference in New Issue
Block a user