egts

package
v0.0.0-...-823433a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package nv is a generated protocol buffer package.

It is generated from these files:

egts_sr_egtsplus_data.proto

It has these top-level messages:

StorageRecord
SensAccelerometerData
SensAinAinValue
SensBufferData
SensButtonPressCounter
SensCanLogData
ToProtobufRec
SensCounterCount
SensCrashData
SensDinsFlags
SensDoutsFlags
SensFmeterFrequency
SensFuelLevel
SensGsmCellMonotoringCellMonitoring
SensNdNavData
SensStorInfo
SensTermoData
SensTestEraTests
SensTrackerInfo

Index

Constants

View Source
const AuthService = 1

AuthService тип сервиса AUTH_SERVICE

View Source
const DEFAULT_HEADER_LEN = 11
View Source
const PtAppdataPacket = 1

PtAppdataPacket код типа пакета PT_APP_DATA

View Source
const PtResponsePacket = 0

PtResponsePacket код типа пакета PT_RESPONSE

View Source
const SrAbsAnSensDataType = 24

SrAbsAnSensDataType код типа подзаписи EGTS_SR_ABS_AN_SENS_DATA

View Source
const SrAbsCntrDataType = 25

SrAbsCntrDataType код типа подзаписи EGTS_SR_ABS_CNTR_DATA

View Source
const SrAbsDigSensDataType = 23

SrAbsDigSensDataType код типа подзаписи EGTS_SR_ABS_DIG_SENS_DATA

View Source
const SrAbsLoopinDataType = 26

SrAbsLoopinDataType код типа подзаписи EGTS_SR_ABS_LOOPIN_DATA

View Source
const SrAdSensorsDataType = 18

SrAdSensorsDataType код типа подзаписи EGTS_SR_AD_SENSORS_DATA

View Source
const SrAuthInfoType = 7

SrAuthInfoType код типа подзаписи EGTS_SR_AUTH_INFO

View Source
const SrCountersDataType = 19

SrCountersDataType код типа подзаписи EGTS_SR_COUNTERS_DATA

View Source
const SrDispatcherIdentityType = 5

SrDispatcherIdentityType код типа подзаписи EGTS_SR_DISPATCHER_IDENTITY

View Source
const SrEgtsPlusDataType = 15

SrEgtsPlusDataType код типа подзаписи EGTS_SR_EGTS_PLUS_DATA

View Source
const SrExtPosDataType = 17

SrExtPosDataType код типа подзаписи EGTS_SR_EXT_POS_DATA

View Source
const SrLiquidLevelSensorType = 27

SrLiquidLevelSensorType код код типа подзаписи EGTS_SR_LIQUID_LEVEL_SENSOR

View Source
const SrLoopinDataType = 22

SrLoopinDataType код типа подзаписи EGTS_SR_TERM_IDENTITY_TYPE

View Source
const SrPassengersCountersType = 28

SrPassengersCountersType код типа подзаписи EGTS_SR_PASSENGERS_COUNTERS

View Source
const SrPosDataType = 16

SrPosDataType код типа подзаписи EGTS_SR_POS_DATA

View Source
const SrRecordResponseType = 0

SrRecordResponseType код типа подзаписи EGTS_SR_RECORD_RESPONSE

View Source
const SrResultCodeType = 9

SrResultCodeType код типа подзаписи EGTS_SR_RESULT_CODE

View Source
const SrStateDataType = 21

SrStateDataType код типа подзаписи EGTS_SR_STATE_DATA

View Source
const SrTermIdentityType = 1

SrTermIdentityType код типа подзаписи EGTS_SR_TERM_IDENTITY

View Source
const SrType20 = 20

SrType20 в зависимости от длины может содержать секцию EGTS_SR_STATE_DATA (если длина 5 байт) или EGTS_SR_ACCEL_DATA

View Source
const TeledataService = 2

TeledataService тип сервиса TELEDATA_SERVICE

Variables

View Source
var StorageRecordReason_name = map[int32]string{
	1:  "DEVICE_RESET",
	2:  "PROFILE_CHANGE",
	3:  "IGNITION_ON",
	4:  "IGNITION_OFF",
	5:  "TRIP_BEGIN",
	6:  "TRIP_END",
	7:  "STOP",
	8:  "MOVE",
	9:  "TOWING_BEGIN",
	10: "TOWING_END",
	11: "TIMER_MOVE",
	12: "TIMER_STOP",
	13: "ANGLE",
	14: "DISTANCE",
	15: "SOS_BUTTON",
	16: "SERVICE_BUTTON",
	17: "TAMPER",
	18: "ANTENNA_SWITCH",
	19: "GSM_LOST",
	20: "GSM_RECONNECT",
	21: "GNSS_LOST",
	22: "GNSS_REAQUISITION",
	23: "JAMMER_GSM",
	24: "JAMMER_GNSS",
	25: "OVER_SPEED",
	26: "OVER_RPM",
	27: "OVER_TEMPERATURE",
	28: "DANGEROUS_DRIVING",
	29: "ACCIDENT",
	30: "OVERTHROW",
	31: "ON_BATTERY",
	32: "BATTERY_DISCHARGE",
	33: "RADIO_TAG_REG",
	34: "RADIO_TAG_UNREG",
	35: "MOVE_WITHOUT_RADIO_TAG",
	36: "ECU_ERROR_CODE",
	37: "EXTERNAL_REQUEST",
	38: "DEVICE_TEST",
	99: "OTHER_REASON",
}
View Source
var StorageRecordReason_value = map[string]int32{
	"DEVICE_RESET":           1,
	"PROFILE_CHANGE":         2,
	"IGNITION_ON":            3,
	"IGNITION_OFF":           4,
	"TRIP_BEGIN":             5,
	"TRIP_END":               6,
	"STOP":                   7,
	"MOVE":                   8,
	"TOWING_BEGIN":           9,
	"TOWING_END":             10,
	"TIMER_MOVE":             11,
	"TIMER_STOP":             12,
	"ANGLE":                  13,
	"DISTANCE":               14,
	"SOS_BUTTON":             15,
	"SERVICE_BUTTON":         16,
	"TAMPER":                 17,
	"ANTENNA_SWITCH":         18,
	"GSM_LOST":               19,
	"GSM_RECONNECT":          20,
	"GNSS_LOST":              21,
	"GNSS_REAQUISITION":      22,
	"JAMMER_GSM":             23,
	"JAMMER_GNSS":            24,
	"OVER_SPEED":             25,
	"OVER_RPM":               26,
	"OVER_TEMPERATURE":       27,
	"DANGEROUS_DRIVING":      28,
	"ACCIDENT":               29,
	"OVERTHROW":              30,
	"ON_BATTERY":             31,
	"BATTERY_DISCHARGE":      32,
	"RADIO_TAG_REG":          33,
	"RADIO_TAG_UNREG":        34,
	"MOVE_WITHOUT_RADIO_TAG": 35,
	"ECU_ERROR_CODE":         36,
	"EXTERNAL_REQUEST":       37,
	"DEVICE_TEST":            38,
	"OTHER_REASON":           99,
}

Functions

This section is empty.

Types

type BinaryData

type BinaryData interface {
	Decode([]byte) error
	Encode() ([]byte, error)
	Length() uint16
}

BinaryData интерфейс для работы с бинарными секциями

type Package

type Package struct {
	ProtocolVersion           byte       `json:"PRV"`
	SecurityKeyID             byte       `json:"SKID"`
	Prefix                    string     `json:"PRF"`
	Route                     string     `json:"RTE"`
	EncryptionAlg             string     `json:"ENA"`
	Compression               string     `json:"CMP"`
	Priority                  string     `json:"PR"`
	HeaderLength              byte       `json:"HL"`
	HeaderEncoding            byte       `json:"HE"`
	FrameDataLength           uint16     `json:"FDL"`
	PacketIdentifier          uint16     `json:"PID"`
	PacketType                byte       `json:"PT"`
	PeerAddress               uint16     `json:"PRA"`
	RecipientAddress          uint16     `json:"RCA"`
	TimeToLive                byte       `json:"TTL"`
	HeaderCheckSum            byte       `json:"HCS"`
	ServicesFrameData         BinaryData `json:"SFRD"`
	ServicesFrameDataCheckSum uint16     `json:"SFRCS"`
}

