Versions in this module Expand all Collapse all v0 v0.0.1 Jan 6, 2025 Changes in this version + const EastLongitudeType + const EscapeByte + const EscapeByteSufix1 + const EscapeByteSufix2 + const MessageHeaderSize + const NorthLatitudeType + const PrefixID + const SouthLatitudeType + const T808_0x8001ResultAlarmConfirm + const T808_0x8001ResultBad + const T808_0x8001ResultFail + const T808_0x8001ResultSuccess + const T808_0x8001ResultUnsupported + const T808_0x8100_ResultCarNotFound + const T808_0x8100_ResultCarRegistered + const T808_0x8100_ResultSuccess + const T808_0x8100_ResultTerminalNotFound + const T808_0x8100_ResultTerminalRegistered + const WestLongitudeType + var ErrBodyTooLong = errors.New("too long message body") + var ErrEntityDecode = errors.New("entity decode error") + var ErrInvalidBody = errors.New("invalid message body") + var ErrInvalidCheckSum = errors.New("invalid message check sum") + var ErrInvalidExtraLength = errors.New("invalid extra length") + var ErrInvalidHeader = errors.New("invalid message header") + var ErrInvalidMessage = errors.New("invalid message format") + var ErrMessageNotRegistered = errors.New("message not registered") + var ErrMethodNotImplemented = errors.New("method not implemented") + func DecryptOAEP(hash hash.Hash, priv *rsa.PrivateKey, ciphertext []byte, label []byte) ([]byte, error) + func EncryptOAEP(hash hash.Hash, pub *rsa.PublicKey, msg []byte, label []byte) ([]byte, error) + func GetBitByte(value byte, offset int) bool + func GetBitUint16(value uint16, offset int) bool + func GetBitUint32(value uint32, offset int) bool + func Register(typ uint16, creator func() Entity) + func SetBitByte(value *byte, offset int, set bool) + func SetBitUint16(value *uint16, offset int, set bool) + func SetBitUint32(value *uint32, offset int, set bool) + type AreaAction byte + var AreaActionAdd AreaAction = 1 + var AreaActionEdit AreaAction = 2 + var AreaActionUpdate AreaAction = 0 + type AreaAttribute uint16 + func (attr *AreaAttribute) SetEnterAlarm(b bool) + func (attr *AreaAttribute) SetExitAlarm(b bool) + func (attr *AreaAttribute) SetSouthLatitude(b bool) + func (attr *AreaAttribute) SetWestLongitude(b bool) + func (attr AreaAttribute) GetLatitudeType() LatitudeType + func (attr AreaAttribute) GetLongitudeType() LongitudeType + type CircleArea struct + Attribute AreaAttribute + Duration byte + EndTime time.Time + ID uint32 + Lat decimal.Decimal + Lng decimal.Decimal + MaxSpeed uint16 + Radius uint32 + StartTime time.Time + type Entity interface + Decode func([]byte) (int, error) + Encode func() ([]byte, error) + MsgID func() MsgID + type EntityPacket interface + DecodePacket func([]byte) error + GetReader func() io.Reader + GetTag func() uint32 + SetReader func(io.Reader) + type Header struct + IccID uint64 + MsgID MsgID + MsgSerialNo uint16 + Packet *Packet + Property Property + func (header *Header) Decode(data []byte) error + func (header *Header) Encode() ([]byte, error) + type LatitudeType int + type LongitudeType int + type Message struct + Body Entity + Header Header + func (message *Message) Decode(data []byte, key ...*rsa.PrivateKey) error + func (message *Message) Encode(key ...*rsa.PublicKey) ([]byte, error) + type MsgID uint16 + const MsgT808_0x0001 + const MsgT808_0x0002 + const MsgT808_0x0003 + const MsgT808_0x0100 + const MsgT808_0x0102 + const MsgT808_0x0104 + const MsgT808_0x0107 + const MsgT808_0x0108 + const MsgT808_0x0200 + const MsgT808_0x0201 + const MsgT808_0x0301 + const MsgT808_0x0302 + const MsgT808_0x0303 + const MsgT808_0x0500 + const MsgT808_0x0700 + const MsgT808_0x0701 + const MsgT808_0x0702 + const MsgT808_0x0704 + const MsgT808_0x0705 + const MsgT808_0x0800 + const MsgT808_0x0801 + const MsgT808_0x0802 + const MsgT808_0x0805 + const MsgT808_0x0900 + const MsgT808_0x0901 + const MsgT808_0x0A00 + const MsgT808_0x8001 + const MsgT808_0x8003 + const MsgT808_0x8100 + const MsgT808_0x8103 + const MsgT808_0x8104 + const MsgT808_0x8105 + const MsgT808_0x8106 + const MsgT808_0x8107 + const MsgT808_0x8108 + const MsgT808_0x8201 + const MsgT808_0x8202 + const MsgT808_0x8203 + const MsgT808_0x8300 + const MsgT808_0x8301 + const MsgT808_0x8302 + const MsgT808_0x8303 + const MsgT808_0x8304 + const MsgT808_0x8400 + const MsgT808_0x8401 + const MsgT808_0x8500 + const MsgT808_0x8600 + const MsgT808_0x8601 + const MsgT808_0x8602 + const MsgT808_0x8603 + const MsgT808_0x8604 + const MsgT808_0x8605 + const MsgT808_0x8606 + const MsgT808_0x8607 + const MsgT808_0x8700 + const MsgT808_0x8701 + const MsgT808_0x8702 + const MsgT808_0x8800 + const MsgT808_0x8801 + const MsgT808_0x8802 + const MsgT808_0x8803 + const MsgT808_0x8804 + const MsgT808_0x8805 + const MsgT808_0x8900 + const MsgT808_0x8A00 + type Packet struct + Seq uint16 + Sum uint16 + type Param struct + func (param *Param) GetByte() (byte, error) + func (param *Param) GetBytes() ([]byte, error) + func (param *Param) GetString() (string, error) + func (param *Param) GetUint16() (uint16, error) + func (param *Param) GetUint32() (uint32, error) + func (param *Param) ID() uint32 + func (param *Param) SetByte(id uint32, b byte) *Param + func (param *Param) SetBytes(id uint32, b []byte) *Param + func (param *Param) SetString(id uint32, s string) *Param + func (param *Param) SetUint16(id uint32, n uint16) *Param + func (param *Param) SetUint32(id uint32, n uint32) *Param + type Property uint16 + func (property *Property) GetBodySize() uint16 + func (property *Property) SetBodySize(size uint16) error + func (property Property) IsEnableEncrypt() bool + func (property Property) IsEnablePacket() bool + type Reader struct + func NewReader(data []byte) Reader + func (reader *Reader) Len() int + func (reader *Reader) Read(size ...int) ([]byte, error) + func (reader *Reader) ReadBcdTime() (time.Time, error) + func (reader *Reader) ReadByte() (byte, error) + func (reader *Reader) ReadString(size ...int) (string, error) + func (reader *Reader) ReadUint16() (uint16, error) + func (reader *Reader) ReadUint32() (uint32, error) + type RectArea struct + Attribute AreaAttribute + Duration byte + EndTime time.Time + ID uint32 + LeftTopLat decimal.Decimal + LeftTopLon decimal.Decimal + MaxSpeed uint16 + RightBottomLat decimal.Decimal + RightBottomLon decimal.Decimal + StartTime time.Time + type Result byte + type T808_0x0001 struct + ReplyMsgID uint16 + ReplyMsgSerialNo uint16 + Result Result + func (entity *T808_0x0001) Decode(data []byte) (int, error) + func (entity *T808_0x0001) Encode() ([]byte, error) + func (entity *T808_0x0001) MsgID() MsgID + type T808_0x0002 struct + func (entity *T808_0x0002) Decode(data []byte) (int, error) + func (entity *T808_0x0002) Encode() ([]byte, error) + func (entity *T808_0x0002) MsgID() MsgID + type T808_0x0003 struct + func (entity *T808_0x0003) Decode(data []byte) (int, error) + func (entity *T808_0x0003) Encode() ([]byte, error) + func (entity *T808_0x0003) MsgID() MsgID + type T808_0x0100 struct + CityID uint16 + LicenseNo string + ManufactureID string + Model string + PlateColor byte + ProvinceID uint16 + TerminalID string + func (entity *T808_0x0100) Decode(data []byte) (int, error) + func (entity *T808_0x0100) Encode() ([]byte, error) + func (entity *T808_0x0100) MsgID() MsgID + type T808_0x0102 struct + AuthKey string + func (entity *T808_0x0102) Decode(data []byte) (int, error) + func (entity *T808_0x0102) Encode() ([]byte, error) + func (entity *T808_0x0102) MsgID() MsgID + type T808_0x0104 struct + Params []*Param + ReplyMsgSerialNo uint16 + func (entity *T808_0x0104) Decode(data []byte) (int, error) + func (entity *T808_0x0104) Encode() ([]byte, error) + func (entity *T808_0x0104) MsgID() MsgID + type T808_0x0107 struct + COMMProperty byte + GNSSProperty byte + HardwareVersion string + ManufactureID string + Model string + Sim string + SoftwareVersion string + TerminalID string + TerminalType uint16 + func (entity *T808_0x0107) Decode(data []byte) (int, error) + func (entity *T808_0x0107) Encode() ([]byte, error) + func (entity *T808_0x0107) MsgID() MsgID + type T808_0x0108 struct + Result byte + Type byte + func (entity *T808_0x0108) Decode(data []byte) (int, error) + func (entity *T808_0x0108) Encode() ([]byte, error) + func (entity *T808_0x0108) MsgID() MsgID + type T808_0x0200 struct + Alarm uint32 + Altitude uint16 + Direction uint16 + Extras []extra.Entity + Lat decimal.Decimal + Lng decimal.Decimal + Speed uint16 + Status T808_0x0200_Status + Time time.Time + func (entity *T808_0x0200) Decode(data []byte) (int, error) + func (entity *T808_0x0200) Encode() ([]byte, error) + func (entity *T808_0x0200) MsgID() MsgID + type T808_0x0200_Status uint32 + func (status *T808_0x0200_Status) SetSouthLatitude(b bool) + func (status *T808_0x0200_Status) SetWestLongitude(b bool) + func (status T808_0x0200_Status) GetAccState() bool + func (status T808_0x0200_Status) GetLatitudeType() LatitudeType + func (status T808_0x0200_Status) GetLongitudeType() LongitudeType + func (status T808_0x0200_Status) Positioning() bool + type T808_0x0201 struct + ReplyMsgSerialNo uint16 + Result T808_0x0200 + func (entity *T808_0x0201) Decode(data []byte) (int, error) + func (entity *T808_0x0201) Encode() ([]byte, error) + func (entity *T808_0x0201) MsgID() MsgID + type T808_0x0301 struct + EventID byte + func (entity *T808_0x0301) Decode(data []byte) (int, error) + func (entity *T808_0x0301) Encode() ([]byte, error) + func (entity *T808_0x0301) MsgID() MsgID + type T808_0x0302 struct + AnswerID byte + ReplyMsgSerialNo uint16 + func (entity *T808_0x0302) Decode(data []byte) (int, error) + func (entity *T808_0x0302) Encode() ([]byte, error) + func (entity *T808_0x0302) MsgID() MsgID + type T808_0x0303 struct + Flag T808_0x0303_Flag + Type byte + func (entity *T808_0x0303) Decode(data []byte) (int, error) + func (entity *T808_0x0303) Encode() ([]byte, error) + func (entity *T808_0x0303) MsgID() MsgID + type T808_0x0303_Flag byte + var T808_0x0303_FlagCancel T808_0x0303_Flag = 1 + var T808_0x0303_FlagRequest T808_0x0303_Flag = 0 + type T808_0x0500 struct + ReplyMsgSerialNo uint16 + Result T808_0x0200 + func (entity *T808_0x0500) Decode(data []byte) (int, error) + func (entity *T808_0x0500) Encode() ([]byte, error) + func (entity *T808_0x0500) MsgID() MsgID + type T808_0x0700 struct + Cmd byte + Data []byte + ReplyMsgSerialNo uint16 + func (entity *T808_0x0700) Decode(data []byte) (int, error) + func (entity *T808_0x0700) Encode() ([]byte, error) + func (entity *T808_0x0700) MsgID() MsgID + type T808_0x0701 struct + Content []byte + Size uint32 + func (entity *T808_0x0701) Decode(data []byte) (int, error) + func (entity *T808_0x0701) Encode() ([]byte, error) + func (entity *T808_0x0701) MsgID() MsgID + type T808_0x0702 struct + CompanyName string + DriverName string + ExpiryDate time.Time + ICCardResult byte + Number string + State byte + Time time.Time + func (entity *T808_0x0702) Decode(data []byte) (int, error) + func (entity *T808_0x0702) Encode() ([]byte, error) + func (entity *T808_0x0702) MsgID() MsgID + type T808_0x0704 struct + Items []T808_0x0200 + Type byte + func (entity *T808_0x0704) Decode(data []byte) (int, error) + func (entity *T808_0x0704) Encode() ([]byte, error) + func (entity *T808_0x0704) MsgID() MsgID + type T808_0x0705 struct + Items []T808_0x0705_CAN + ReceiveTime time.Duration + func (entity *T808_0x0705) Decode(data []byte) (int, error) + func (entity *T808_0x0705) Encode() ([]byte, error) + func (entity *T808_0x0705) MsgID() MsgID + type T808_0x0705_CAN struct + Data [8]byte + ID [4]byte + type T808_0x0800 struct + ChannelID byte + Coding T808_0x0800_MediaCoding + Event byte + MediaID uint32 + Type T808_0x0800_MediaType + func (entity *T808_0x0800) Decode(data []byte) (int, error) + func (entity *T808_0x0800) Encode() ([]byte, error) + func (entity *T808_0x0800) MsgID() MsgID + type T808_0x0800_MediaCoding byte + var T808_0x0800_MediaCodingJPEG T808_0x0800_MediaCoding = 0 + var T808_0x0800_MediaCodingMP3 T808_0x0800_MediaCoding = 2 + var T808_0x0800_MediaCodingTIF T808_0x0800_MediaCoding = 1 + var T808_0x0800_MediaCodingWAV T808_0x0800_MediaCoding = 3 + var T808_0x0800_MediaCodingWMV T808_0x0800_MediaCoding = 4 + type T808_0x0800_MediaType byte + var T808_0x0800_MediaTypeAudio T808_0x0800_MediaType = 1 + var T808_0x0800_MediaTypeImage T808_0x0800_MediaType = 0 + var T808_0x0800_MediaTypeVideo T808_0x0800_MediaType = 2 + type T808_0x0801 struct + ChannelID byte + Coding T808_0x0800_MediaCoding + Event byte + Location T808_0x0200 + MediaID uint32 + Packet io.Reader + Type T808_0x0800_MediaType + func (entity *T808_0x0801) Decode(data []byte) (int, error) + func (entity *T808_0x0801) DecodePacket(data []byte) error + func (entity *T808_0x0801) Encode() ([]byte, error) + func (entity *T808_0x0801) GetReader() io.Reader + func (entity *T808_0x0801) GetTag() uint32 + func (entity *T808_0x0801) MsgID() MsgID + func (entity *T808_0x0801) SetReader(reader io.Reader) + type T808_0x0802 struct + Items []T808_0x0802_Item + ReplyMsgSerialNo uint16 + func (entity *T808_0x0802) Decode(data []byte) (int, error) + func (entity *T808_0x0802) Encode() ([]byte, error) + func (entity *T808_0x0802) MsgID() MsgID + type T808_0x0802_Item struct + ChannelID byte + Event byte + Location T808_0x0200 + MediaID uint32 + Type T808_0x0800_MediaType + type T808_0x0805 struct + MediaIDs []uint32 + ReplyMsgSerialNo uint16 + Result T808_0x0805_Result + func (entity *T808_0x0805) Decode(data []byte) (int, error) + func (entity *T808_0x0805) Encode() ([]byte, error) + func (entity *T808_0x0805) MsgID() MsgID + type T808_0x0805_Result byte + var T808_0x0805_ResultFail T808_0x0805_Result = 1 + var T808_0x0805_ResultNotSupported T808_0x0805_Result = 2 + var T808_0x0805_ResultSuccess T808_0x0805_Result = 0 + type T808_0x0900 struct + Data []byte + Type byte + func (entity *T808_0x0900) Decode(data []byte) (int, error) + func (entity *T808_0x0900) Encode() ([]byte, error) + func (entity *T808_0x0900) MsgID() MsgID + type T808_0x0901 struct + Uncompressed []byte + func (entity *T808_0x0901) Decode(data []byte) (int, error) + func (entity *T808_0x0901) Encode() ([]byte, error) + func (entity *T808_0x0901) MsgID() MsgID + type T808_0x0A00 struct + PublicKey *rsa.PublicKey + func (entity *T808_0x0A00) Decode(data []byte) (int, error) + func (entity *T808_0x0A00) Encode() ([]byte, error) + func (entity *T808_0x0A00) MsgID() MsgID + type T808_0x8001 struct + ReplyMsgID MsgID + ReplyMsgSerialNo uint16 + Result Result + func (entity *T808_0x8001) Decode(data []byte) (int, error) + func (entity *T808_0x8001) Encode() ([]byte, error) + func (entity *T808_0x8001) MsgID() MsgID + type T808_0x8003 struct + MsgSerialNo uint16 + PacketIDs []uint16 + func (entity *T808_0x8003) Decode(data []byte) (int, error) + func (entity *T808_0x8003) Encode() ([]byte, error) + func (entity *T808_0x8003) MsgID() MsgID + type T808_0x8100 struct + AuthKey string + MsgSerialNo uint16 + Result T808_0x8100_Result + func (entity *T808_0x8100) Decode(data []byte) (int, error) + func (entity *T808_0x8100) Encode() ([]byte, error) + func (entity *T808_0x8100) MsgID() MsgID + type T808_0x8100_Result byte + type T808_0x8103 struct + Params []*Param + func (entity *T808_0x8103) Decode(data []byte) (int, error) + func (entity *T808_0x8103) Encode() ([]byte, error) + func (entity *T808_0x8103) MsgID() MsgID + type T808_0x8104 struct + func (entity *T808_0x8104) Decode(data []byte) (int, error) + func (entity *T808_0x8104) Encode() ([]byte, error) + func (entity *T808_0x8104) MsgID() MsgID + type T808_0x8105 struct + Cmd T808_0x8105_Command + Data string + func (entity *T808_0x8105) Decode(data []byte) (int, error) + func (entity *T808_0x8105) Encode() ([]byte, error) + func (entity *T808_0x8105) MsgID() MsgID + type T808_0x8105_Command byte + var T808_0x8105_CommandCloseAllNetwork T808_0x8105_Command = 7 + var T808_0x8105_CommandCloseNetwork T808_0x8105_Command = 6 + var T808_0x8105_CommandFactoryReset T808_0x8105_Command = 5 + var T808_0x8105_CommandHost T808_0x8105_Command = 2 + var T808_0x8105_CommandReset T808_0x8105_Command = 4 + var T808_0x8105_CommandShutdown T808_0x8105_Command = 3 + var T808_0x8105_CommandUpgrade T808_0x8105_Command = 1 + type T808_0x8106 struct + Params []uint32 + func (entity *T808_0x8106) Decode(data []byte) (int, error) + func (entity *T808_0x8106) Encode() ([]byte, error) + func (entity *T808_0x8106) MsgID() MsgID + type T808_0x8107 struct + func (entity *T808_0x8107) Decode(data []byte) (int, error) + func (entity *T808_0x8107) Encode() ([]byte, error) + func (entity *T808_0x8107) MsgID() MsgID + type T808_0x8108 struct + Data []byte + ManufactureID string + Size uint32 + Type byte + Version string + func (entity *T808_0x8108) Decode(data []byte) (int, error) + func (entity *T808_0x8108) Encode() ([]byte, error) + func (entity *T808_0x8108) MsgID() MsgID + type T808_0x8201 struct + func (entity *T808_0x8201) Decode(data []byte) (int, error) + func (entity *T808_0x8201) Encode() ([]byte, error) + func (entity *T808_0x8201) MsgID() MsgID + type T808_0x8202 struct + Expire uint32 + Interval uint16 + func (entity *T808_0x8202) Decode(data []byte) (int, error) + func (entity *T808_0x8202) Encode() ([]byte, error) + func (entity *T808_0x8202) MsgID() MsgID + type T808_0x8203 struct + MsgSerialNo uint16 + Type uint32 + func (entity *T808_0x8203) Decode(data []byte) (int, error) + func (entity *T808_0x8203) Encode() ([]byte, error) + func (entity *T808_0x8203) MsgID() MsgID + type T808_0x8300 struct + Flag byte + Text string + func (entity *T808_0x8300) Decode(data []byte) (int, error) + func (entity *T808_0x8300) Encode() ([]byte, error) + func (entity *T808_0x8300) MsgID() MsgID + type T808_0x8301 struct + Events []T808_0x8301_Event + Type byte + func (entity *T808_0x8301) Decode(data []byte) (int, error) + func (entity *T808_0x8301) Encode() ([]byte, error) + func (entity *T808_0x8301) MsgID() MsgID + type T808_0x8301_Event struct + Content string + ID byte + type T808_0x8302 struct + CandidateAnswers []T808_0x8302_Answer + Flag byte + Question string + func (entity *T808_0x8302) Decode(data []byte) (int, error) + func (entity *T808_0x8302) Encode() ([]byte, error) + func (entity *T808_0x8302) MsgID() MsgID + type T808_0x8302_Answer struct + Content string + ID byte + type T808_0x8303 struct + Items []T808_0x8303_Item + Type T808_0x8303_Type + func (entity *T808_0x8303) Decode(data []byte) (int, error) + func (entity *T808_0x8303) Encode() ([]byte, error) + func (entity *T808_0x8303) MsgID() MsgID + type T808_0x8303_Item struct + Name string + type T808_0x8303_Type byte + var T808_0x8303_TypeAppend T808_0x8303_Type = 2 + var T808_0x8303_TypeModify T808_0x8303_Type = 3 + var T808_0x8303_TypeRemoveAll T808_0x8303_Type = 0 + var T808_0x8303_TypeUpdate T808_0x8303_Type = 1 + type T808_0x8304 struct + Content string + Type byte + func (entity *T808_0x8304) Decode(data []byte) (int, error) + func (entity *T808_0x8304) Encode() ([]byte, error) + func (entity *T808_0x8304) MsgID() MsgID + type T808_0x8400 struct + Flag T808_0x8400_Flag + Number string + func (entity *T808_0x8400) Decode(data []byte) (int, error) + func (entity *T808_0x8400) Encode() ([]byte, error) + func (entity *T808_0x8400) MsgID() MsgID + type T808_0x8400_Flag byte + var T808_0x8400_FlagMonitor T808_0x8400_Flag = 1 + var T808_0x8400_FlagNormal T808_0x8400_Flag = 0 + type T808_0x8401 struct + Contacts []T808_0x8401_Contact + Type T808_0x8401_Type + func (entity *T808_0x8401) Decode(data []byte) (int, error) + func (entity *T808_0x8401) Encode() ([]byte, error) + func (entity *T808_0x8401) MsgID() MsgID + type T808_0x8401_Contact struct + Contact string + Flag T808_0x8401_ContactFlag + Number string + type T808_0x8401_ContactFlag byte + var T808_0x8401_ContactFlagBoth T808_0x8401_ContactFlag = 3 + var T808_0x8401_ContactFlagIncomingCall T808_0x8401_ContactFlag = 1 + var T808_0x8401_ContactFlagOutgoingCall T808_0x8401_ContactFlag = 2 + type T808_0x8401_Type byte + var T808_0x8401_TypeAppend T808_0x8401_Type = 2 + var T808_0x8401_TypeModify T808_0x8401_Type = 3 + var T808_0x8401_TypeRemoveAll T808_0x8401_Type = 0 + var T808_0x8401_TypeUpdate T808_0x8401_Type = 1 + type T808_0x8500 struct + Flag T808_0x8500_Flag + func (entity *T808_0x8500) Decode(data []byte) (int, error) + func (entity *T808_0x8500) Encode() ([]byte, error) + func (entity *T808_0x8500) MsgID() MsgID + type T808_0x8500_Flag byte + func (flag *T808_0x8500_Flag) SetLock(b bool) + type T808_0x8600 struct + Action AreaAction + Items []CircleArea + func (entity *T808_0x8600) Decode(data []byte) (int, error) + func (entity *T808_0x8600) Encode() ([]byte, error) + func (entity *T808_0x8600) MsgID() MsgID + type T808_0x8601 struct + IDs []uint32 + func (entity *T808_0x8601) Decode(data []byte) (int, error) + func (entity *T808_0x8601) Encode() ([]byte, error) + func (entity *T808_0x8601) MsgID() MsgID + type T808_0x8602 struct + Action AreaAction + Items []RectArea + func (entity *T808_0x8602) Decode(data []byte) (int, error) + func (entity *T808_0x8602) Encode() ([]byte, error) + func (entity *T808_0x8602) MsgID() MsgID + type T808_0x8603 struct + IDs []uint32 + func (entity *T808_0x8603) Decode(data []byte) (int, error) + func (entity *T808_0x8603) Encode() ([]byte, error) + func (entity *T808_0x8603) MsgID() MsgID + type T808_0x8604 struct + Attribute AreaAttribute + Duration byte + EndTime time.Time + ID uint32 + MaxSpeed uint16 + StartTime time.Time + Vertexes []Vertex + func (entity *T808_0x8604) Decode(data []byte) (int, error) + func (entity *T808_0x8604) Encode() ([]byte, error) + func (entity *T808_0x8604) MsgID() MsgID + type T808_0x8605 struct + IDs []uint32 + func (entity *T808_0x8605) Decode(data []byte) (int, error) + func (entity *T808_0x8605) Encode() ([]byte, error) + func (entity *T808_0x8605) MsgID() MsgID + type T808_0x8606 struct + Attribute uint16 + EndTime time.Time + ID uint32 + Points []T808_0x8606_Point + StartTime time.Time + func (entity *T808_0x8606) Decode(data []byte) (int, error) + func (entity *T808_0x8606) Encode() ([]byte, error) + func (entity *T808_0x8606) MsgID() MsgID + type T808_0x8606_Point struct + Attribute T808_0x8606_SectionAttribute + ID uint32 + Lat decimal.Decimal + Lng decimal.Decimal + MaxSpeed *uint16 + OverSpeedDuration *byte + SectionID uint32 + TimeTooLong *uint16 + TimeTooShort *uint16 + Width byte + type T808_0x8606_SectionAttribute byte + func (attr *T808_0x8606_SectionAttribute) HasSpeedLimit() bool + func (attr *T808_0x8606_SectionAttribute) HasTimeLimit() bool + func (attr *T808_0x8606_SectionAttribute) SetSouthLatitude(b bool) + func (attr *T808_0x8606_SectionAttribute) SetSpeedLimit(b bool) + func (attr *T808_0x8606_SectionAttribute) SetTimeLimit(b bool) + func (attr *T808_0x8606_SectionAttribute) SetWestLongitude(b bool) + func (attr T808_0x8606_SectionAttribute) GetLatitudeType() LatitudeType + func (attr T808_0x8606_SectionAttribute) GetLongitudeType() LongitudeType + type T808_0x8607 struct + IDs []uint32 + func (entity *T808_0x8607) Decode(data []byte) (int, error) + func (entity *T808_0x8607) Encode() ([]byte, error) + func (entity *T808_0x8607) MsgID() MsgID + type T808_0x8700 struct + Cmd byte + Data []byte + func (entity *T808_0x8700) Decode(data []byte) (int, error) + func (entity *T808_0x8700) Encode() ([]byte, error) + func (entity *T808_0x8700) MsgID() MsgID + type T808_0x8701 struct + Cmd byte + Data []byte + func (entity *T808_0x8701) Decode(data []byte) (int, error) + func (entity *T808_0x8701) Encode() ([]byte, error) + func (entity *T808_0x8701) MsgID() MsgID + type T808_0x8702 struct + func (entity *T808_0x8702) Decode(data []byte) (int, error) + func (entity *T808_0x8702) Encode() ([]byte, error) + func (entity *T808_0x8702) MsgID() MsgID + type T808_0x8800 struct + MediaID uint32 + RetryIDs []uint16 + func (entity *T808_0x8800) Decode(data []byte) (int, error) + func (entity *T808_0x8800) Encode() ([]byte, error) + func (entity *T808_0x8800) MsgID() MsgID + type T808_0x8801 struct + ChannelID byte + Chroma byte + Cmd uint16 + Contrast byte + Duration uint16 + Lighting byte + Quality byte + Resolution T808_0x8801_Resolution + Saturability byte + Save T808_0x8801_SaveFlag + func (entity *T808_0x8801) Decode(data []byte) (int, error) + func (entity *T808_0x8801) Encode() ([]byte, error) + func (entity *T808_0x8801) MsgID() MsgID + type T808_0x8801_Resolution byte + var T808_0x8801_Resolution1024x768 T808_0x8801_Resolution = 0x04 + var T808_0x8801_Resolution176x144 T808_0x8801_Resolution = 0x05 + var T808_0x8801_Resolution320x240 T808_0x8801_Resolution = 0x01 + var T808_0x8801_Resolution352x288 T808_0x8801_Resolution = 0x06 + var T808_0x8801_Resolution640x480 T808_0x8801_Resolution = 0x02 + var T808_0x8801_Resolution704x288 T808_0x8801_Resolution = 0x07 + var T808_0x8801_Resolution704x576 T808_0x8801_Resolution = 0x08 + var T808_0x8801_Resolution800x600 T808_0x8801_Resolution = 0x03 + type T808_0x8801_SaveFlag byte + var T808_0x8801_SaveFlagLocal T808_0x8801_SaveFlag = 1 + var T808_0x8801_SaveFlagRemote T808_0x8801_SaveFlag = 0 + type T808_0x8802 struct + ChannelID byte + EndTime time.Time + Event byte + StartTime time.Time + Type T808_0x0800_MediaType + func (entity *T808_0x8802) Decode(data []byte) (int, error) + func (entity *T808_0x8802) Encode() ([]byte, error) + func (entity *T808_0x8802) MsgID() MsgID + type T808_0x8803 struct + ChannelID byte + EndTime time.Time + Event byte + RemoveFlag byte + StartTime time.Time + Type T808_0x0800_MediaType + func (entity *T808_0x8803) Decode(data []byte) (int, error) + func (entity *T808_0x8803) Encode() ([]byte, error) + func (entity *T808_0x8803) MsgID() MsgID + type T808_0x8804 struct + AudioSampleRate T808_0x8804_AudioSampleRate + Cmd byte + Duration uint16 + Save T808_0x8801_SaveFlag + func (entity *T808_0x8804) Decode(data []byte) (int, error) + func (entity *T808_0x8804) Encode() ([]byte, error) + func (entity *T808_0x8804) MsgID() MsgID + type T808_0x8804_AudioSampleRate byte + var T808_0x8804_AudioSampleRate11k T808_0x8804_AudioSampleRate = 1 + var T808_0x8804_AudioSampleRate23k T808_0x8804_AudioSampleRate = 2 + var T808_0x8804_AudioSampleRate32k T808_0x8804_AudioSampleRate = 3 + var T808_0x8804_AudioSampleRate8k T808_0x8804_AudioSampleRate = 0 + type T808_0x8805 struct + MediaID uint32 + RemoveFlag byte + func (entity *T808_0x8805) Decode(data []byte) (int, error) + func (entity *T808_0x8805) Encode() ([]byte, error) + func (entity *T808_0x8805) MsgID() MsgID + type T808_0x8900 struct + Data []byte + Type byte + func (entity *T808_0x8900) Decode(data []byte) (int, error) + func (entity *T808_0x8900) Encode() ([]byte, error) + func (entity *T808_0x8900) MsgID() MsgID + type T808_0x8A00 struct + PublicKey *rsa.PublicKey + func (entity *T808_0x8A00) Decode(data []byte) (int, error) + func (entity *T808_0x8A00) Encode() ([]byte, error) + func (entity *T808_0x8A00) MsgID() MsgID + type Vertex struct + Lat decimal.Decimal + Lng decimal.Decimal + type Writer struct + func NewWriter() Writer + func (writer *Writer) Bytes() []byte + func (writer *Writer) WritString(str string, size ...int) error + func (writer *Writer) Write(p []byte, size ...int) *Writer + func (writer *Writer) WriteBcdTime(t time.Time) *Writer + func (writer *Writer) WriteByte(b byte) *Writer + func (writer *Writer) WriteUint16(n uint16) *Writer + func (writer *Writer) WriteUint32(n uint32) *Writer