97 lines
2.4 KiB
C#
97 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Tetra_GW
|
|
{
|
|
public struct MulticastParams
|
|
{
|
|
public String mIP;
|
|
public Int32 mPort;
|
|
}
|
|
|
|
public struct GatewayParams
|
|
{
|
|
public String IP;
|
|
public Int32 ID;
|
|
public Int32 RADIO_GW_ID;
|
|
public String COMPort;
|
|
public Boolean autoconnect;
|
|
}
|
|
|
|
public class htCell_t
|
|
{
|
|
public string lat, lng, spd; // GPS data
|
|
public DateTime location_time;
|
|
//public double radius;
|
|
//public string di;
|
|
//public DateTime activity_time; // = min(gpstime, arstime)
|
|
public string suid;
|
|
public Boolean state = false;
|
|
}
|
|
|
|
public enum DataType { STATUS_MESSAGE = 0, SDS_TYPE_1 = 1, SDS_TYPE_2 = 2, SDS_TYPE_3 = 3, SDS_TYPE_4}
|
|
|
|
struct next_msg
|
|
{
|
|
public int src_SUID;
|
|
public int msg_len;
|
|
public bool parse;
|
|
public int suid_type;
|
|
public DataType data_type;
|
|
}
|
|
|
|
enum Request_Identifier
|
|
{
|
|
SU_is_powered_ON = 0x0,
|
|
SU_is_powered_OFF = 0x1,
|
|
Emergency_condition_detected = 0x2,
|
|
PTT_condition_detected = 0x3,
|
|
Status = 0x4,
|
|
Transmit_Inhibit_Mode_ON = 0x5,
|
|
Transmit_Inhibit_Mode_OFF = 0x6,
|
|
System_access = 0x7,
|
|
DMO_ON = 0x8,
|
|
Enter_service = 0x9,
|
|
Leave_service = 0xA,
|
|
Cell_reselection = 0xB,
|
|
Low_battery = 0xC,
|
|
SU_connected_Digital_Car_Kit = 0xD,
|
|
SU_disconnected_Digital_Car_Kit = 0xE,
|
|
Loss_of_coverage = 0xF,
|
|
Recovery_of_coverage = 0x10,
|
|
SU_movement_by_amount = 0x2D,
|
|
Predefined_text_message = 0x2E,
|
|
Periodic_report = 0x2F
|
|
};
|
|
|
|
enum Report_Messages_Tokens_ENUM
|
|
{
|
|
ellipse_2d = 0x5A,
|
|
ellipse_2d1 = 0x5B,
|
|
ellipse_3d = 0x5C,
|
|
ellipse_3d1 = 0x5D,
|
|
ellipse_3d2 = 0x5E,
|
|
ellipse_3d3 = 0x5F,
|
|
request_id = 0x23,
|
|
circle_2d = 0x51,
|
|
circle_3d = 0x54,
|
|
circle_3d1 = 0x55,
|
|
direction_hor = 0x56,
|
|
info_time = 0x34,
|
|
info_time1 = 0x35,
|
|
lev_conf = 0x65,
|
|
point_2d = 0x66,
|
|
point_3d = 0x69,
|
|
point_3d1 = 0x6A,
|
|
protocol_version = 0x36,
|
|
result = 0x37,
|
|
result1 = 0x38,
|
|
result2 = 0x39,
|
|
speed_hor_int = 0x6B,
|
|
speed_hor_flt = 0x6C,
|
|
speed_vrt = 0x70
|
|
}
|
|
}
|