Package стуркура для описания пакета ЕГТС

func (*Package) Decode

func (p *Package) Decode(content []byte) (uint8, error)

Decode разбирает набор байт в структуру пакета

func (*Package) Encode

func (p *Package) Encode() ([]byte, error)

Encode кодирует струткуру в байтовую строку

func (*Package) ToBytes

func (p *Package) ToBytes() ([]byte, error)

ToBytes переводит пакет в json

type PtResponse

type PtResponse struct {
	ResponsePacketID uint16     `json:"RPID"`
	ProcessingResult uint8      `json:"PR"`
	SDR              BinaryData `json:"SDR"`
}

PtResponse структура подзаписи типа EGTS_PT_RESPONSE

func (*PtResponse) Decode

func (s *PtResponse) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*PtResponse) Encode

func (s *PtResponse) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*PtResponse) Length

func (s *PtResponse) Length() uint16

Length получает длинну закодированной подзаписи

type RecordData

type RecordData struct {
	SubrecordType   byte       `json:"SRT"`
	SubrecordLength uint16     `json:"SRL"`
	SubrecordData   BinaryData `json:"SRD"`
}

RecordData структура секции подзапси у записи ServiceDataRecord

type RecordDataSet

type RecordDataSet []RecordData

RecordDataSet описывает массив с подзаписями протокола ЕГТС

func (*RecordDataSet) Decode

func (rds *RecordDataSet) Decode(recDS []byte) error

Decode разбирает байты в структуру подзаписи

func (*RecordDataSet) Encode

func (rds *RecordDataSet) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*RecordDataSet) Length

func (rds *RecordDataSet) Length() uint16

Length получает длину массива записей

type SensAccelerometerData

type SensAccelerometerData struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Buf              []byte  `protobuf:"bytes,2,opt,name=buf" json:"buf,omitempty"`
	Atm              *uint32 `protobuf:"varint,3,opt,name=atm" json:"atm,omitempty"`
	Frequency        *uint32 `protobuf:"varint,4,opt,name=frequency" json:"frequency,omitempty"`
	Range            *uint32 `protobuf:"varint,5,opt,name=range" json:"range,omitempty"`
	Format           *uint32 `protobuf:"varint,6,opt,name=format" json:"format,omitempty"`
	Zlib             *uint32 `protobuf:"varint,7,opt,name=zlib" json:"zlib,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Датчик ускорения

func (*SensAccelerometerData) Descriptor

func (*SensAccelerometerData) Descriptor() ([]byte, []int)

func (*SensAccelerometerData) GetAtm

func (m *SensAccelerometerData) GetAtm() uint32

func (*SensAccelerometerData) GetBuf

func (m *SensAccelerometerData) GetBuf() []byte

func (*SensAccelerometerData) GetFormat

func (m *SensAccelerometerData) GetFormat() uint32

func (*SensAccelerometerData) GetFrequency

func (m *SensAccelerometerData) GetFrequency() uint32

func (*SensAccelerometerData) GetRange

func (m *SensAccelerometerData) GetRange() uint32

func (*SensAccelerometerData) GetSensNum

func (m *SensAccelerometerData) GetSensNum() uint32

func (*SensAccelerometerData) GetZlib

func (m *SensAccelerometerData) GetZlib() uint32

func (*SensAccelerometerData) ProtoMessage

func (*SensAccelerometerData) ProtoMessage()

func (*SensAccelerometerData) Reset

func (m *SensAccelerometerData) Reset()

func (*SensAccelerometerData) String

func (m *SensAccelerometerData) String() string

type SensAinAinValue

type SensAinAinValue struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Mv               *uint32 `protobuf:"varint,2,opt,name=mv" json:"mv,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Аналоговый вход

func (*SensAinAinValue) Descriptor

func (*SensAinAinValue) Descriptor() ([]byte, []int)

func (*SensAinAinValue) GetMv

func (m *SensAinAinValue) GetMv() uint32

func (*SensAinAinValue) GetSensNum

func (m *SensAinAinValue) GetSensNum() uint32

func (*SensAinAinValue) ProtoMessage

func (*SensAinAinValue) ProtoMessage()

func (*SensAinAinValue) Reset

func (m *SensAinAinValue) Reset()

func (*SensAinAinValue) String

func (m *SensAinAinValue) String() string

type SensBufferData

type SensBufferData struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Data             []byte  `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
	IsPacked         *bool   `protobuf:"varint,3,opt,name=is_packed,json=isPacked" json:"is_packed,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Буферизованные данные

func (*SensBufferData) Descriptor

func (*SensBufferData) Descriptor() ([]byte, []int)

func (*SensBufferData) GetData

func (m *SensBufferData) GetData() []byte

func (*SensBufferData) GetIsPacked

func (m *SensBufferData) GetIsPacked() bool

func (*SensBufferData) GetSensNum

func (m *SensBufferData) GetSensNum() uint32

func (*SensBufferData) ProtoMessage

func (*SensBufferData) ProtoMessage()

func (*SensBufferData) Reset

func (m *SensBufferData) Reset()

func (*SensBufferData) String

func (m *SensBufferData) String() string

type SensButtonPressCounter

type SensButtonPressCounter struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	State            *bool   `protobuf:"varint,2,opt,name=state" json:"state,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Кнопка

func (*SensButtonPressCounter) Descriptor

func (*SensButtonPressCounter) Descriptor() ([]byte, []int)

func (*SensButtonPressCounter) GetSensNum

func (m *SensButtonPressCounter) GetSensNum() uint32

func (*SensButtonPressCounter) GetState

func (m *SensButtonPressCounter) GetState() bool

func (*SensButtonPressCounter) ProtoMessage

func (*SensButtonPressCounter) ProtoMessage()

func (*SensButtonPressCounter) Reset

func (m *SensButtonPressCounter) Reset()

func (*SensButtonPressCounter) String

func (m *SensButtonPressCounter) String() string

type SensCanLogData

type SensCanLogData struct {
	SensNum            *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	FlagSecurityState  *uint32 `protobuf:"varint,2,opt,name=flag_security_state,json=flagSecurityState" json:"flag_security_state,omitempty"`
	FlagAlarm          *uint32 `protobuf:"varint,3,opt,name=flag_alarm,json=flagAlarm" json:"flag_alarm,omitempty"`
	EngineTimeAll      *uint32 `protobuf:"varint,4,opt,name=engine_time_all,json=engineTimeAll" json:"engine_time_all,omitempty"`
	EngineTurnSpeed    *uint32 `protobuf:"varint,5,opt,name=engine_turn_speed,json=engineTurnSpeed" json:"engine_turn_speed,omitempty"`
	EngineTemperature  *int32  `protobuf:"zigzag32,6,opt,name=engine_temperature,json=engineTemperature" json:"engine_temperature,omitempty"`
	FuelConsumptionAll *uint32 `protobuf:"varint,7,opt,name=fuel_consumption_all,json=fuelConsumptionAll" json:"fuel_consumption_all,omitempty"`
	FuelLevel          *uint32 `protobuf:"varint,8,opt,name=fuel_level,json=fuelLevel" json:"fuel_level,omitempty"`
	TrackAll           *uint32 `protobuf:"varint,9,opt,name=track_all,json=trackAll" json:"track_all,omitempty"`
	Speed              *uint32 `protobuf:"varint,10,opt,name=speed" json:"speed,omitempty"`
	PressureAxis_1     *uint32 `protobuf:"varint,11,opt,name=pressure_axis_1,json=pressureAxis1" json:"pressure_axis_1,omitempty"`
	PressureAxis_2     *uint32 `protobuf:"varint,12,opt,name=pressure_axis_2,json=pressureAxis2" json:"pressure_axis_2,omitempty"`
	PressureAxis_3     *uint32 `protobuf:"varint,13,opt,name=pressure_axis_3,json=pressureAxis3" json:"pressure_axis_3,omitempty"`
	PressureAxis_4     *uint32 `protobuf:"varint,14,opt,name=pressure_axis_4,json=pressureAxis4" json:"pressure_axis_4,omitempty"`
	PressureAxis_5     *uint32 `protobuf:"varint,15,opt,name=pressure_axis_5,json=pressureAxis5" json:"pressure_axis_5,omitempty"`
	XXX_unrecognized   []byte  `json:"-"`
}

CANLog

func (*SensCanLogData) Descriptor

func (*SensCanLogData) Descriptor() ([]byte, []int)

func (*SensCanLogData) GetEngineTemperature

func (m *SensCanLogData) GetEngineTemperature() int32

func (*SensCanLogData) GetEngineTimeAll

func (m *SensCanLogData) GetEngineTimeAll() uint32

func (*SensCanLogData) GetEngineTurnSpeed

func (m *SensCanLogData) GetEngineTurnSpeed() uint32

func (*SensCanLogData) GetFlagAlarm

func (m *SensCanLogData) GetFlagAlarm() uint32

func (*SensCanLogData) GetFlagSecurityState

func (m *SensCanLogData) GetFlagSecurityState() uint32

func (*SensCanLogData) GetFuelConsumptionAll

func (m *SensCanLogData) GetFuelConsumptionAll() uint32

func (*SensCanLogData) GetFuelLevel

func (m *SensCanLogData) GetFuelLevel() uint32

func (*SensCanLogData) GetPressureAxis_1

func (m *SensCanLogData) GetPressureAxis_1() uint32

func (*SensCanLogData) GetPressureAxis_2

func (m *SensCanLogData) GetPressureAxis_2() uint32

func (*SensCanLogData) GetPressureAxis_3

func (m *SensCanLogData) GetPressureAxis_3() uint32

func (*SensCanLogData) GetPressureAxis_4

func (m *SensCanLogData) GetPressureAxis_4() uint32

func (*SensCanLogData) GetPressureAxis_5

func (m *SensCanLogData) GetPressureAxis_5() uint32

func (*SensCanLogData) GetSensNum

func (m *SensCanLogData) GetSensNum() uint32

func (*SensCanLogData) GetSpeed

func (m *SensCanLogData) GetSpeed() uint32

func (*SensCanLogData) GetTrackAll

func (m *SensCanLogData) GetTrackAll() uint32

func (*SensCanLogData) ProtoMessage

func (*SensCanLogData) ProtoMessage()

func (*SensCanLogData) Reset

func (m *SensCanLogData) Reset()

func (*SensCanLogData) String

func (m *SensCanLogData) String() string

type SensCanLogTmpDataExt

type SensCanLogTmpDataExt struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	FlagsHigh        *uint32 `protobuf:"varint,2,opt,name=flags_high,json=flagsHigh" json:"flags_high,omitempty"`
	FlagsLow         *uint32 `protobuf:"varint,3,opt,name=flags_low,json=flagsLow" json:"flags_low,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Расширение CANLog

