gobd

package module
v0.0.0-...-065ebce Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2015 License: GPL-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GOBD

A go library for interacting with OBDII

Not done yet.

Resources

Documentation

Overview

Package gobd provides an interface for dealing with a vehicle's On board diagnostsic system. Supports OBDII.

Index

Constants

View Source
const (
	MODE_CURRENT
	MODE_FREEZE_FRAME
	MODE_TROUBLE_CODES
	MODE_CLEAR_TROUBLE_CODES
	MODE_TEST_RESULTS_O2
	MODE_TEST_RESULTS_NCT
	MODE_PENDING_TROUBLE_CODES
	MODE_SCM // Special control mode
	MODE_INFO
	MODE_PERMANENT_TROUBLE_CODES
)
View Source
const (
	M1_PIDS = iota
	M1_STATUS
	M1_FREEZE
	M1_FUEL_STATUS
	M1_ENGINE_LOAD
	M1_COOLANT_TEMP
	// Long/short term fuel trim banks 1 and 2
	M1_STFT_1
	M1_LTFT_1
	M1_STFT_2
	M1_LTFT_2
	M1_FUEL_PRESSURE
	M1_MANIFOLD_PRESSURE
	M1_RPM
	M1_SPEED
	M1_TIMING_ADVANCE
	M1_INTAKE_AIR_TEMP
	M1_MAF_AIR_FLOW
	M1_THROTTLE_POSITION
	M1_SECONDARY_AIR_STATUS
	M1_OXYGEN_SENSORS_PRESENT
	// Oxygen sensors, banks 1 and 2, sensors 1-4
	M1_B1_O2_1
	M1_B1_O2_2
	M1_B1_O2_3
	M1_B1_O2_4
	M1_B2_O2_1
	M1_B2_O2_2
	M1_B2_O2_3
	M1_B2_O2_4
	M1_OBD_STANDARDS
	M1_PIDS_2
	M1_DISTANCE_WITH_ENGINE_LIGHT
	M1_FUEL_RAIL_PRESSURE
	M1_FUEL_RAIL_PRESSURE_DIESEL
	// Wide band O2 sensors
	M1_O2_WR_1_VOLTS
	M1_O2_WR_2_VOLTS
	M1_O2_WR_3_VOLTS
	M1_O2_WR_4_VOLTS
	M1_O2_WR_5_VOLTS
	M1_O2_WR_6_VOLTS
	M1_O2_WR_7_VOLTS
	M1_O2_WR_8_VOLTS
	M1_COMMANDED_EGR // https://en.wikipedia.org/wiki/Exhaust_gas_recirculation
	M1_EGR_ERROR
	M1_COMMANDED_EVAPORATIVE_PURGE
	M1_FUEL_LEVEL
	M1_WARM_UPS
	M1_DISTANCE_SINCE_CLEARED
	M1_VAPOR_PRESSURE
	M1_BAROMETRIC_PRESSURE
	M1_O2_WR_1_CURRENT
	M1_O2_WR_2_CURRENT
	M1_O2_WR_3_CURRENT
	M1_O2_WR_4_CURRENT
	M1_O2_WR_5_CURRENT
	M1_O2_WR_6_CURRENT
	M1_O2_WR_7_CURRENT
	M1_O2_WR_8_CURRENT
	M1_CATALYST_TEMP_B1_1
	M1_CATALYST_TEMP_B2_1
	M1_CATALYST_TEMP_B1_2
	M1_CATALYST_TEMP_B2_2
	M1_PIDS_3
	M1_MONITOR_STATUS
	M1_CONTROL_MODULE_VOLTS
	M1_ABSOLUTE_LOAD
	M1_FUEL_AIR_EQUIVALENCE_RATIO
	M1_RELATIVE_THROTTLE
	M1_AMBIENT_AIR_TEMP
	M1_ABSOLUTE_THROTTLE_B
	M1_ABSOLUTE_THROTTLE_C
	M1_ABSOLUTE_THROTTLE_D
	M1_ABSOLUTE_THROTTLE_E
	M1_ABSOLUTE_THROTTLE_F
	M1_COMMANDED_THROTTLE_ACTUATOR
	M1_TIME_WITH_ENGINE_LIGHT
	M1_TIME_SINCE_CLEARED
	M1_MAX_VALUES
	M1_MAX_AIR_FLOW_RATE
	M1_FUEL_TYPE
	M1_ETHANOL_FUEL_PERCENT
	M1_ABSOLUTE_VAPOR_PRESSURE
	M1_ST_SECONDARY_O2_1_3
	M1_LT_SECONDARY_O2_1_3
	M1_ST_SECONDARY_O2_2_4
	M1_LT_SECONDARY_O2_2_4
	M1_FUEL_RAIL_ABSOLUTE_PRESSURE
	M1_RELATIVE_ACCELERATOR
	M1_HYBRID_BATTERY_LIFE
	M1_ENGINE_OIL_TEMP
	M1_EMISSION_REQUIREMENTS
	M1_PIDS_4
	M1_DRIVERS_ENGINE_TORQUE
	M1_ACTUAL_ENGINE_TORQUE
	M1_REFERENCE_ENGINE_TORQUE
	M1_ENGINE_PERCENT_TORQUE
	M1_AUX_INPUT_SUPPORTED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OBD

type OBD struct {
	// contains filtered or unexported fields
}

func NewOBD

func NewOBD(serialPortName string) (*OBD, error)

func (*OBD) Close

func (obd *OBD) Close() error

func (*OBD) ReadResult

func (obd *OBD) ReadResult() ([]byte, error)

func (*OBD) Reset

func (obd *OBD) Reset() error

func (*OBD) SendCommand

func (obd *OBD) SendCommand(command []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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