Documentation
¶
Index ¶
- func Register(typ byte, creator func() Entity)
- type Entity
- type Extra_0x01
- type Extra_0x2A
- type Extra_0x2B
- type Extra_0x02
- type Extra_0x03
- type Extra_0x04
- type Extra_0x11
- type Extra_0x11_Value
- type Extra_0x12
- type Extra_0x12_Value
- type Extra_0x13
- type Extra_0x13_Value
- type Extra_0x25
- type Extra_0x30
- type Extra_0x31
- type Extra_0x64
- type Extra_0x64_Value
- type Extra_0x65
- type Extra_0x65_Value
- type Extra_0x67
- type Extra_0x67_Value
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entity ¶
type Entity interface {
ID() byte
Data() []byte
Value() interface{}
Decode(data []byte) (int, error)
}
附加信息
type Extra_0x01 ¶
type Extra_0x01 struct {
// contains filtered or unexported fields
}
里程
func NewExtra_0x01 ¶
func NewExtra_0x01(val uint32) *Extra_0x01
func (Extra_0x01) Data ¶
func (extra Extra_0x01) Data() []byte
func (Extra_0x01) ID ¶
func (Extra_0x01) ID() byte
func (Extra_0x01) Value ¶
func (extra Extra_0x01) Value() interface{}
type Extra_0x2A ¶
type Extra_0x2A struct {
// contains filtered or unexported fields
}
IO状态位
func NewExtra_0x2A ¶
func NewExtra_0x2A(val uint16) *Extra_0x2A
func (Extra_0x2A) Data ¶
func (extra Extra_0x2A) Data() []byte
func (Extra_0x2A) ID ¶
func (Extra_0x2A) ID() byte
func (Extra_0x2A) Value ¶
func (extra Extra_0x2A) Value() interface{}
type Extra_0x2B ¶
type Extra_0x2B struct {
// contains filtered or unexported fields
}
模拟量
func NewExtra_0x2B ¶
func NewExtra_0x2B(val uint32) *Extra_0x2B
func (Extra_0x2B) Data ¶
func (extra Extra_0x2B) Data() []byte
func (Extra_0x2B) ID ¶
func (Extra_0x2B) ID() byte
func (Extra_0x2B) Value ¶
func (extra Extra_0x2B) Value() interface{}
type Extra_0x02 ¶
type Extra_0x02 struct {
// contains filtered or unexported fields
}
油量
func NewExtra_0x02 ¶
func NewExtra_0x02(val uint16) *Extra_0x02
func (Extra_0x02) Data ¶
func (extra Extra_0x02) Data() []byte
func (Extra_0x02) ID ¶
func (Extra_0x02) ID() byte
func (Extra_0x02) Value ¶
func (extra Extra_0x02) Value() interface{}
type Extra_0x03 ¶
type Extra_0x03 struct {
// contains filtered or unexported fields
}
速度
func NewExtra_0x03 ¶
func NewExtra_0x03(val uint16) *Extra_0x03
func (Extra_0x03) Data ¶
func (extra Extra_0x03) Data() []byte
func (Extra_0x03) ID ¶
func (Extra_0x03) ID() byte
func (Extra_0x03) Value ¶
func (extra Extra_0x03) Value() interface{}
type Extra_0x04 ¶
type Extra_0x04 struct {
// contains filtered or unexported fields
}
报警确认
func NewExtra_0x04 ¶
func NewExtra_0x04(val uint16) *Extra_0x04
func (Extra_0x04) Data ¶
func (extra Extra_0x04) Data() []byte
func (Extra_0x04) ID ¶
func (Extra_0x04) ID() byte
func (Extra_0x04) Value ¶
func (extra Extra_0x04) Value() interface{}
type Extra_0x11 ¶
type Extra_0x11 struct {
// contains filtered or unexported fields
}
超速报警
func NewExtra_0x11 ¶
func NewExtra_0x11(value Extra_0x11_Value) *Extra_0x11
func (Extra_0x11) Data ¶
func (extra Extra_0x11) Data() []byte
func (Extra_0x11) ID ¶
func (Extra_0x11) ID() byte
func (Extra_0x11) Value ¶
func (extra Extra_0x11) Value() interface{}
type Extra_0x11_Value ¶
type Extra_0x12 ¶
type Extra_0x12 struct {
// contains filtered or unexported fields
}
进出报警
func NewExtra_0x12 ¶
func NewExtra_0x12(value Extra_0x12_Value) *Extra_0x12
func (Extra_0x12) Data ¶
func (extra Extra_0x12) Data() []byte
func (Extra_0x12) ID ¶
func (Extra_0x12) ID() byte
func (Extra_0x12) Value ¶
func (extra Extra_0x12) Value() interface{}
type Extra_0x12_Value ¶
type Extra_0x13 ¶
type Extra_0x13 struct {
// contains filtered or unexported fields
}
路段行驶报警
func NewExtra_0x13 ¶
func NewExtra_0x13(value Extra_0x13_Value) *Extra_0x13
func (Extra_0x13) Data ¶
func (extra Extra_0x13) Data() []byte
func (Extra_0x13) ID ¶
func (Extra_0x13) ID() byte
func (Extra_0x13) Value ¶
func (extra Extra_0x13) Value() interface{}
type Extra_0x13_Value ¶
type Extra_0x25 ¶
type Extra_0x25 struct {
// contains filtered or unexported fields
}
扩展车辆信号状态位
func NewExtra_0x25 ¶
func NewExtra_0x25(val uint32) *Extra_0x25
func (Extra_0x25) Data ¶
func (extra Extra_0x25) Data() []byte
func (Extra_0x25) ID ¶
func (Extra_0x25) ID() byte
func (Extra_0x25) Value ¶
func (extra Extra_0x25) Value() interface{}
type Extra_0x30 ¶
type Extra_0x30 struct {
// contains filtered or unexported fields
}
无线通信网络信号强度
func NewExtra_0x30 ¶
func NewExtra_0x30(val byte) *Extra_0x30
func (Extra_0x30) Data ¶
func (extra Extra_0x30) Data() []byte
func (Extra_0x30) ID ¶
func (Extra_0x30) ID() byte
func (Extra_0x30) Value ¶
func (extra Extra_0x30) Value() interface{}
type Extra_0x31 ¶
type Extra_0x31 struct {
// contains filtered or unexported fields
}
GNSS定位卫星数
func NewExtra_0x31 ¶
func NewExtra_0x31(val byte) *Extra_0x31
func (Extra_0x31) Data ¶
func (extra Extra_0x31) Data() []byte
func (Extra_0x31) ID ¶
func (Extra_0x31) ID() byte
func (Extra_0x31) Value ¶
func (extra Extra_0x31) Value() interface{}
type Extra_0x64 ¶
type Extra_0x64 struct {
// contains filtered or unexported fields
}
高级驾驶辅助系统报警信息
func (Extra_0x64) Data ¶
func (extra Extra_0x64) Data() []byte
func (Extra_0x64) ID ¶
func (Extra_0x64) ID() byte
func (Extra_0x64) Value ¶
func (extra Extra_0x64) Value() interface{}
type Extra_0x64_Value ¶
type Extra_0x64_Value struct {
AlarmId uint32
AlarmState byte
AlarmType byte
AlarmClass byte
FrontSpeed byte
FrontDist byte
LDWType byte
LmtType byte
LmtData byte
Speed byte
Height uint16
Lat uint32
Lng uint32
DateTime time.Time
State uint16
DeviceId string
DT time.Time
SN byte
AttachNum byte
AlarmIden []byte
}
type Extra_0x65 ¶
type Extra_0x65 struct {
// contains filtered or unexported fields
}
高级驾驶辅助系统报警信息
func (Extra_0x65) Data ¶
func (extra Extra_0x65) Data() []byte
func (Extra_0x65) ID ¶
func (Extra_0x65) ID() byte
func (Extra_0x65) Value ¶
func (extra Extra_0x65) Value() interface{}
type Extra_0x65_Value ¶
type Extra_0x67 ¶
type Extra_0x67 struct {
// contains filtered or unexported fields
}
盲区监测报警信息
func (Extra_0x67) Data ¶
func (extra Extra_0x67) Data() []byte
func (Extra_0x67) ID ¶
func (Extra_0x67) ID() byte
func (Extra_0x67) Value ¶
func (extra Extra_0x67) Value() interface{}
type Extra_0x67_Value ¶
type Type ¶
type Type byte
附加消息类型
const ( // 里程 TypeExtra_0x01 Type = 0x01 // 油量 TypeExtra_0x02 Type = 0x02 // 速度 TypeExtra_0x03 Type = 0x03 // 报警确认 TypeExtra_0x04 Type = 0x04 // 超速报警 TypeExtra_0x11 Type = 0x11 // 进出区域报警 TypeExtra_0x12 Type = 0x12 // 路段行驶时间报警 TypeExtra_0x13 Type = 0x13 //扩展车辆信号状态位 TypeExtra_0x25 Type = 0x25 // IO状态位 TypeExtra_0x2a Type = 0x2a // 模拟量 TypeExtra_0x2b Type = 0x2b // 无线通信网络信号强度 TypeExtra_0x30 Type = 0x30 // GNSS定位卫星数 TypeExtra_0x31 Type = 0x31 // 高级驾驶辅助系统报警信息 TypeExtra_0x64 Type = 0x64 // 驾驶员状态监测系统报警 TypeExtra_0x65 Type = 0x65 // 盲区监测报警信息 TypeExtra_0x67 Type = 0x67 )
Click to show internal directories.
Click to hide internal directories.