func (*SensCanLogTmpDataExt) Descriptor

func (*SensCanLogTmpDataExt) Descriptor() ([]byte, []int)

func (*SensCanLogTmpDataExt) GetFlagsHigh

func (m *SensCanLogTmpDataExt) GetFlagsHigh() uint32

func (*SensCanLogTmpDataExt) GetFlagsLow

func (m *SensCanLogTmpDataExt) GetFlagsLow() uint32

func (*SensCanLogTmpDataExt) GetSensNum

func (m *SensCanLogTmpDataExt) GetSensNum() uint32

func (*SensCanLogTmpDataExt) ProtoMessage

func (*SensCanLogTmpDataExt) ProtoMessage()

func (*SensCanLogTmpDataExt) Reset

func (m *SensCanLogTmpDataExt) Reset()

func (*SensCanLogTmpDataExt) String

func (m *SensCanLogTmpDataExt) String() string

type SensCounterCount

type SensCounterCount struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Value            *uint32 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Счётчик

func (*SensCounterCount) Descriptor

func (*SensCounterCount) Descriptor() ([]byte, []int)

func (*SensCounterCount) GetSensNum

func (m *SensCounterCount) GetSensNum() uint32

func (*SensCounterCount) GetValue

func (m *SensCounterCount) GetValue() uint32

func (*SensCounterCount) ProtoMessage

func (*SensCounterCount) ProtoMessage()

func (*SensCounterCount) Reset

func (m *SensCounterCount) Reset()

func (*SensCounterCount) String

func (m *SensCounterCount) String() string

type SensCrashData

type SensCrashData struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Energy           *uint32 `protobuf:"varint,2,opt,name=energy" json:"energy,omitempty"`
	IsOverturned     *bool   `protobuf:"varint,3,opt,name=is_overturned,json=isOverturned" json:"is_overturned,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Датчик аварии

func (*SensCrashData) Descriptor

func (*SensCrashData) Descriptor() ([]byte, []int)

func (*SensCrashData) GetEnergy

func (m *SensCrashData) GetEnergy() uint32

func (*SensCrashData) GetIsOverturned

func (m *SensCrashData) GetIsOverturned() bool

func (*SensCrashData) GetSensNum

func (m *SensCrashData) GetSensNum() uint32

func (*SensCrashData) ProtoMessage

func (*SensCrashData) ProtoMessage()

func (*SensCrashData) Reset

func (m *SensCrashData) Reset()

func (*SensCrashData) String

func (m *SensCrashData) String() string

type SensDinsFlags

type SensDinsFlags struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Device           *uint32 `protobuf:"varint,2,opt,name=device" json:"device,omitempty"`
	External         *uint32 `protobuf:"varint,3,opt,name=external" json:"external,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Цифровые входы

func (*SensDinsFlags) Descriptor

func (*SensDinsFlags) Descriptor() ([]byte, []int)

func (*SensDinsFlags) GetDevice

func (m *SensDinsFlags) GetDevice() uint32

func (*SensDinsFlags) GetExternal

func (m *SensDinsFlags) GetExternal() uint32

func (*SensDinsFlags) GetSensNum

func (m *SensDinsFlags) GetSensNum() uint32

func (*SensDinsFlags) ProtoMessage

func (*SensDinsFlags) ProtoMessage()

func (*SensDinsFlags) Reset

func (m *SensDinsFlags) Reset()

func (*SensDinsFlags) String

func (m *SensDinsFlags) String() string

type SensDoutsFlags

