....as binary text & some protocol stack values as binary string
CMCE_protocol:
GlobalFunction._sdsTxt = string.Empty;
...
...
//ADDX
int sdsLen = 0;
if (result.TryGetValue(GlobalNames.User_Defined_Data4_Length, out sdsLen))
{
if (sdsLen > 0)
{
this._sds.ParseTxt(channelData, sdsLen);
}
}
//ADDX
Global:
....
public static string _sdsTxt = string.Empty;
public static string _protocolIdentifier = string.Empty;
// ADDX
public static unsafe void sdsTxt(LogicChannel channelData, int len)
{
GlobalFunction._sdsTxt = TetraUtils.BitsToString(channelData.Ptr, 0, len);
}
public static unsafe void protocolIdentToStr(int protoId)
{
_protocolIdentifier = Convert.ToString(protoId, 2).PadLeft(8, '0');
}
// ADDX
Sds:
//ADDX
public unsafe void ParseTxt(LogicChannel channelData, int len)
{
GlobalFunction.sdsTxt(channelData, len);
}
//ADDX
///ADDX
GlobalFunction.protocolIdentToStr((int) int32_1);
Net:
... + " Length:" + num1.ToString() + " DATA: " + GlobalFunction._sdsTxt + " ";
... + " Protocol:" + ((SdsProtocolIdent) num1).ToString() + " " + GlobalFunction._protocolIdentifier + " ";
... + " TextCodingScheme:" + ((TextCodingSchemeType) num1).ToString() + " " + Convert.ToString(num1, 2).PadLeft(8, '0') + " ";
Test runs showed SDS type UDT-4 e.g.
SSI:x D_SDS_Data Party_SSI:x Type:UDT-4 Length:x DATA: '...' Protocol:PIN_authentication
... timestamps, saving data to e.g. SQL Server (or to some cloud DB), more raw data (bin/hex) to display ... and plug-in starts to seem like a modest SIGINT/COMINT tool.
Kommentit
Tämän blogin kommentit tarkistetaan ennen julkaisua.