device

package
v0.0.0-...-a88e0b3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelMap = map[Model]struct{}{

	VU4004_01: {},
	VU4005_01: {},
	VU40E4_00: {},
	VU40E4_20: {},
	VU4105_00: {},
	VU4105_01: {},
	VU4105_11: {},

	DTVL3100_RSU:   {},
	DTVL3110EB_RSU: {},
	DTVL3110E_RSU:  {},
	DTVL3110_RSU:   {},
	DTVL5000E_RSU:  {},
	DTVL5000_RSU:   {},

	DTVL3100_VBOX: {},
}

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	// 设备类型
	Type Type `json:"type"`
	// 设备型号
	Model Model `json:"model"`
	// 设备序列号
	SerialNumber string `json:"serial_number"`
	// 模组型号
	ModuleModel ModuleModel `json:"module_model"`
	// 模组序列号
	ModuleSerialNumber string `json:"module_serial_number"`
	// 软件版本号
	SoftwareVersion string `json:"software_version"`
	// 设备版本号
	DeviceVersion string `json:"device_version"`
	// 参数版本号
	PMVersion string `json:"pm_version"`
}

func (*Metadata) Format

func (own *Metadata) Format() error

type Model

type Model string

Model 定义设备型号的数据类型

const (
	// OBU型号
	VU4004_01 Model = "VU4004-01"
	VU4005_01 Model = "VU4005-01"
	VU40E4_00 Model = "VU40E4-00"
	VU40E4_20 Model = "VU40E4-20"
	VU4105_00 Model = "VU4105-00"
	VU4105_01 Model = "VU4105-01"
	VU4105_11 Model = "VU4105-11"

	// RSU 型号
	DTVL3100_RSU   Model = "DTVL3100-RSU"
	DTVL3110_RSU   Model = "DTVL3110-RSU"
	DTVL3110E_RSU  Model = "DTVL3110E-RSU"
	DTVL3110EB_RSU Model = "DTVL3110EB-RSU"
	DTVL5000_RSU   Model = "DTVL5000-RSU"
	DTVL5000E_RSU  Model = "DTVL5000E-RSU"

	// VBOX 型号
	DTVL3100_VBOX Model = "DTVL3100-VBOX"
)

type ModuleModel

type ModuleModel string

ModuleModel 定义模组型号的数据类型

const (
	MODULE_MODEL_DMD31     ModuleModel = "DMD31"
	MODULE_MODEL_DMD3A     ModuleModel = "DMD3A"
	MODULE_MODEL_UNDEFINED ModuleModel = "UNDEFINED"
)

type Type

type Type string

Type 定义设备类型的数据类型

const (
	TYPE_OBU Type = "OBU"
	TYPE_RSU Type = "RSU"
	TYPE_VMS Type = "VMS"
	TYPE_TSC Type = "TSC"
	TYPE_LDR Type = "LDR"
	TYPE_MER Type = "MER"
	TYPE_MEC Type = "MEC"
	TYPE_IPC Type = "IPC"
)

func (Type) MatchSoftwareVersion

func (own Type) MatchSoftwareVersion(ver string) bool

Jump to

Keyboard shortcuts

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