type SensDoutsFlags struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Device           *uint32 `protobuf:"varint,2,opt,name=device" json:"device,omitempty"`
	External         *uint32 `protobuf:"varint,3,opt,name=external" json:"external,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Цифровые выходы

func (*SensDoutsFlags) Descriptor

func (*SensDoutsFlags) Descriptor() ([]byte, []int)

func (*SensDoutsFlags) GetDevice

func (m *SensDoutsFlags) GetDevice() uint32

func (*SensDoutsFlags) GetExternal

func (m *SensDoutsFlags) GetExternal() uint32

func (*SensDoutsFlags) GetSensNum

func (m *SensDoutsFlags) GetSensNum() uint32

func (*SensDoutsFlags) ProtoMessage

func (*SensDoutsFlags) ProtoMessage()

func (*SensDoutsFlags) Reset

func (m *SensDoutsFlags) Reset()

func (*SensDoutsFlags) String

func (m *SensDoutsFlags) String() string

type SensFmeterFrequency

type SensFmeterFrequency struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Value            *uint32 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Частотомер

func (*SensFmeterFrequency) Descriptor

func (*SensFmeterFrequency) Descriptor() ([]byte, []int)

func (*SensFmeterFrequency) GetSensNum

func (m *SensFmeterFrequency) GetSensNum() uint32

func (*SensFmeterFrequency) GetValue

func (m *SensFmeterFrequency) GetValue() uint32

func (*SensFmeterFrequency) ProtoMessage

func (*SensFmeterFrequency) ProtoMessage()

func (*SensFmeterFrequency) Reset

func (m *SensFmeterFrequency) Reset()

func (*SensFmeterFrequency) String

func (m *SensFmeterFrequency) String() string

type SensFuelLevel

type SensFuelLevel struct {
	SensNum          *uint32  `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Value            *float32 `protobuf:"fixed32,2,opt,name=value" json:"value,omitempty"`
	Parrots          *uint32  `protobuf:"varint,3,opt,name=parrots" json:"parrots,omitempty"`
	Unit             *uint32  `protobuf:"varint,4,opt,name=unit" json:"unit,omitempty"`
	T                *uint32  `protobuf:"varint,5,opt,name=t" json:"t,omitempty"`
	Status           *uint32  `protobuf:"varint,6,opt,name=status" json:"status,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

Датчик топлива

func (*SensFuelLevel) Descriptor

func (*SensFuelLevel) Descriptor() ([]byte, []int)

func (*SensFuelLevel) GetParrots

func (m *SensFuelLevel) GetParrots() uint32

func (*SensFuelLevel) GetSensNum

func (m *SensFuelLevel) GetSensNum() uint32

func (*SensFuelLevel) GetStatus

func (m *SensFuelLevel) GetStatus() uint32

func (*SensFuelLevel) GetT

func (m *SensFuelLevel) GetT() uint32

func (*SensFuelLevel) GetUnit

func (m *SensFuelLevel) GetUnit() uint32

func (*SensFuelLevel) GetValue

func (m *SensFuelLevel) GetValue() float32

func (*SensFuelLevel) ProtoMessage

func (*SensFuelLevel) ProtoMessage()

func (*SensFuelLevel) Reset

func (m *SensFuelLevel) Reset()

func (*SensFuelLevel) String

func (m *SensFuelLevel) String() string

type SensGsmCellMonotoringCellMonitoring

type SensGsmCellMonotoringCellMonitoring struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Lac              []byte  `protobuf:"bytes,4,opt,name=lac" json:"lac,omitempty"`
	Cid              []byte  `protobuf:"bytes,5,opt,name=cid" json:"cid,omitempty"`
	Rssi             []byte  `protobuf:"bytes,6,opt,name=rssi" json:"rssi,omitempty"`
	TimeAdv          []byte  `protobuf:"bytes,7,opt,name=time_adv,json=timeAdv" json:"time_adv,omitempty"`
	Mcc              *uint32 `protobuf:"varint,2,opt,name=mcc" json:"mcc,omitempty"`
	Mnc              *uint32 `protobuf:"varint,3,opt,name=mnc" json:"mnc,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Информация о базовых станциях GSM

func (*SensGsmCellMonotoringCellMonitoring) Descriptor

func (*SensGsmCellMonotoringCellMonitoring) Descriptor() ([]byte, []int)

func (*SensGsmCellMonotoringCellMonitoring) GetCid

func (*SensGsmCellMonotoringCellMonitoring) GetLac

func (*SensGsmCellMonotoringCellMonitoring) GetMcc

func (*SensGsmCellMonotoringCellMonitoring) GetMnc

func (*SensGsmCellMonotoringCellMonitoring) GetRssi

func (*SensGsmCellMonotoringCellMonitoring) GetSensNum

func (*SensGsmCellMonotoringCellMonitoring) GetTimeAdv

func (m *SensGsmCellMonotoringCellMonitoring) GetTimeAdv() []byte

func (*SensGsmCellMonotoringCellMonitoring) ProtoMessage

func (*SensGsmCellMonotoringCellMonitoring) ProtoMessage()

func (*SensGsmCellMonotoringCellMonitoring) Reset

func (*SensGsmCellMonotoringCellMonitoring) String

type SensNdNavData

type SensNdNavData struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Longitude        *int32  `protobuf:"fixed32,2,opt,name=longitude" json:"longitude,omitempty"`
	Latitude         *int32  `protobuf:"fixed32,3,opt,name=latitude" json:"latitude,omitempty"`
	Altitude         *uint32 `protobuf:"varint,4,opt,name=altitude" json:"altitude,omitempty"`
	Speed            *uint32 `protobuf:"varint,5,opt,name=speed" json:"speed,omitempty"`
	Course           *uint32 `protobuf:"varint,6,opt,name=course" json:"course,omitempty"`
	SatCount         *uint32 `protobuf:"varint,7,opt,name=sat_count,json=satCount" json:"sat_count,omitempty"`
	Pdop             *uint32 `protobuf:"varint,8,opt,name=pdop" json:"pdop,omitempty"`
	Track            *uint32 `protobuf:"varint,9,opt,name=track" json:"track,omitempty"`
	Odometer         *uint32 `protobuf:"varint,10,opt,name=odometer" json:"odometer,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Навигационные данные

func (*SensNdNavData) Descriptor

func (*SensNdNavData) Descriptor() ([]byte, []int)

func (*SensNdNavData) GetAltitude

func (m *SensNdNavData) GetAltitude() uint32

func (*SensNdNavData) GetCourse

func (m *SensNdNavData) GetCourse() uint32

func (*SensNdNavData) GetLatitude

func (m *SensNdNavData) GetLatitude() int32

func (*SensNdNavData) GetLongitude

func (m *SensNdNavData) GetLongitude() int32

func (*SensNdNavData) GetOdometer

func (m *SensNdNavData) GetOdometer() uint32

func (*SensNdNavData) GetPdop

func (m *SensNdNavData) GetPdop() uint32

func (*SensNdNavData) GetSatCount

func (m *SensNdNavData) GetSatCount() uint32

func (*SensNdNavData) GetSensNum

func (m *SensNdNavData) GetSensNum() uint32

func (*SensNdNavData) GetSpeed

func (m *SensNdNavData) GetSpeed() uint32

func (*SensNdNavData) GetTrack

func (m *SensNdNavData) GetTrack() uint32

func (*SensNdNavData) ProtoMessage

func (*SensNdNavData) ProtoMessage()

func (*SensNdNavData) Reset

func (m *SensNdNavData) Reset()

func (*SensNdNavData) String

func (m *SensNdNavData) String() string

type SensStorInfo

type SensStorInfo struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	IdMax            *uint32 `protobuf:"varint,2,opt,name=id_max,json=idMax" json:"id_max,omitempty"`
	IdMin            *uint32 `protobuf:"varint,3,opt,name=id_min,json=idMin" json:"id_min,omitempty"`
	TmOldest         *uint32 `protobuf:"varint,4,opt,name=tm_oldest,json=tmOldest" json:"tm_oldest,omitempty"`
	TmOldestUnack    *uint32 `protobuf:"varint,5,opt,name=tm_oldest_unack,json=tmOldestUnack" json:"tm_oldest_unack,omitempty"`
	CntUnack         *uint32 `protobuf:"varint,6,opt,name=cnt_unack,json=cntUnack" json:"cnt_unack,omitempty"`
	CntUnackLosted   *uint32 `protobuf:"varint,7,opt,name=cnt_unack_losted,json=cntUnackLosted" json:"cnt_unack_losted,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Статистика хранилище навигационных данных

func (*SensStorInfo) Descriptor

func (*SensStorInfo) Descriptor() ([]byte, []int)

func (*SensStorInfo) GetCntUnack

func (m *SensStorInfo) GetCntUnack() uint32

func (*SensStorInfo) GetCntUnackLosted

func (m *SensStorInfo) GetCntUnackLosted() uint32

func (*SensStorInfo) GetIdMax

func (m *SensStorInfo) GetIdMax() uint32

func (*SensStorInfo) GetIdMin

func (m *SensStorInfo) GetIdMin() uint32

func (*SensStorInfo) GetSensNum

func (m *SensStorInfo) GetSensNum() uint32

func (*SensStorInfo) GetTmOldest

func (m *SensStorInfo) GetTmOldest() uint32

func (*SensStorInfo) GetTmOldestUnack

func (m *SensStorInfo) GetTmOldestUnack() uint32

func (*SensStorInfo) ProtoMessage

func (*SensStorInfo) ProtoMessage()

func (*SensStorInfo) Reset

func (m *SensStorInfo) Reset()

func (*SensStorInfo) String

func (m *SensStorInfo) String() string

type SensTermoData

