using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Tetra_GW { 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 Boolean poll = 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 { circle_2d = 0x50, circle_2d1 = 0x51, circle_3d = 0x52, circle_3d1 = 0x52, circle_3d2 = 0x53, circle_3d3 = 0x54, circle_3d4 = 0x55, current_time = 0x30, current_time1 = 0x31, direction_hor = 0x56, direction_hor1 = 0x90, direction_hor_acc = 0x57, direction_hor_acc1 = 0x91, ellipse_2d = 0x5A, ellipse_2d1 = 0x5B, ellipse_3d = 0x5C, ellipse_3d1 = 0x5D, ellipse_3d2 = 0x5E, ellipse_3d3 = 0x5F, heading_hor = 0x60, heading_hor1 = 0x94, heading_hor_acc = 0x61, heading_hor_acc1 = 0x95, impl_spec_data = 0x32, impl_spec_data1 = 0x33, impl_spec_shape = 0x64, impl_spec_shape1 = 0x98, info_time = 0x34, info_time1 = 0x35, lev_conf = 0x65, lev_conf1 = 0x99, point_2d = 0x66, point_3d = 0x67, point_3d1 = 0x68, point_3d2 = 0x69, point_3d3 = 0x6A, protocol_version = 0x36, result = 0x37, result1 = 0x38, result2 = 0x39, speed_hor_int = 0x6B, speed_hor_flt = 0x6C, speed_hor_acc = 0x6D, speed_hor_acc1 = 0x6E, speed_vrt = 0x6F, speed_vrt1 = 0x70, speed_vrt_acc = 0x71, speed_vrt_acc1 = 0x72, request_id = 0x23, } }