type SensTermoData struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	Status           *uint32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
	Temperature      *int32  `protobuf:"zigzag32,3,opt,name=temperature" json:"temperature,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Датчик температуры

func (*SensTermoData) Descriptor

func (*SensTermoData) Descriptor() ([]byte, []int)

func (*SensTermoData) GetSensNum

func (m *SensTermoData) GetSensNum() uint32

func (*SensTermoData) GetStatus

func (m *SensTermoData) GetStatus() uint32

func (*SensTermoData) GetTemperature

func (m *SensTermoData) GetTemperature() int32

func (*SensTermoData) ProtoMessage

func (*SensTermoData) ProtoMessage()

func (*SensTermoData) Reset

func (m *SensTermoData) Reset()

func (*SensTermoData) String

func (m *SensTermoData) String() string

type SensTestEraTests

type SensTestEraTests struct {
	SensNum              *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	MicConFailure        *bool   `protobuf:"varint,2,opt,name=mic_con_failure,json=micConFailure" json:"mic_con_failure,omitempty"`
	MicFailure           *bool   `protobuf:"varint,3,opt,name=mic_failure,json=micFailure" json:"mic_failure,omitempty"`
	IgnitionFailure      *bool   `protobuf:"varint,4,opt,name=ignition_failure,json=ignitionFailure" json:"ignition_failure,omitempty"`
	UimFailure           *bool   `protobuf:"varint,5,opt,name=uim_failure,json=uimFailure" json:"uim_failure,omitempty"`
	BatFailure           *bool   `protobuf:"varint,6,opt,name=bat_failure,json=batFailure" json:"bat_failure,omitempty"`
	BatVoltLow           *bool   `protobuf:"varint,7,opt,name=bat_volt_low,json=batVoltLow" json:"bat_volt_low,omitempty"`
	CrashSensFailure     *bool   `protobuf:"varint,8,opt,name=crash_sens_failure,json=crashSensFailure" json:"crash_sens_failure,omitempty"`
	RaimProblem          *bool   `protobuf:"varint,9,opt,name=raim_problem,json=raimProblem" json:"raim_problem,omitempty"`
	GnssAntennaFailure   *bool   `protobuf:"varint,10,opt,name=gnss_antenna_failure,json=gnssAntennaFailure" json:"gnss_antenna_failure,omitempty"`
	EventsMemoryOverflow *bool   `protobuf:"varint,11,opt,name=events_memory_overflow,json=eventsMemoryOverflow" json:"events_memory_overflow,omitempty"`
	XXX_unrecognized     []byte  `json:"-"`
}

Тестовые данные ЭРА ГЛОНАСС

func (*SensTestEraTests) Descriptor

func (*SensTestEraTests) Descriptor() ([]byte, []int)

func (*SensTestEraTests) GetBatFailure

func (m *SensTestEraTests) GetBatFailure() bool

func (*SensTestEraTests) GetBatVoltLow

func (m *SensTestEraTests) GetBatVoltLow() bool

func (*SensTestEraTests) GetCrashSensFailure

func (m *SensTestEraTests) GetCrashSensFailure() bool

func (*SensTestEraTests) GetEventsMemoryOverflow

func (m *SensTestEraTests) GetEventsMemoryOverflow() bool

func (*SensTestEraTests) GetGnssAntennaFailure

func (m *SensTestEraTests) GetGnssAntennaFailure() bool

func (*SensTestEraTests) GetIgnitionFailure

func (m *SensTestEraTests) GetIgnitionFailure() bool

func (*SensTestEraTests) GetMicConFailure

func (m *SensTestEraTests) GetMicConFailure() bool

func (*SensTestEraTests) GetMicFailure

func (m *SensTestEraTests) GetMicFailure() bool

func (*SensTestEraTests) GetRaimProblem

func (m *SensTestEraTests) GetRaimProblem() bool

func (*SensTestEraTests) GetSensNum

func (m *SensTestEraTests) GetSensNum() uint32

func (*SensTestEraTests) GetUimFailure

func (m *SensTestEraTests) GetUimFailure() bool

func (*SensTestEraTests) ProtoMessage

func (*SensTestEraTests) ProtoMessage()

func (*SensTestEraTests) Reset

func (m *SensTestEraTests) Reset()

func (*SensTestEraTests) String

func (m *SensTestEraTests) String() string

type SensTrackerInfo

type SensTrackerInfo struct {
	SensNum          *uint32 `protobuf:"varint,1,opt,name=sens_num,json=sensNum" json:"sens_num,omitempty"`
	CntAck           *uint32 `protobuf:"varint,2,opt,name=cnt_ack,json=cntAck" json:"cnt_ack,omitempty"`
	CntAckRealtime   *uint32 `protobuf:"varint,3,opt,name=cnt_ack_realtime,json=cntAckRealtime" json:"cnt_ack_realtime,omitempty"`
	CntNoack         *uint32 `protobuf:"varint,4,opt,name=cnt_noack,json=cntNoack" json:"cnt_noack,omitempty"`
	CntConnect       *uint32 `protobuf:"varint,5,opt,name=cnt_connect,json=cntConnect" json:"cnt_connect,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Статистика трэкера

func (*SensTrackerInfo) Descriptor

func (*SensTrackerInfo) Descriptor() ([]byte, []int)

func (*SensTrackerInfo) GetCntAck

func (m *SensTrackerInfo) GetCntAck() uint32

func (*SensTrackerInfo) GetCntAckRealtime

func (m *SensTrackerInfo) GetCntAckRealtime() uint32

func (*SensTrackerInfo) GetCntConnect

func (m *SensTrackerInfo) GetCntConnect() uint32

func (*SensTrackerInfo) GetCntNoack

func (m *SensTrackerInfo) GetCntNoack() uint32

func (*SensTrackerInfo) GetSensNum

func (m *SensTrackerInfo) GetSensNum() uint32

func (*SensTrackerInfo) ProtoMessage

func (*SensTrackerInfo) ProtoMessage()

func (*SensTrackerInfo) Reset

func (m *SensTrackerInfo) Reset()

func (*SensTrackerInfo) String

func (m *SensTrackerInfo) String() string

type ServiceDataRecord

type ServiceDataRecord struct {
	RecordLength             uint16 `json:"RL"`
	RecordNumber             uint16 `json:"RN"`
	SourceServiceOnDevice    string `json:"SSOD"`
	RecipientServiceOnDevice string `json:"RSOD"`
	Group                    string `json:"GRP"`
	RecordProcessingPriority string `json:"RPP"`
	TimeFieldExists          string `json:"TMFE"`
	EventIDFieldExists       string `json:"EVFE"`
	ObjectIDFieldExists      string `json:"OBFE"`
	ObjectIdentifier         uint32 `json:"OID"`
	EventIdentifier          uint32 `json:"EVID"`
	Time                     uint32 `json:"TM"` //TODO: сделать time также как в pos_data
	SourceServiceType        byte   `json:"SST"`
	RecipientServiceType     byte   `json:"RST"`
	RecordDataSet            `json:"RD"`
}

ServiceDataRecord запись содержащая мониторинговую информацию

type ServiceDataSet

type ServiceDataSet []ServiceDataRecord

ServiceDataSet набор последовательных записей с информаций

func (*ServiceDataSet) Decode

func (s *ServiceDataSet) Decode(serviceDS []byte) error

Decode разбирает байты в структуру подзаписи

func (*ServiceDataSet) Encode

func (s *ServiceDataSet) Encode() ([]byte, error)

Encode кодирование структуры в байты

func (*ServiceDataSet) Length

func (s *ServiceDataSet) Length() uint16

Length получает длину массива записей

type SrAbsAnSensData

type SrAbsAnSensData struct {
	SensorNumber uint8  `json:"SensorNumber"`
	Value        uint32 `json:"Value"`
}

SrAbsAnSensData структура подзаписи типа EGTS_SR_ABS_AN_SENS_DATA, которая применяется абонентским терминалом для передачи данных о состоянии одного аналогового входа

func (*SrAbsAnSensData) Decode

func (e *SrAbsAnSensData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrAbsAnSensData) Encode

func (e *SrAbsAnSensData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrAbsAnSensData) Length

func (e *SrAbsAnSensData) Length() uint16

Length получает длинну закодированной подзаписи

type SrAbsCntrData

type SrAbsCntrData struct {
	CounterNumber uint8  `json:"CN"`
	CounterValue  uint32 `json:"CNV"`
}

SrAbsCntrData структура подзаписи типа EGTS_SR_ABS_CNTR_DATA, которая применяется абонентским терминалом для передачи на аппаратно-программный комплекс данных о состоянии одного счетного входа

func (*SrAbsCntrData) Decode

func (e *SrAbsCntrData) Decode(content []byte) error

Decode разбирает байты в структуры секции

func (*SrAbsCntrData) Encode

func (e *SrAbsCntrData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrAbsCntrData) Length

func (e *SrAbsCntrData) Length() uint16

Length получает длинну закодированной подзаписи

type SrAdSensorsData

type SrAdSensorsData struct {
	DigitalInputsOctetExists1     string `json:"DIOE1"`
	DigitalInputsOctetExists2     string `json:"DIOE2"`
	DigitalInputsOctetExists3     string `json:"DIOE3"`
	DigitalInputsOctetExists4     string `json:"DIOE4"`
	DigitalInputsOctetExists5     string `json:"DIOE5"`
	DigitalInputsOctetExists6     string `json:"DIOE6"`
	DigitalInputsOctetExists7     string `json:"DIOE7"`
	DigitalInputsOctetExists8     string `json:"DIOE8"`
	DigitalOutputs                byte   `json:"DOUT"`
	AnalogSensorFieldExists1      string `json:"ASFE1"`
	AnalogSensorFieldExists2      string `json:"ASFE2"`
	AnalogSensorFieldExists3      string `json:"ASFE3"`
	AnalogSensorFieldExists4      string `json:"ASFE4"`
	AnalogSensorFieldExists5      string `json:"ASFE5"`
	AnalogSensorFieldExists6      string `json:"ASFE6"`
	AnalogSensorFieldExists7      string `json:"ASFE7"`
	AnalogSensorFieldExists8      string `json:"ASFE8"`
	AdditionalDigitalInputsOctet1 byte   `json:"ADIO1"`
	AdditionalDigitalInputsOctet2 byte   `json:"ADIO2"`
	AdditionalDigitalInputsOctet3 byte   `json:"ADIO3"`
	AdditionalDigitalInputsOctet4 byte   `json:"ADIO4"`
	AdditionalDigitalInputsOctet5 byte   `json:"ADIO5"`
	AdditionalDigitalInputsOctet6 byte   `json:"ADIO6"`
	AdditionalDigitalInputsOctet7 byte   `json:"ADIO7"`
	AdditionalDigitalInputsOctet8 byte   `json:"ADIO8"`
	AnalogSensor1                 uint32 `json:"ANS1"`
	AnalogSensor2                 uint32 `json:"ANS2"`
	AnalogSensor3                 uint32 `json:"ANS3"`
	AnalogSensor4                 uint32 `json:"ANS4"`
	AnalogSensor5                 uint32 `json:"ANS5"`
	AnalogSensor6                 uint32 `json:"ANS6"`
	AnalogSensor7                 uint32 `json:"ANS7"`
	AnalogSensor8                 uint32 `json:"ANS8"`
}

SrAdSensorsData структура подзаписи типа EGTS_SR_AD_SENSORS_DATA, которая применяется абонентским терминалом для передачи на аппаратно-программный комплекс информации о состоянии дополнительных дискретных и аналоговых входов

func (*SrAdSensorsData) Decode

func (e *SrAdSensorsData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrAdSensorsData) Encode

func (e *SrAdSensorsData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrAdSensorsData) Length

func (e *SrAdSensorsData) Length() uint16

Length получает длинну закодированной подзаписи

type SrAuthInfo

type SrAuthInfo struct {
	UserName       string `json:"UNM"`
	UserPassword   string `json:"UPSW"`
	ServerSequence string `json:"SS"`
}

SrAuthInfo структура подзаписи типа EGTS_SR_AUTH_INFO, которая предназначена для передачи на телематическую платформу аутентификационных данных АС с использованием ранее переданных со стороны платформы параметров для осуществления шифрования данных.

func (*SrAuthInfo) Decode

func (e *SrAuthInfo) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrAuthInfo) Encode

func (e *SrAuthInfo) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrAuthInfo) Length

func (e *SrAuthInfo) Length() uint16

Length получает длинну закодированной подзаписи

type SrCountersData

type SrCountersData struct {
	CounterFieldExists1 string `json:"CFE1"`
	CounterFieldExists2 string `json:"CFE2"`
	CounterFieldExists3 string `json:"CFE3"`
	CounterFieldExists4 string `json:"CFE4"`
	CounterFieldExists5 string `json:"CFE5"`
	CounterFieldExists6 string `json:"CFE6"`
	CounterFieldExists7 string `json:"CFE7"`
	CounterFieldExists8 string `json:"CFE8"`
	Counter1            uint32 `json:"CN1"`
	Counter2            uint32 `json:"CN2"`
	Counter3            uint32 `json:"CN3"`
	Counter4            uint32 `json:"CN4"`
	Counter5            uint32 `json:"CN5"`
	Counter6            uint32 `json:"CN6"`
	Counter7            uint32 `json:"CN7"`
	Counter8            uint32 `json:"CN8"`
}

SrCountersData структура подзаписи типа EGTS_SR_COUNTERS_DATA, которая используется аппаратно-программным комплексом для передачи на абонентский терминал данных о значении счетных входов

func (*SrCountersData) Decode

func (c *SrCountersData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrCountersData) Encode

func (c *SrCountersData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrCountersData) Length

func (c *SrCountersData) Length() uint16

Length получает длинну закодированной подзаписи

type SrDispatcherIdentity

type SrDispatcherIdentity struct {
	DispatcherType uint8  `json:"DT"`
	DispatcherID   uint32 `json:"DID"`
	Description    string `json:"DSCR"`
}

SrDispatcherIdentity структура подзаписи типа EGTS_SR_DISPATCHER_IDENTITY, которая используется только авторизуемой ТП при запросе авторизации на авторизующей ТП и содержит учетные данные авторизуемой АСН

func (*SrDispatcherIdentity) Decode

func (d *SrDispatcherIdentity) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrDispatcherIdentity) Encode

func (d *SrDispatcherIdentity) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrDispatcherIdentity) Length

func (d *SrDispatcherIdentity) Length() uint16

Length получает длинну закодированной подзаписи

type SrExtPosData

type SrExtPosData struct {
	NavigationSystemFieldExists   string `json:"NSFE"`
	SatellitesFieldExists         string `json:"SFE"`
	PdopFieldExists               string `json:"PFE"`
	HdopFieldExists               string `json:"HFE"`
	VdopFieldExists               string `json:"VFE"`
	VerticalDilutionOfPrecision   uint16 `json:"VDOP"`
	HorizontalDilutionOfPrecision uint16 `json:"HDOP"`
	PositionDilutionOfPrecision   uint16 `json:"PDOP"`
	Satellites                    uint8  `json:"SAT"`
	NavigationSystem              uint16 `json:"NS"`
}

SrExtPosData структура подзаписи типа EGTS_SR_EXT_POS_DATA, которая используется абонентским терминалом при передаче дополнительных данных определения местоположения

func (*SrExtPosData) Decode

func (e *SrExtPosData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrExtPosData) Encode

func (e *SrExtPosData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrExtPosData) Length

func (e *SrExtPosData) Length() uint16

Length получает длинну закодированной подзаписи

type SrLiquidLevelSensor

type SrLiquidLevelSensor struct {
	LiquidLevelSensorErrorFlag string `json:"LLSEF"`
	LiquidLevelSensorValueUnit string `json:"LLSVU"`
	RawDataFlag                string `json:"RDF"`
	LiquidLevelSensorNumber    uint8  `json:"LLSN"`
	ModuleAddress              uint16 `json:"MADDR"`
	LiquidLevelSensorData      uint32 `json:"LLSD"`
}

SrLiquidLevelSensor структура подзаписи типа EGTS_SR_LIQUID_LEVEL_SENSOR, которая применяется абонентским терминалом для передачи на аппаратно-программный комплекс данных о показаниях ДУЖ

func (*SrLiquidLevelSensor) Decode

func (e *SrLiquidLevelSensor) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrLiquidLevelSensor) Encode

func (e *SrLiquidLevelSensor) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrLiquidLevelSensor) Length

func (e *SrLiquidLevelSensor) Length() uint16

Length получает длинну закодированной подзаписи

type SrPosData

type SrPosData struct {
	NavigationTime      time.Time `json:"NTM"`
	Latitude            float64   `json:"LAT"`
	Longitude           float64   `json:"LONG"`
	ALTE                string    `json:"ALTE"`
	LOHS                string    `json:"LOHS"`
	LAHS                string    `json:"LAHS"`
	MV                  string    `json:"MV"`
	BB                  string    `json:"BB"`
	CS                  string    `json:"CS"`
	FIX                 string    `json:"FIX"`
	VLD                 string    `json:"VLD"`
	DirectionHighestBit uint8     `json:"DIRH"`
	AltitudeSign        uint8     `json:"ALTS"`
	Speed               uint16    `json:"SPD"`
	Direction           byte      `json:"DIR"`
	Odometer            uint32    `json:"ODM"`
	DigitalInputs       byte      `json:"DIN"`
	Source              byte      `json:"SRC"`
	Altitude            uint32    `json:"ALT"`
	SourceData          int16     `json:"SRCD"`
}

SrPosData структура подзаписи типа EGTS_SR_POS_DATA, которая используется абонентским терминалом при передаче основных данных определения местоположения

func (*SrPosData) Decode

func (e *SrPosData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrPosData) Encode

func (e *SrPosData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrPosData) Length

func (e *SrPosData) Length() uint16

Length получает длинну закодированной подзаписи

type SrResponse

type SrResponse struct {
	ConfirmedRecordNumber uint16 `json:"CRN"`
	RecordStatus          uint8  `json:"RST"`
}

SrResponse структура подзаписи типа EGTS_SR_RESPONSE, которая применяется для подтверждения приема результатов обработки поддержки услуг

func (*SrResponse) Decode

func (s *SrResponse) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrResponse) Encode

func (s *SrResponse) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrResponse) Length

func (s *SrResponse) Length() uint16

Length получает длинну закодированной подзаписи

type SrResultCode

type SrResultCode struct {
	ResultCode uint8 `json:"RCD"`
}

SrResultCode структура подзаписи типа EGTS_SR_RESULT_CODE, которая применяется телематической платформой для информирования АС о результатах процедуры аутентификации АС.

func (*SrResultCode) Decode

func (s *SrResultCode) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrResultCode) Encode

func (s *SrResultCode) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrResultCode) Length

func (s *SrResultCode) Length() uint16

Length получает длинну закодированной подзаписи

type SrStateData

type SrStateData struct {
	State                  uint8  `json:"ST"`
	MainPowerSourceVoltage uint8  `json:"MPSV"`
	BackUpBatteryVoltage   uint8  `json:"BBV"`
	InternalBatteryVoltage uint8  `json:"IBV"`
	NMS                    string `json:"NMS"`
	IBU                    string `json:"IBU"`
	BBU                    string `json:"BBU"`
}

SrStateData структура подзаписи типа EGTS_SR_STATE_DATA, которая используется для передачи на аппаратно-программный комплекс информации о состоянии абонентского терминала (текущий режим работы, напряжение основного и резервного источников питания и т.д.)

func (*SrStateData) Decode

func (e *SrStateData) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrStateData) Encode

func (e *SrStateData) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrStateData) Length

func (e *SrStateData) Length() uint16

Length получает длинну закодированной подзаписи

type SrTermIdentity

type SrTermIdentity struct {
	TerminalIdentifier       uint32 `json:"TID"`
	MNE                      string `json:"MNE"`
	BSE                      string `json:"BSE"`
	NIDE                     string `json:"NIDE"`
	SSRA                     string `json:"SSRA"`
	LNGCE                    string `json:"LNGCE"`
	IMSIE                    string `json:"IMSIE"`
	IMEIE                    string `json:"IMEIE"`
	HDIDE                    string `json:"HDIDE"`
	HomeDispatcherIdentifier uint16 `json:"HDID"`
	IMEI                     string `json:"IMEI"`
	IMSI                     string `json:"IMSI"`
	LanguageCode             string `json:"LNGC"`
	NetworkIdentifier        []byte `json:"NID"`
	BufferSize               uint16 `json:"BS"`
	MobileNumber             string `json:"MSISDN"`
}

SrTermIdentity структура подзаписи типа EGTS_SR_TERM_IDENTITY, которая используется АС при запросе авторизации на телематическую платформу и содержит учетные данные АС.

func (*SrTermIdentity) Decode

func (e *SrTermIdentity) Decode(content []byte) error

Decode разбирает байты в структуру подзаписи

func (*SrTermIdentity) Encode

func (e *SrTermIdentity) Encode() ([]byte, error)

Encode преобразовывает подзапись в набор байт

func (*SrTermIdentity) Length

func (e *SrTermIdentity) Length() uint16

Length получает длинну закодированной подзаписи

type StorageRecord

type StorageRecord struct {
	// Номер записи
	RecordNumber *uint32 `protobuf:"varint,1,req,name=record_number,json=recordNumber" json:"record_number,omitempty"`
	// Время отметки
	TimeStamp *uint32 `protobuf:"fixed32,2,req,name=time_stamp,json=timeStamp" json:"time_stamp,omitempty"`
	// Причина формирования отметки (см. enum reason)
	RecordReason []StorageRecordReason `protobuf:"varint,3,rep,name=record_reason,json=recordReason,enum=nv.StorageRecordReason" json:"record_reason,omitempty"`
	// Статусные флаги
	StatusFlags *uint32 `protobuf:"fixed32,4,req,name=status_flags,json=statusFlags" json:"status_flags,omitempty"`
	// Датчик ускорения
	SensAccelerometerData []*SensAccelerometerData `protobuf:"bytes,18,rep,name=sens_accelerometer_data,json=sensAccelerometerData" json:"sens_accelerometer_data,omitempty"`
	// Аналоговый вход
	SensAinAinValue []*SensAinAinValue `protobuf:"bytes,9,rep,name=sens_ain_ain_value,json=sensAinAinValue" json:"sens_ain_ain_value,omitempty"`
	// Буферизованные данные
	SensBufferData []*SensBufferData `protobuf:"bytes,20,rep,name=sens_buffer_data,json=sensBufferData" json:"sens_buffer_data,omitempty"`
	// Кнопка
	SensButtonPressCounter []*SensButtonPressCounter `protobuf:"bytes,14,rep,name=sens_button_press_counter,json=sensButtonPressCounter" json:"sens_button_press_counter,omitempty"`
	// CANLog
	SensCanLogData []*SensCanLogData `protobuf:"bytes,16,rep,name=sens_can_log_data,json=sensCanLogData" json:"sens_can_log_data,omitempty"`
	// Расширение CANLog
	SensCanLogTmpDataExt []*SensCanLogTmpDataExt `protobuf:"bytes,17,rep,name=sens_can_log_tmp_data_ext,json=sensCanLogTmpDataExt" json:"sens_can_log_tmp_data_ext,omitempty"`
	// Счётчик
	SensCounterCount []*SensCounterCount `protobuf:"bytes,11,rep,name=sens_counter_count,json=sensCounterCount" json:"sens_counter_count,omitempty"`
	// Датчик аварии
	SensCrashData []*SensCrashData `protobuf:"bytes,24,rep,name=sens_crash_data,json=sensCrashData" json:"sens_crash_data,omitempty"`
	// Цифровые входы
	SensDinsFlags []*SensDinsFlags `protobuf:"bytes,10,rep,name=sens_dins_flags,json=sensDinsFlags" json:"sens_dins_flags,omitempty"`
	// Цифровые выходы
	SensDoutsFlags []*SensDoutsFlags `protobuf:"bytes,19,rep,name=sens_douts_flags,json=sensDoutsFlags" json:"sens_douts_flags,omitempty"`
	// Частотомер
	SensFmeterFrequency []*SensFmeterFrequency `protobuf:"bytes,12,rep,name=sens_fmeter_frequency,json=sensFmeterFrequency" json:"sens_fmeter_frequency,omitempty"`
	// Датчик топлива
	SensFuelLevel []*SensFuelLevel `protobuf:"bytes,8,rep,name=sens_fuel_level,json=sensFuelLevel" json:"sens_fuel_level,omitempty"`
	// Информация о базовых станциях GSM
	SensGsmCellMonotoringCellMonitoring []*SensGsmCellMonotoringCellMonitoring `` /* 168-byte string literal not displayed */
	// Навигационные данные
	SensNdNavData []*SensNdNavData `protobuf:"bytes,7,rep,name=sens_nd_nav_data,json=sensNdNavData" json:"sens_nd_nav_data,omitempty"`
	// Статистика хранилище навигационных данных
	SensStorInfo []*SensStorInfo `protobuf:"bytes,21,rep,name=sens_stor_info,json=sensStorInfo" json:"sens_stor_info,omitempty"`
	// Датчик температуры
	SensTermoData []*SensTermoData `protobuf:"bytes,15,rep,name=sens_termo_data,json=sensTermoData" json:"sens_termo_data,omitempty"`
	// Тестовые данные ЭРА ГЛОНАСС
	SensTestEraTests []*SensTestEraTests `protobuf:"bytes,23,rep,name=sens_test_era_tests,json=sensTestEraTests" json:"sens_test_era_tests,omitempty"`
	// Статистика трэкера
	SensTrackerInfo  []*SensTrackerInfo `protobuf:"bytes,22,rep,name=sens_tracker_info,json=sensTrackerInfo" json:"sens_tracker_info,omitempty"`
	XXX_unrecognized []byte             `json:"-"`
}

func (*StorageRecord) Decode

func (m *StorageRecord) Decode(content []byte) error

func (*StorageRecord) Descriptor

func (*StorageRecord) Descriptor() ([]byte, []int)

func (*StorageRecord) Encode

func (m *StorageRecord) Encode() ([]byte, error)

func (*StorageRecord) GetRecordNumber

func (m *StorageRecord) GetRecordNumber() uint32

func (*StorageRecord) GetRecordReason

func (m *StorageRecord) GetRecordReason() []StorageRecordReason

func (*StorageRecord) GetSensAccelerometerData

func (m *StorageRecord) GetSensAccelerometerData() []*SensAccelerometerData

func (*StorageRecord) GetSensAinAinValue

func (m *StorageRecord) GetSensAinAinValue() []*SensAinAinValue

func (*StorageRecord) GetSensBufferData

func (m *StorageRecord) GetSensBufferData() []*SensBufferData

func (*StorageRecord) GetSensButtonPressCounter

func (m *StorageRecord) GetSensButtonPressCounter() []*SensButtonPressCounter

func (*StorageRecord) GetSensCanLogData

func (m *StorageRecord) GetSensCanLogData() []*SensCanLogData

func (*StorageRecord) GetSensCanLogTmpDataExt

func (m *StorageRecord) GetSensCanLogTmpDataExt() []*SensCanLogTmpDataExt

func (*StorageRecord) GetSensCounterCount

func (m *StorageRecord) GetSensCounterCount() []*SensCounterCount

func (*StorageRecord) GetSensCrashData

func (m *StorageRecord) GetSensCrashData() []*SensCrashData

func (*StorageRecord) GetSensDinsFlags

func (m *StorageRecord) GetSensDinsFlags() []*SensDinsFlags

func (*StorageRecord) GetSensDoutsFlags

func (m *StorageRecord) GetSensDoutsFlags() []*SensDoutsFlags

func (*StorageRecord) GetSensFmeterFrequency

func (m *StorageRecord) GetSensFmeterFrequency() []*SensFmeterFrequency

func (*StorageRecord) GetSensFuelLevel

func (m *StorageRecord) GetSensFuelLevel() []*SensFuelLevel

func (*StorageRecord) GetSensGsmCellMonotoringCellMonitoring

func (m *StorageRecord) GetSensGsmCellMonotoringCellMonitoring() []*SensGsmCellMonotoringCellMonitoring

func (*StorageRecord) GetSensNdNavData

func (m *StorageRecord) GetSensNdNavData() []*SensNdNavData

func (*StorageRecord) GetSensStorInfo

func (m *StorageRecord) GetSensStorInfo() []*SensStorInfo

func (*StorageRecord) GetSensTermoData

func (m *StorageRecord) GetSensTermoData() []*SensTermoData

func (*StorageRecord) GetSensTestEraTests

func (m *StorageRecord) GetSensTestEraTests() []*SensTestEraTests

func (*StorageRecord) GetSensTrackerInfo

func (m *StorageRecord) GetSensTrackerInfo() []*SensTrackerInfo

func (*StorageRecord) GetStatusFlags

func (m *StorageRecord) GetStatusFlags() uint32

func (*StorageRecord) GetTimeStamp

func (m *StorageRecord) GetTimeStamp() uint32

func (*StorageRecord) Length

func (m *StorageRecord) Length() uint16

func (*StorageRecord) ProtoMessage

func (*StorageRecord) ProtoMessage()

func (*StorageRecord) Reset

func (m *StorageRecord) Reset()

func (*StorageRecord) String

func (m *StorageRecord) String() string

type StorageRecordReason

type StorageRecordReason int32
const (
	StorageRecord_DEVICE_RESET           StorageRecordReason = 1
	StorageRecord_PROFILE_CHANGE         StorageRecordReason = 2
	StorageRecord_IGNITION_ON            StorageRecordReason = 3
	StorageRecord_IGNITION_OFF           StorageRecordReason = 4
	StorageRecord_TRIP_BEGIN             StorageRecordReason = 5
	StorageRecord_TRIP_END               StorageRecordReason = 6
	StorageRecord_STOP                   StorageRecordReason = 7
	StorageRecord_MOVE                   StorageRecordReason = 8
	StorageRecord_TOWING_BEGIN           StorageRecordReason = 9
	StorageRecord_TOWING_END             StorageRecordReason = 10
	StorageRecord_TIMER_MOVE             StorageRecordReason = 11
	StorageRecord_TIMER_STOP             StorageRecordReason = 12
	StorageRecord_ANGLE                  StorageRecordReason = 13
	StorageRecord_DISTANCE               StorageRecordReason = 14
	StorageRecord_SOS_BUTTON             StorageRecordReason = 15
	StorageRecord_SERVICE_BUTTON         StorageRecordReason = 16
	StorageRecord_TAMPER                 StorageRecordReason = 17
	StorageRecord_ANTENNA_SWITCH         StorageRecordReason = 18
	StorageRecord_GSM_LOST               StorageRecordReason = 19
	StorageRecord_GSM_RECONNECT          StorageRecordReason = 20
	StorageRecord_GNSS_LOST              StorageRecordReason = 21
	StorageRecord_GNSS_REAQUISITION      StorageRecordReason = 22
	StorageRecord_JAMMER_GSM             StorageRecordReason = 23
	StorageRecord_JAMMER_GNSS            StorageRecordReason = 24
	StorageRecord_OVER_SPEED             StorageRecordReason = 25
	StorageRecord_OVER_RPM               StorageRecordReason = 26
	StorageRecord_OVER_TEMPERATURE       StorageRecordReason = 27
	StorageRecord_DANGEROUS_DRIVING      StorageRecordReason = 28
	StorageRecord_ACCIDENT               StorageRecordReason = 29
	StorageRecord_OVERTHROW              StorageRecordReason = 30
	StorageRecord_ON_BATTERY             StorageRecordReason = 31
	StorageRecord_BATTERY_DISCHARGE      StorageRecordReason = 32
	StorageRecord_RADIO_TAG_REG          StorageRecordReason = 33
	StorageRecord_RADIO_TAG_UNREG        StorageRecordReason = 34
	StorageRecord_MOVE_WITHOUT_RADIO_TAG StorageRecordReason = 35
	StorageRecord_ECU_ERROR_CODE         StorageRecordReason = 36
	StorageRecord_EXTERNAL_REQUEST       StorageRecordReason = 37
	StorageRecord_DEVICE_TEST            StorageRecordReason = 38
	StorageRecord_OTHER_REASON           StorageRecordReason = 99
)

func (StorageRecordReason) Enum

func (StorageRecordReason) EnumDescriptor

func (StorageRecordReason) EnumDescriptor() ([]byte, []int)

func (StorageRecordReason) String

func (x StorageRecordReason) String() string

func (*StorageRecordReason) UnmarshalJSON

func (x *StorageRecordReason) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL